http://jira.mfd.msk:8088/browse/CLS-672 meta BankAccount POST/PUT
This commit is contained in:
parent
ae36188f31
commit
31a828038a
7 changed files with 72 additions and 2 deletions
|
|
@ -47,6 +47,9 @@ public class BankAccountNewAction implements IAction<BankAccountNewRequest> {
|
||||||
@ApiModelProperty(value = "Компания", example = "1234")
|
@ApiModelProperty(value = "Компания", example = "1234")
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private Long companyId;
|
private Long companyId;
|
||||||
|
@ApiModelProperty(value = "SWIFT", example = "ABCDE")
|
||||||
|
@JsonProperty
|
||||||
|
private String swiftCode;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BankAccountNewRequest toRequest() {
|
public BankAccountNewRequest toRequest() {
|
||||||
|
|
@ -61,6 +64,7 @@ public class BankAccountNewAction implements IAction<BankAccountNewRequest> {
|
||||||
req.setTaxRegistrationReasonCode(this.taxRegistrationReasonCode);
|
req.setTaxRegistrationReasonCode(this.taxRegistrationReasonCode);
|
||||||
req.setAccount(this.account);
|
req.setAccount(this.account);
|
||||||
req.setCompanyId(this.companyId);
|
req.setCompanyId(this.companyId);
|
||||||
|
req.setSwiftCode(swiftCode);
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -149,4 +153,12 @@ public class BankAccountNewAction implements IAction<BankAccountNewRequest> {
|
||||||
public void setCompanyId(Long companyId) {
|
public void setCompanyId(Long companyId) {
|
||||||
this.companyId = companyId;
|
this.companyId = companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSwiftCode() {
|
||||||
|
return swiftCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSwiftCode(String swiftCode) {
|
||||||
|
this.swiftCode = swiftCode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,9 @@ public class BankAccountUpdateAction implements IAction<BankAccountUpdateRequest
|
||||||
@ApiModelProperty(value = "Код причины постановки (КПП)", example = "01")
|
@ApiModelProperty(value = "Код причины постановки (КПП)", example = "01")
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
private String taxRegistrationReasonCode;
|
private String taxRegistrationReasonCode;
|
||||||
|
@ApiModelProperty(value = "SWIFT", example = "ABCDE")
|
||||||
|
@JsonProperty
|
||||||
|
private String swiftCode;
|
||||||
|
|
||||||
@ApiModelProperty(value = "Номер счета", example = "11111222223333344444")
|
@ApiModelProperty(value = "Номер счета", example = "11111222223333344444")
|
||||||
private String account;
|
private String account;
|
||||||
|
|
@ -55,6 +58,7 @@ public class BankAccountUpdateAction implements IAction<BankAccountUpdateRequest
|
||||||
req.setTaxpayerIdentificationNumber(this.taxpayerIdentificationNumber);
|
req.setTaxpayerIdentificationNumber(this.taxpayerIdentificationNumber);
|
||||||
req.setTaxRegistrationReasonCode(this.taxRegistrationReasonCode);
|
req.setTaxRegistrationReasonCode(this.taxRegistrationReasonCode);
|
||||||
req.setAccount(this.account);
|
req.setAccount(this.account);
|
||||||
|
req.setSwiftCode(swiftCode);
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -143,4 +147,12 @@ public class BankAccountUpdateAction implements IAction<BankAccountUpdateRequest
|
||||||
public void setAccount(String account) {
|
public void setAccount(String account) {
|
||||||
this.account = account;
|
this.account = account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSwiftCode() {
|
||||||
|
return swiftCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSwiftCode(String swiftCode) {
|
||||||
|
this.swiftCode = swiftCode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"version": "3.11.0.86",
|
"version": "3.11.0.87",
|
||||||
|
|
||||||
"enums": {
|
"enums": {
|
||||||
|
|
||||||
|
|
@ -5018,6 +5018,10 @@
|
||||||
{"code": "companyId",
|
{"code": "companyId",
|
||||||
"type": 1,"name": "Компания","shortname": "Компания","link": "company","linkCode": "shortName","visible": false
|
"type": 1,"name": "Компания","shortname": "Компания","link": "company","linkCode": "shortName","visible": false
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{"code": "swiftCode",
|
||||||
|
"type": 2,"length": 255,"shortname": "SWIFT"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
@ -5069,6 +5073,10 @@
|
||||||
{"code": "destination",
|
{"code": "destination",
|
||||||
"type": 2,"length": 255,"name": "Назначение платежа","shortname": "Назначение платежа","visible": false
|
"type": 2,"length": 255,"name": "Назначение платежа","shortname": "Назначение платежа","visible": false
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{"code": "swiftCode",
|
||||||
|
"type": 2,"length": 255,"shortname": "SWIFT"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
@ -5865,6 +5873,10 @@
|
||||||
{"code": "debitLeg_accountId",
|
{"code": "debitLeg_accountId",
|
||||||
"type": 1,"group": "Получатель","name": "Наименование счета получателя","shortname": "Счет получателя","link": "bankAccount","linkCode": "correspondentAccount"
|
"type": 1,"group": "Получатель","name": "Наименование счета получателя","shortname": "Счет получателя","link": "bankAccount","linkCode": "correspondentAccount"
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{"code": "swiftCode",
|
||||||
|
"type": 2,"length": 255,"group": "Получатель","shortname": "SWIFT","enabled": false
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
|
||||||
|
|
@ -1166,6 +1166,7 @@
|
||||||
<account type="2" length="50" name="Номер счета" shortname="Счет" required="true"/>
|
<account type="2" length="50" name="Номер счета" shortname="Счет" required="true"/>
|
||||||
<destination type="2" length="255" name="Назначение платежа" shortname="Назначение платежа" visible="false"/>
|
<destination type="2" length="255" name="Назначение платежа" shortname="Назначение платежа" visible="false"/>
|
||||||
<companyId type="1" name="Компания" shortname="Компания" link="company" linkCode="shortName" visible="false"/>
|
<companyId type="1" name="Компания" shortname="Компания" link="company" linkCode="shortName" visible="false"/>
|
||||||
|
<swiftCode type="2" length="255" shortname="SWIFT"/>
|
||||||
</post>
|
</post>
|
||||||
<put name="Изменение счета вывода средств из ПРЦ" confirmation="currency,bankIdentificationCode,bankName,correspondentAccount,correspondentAccountName,taxpayerIdentificationNumber,taxRegistrationReasonCode,account" class="ru.spcex.clearing.backendapi.controller.request.cud.account.BankAccountUpdateAction">
|
<put name="Изменение счета вывода средств из ПРЦ" confirmation="currency,bankIdentificationCode,bankName,correspondentAccount,correspondentAccountName,taxpayerIdentificationNumber,taxRegistrationReasonCode,account" class="ru.spcex.clearing.backendapi.controller.request.cud.account.BankAccountUpdateAction">
|
||||||
<id type="1" name="Идентификатор записи" shortname="ID" link="bankAccount" linkCode="id" required="true"/>
|
<id type="1" name="Идентификатор записи" shortname="ID" link="bankAccount" linkCode="id" required="true"/>
|
||||||
|
|
@ -1178,6 +1179,7 @@
|
||||||
<taxRegistrationReasonCode type="2" length="255" name="Код причины постановки (КПП)" shortname="КПП"/>
|
<taxRegistrationReasonCode type="2" length="255" name="Код причины постановки (КПП)" shortname="КПП"/>
|
||||||
<account type="2" length="50" name="Номер счета" shortname="Счет"/>
|
<account type="2" length="50" name="Номер счета" shortname="Счет"/>
|
||||||
<destination type="2" length="255" name="Назначение платежа" shortname="Назначение платежа" visible="false"/>
|
<destination type="2" length="255" name="Назначение платежа" shortname="Назначение платежа" visible="false"/>
|
||||||
|
<swiftCode type="2" length="255" shortname="SWIFT"/>
|
||||||
</put>
|
</put>
|
||||||
<delete name="Блокировка счета вывода средств из ПРЦ" confirmation="currency,bankIdentificationCode,correspondentAccount,taxpayerIdentificationNumber,taxRegistrationReasonCode,account" class="ru.spcex.clearing.backendapi.controller.request.cud.common.CommonDeleteAction">
|
<delete name="Блокировка счета вывода средств из ПРЦ" confirmation="currency,bankIdentificationCode,correspondentAccount,taxpayerIdentificationNumber,taxRegistrationReasonCode,account" class="ru.spcex.clearing.backendapi.controller.request.cud.common.CommonDeleteAction">
|
||||||
<id type="1" name="Идентификатор записи" shortname="ID" link="bankAccount" linkCode="id" required="true"/>
|
<id type="1" name="Идентификатор записи" shortname="ID" link="bankAccount" linkCode="id" required="true"/>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
"version": "3.11.0.86",
|
"version": "3.11.0.87",
|
||||||
|
|
||||||
"enums": {
|
"enums": {
|
||||||
|
|
||||||
|
|
@ -5018,6 +5018,10 @@
|
||||||
{"code": "companyId",
|
{"code": "companyId",
|
||||||
"type": 1,"name": "Компания","shortname": "Компания","link": "company","linkCode": "shortName","visible": false
|
"type": 1,"name": "Компания","shortname": "Компания","link": "company","linkCode": "shortName","visible": false
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{"code": "swiftCode",
|
||||||
|
"type": 2,"length": 255,"shortname": "SWIFT"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
@ -5069,6 +5073,10 @@
|
||||||
{"code": "destination",
|
{"code": "destination",
|
||||||
"type": 2,"length": 255,"name": "Назначение платежа","shortname": "Назначение платежа","visible": false
|
"type": 2,"length": 255,"name": "Назначение платежа","shortname": "Назначение платежа","visible": false
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{"code": "swiftCode",
|
||||||
|
"type": 2,"length": 255,"shortname": "SWIFT"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
@ -5865,6 +5873,10 @@
|
||||||
{"code": "debitLeg_accountId",
|
{"code": "debitLeg_accountId",
|
||||||
"type": 1,"group": "Получатель","name": "Наименование счета получателя","shortname": "Счет получателя","link": "bankAccount","linkCode": "correspondentAccount"
|
"type": 1,"group": "Получатель","name": "Наименование счета получателя","shortname": "Счет получателя","link": "bankAccount","linkCode": "correspondentAccount"
|
||||||
}
|
}
|
||||||
|
,
|
||||||
|
{"code": "swiftCode",
|
||||||
|
"type": 2,"length": 255,"group": "Получатель","shortname": "SWIFT","enabled": false
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
,
|
,
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@ public class BankAccountNewRequest {
|
||||||
public String status;
|
public String status;
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public Long companyId;
|
public Long companyId;
|
||||||
|
@JsonProperty
|
||||||
|
public String swiftCode;
|
||||||
|
|
||||||
public String getBankIdentificationCode() {
|
public String getBankIdentificationCode() {
|
||||||
return bankIdentificationCode;
|
return bankIdentificationCode;
|
||||||
|
|
@ -113,4 +115,12 @@ public class BankAccountNewRequest {
|
||||||
public void setCompanyId(Long companyId) {
|
public void setCompanyId(Long companyId) {
|
||||||
this.companyId = companyId;
|
this.companyId = companyId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSwiftCode() {
|
||||||
|
return swiftCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSwiftCode(String swiftCode) {
|
||||||
|
this.swiftCode = swiftCode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ public class BankAccountUpdateRequest {
|
||||||
public String taxRegistrationReasonCode;//Код причины постановки (КПП)
|
public String taxRegistrationReasonCode;//Код причины постановки (КПП)
|
||||||
@JsonProperty
|
@JsonProperty
|
||||||
public String account;//Номер счета
|
public String account;//Номер счета
|
||||||
|
@JsonProperty
|
||||||
|
public String swiftCode;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
|
|
@ -103,4 +105,12 @@ public class BankAccountUpdateRequest {
|
||||||
public void setAccount(String account) {
|
public void setAccount(String account) {
|
||||||
this.account = account;
|
this.account = account;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getSwiftCode() {
|
||||||
|
return swiftCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSwiftCode(String swiftCode) {
|
||||||
|
this.swiftCode = swiftCode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue