diff --git a/src/main/java/com/alipay/global/api/model/ams/AbaCard.java b/src/main/java/com/alipay/global/api/model/ams/AbaCard.java new file mode 100644 index 0000000..08f8d4b --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/AbaCard.java @@ -0,0 +1,131 @@ +/* + * aba-inquireCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import lombok.*; + +/** AbaCard */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class AbaCard { + + /** 卡资产ID。 Card asset Id. */ + private String assetId; + + /** + * 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。 User-defined card nickname, designed to help users manage multiple + * cards more conveniently. + */ + private String cardNickName; + + /** 脱敏卡号。 Masked card number. */ + private String maskedCardNo; + + /** + * 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 Card Status: Represents the current state of the + * card. Possible values include: ACTIVE: The card is active and can be used normally. FROZEN: The + * card has been frozen and cannot be used temporarily. CANCEL: The card has been canceled and is + * no longer valid. + */ + public enum CardStatusEnum { + ACTIVE("ACTIVE"), + + FROZEN("FROZEN"), + + CANCEL("CANCEL"); + + private String value; + + CardStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CardStatusEnum fromValue(String value) { + for (CardStatusEnum b : CardStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 Card Status: Represents the current state of the + * card. Possible values include: ACTIVE: The card is active and can be used normally. FROZEN: The + * card has been frozen and cannot be used temporarily. CANCEL: The card has been canceled and is + * no longer valid. + */ + private CardStatusEnum cardStatus; + + /** + * 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: + * MASTERCARD: The card is part of the Mastercard network. + */ + public enum CardBrandEnum { + MASTERCARD("MASTERCARD"); + + private String value; + + CardBrandEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CardBrandEnum fromValue(String value) { + for (CardBrandEnum b : CardBrandEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: + * MASTERCARD: The card is part of the Mastercard network. + */ + private CardBrandEnum cardBrand; + + /** Card creation time ISO 8601 */ + private String createdTime; + + /** Card update time ISO 8601 */ + private String updatedTime; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/AuthorizationControl.java b/src/main/java/com/alipay/global/api/model/ams/AuthorizationControl.java new file mode 100644 index 0000000..c619641 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/AuthorizationControl.java @@ -0,0 +1,55 @@ +/* + * aba-updateCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import java.util.List; +import lombok.*; + +/** AuthorizationControl */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class AuthorizationControl { + + /** + * If not present, It will be activated when the card is created. Datetime UTC time: + * 2018-10-31T00:00:00+0800 ISO 8601 + */ + private String cardActiveTime; + + /** Datetime UTC time: 2018-10-31T00:00:00+0800 ISO 8601 */ + private String cardCancelTime; + + /** + * Allowed MCC (Merchant Category Code) list. If not set or left empty, all transactions are + * allowed. + */ + private List allowedMerchantCategoryList; + + /** + * Indicates the number of allowed authorization times. If not set or left empty, all transactions + * are allowed. + */ + private Integer allowedAuthTimes; + + /** + * Allowed transaction currencies (ISO 4217 three-letter codes). If not set, no currency + * restriction applies. + */ + private List allowedCurrencies; + + private CardLimitDetail cardLimitDetail; + + private CardLimitInfo cardLimitInfo; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/CardLimitDetail.java b/src/main/java/com/alipay/global/api/model/ams/CardLimitDetail.java new file mode 100644 index 0000000..07ad75d --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/CardLimitDetail.java @@ -0,0 +1,39 @@ +/* + * aba-updateCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import lombok.*; + +/** CardLimitDetail */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CardLimitDetail { + + private Amount perTransactionLimit; + + private Limit dailyLimit; + + private Limit monthlyLimit; + + private Limit perCardLimit; + + private String dailyLimitMax; + + private String monthlyLimitMax; + + private String perTransactionLimitMax; + + private String perCardLimitMax; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/CardLimitInfo.java b/src/main/java/com/alipay/global/api/model/ams/CardLimitInfo.java new file mode 100644 index 0000000..3104553 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/CardLimitInfo.java @@ -0,0 +1,33 @@ +/* + * aba-updateCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import lombok.*; + +/** CardLimitInfo */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CardLimitInfo { + + private String currency; + + private String dailyLimitMax; + + private String monthlyLimitMax; + + private String perTransactionLimitMax; + + private String perCardLimitMax; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/CardholderInfo.java b/src/main/java/com/alipay/global/api/model/ams/CardholderInfo.java new file mode 100644 index 0000000..b5e5113 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/CardholderInfo.java @@ -0,0 +1,27 @@ +/* + * aba-inquireCardDetail + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import lombok.*; + +/** CardholderInfo */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CardholderInfo { + + private UserName cardHolderName; + + private Address billAddress; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/FundMoveDetail.java b/src/main/java/com/alipay/global/api/model/ams/FundMoveDetail.java index 19cb6bb..9744799 100644 --- a/src/main/java/com/alipay/global/api/model/ams/FundMoveDetail.java +++ b/src/main/java/com/alipay/global/api/model/ams/FundMoveDetail.java @@ -1,6 +1,6 @@ /* - * InquiryStatementListRequest - * InquiryStatementListRequest + * baa-inquiryStatement + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * @@ -24,4 +24,8 @@ public class FundMoveDetail { private String memo; private String referenceTransactionId; + + private String payerAssetId; + + private String beneficiaryAssetId; } diff --git a/src/main/java/com/alipay/global/api/model/ams/Limit.java b/src/main/java/com/alipay/global/api/model/ams/Limit.java new file mode 100644 index 0000000..0388c64 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/Limit.java @@ -0,0 +1,29 @@ +/* + * aba-updateCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import lombok.*; + +/** Limit */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class Limit { + + private Amount remainingLimit; + + private Amount rangeLimit; + + private Amount usedLimit; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/ResultResult.java b/src/main/java/com/alipay/global/api/model/ams/ResultResult.java new file mode 100644 index 0000000..0675a07 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/ResultResult.java @@ -0,0 +1,31 @@ +/* + * baa-inquiryStatement + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.model.ams; + +import lombok.*; + +/** ResultResult */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class ResultResult { + + /** The result code. */ + private String resultCode; + + private ResultStatusType resultStatus; + + /** The result message. */ + private String resultMessage; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/Statement.java b/src/main/java/com/alipay/global/api/model/ams/Statement.java index 368dea5..f36f5a8 100644 --- a/src/main/java/com/alipay/global/api/model/ams/Statement.java +++ b/src/main/java/com/alipay/global/api/model/ams/Statement.java @@ -1,6 +1,6 @@ /* - * InquiryStatementListRequest - * InquiryStatementListRequest + * baa-inquiryStatement + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * @@ -24,4 +24,8 @@ public class Statement { private String statementId; private FundMoveDetail fundMoveDetail; + + private String transactionType; + + private String beneficiaryAssetId; } diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayApplyCardRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayApplyCardRequest.java new file mode 100644 index 0000000..aa64142 --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayApplyCardRequest.java @@ -0,0 +1,49 @@ +/* + * aba-applyCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.AuthorizationControl; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayApplyCardResponse; +import java.util.Map; +import lombok.*; + +/** AlipayApplyCardRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayApplyCardRequest extends AlipayRequest { + + private String requestId; + + private String cardNickName; + + private String note; + + private String cardBinRule; + + private String purpose; + + private Map metadata; + + private AuthorizationControl authorizationControl; + + public AlipayApplyCardRequest() { + this.setPath("/ams/api/v1/aba/cards/applyCard"); + } + + @Override + public Class getResponseClass() { + return AlipayApplyCardResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardDetailRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardDetailRequest.java new file mode 100644 index 0000000..1193213 --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardDetailRequest.java @@ -0,0 +1,36 @@ +/* + * aba-inquireCardDetail + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayInquireCardDetailResponse; +import lombok.*; + +/** AlipayInquireCardDetailRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireCardDetailRequest extends AlipayRequest { + + /** 卡资产ID。 */ + private String assetId; + + public AlipayInquireCardDetailRequest() { + this.setPath("/ams/api/v1/aba/cards/inquireCardDetail"); + } + + @Override + public Class getResponseClass() { + return AlipayInquireCardDetailResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardRequest.java new file mode 100644 index 0000000..66c0663 --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardRequest.java @@ -0,0 +1,96 @@ +/* + * aba-inquireCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayInquireCardResponse; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import lombok.*; + +/** AlipayInquireCardRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireCardRequest extends AlipayRequest { + + /** 页码 (Page number) */ + private Integer pageNumber; + + /** 每页包含的条目数 (Number of entries per page). Max pageSize is 50. */ + private Integer pageSize; + + /** 卡号后四位数字。(The last four digits of the card number.) */ + private String lastFourDigits; + + /** + * 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 (Card Status. Possible values: ACTIVE: The card + * is active and can be used normally. FROZEN: The card is frozen and temporarily unavailable for + * use. CANCEL: The card has been canceled and is no longer valid.) + */ + public enum CardStatusEnum { + ACTIVE("ACTIVE"), + + FROZEN("FROZEN"), + + CANCEL("CANCEL"); + + private String value; + + CardStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CardStatusEnum fromValue(String value) { + for (CardStatusEnum b : CardStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 (Card Status. Possible values: ACTIVE: The card + * is active and can be used normally. FROZEN: The card is frozen and temporarily unavailable for + * use. CANCEL: The card has been canceled and is no longer valid.) + */ + private CardStatusEnum cardStatus; + + /** + * 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。(User-defined card nickname, designed to help users manage multiple + * cards more conveniently.) + */ + private String cardNickName; + + public AlipayInquireCardRequest() { + this.setPath("/ams/api/v1/aba/cards/inquireCard"); + } + + @Override + public Class getResponseClass() { + return AlipayInquireCardResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardSensitiveInfoRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardSensitiveInfoRequest.java new file mode 100644 index 0000000..eadbbd2 --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquireCardSensitiveInfoRequest.java @@ -0,0 +1,37 @@ +/* + * aba-inquireCardSensitiveInfo + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayInquireCardSensitiveInfoResponse; +import lombok.*; + +/** AlipayInquireCardSensitiveInfoRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireCardSensitiveInfoRequest + extends AlipayRequest { + + /** 卡资产ID。 */ + private String assetId; + + public AlipayInquireCardSensitiveInfoRequest() { + this.setPath("/ams/api/v1/aba/cards/inquireCardSensitiveInfo"); + } + + @Override + public Class getResponseClass() { + return AlipayInquireCardSensitiveInfoResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquiryStatementDetailRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquiryStatementDetailRequest.java new file mode 100644 index 0000000..224a575 --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquiryStatementDetailRequest.java @@ -0,0 +1,36 @@ +/* + * aba-inquiryStatementDetail + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayInquiryStatementDetailResponse; +import lombok.*; + +/** AlipayInquiryStatementDetailRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquiryStatementDetailRequest + extends AlipayRequest { + + private String statementId; + + public AlipayInquiryStatementDetailRequest() { + this.setPath("/ams/api/v1/aba/accounts/inquiryStatementDetail"); + } + + @Override + public Class getResponseClass() { + return AlipayInquiryStatementDetailResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquiryStatementRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquiryStatementRequest.java new file mode 100644 index 0000000..3f44786 --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayInquiryStatementRequest.java @@ -0,0 +1,134 @@ +/* + * baa-inquiryStatement + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayInquiryStatementResponse; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.List; +import lombok.*; + +/** AlipayInquiryStatementRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquiryStatementRequest extends AlipayRequest { + + /** antom ABA merchant id */ + private String customerId; + + /** access token for the relevant antom ABA merchant */ + private String accessToken; + + /** + * start time of statement query. The value follows the ISO 8601 standard format. The time + * interval between startTime and endTime cannot be more than 3 months (equivalent to 100 days). + */ + private Object startTime; + + /** + * end time of statement query. The value follows the ISO 8601 standard format. The time interval + * between startTime and endTime cannot be more than 3 months (equivalent to 100 days). + */ + private String endTime; + + /** + * If no value passed, the API shall return all transactions. Antom only supports [0-1] single + * type for the current time. + */ + public enum TransactionTypeListEnum { + PAYMENT("PAYMENT"), + + PAYMENT_REFUND("PAYMENT_REFUND"), + + TOPUP("TOPUP"), + + SETTLEMENT("SETTLEMENT"), + + WITHDRAW("WITHDRAW"), + + WITHDRAW_RETURN("WITHDRAW_RETURN"), + + TRANSFER("TRANSFER"), + + TRANSFER_RETURN("TRANSFER_RETURN"), + + TRANSFER_TO_CHINA("TRANSFER_TO_CHINA"), + + TRANSFER_RECIPIENT("TRANSFER_RECIPIENT"), + + EXCHANGE("EXCHANGE"), + + CREDIT_LOAN("CREDIT_LOAN"), + + CREDIT_REPAY("CREDIT_REPAY"), + + CARD_PAYMENT("CARD_PAYMENT"), + + CARD_REFUND("CARD_REFUND"); + + private String value; + + TransactionTypeListEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TransactionTypeListEnum fromValue(String value) { + for (TransactionTypeListEnum b : TransactionTypeListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * If no value passed, the API shall return all transactions. Antom only supports [0-1] single + * type for the current time. + */ + private List transactionTypeList; + + /** + * If no value passed, the API shall return the defined transaction type with all currencies. The + * value shall follow the ISO currency standard (e.g., USD, EUR). + */ + private List currencyList; + + /** Indicates the number of items on each page. */ + private Integer pageSize; + + /** Indicates the current page index that contains statement information. */ + private Integer pageNumber; + + public AlipayInquiryStatementRequest() { + this.setPath("/ams/api/v1/aba/accounts/inquiryStatement"); + } + + @Override + public Class getResponseClass() { + return AlipayInquiryStatementResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayUpdateCardRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayUpdateCardRequest.java new file mode 100644 index 0000000..32cdefa --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayUpdateCardRequest.java @@ -0,0 +1,61 @@ +/* + * aba-updateCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.AuthorizationControl; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayUpdateCardResponse; +import java.util.Map; +import lombok.*; + +/** AlipayUpdateCardRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayUpdateCardRequest extends AlipayRequest { + + /** 卡资产ID。 Card asset Id */ + private String assetId; + + /** + * 针对本次申卡请求,由集成商指定的唯一请求号 The unique request number specified by the integrator for this card + * application request. + */ + private String requestId; + + /** The nickname of the Card. This parameter is useful for managing multiple cards. */ + private String cardNickName; + + /** Note information of card application */ + private String note; + + /** Purpose of the card. */ + private String purpose; + + /** + * Customer metadata in key-value format. - Key max length: 32 - Value max length: 128 - Max + * number of keys: 30 - Total JSON string max length: 3096 (application-layer validation required) + */ + private Map metadata; + + private AuthorizationControl authorizationControl; + + public AlipayUpdateCardRequest() { + this.setPath("/ams/api/v1/aba/cards/updateCard"); + } + + @Override + public Class getResponseClass() { + return AlipayUpdateCardResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/aba/AlipayUpdateCardStatusRequest.java b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayUpdateCardStatusRequest.java new file mode 100644 index 0000000..88f75ee --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/aba/AlipayUpdateCardStatusRequest.java @@ -0,0 +1,94 @@ +/* + * aba-updateCardStatus + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.request.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.aba.AlipayUpdateCardStatusResponse; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import lombok.*; + +/** AlipayUpdateCardStatusRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayUpdateCardStatusRequest extends AlipayRequest { + + /** 卡资产ID。 Card asset Id */ + private String assetId; + + /** + * 针对本次申卡请求,由集成商指定的唯一请求号 The unique request number specified by the integrator for this card + * application request. + */ + private String requestId; + + /** + * 操作类型。可取值范围: FREEZE:冻结卡 UNFREEZE:解冻卡 CANCEL:删除卡 Enumeration of Operation Type. Possible values: + * FREEZE: Freeze the card UNFREEZE: Unfreeze the card CANCEL: Delete the card + */ + public enum OperateTypeEnum { + FREEZE("FREEZE"), + + UNFREEZE("UNFREEZE"), + + CANCEL("CANCEL"); + + private String value; + + OperateTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OperateTypeEnum fromValue(String value) { + for (OperateTypeEnum b : OperateTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * 操作类型。可取值范围: FREEZE:冻结卡 UNFREEZE:解冻卡 CANCEL:删除卡 Enumeration of Operation Type. Possible values: + * FREEZE: Freeze the card UNFREEZE: Unfreeze the card CANCEL: Delete the card + */ + private OperateTypeEnum operateType; + + /** + * Notification priority -> request.notifyUrl. If not provided, the notify URL configured by + * the user in the portal will be used. + */ + private String notifyUrl; + + public AlipayUpdateCardStatusRequest() { + this.setPath("/ams/api/v1/aba/cards/updateCardStatus"); + } + + @Override + public Class getResponseClass() { + return AlipayUpdateCardStatusResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayPayResultNotify.java b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayPayResultNotify.java index 895d1ed..79103c6 100644 --- a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayPayResultNotify.java +++ b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayPayResultNotify.java @@ -60,6 +60,6 @@ public class AlipayPayResultNotify extends AlipayNotify { private Quote paymentQuote; private Amount processingAmount; - /** 用于商户自定义元数据信息,支持JSON格式 */ - private String metadata; + /** 用于商户自定义元数据信息,支持JSON格式 */ + private String metadata; } diff --git a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayRefundNotify.java b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayRefundNotify.java index 2e3f228..130f1a5 100644 --- a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayRefundNotify.java +++ b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayRefundNotify.java @@ -43,6 +43,6 @@ public class AlipayRefundNotify extends AlipayNotify { private Amount actualRefundAmount; - /** 用于商户自定义元数据信息,支持JSON格式 */ - private String metadata; + /** 用于商户自定义元数据信息,支持JSON格式 */ + private String metadata; } diff --git a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayVaultingNotify.java b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayVaultingNotify.java index 807be6b..ca18f44 100644 --- a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayVaultingNotify.java +++ b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayVaultingNotify.java @@ -22,6 +22,6 @@ public class AlipayVaultingNotify extends AlipayNotify { private CustomizedInfo customizedInfo; - /** 用于商户自定义元数据信息,支持JSON格式 */ - private String metadata; + /** 用于商户自定义元数据信息,支持JSON格式 */ + private String metadata; } diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayApplyCardResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayApplyCardResponse.java new file mode 100644 index 0000000..bd33486 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayApplyCardResponse.java @@ -0,0 +1,37 @@ +/* + * aba-applyCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayApplyCardResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayApplyCardResponse extends AlipayResponse { + + private String requestId; + + private String status; + + private String assetId; + + private String cvv; + + private String cardNo; + + private String expiredMonth; + + private String expiredYear; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardDetailResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardDetailResponse.java new file mode 100644 index 0000000..c358fe5 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardDetailResponse.java @@ -0,0 +1,150 @@ +/* + * aba-inquireCardDetail + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.AuthorizationControl; +import com.alipay.global.api.model.ams.CardholderInfo; +import com.alipay.global.api.response.AlipayResponse; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.Map; +import lombok.*; + +/** AlipayInquireCardDetailResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireCardDetailResponse extends AlipayResponse { + + /** 卡资产ID。 Card asset Id. */ + private String assetId; + + /** + * 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。 User-defined card nickname, designed to help users manage multiple + * cards more conveniently. + */ + private String cardNickName; + + /** + * 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 Card Status: Represents the current state of the + * card. Possible values include: ACTIVE: The card is active and can be used normally. FROZEN: The + * card has been frozen and cannot be used temporarily. CANCEL: The card has been canceled and is + * no longer valid. + */ + public enum CardStatusEnum { + ACTIVE("ACTIVE"), + + FROZEN("FROZEN"), + + CANCEL("CANCEL"); + + private String value; + + CardStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CardStatusEnum fromValue(String value) { + for (CardStatusEnum b : CardStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 Card Status: Represents the current state of the + * card. Possible values include: ACTIVE: The card is active and can be used normally. FROZEN: The + * card has been frozen and cannot be used temporarily. CANCEL: The card has been canceled and is + * no longer valid. + */ + private CardStatusEnum cardStatus; + + /** 脱敏卡号。 Masked card number. */ + private String maskedCardNo; + + /** + * 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: + * MASTERCARD: The card is part of the Mastercard network. + */ + public enum CardBrandEnum { + MASTERCARD("MASTERCARD"); + + private String value; + + CardBrandEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CardBrandEnum fromValue(String value) { + for (CardBrandEnum b : CardBrandEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: + * MASTERCARD: The card is part of the Mastercard network. + */ + private CardBrandEnum cardBrand; + + /** Datetime UTC time: 2018-10-31T00:00:00+0800. ISO 8601 */ + private String createdTime; + + /** Datetime UTC time: 2018-10-31T00:00:00+0800. ISO 8601 */ + private String updatedTime; + + /** Purpose of the card */ + private String purpose; + + /** Note information of card application */ + private String note; + + /** + * Customer metadata in key-value format. - Key max length: 32 - Value max length: 128 - Max + * number of keys: 30 - Total JSON string max length: 3096 + */ + private Map metadata; + + private AuthorizationControl authorizationControl; + + private CardholderInfo cardholderinfo; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardResponse.java new file mode 100644 index 0000000..7c6fbb6 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardResponse.java @@ -0,0 +1,43 @@ +/* + * aba-inquireCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.AbaCard; +import com.alipay.global.api.response.AlipayResponse; +import java.util.List; +import lombok.*; + +/** AlipayInquireCardResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireCardResponse extends AlipayResponse { + + /** Total card elements. */ + private Integer totalCount; + + /** Total number of pages. */ + private Integer totalPageNumber; + + /** + * 当前页码。 此字段只有当 result.resultStatus = S 时才会按需返回。 Current page number This field will only be + * returned as needed when `result.resultStatus = S`. + */ + private Integer currentPageNumber; + + /** + * 卡列表 此字段只有当 result.resultStatus = S 时才会按需返回。 Card list This field will only be returned as + * needed when `result.resultStatus = S`. + */ + private List cardList; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardSensitiveInfoResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardSensitiveInfoResponse.java new file mode 100644 index 0000000..e0c8704 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquireCardSensitiveInfoResponse.java @@ -0,0 +1,55 @@ +/* + * aba-inquireCardSensitiveInfo + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayInquireCardSensitiveInfoResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireCardSensitiveInfoResponse extends AlipayResponse { + + /** + * 卡资产ID。 此字段只有当 result.resultStatus = S 时才会按需返回。 Card Asset ID. This field will only be + * returned on demand when result.resultStatus = S. + */ + private String assetId; + + /** + * 加密cvv号。 此字段只有当 result.resultStatus = S 时才会按需返回。 CVV number. This field will only be + * returned on demand when result.resultStatus = S. + */ + private String cvv; + + /** + * 加密卡号。 此字段只有当 result.resultStatus = S 时才会按需返回。 card number. This field will only be + * returned on demand when result.resultStatus = S. + */ + private String cardNo; + + /** + * 卡片过期月份,格式为“MM“,如:”07“。 此字段只有当 result.resultStatus = S 时才会按需返回。 Card expiration month, + * formatted as \"MM,\" e.g., \"07.\" This field will only be returned on + * demand when result.resultStatus = S. + */ + private String expiredMonth; + + /** + * 卡片过期年份,格式为“YY“,取年份后两位数字,如:”29“。 此字段只有当 result.resultStatus = S 时才会按需返回。 Card expiration + * year, formatted as \"YY,\" using the last two digits of the year, e.g., + * \"29.\" This field will only be returned on demand when result.resultStatus = S. + */ + private String expiredYear; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquiryStatementDetailResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquiryStatementDetailResponse.java new file mode 100644 index 0000000..e3d1305 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquiryStatementDetailResponse.java @@ -0,0 +1,33 @@ +/* + * aba-inquiryStatementDetail + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.Statement; +import com.alipay.global.api.response.AlipayResponse; +import java.util.Map; +import lombok.*; + +/** AlipayInquiryStatementDetailResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquiryStatementDetailResponse extends AlipayResponse { + + private Statement statement; + + /** + * Customer metadata in key-value format. - Key max length: 32 - Value max length: 128 - Max + * number of keys: 30 - Total JSON string max length: 3096 + */ + private Map metadata; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquiryStatementResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquiryStatementResponse.java new file mode 100644 index 0000000..7a5e955 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayInquiryStatementResponse.java @@ -0,0 +1,33 @@ +/* + * baa-inquiryStatement + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.Statement; +import com.alipay.global.api.response.AlipayResponse; +import java.util.List; +import lombok.*; + +/** AlipayInquiryStatementResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquiryStatementResponse extends AlipayResponse { + + private List statementList; + + private Integer totalCount; + + private Integer totalPageNumber; + + private Integer currentPageNumber; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayUpdateCardResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayUpdateCardResponse.java new file mode 100644 index 0000000..bee1501 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayUpdateCardResponse.java @@ -0,0 +1,27 @@ +/* + * aba-updateCard + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayUpdateCardResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayUpdateCardResponse extends AlipayResponse { + + private String status; + + private String requestId; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/aba/AlipayUpdateCardStatusResponse.java b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayUpdateCardStatusResponse.java new file mode 100644 index 0000000..ed4f387 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/aba/AlipayUpdateCardStatusResponse.java @@ -0,0 +1,27 @@ +/* + * aba-updateCardStatus + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.alipay.global.api.response.ams.aba; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayUpdateCardStatusResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayUpdateCardStatusResponse extends AlipayResponse { + + private String status; + + private String requestId; +}