Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

45: Re-create vrp model classes from OB's 3.1.8r5 tag #124

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
<!-- plugins -->
<license-maven-plugin.version>3.0</license-maven-plugin.version>
<maven-release-plugin.version>3.0.0-M1</maven-release-plugin.version>
<openapi-generator.version>4.3.1</openapi-generator.version>
<!-- <openapi-generator.version>4.3.1</openapi-generator.version> -->
<openapi-generator.version>5.1.0</openapi-generator.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -204,18 +205,21 @@
</goals>
<configuration>
<!-- Only one input file is supported. Uncomment the relevant spec as required -->
<inputSpec>${project.basedir}/src/main/resources/specification/account-info-openapi.yaml</inputSpec>
<!--<inputSpec>${project.basedir}/src/main/resources/specification/account-info-openapi.yaml</inputSpec>-->
<!--<inputSpec>${project.basedir}/src/main/resources/specification/confirmation-funds-openapi.yaml</inputSpec>-->
<!--<inputSpec>${project.basedir}/src/main/resources/specification/event-notifications-openapi.yaml</inputSpec>-->
<!--<inputSpec>${project.basedir}/src/main/resources/specification/events-openapi.yaml</inputSpec>-->
<!--<inputSpec>${project.basedir}/src/main/resources/specification/payment-initiation-openapi.yaml</inputSpec>-->
<!--<inputSpec>${project.basedir}/src/main/resources/specification/vrp-openapi.yaml</inputSpec>-->
<inputSpec>${project.basedir}/src/main/resources/specification/vrp-openapi.yaml</inputSpec>
<output>${project.build.directory}/generated-sources/swagger</output>
<generatorName>spring</generatorName>
<!-- Change the package here as per the chosen spec above -->
<modelPackage>
uk.org.openbanking.datamodel.account
uk.org.openbanking.datamodel.vrp
</modelPackage>
<apiPackage>
com.forgerock.openbanking.aspsp.rs.api.vrp
</apiPackage>
<generateApis>false</generateApis>
<configOptions>
<dateLibrary>joda</dateLibrary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,151 +31,146 @@
* ^ Only incuded in the response if &#x60;Data. ReadRefundAccount&#x60; is set to &#x60;Yes&#x60; in the consent.
*/
@ApiModel(description = "^ Only incuded in the response if `Data. ReadRefundAccount` is set to `Yes` in the consent.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-05-21T09:44:44.818881+01:00[Europe/London]")

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2021-11-17T16:24:12.845482Z[Europe/London]")
public class OBCashAccountDebtorWithName {
@JsonProperty("SchemeName")
private String schemeName;
@JsonProperty("SchemeName")
private String schemeName;

@JsonProperty("Identification")
private String identification;

@JsonProperty("Name")
private String name;

@JsonProperty("SecondaryIdentification")
private String secondaryIdentification;

public OBCashAccountDebtorWithName schemeName(String schemeName) {
this.schemeName = schemeName;
return this;
}

/**
* ^ Name of the identification scheme, in a coded form as published in an external list. | Namespaced Enumeration OBExternalAccountIdentification4Code
* @return schemeName
*/
@ApiModelProperty(required = true, value = "^ Name of the identification scheme, in a coded form as published in an external list. | Namespaced Enumeration OBExternalAccountIdentification4Code")
@NotNull


public String getSchemeName() {
return schemeName;
}

public void setSchemeName(String schemeName) {
this.schemeName = schemeName;
}

public OBCashAccountDebtorWithName identification(String identification) {
this.identification = identification;
return this;
}

/**
* ^ Identification assigned by an institution to identify an account. This identification is known by the account owner. | Max256Text
* @return identification
*/
@ApiModelProperty(required = true, value = "^ Identification assigned by an institution to identify an account. This identification is known by the account owner. | Max256Text")
@NotNull


public String getIdentification() {
return identification;
}

public void setIdentification(String identification) {
this.identification = identification;
}

public OBCashAccountDebtorWithName name(String name) {
this.name = name;
return this;
}

/**
* ^ Name of the account, as assigned by the account servicing institution. Usage The account name is the name or names of the account owner(s) represented at an account level. The account name is not the product name or the nickname of the account.
* @return name
*/
@ApiModelProperty(required = true, value = "^ Name of the account, as assigned by the account servicing institution. Usage The account name is the name or names of the account owner(s) represented at an account level. The account name is not the product name or the nickname of the account.")
@NotNull


@JsonProperty("Identification")
private String identification;
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

@JsonProperty("Name")
private String name;
public OBCashAccountDebtorWithName secondaryIdentification(String secondaryIdentification) {
this.secondaryIdentification = secondaryIdentification;
return this;
}

/**
* ^ This is secondary identification of the account, as assigned by the account servicing institution. This can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination) | Max34Text
* @return secondaryIdentification
*/
@ApiModelProperty(value = "^ This is secondary identification of the account, as assigned by the account servicing institution. This can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination) | Max34Text")


public String getSecondaryIdentification() {
return secondaryIdentification;
}

@JsonProperty("SecondaryIdentification")
private String secondaryIdentification;

public OBCashAccountDebtorWithName schemeName(String schemeName) {
this.schemeName = schemeName;
return this;
}

/**
* ^ Name of the identification scheme, in a coded form as published in an external list. | Namespaced Enumeration OBExternalAccountIdentification4Code
*
* @return schemeName
*/
@ApiModelProperty(required = true, value = "^ Name of the identification scheme, in a coded form as published in an external list. | Namespaced Enumeration OBExternalAccountIdentification4Code")
@NotNull


public String getSchemeName() {
return schemeName;
}

public void setSchemeName(String schemeName) {
this.schemeName = schemeName;
}

public OBCashAccountDebtorWithName identification(String identification) {
this.identification = identification;
return this;
}

/**
* ^ Identification assigned by an institution to identify an account. This identification is known by the account owner. | Max256Text
*
* @return identification
*/
@ApiModelProperty(required = true, value = "^ Identification assigned by an institution to identify an account. This identification is known by the account owner. | Max256Text")
@NotNull


public String getIdentification() {
return identification;
}

public void setIdentification(String identification) {
this.identification = identification;
}

public OBCashAccountDebtorWithName name(String name) {
this.name = name;
return this;
}

/**
* ^ Name of the account, as assigned by the account servicing institution. Usage The account name is the name or names of the account owner(s) represented at an account level. The account name is not the product name or the nickname of the account.
*
* @return name
*/
@ApiModelProperty(required = true, value = "^ Name of the account, as assigned by the account servicing institution. Usage The account name is the name or names of the account owner(s) represented at an account level. The account name is not the product name or the nickname of the account.")
@NotNull


public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public OBCashAccountDebtorWithName secondaryIdentification(String secondaryIdentification) {
this.secondaryIdentification = secondaryIdentification;
return this;
}

/**
* ^ This is secondary identification of the account, as assigned by the account servicing institution. This can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination) | Max34Text
*
* @return secondaryIdentification
*/
@ApiModelProperty(value = "^ This is secondary identification of the account, as assigned by the account servicing institution. This can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination) | Max34Text")


public String getSecondaryIdentification() {
return secondaryIdentification;
}

public void setSecondaryIdentification(String secondaryIdentification) {
this.secondaryIdentification = secondaryIdentification;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBCashAccountDebtorWithName obCashAccountDebtorWithName = (OBCashAccountDebtorWithName) o;
return Objects.equals(this.schemeName, obCashAccountDebtorWithName.schemeName) &&
Objects.equals(this.identification, obCashAccountDebtorWithName.identification) &&
Objects.equals(this.name, obCashAccountDebtorWithName.name) &&
Objects.equals(this.secondaryIdentification, obCashAccountDebtorWithName.secondaryIdentification);
}

@Override
public int hashCode() {
return Objects.hash(schemeName, identification, name, secondaryIdentification);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBCashAccountDebtorWithName {\n");

sb.append(" schemeName: ").append(toIndentedString(schemeName)).append("\n");
sb.append(" identification: ").append(toIndentedString(identification)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" secondaryIdentification: ").append(toIndentedString(secondaryIdentification)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
public void setSecondaryIdentification(String secondaryIdentification) {
this.secondaryIdentification = secondaryIdentification;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OBCashAccountDebtorWithName obCashAccountDebtorWithName = (OBCashAccountDebtorWithName) o;
return Objects.equals(this.schemeName, obCashAccountDebtorWithName.schemeName) &&
Objects.equals(this.identification, obCashAccountDebtorWithName.identification) &&
Objects.equals(this.name, obCashAccountDebtorWithName.name) &&
Objects.equals(this.secondaryIdentification, obCashAccountDebtorWithName.secondaryIdentification);
}

@Override
public int hashCode() {
return Objects.hash(schemeName, identification, name, secondaryIdentification);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OBCashAccountDebtorWithName {\n");

sb.append(" schemeName: ").append(toIndentedString(schemeName)).append("\n");
sb.append(" identification: ").append(toIndentedString(identification)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" secondaryIdentification: ").append(toIndentedString(secondaryIdentification)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}

Loading