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 index c619641..5681211 100644 --- a/src/main/java/com/alipay/global/api/model/ams/AuthorizationControl.java +++ b/src/main/java/com/alipay/global/api/model/ams/AuthorizationControl.java @@ -52,4 +52,6 @@ public class AuthorizationControl { private CardLimitDetail cardLimitDetail; private CardLimitInfo cardLimitInfo; + + private RefundPreference refundPreference; } diff --git a/src/main/java/com/alipay/global/api/model/ams/CardPaymentMethodDetail.java b/src/main/java/com/alipay/global/api/model/ams/CardPaymentMethodDetail.java index fbcb6eb..89e6529 100644 --- a/src/main/java/com/alipay/global/api/model/ams/CardPaymentMethodDetail.java +++ b/src/main/java/com/alipay/global/api/model/ams/CardPaymentMethodDetail.java @@ -12,6 +12,8 @@ package com.alipay.global.api.model.ams; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.List; import lombok.*; @@ -77,7 +79,57 @@ public class CardPaymentMethodDetail { private String authenticationFlow; - private String funding; + /** + * The funding type of the card. Valid values are: CREDIT: indicates a credit card. DEBIT: + * indicates a debit card. PREPAID: indicates a prepaid card. CHARGE: indicates a charge card. + * DEFERRED_DEBIT: indicates a deferred debit card. This parameter is returned when the value of + * paymentMethodType is CARD and the information is available from the channel. + */ + public enum FundingEnum { + CREDIT("CREDIT"), + + DEBIT("DEBIT"), + + PREPAID("PREPAID"), + + CHARGE("CHARGE"), + + DEFERRED_DEBIT("DEFERRED_DEBIT"); + + private String value; + + FundingEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FundingEnum fromValue(String value) { + for (FundingEnum b : FundingEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * The funding type of the card. Valid values are: CREDIT: indicates a credit card. DEBIT: + * indicates a debit card. PREPAID: indicates a prepaid card. CHARGE: indicates a charge card. + * DEFERRED_DEBIT: indicates a deferred debit card. This parameter is returned when the value of + * paymentMethodType is CARD and the information is available from the channel. + */ + private FundingEnum funding; private String avsResultRaw; @@ -85,8 +137,17 @@ public class CardPaymentMethodDetail { private String bin; + /** + * The issuer name of the card. This parameter is returned when the value of paymentMethodType is + * CARD and the information is available from the channel. + */ private String issuerName; + /** + * The issuing country of the card. The value of this parameter is a 2-letter country code that + * follows ISO 3166 Country Codes standard. This parameter is returned when the value of + * paymentMethodType is CARD and the information is available from the channel. + */ private String issuingCountry; private String lastFour; diff --git a/src/main/java/com/alipay/global/api/model/ams/CreditPayPlan.java b/src/main/java/com/alipay/global/api/model/ams/CreditPayPlan.java index 7c2ce1b..5ce5ccb 100644 --- a/src/main/java/com/alipay/global/api/model/ams/CreditPayPlan.java +++ b/src/main/java/com/alipay/global/api/model/ams/CreditPayPlan.java @@ -12,6 +12,7 @@ package com.alipay.global.api.model.ams; +import java.util.List; import lombok.*; /** CreditPayPlan */ @@ -22,7 +23,7 @@ public class CreditPayPlan { /** - * The number of installments. The valid value is from 2 to 12. More information: Maximum length: + * The number of installments. The valid value is from 2 to 36. More information: Maximum length: * 8 characters */ private Integer installmentNum; @@ -37,4 +38,13 @@ public class CreditPayPlan { * when the value of creditPayFeeType is PERCENTAGE. More information: Value range: 0 - 100 */ private Integer feePercentage; + + /** + * Select Installment Payment Plan Period that the merchant wants to offer. Example: Available + * periods are 3,6,12,24 months, but if the merchant wants to restrict to 3 & 6 months only, + * enter the value as [3,6] Note: This field is mutually exclusive with installmentNum. When both + * fields are provided, installmentNum takes priority. More information: Maximum length: 100 + * elements Value range: 2 - 36 + */ + private List filteredInstallmentPeriods; } diff --git a/src/main/java/com/alipay/global/api/model/ams/RefundFromMethod.java b/src/main/java/com/alipay/global/api/model/ams/RefundFromMethod.java index 6066428..91a1b45 100644 --- a/src/main/java/com/alipay/global/api/model/ams/RefundFromMethod.java +++ b/src/main/java/com/alipay/global/api/model/ams/RefundFromMethod.java @@ -1,3 +1,15 @@ +/* + * aba/funds/inquireDirectRefund + * 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.*; @@ -9,12 +21,15 @@ @AllArgsConstructor public class RefundFromMethod { - /** The grant token for refund */ + /** + * Represents the authentication token received from the supplier, used to authorize and securely + * perform fund deduction operations. + */ private String grantToken; - /** The refund from method type, e.g., ANTOM_BIZ_ACCOUNT_DEPOSIT */ + /** Represents the payment method type used by merchant during payment */ private String refundFromMethodType; - /** The customer ID */ + /** The payee/supplier represented by ABA customer ID to get the refund from */ private String customerId; } diff --git a/src/main/java/com/alipay/global/api/model/ams/RefundPreference.java b/src/main/java/com/alipay/global/api/model/ams/RefundPreference.java new file mode 100644 index 0000000..be1dde4 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/RefundPreference.java @@ -0,0 +1,74 @@ +/* + * 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 com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import lombok.*; + +/** + * Preference on the type of preference and currency to be refunded. Uses the value specified by the + * merchant; if not specified (null), the default will be NO_PREFERENCE. + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class RefundPreference { + + /** + * The type of refund preference. NO_PREFERENCE: No preferred currency to receive the refund + * amount. This currency will be the transaction outflow currency. ORIGINAL_CURRENCY: refund + * amount will be converted and added to the original balance, which was deducted during the + * payment. + */ + public enum PreferenceTypeEnum { + NO_PREFERENCE("NO_PREFERENCE"), + + ORIGINAL_CURRENCY("ORIGINAL_CURRENCY"); + + private String value; + + PreferenceTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PreferenceTypeEnum fromValue(String value) { + for (PreferenceTypeEnum b : PreferenceTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + /** + * The type of refund preference. NO_PREFERENCE: No preferred currency to receive the refund + * amount. This currency will be the transaction outflow currency. ORIGINAL_CURRENCY: refund + * amount will be converted and added to the original balance, which was deducted during the + * payment. + */ + private PreferenceTypeEnum preferenceType; +} 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 index 3f44786..2540a2a 100644 --- 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 @@ -123,6 +123,11 @@ public static TransactionTypeListEnum fromValue(String value) { /** Indicates the current page index that contains statement information. */ private Integer pageNumber; + /** + * The card's assetId that merchants want to query. Only available if they want to filter by. + */ + private String assetId; + public AlipayInquiryStatementRequest() { this.setPath("/ams/api/v1/aba/accounts/inquiryStatement"); } diff --git a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayABATransferNotify.java b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayABATransferNotify.java index f7615dd..8a34ffc 100644 --- a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayABATransferNotify.java +++ b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayABATransferNotify.java @@ -11,15 +11,12 @@ public class AlipayABATransferNotify extends AlipayNotify { /** - * The unique ID assigned by the merchant to identify a transfer request. - * Maximum length: 64 characters + * The unique ID assigned by the merchant to identify a transfer request. Maximum length: 64 + * characters */ private String transferRequestId; - /** - * The unique ID assigned by Antom to identify a transfer. - * Maximum length: 64 characters - */ + /** The unique ID assigned by Antom to identify a transfer. Maximum length: 64 characters */ private String transferId; /** The result of the transfer request. */ @@ -33,4 +30,4 @@ public class AlipayABATransferNotify extends AlipayNotify { /** The transfer to detail information. */ private TransferToDetail transferToDetail; -} \ No newline at end of file +} diff --git a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayCardBillNotify.java b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayCardBillNotify.java index 988c723..86beac8 100644 --- a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayCardBillNotify.java +++ b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayCardBillNotify.java @@ -12,9 +12,9 @@ @NoArgsConstructor public class AlipayCardBillNotify { /** - * The unique identifier for a single card authorization within an order. - * Each card authorization creates exactly one bill. Multiple bills can belong to the same order. - * Maximum length: 32 characters + * The unique identifier for a single card authorization within an order. Each card authorization + * creates exactly one bill. Multiple bills can belong to the same order. Maximum length: 32 + * characters */ private String billNo; diff --git a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayDirectRefundNotify.java b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayDirectRefundNotify.java index 4a07c34..4c32b88 100644 --- a/src/main/java/com/alipay/global/api/request/ams/notify/AlipayDirectRefundNotify.java +++ b/src/main/java/com/alipay/global/api/request/ams/notify/AlipayDirectRefundNotify.java @@ -9,7 +9,10 @@ @EqualsAndHashCode(callSuper = true) public class AlipayDirectRefundNotify extends AlipayNotify { - /** The refund status: SUCCESS/PROCESSING/REFUND_AMOUNT_EXCEED/MERCHANT_BALANCE_NOT_ENOUGH/PROCESS_FAIL/PARAM_ILLEGAL/REFUND_WINDOW_EXCEED/ACCESS_DENIED/INVALID_ACCESS_TOKEN */ + /** + * The refund status: + * SUCCESS/PROCESSING/REFUND_AMOUNT_EXCEED/MERCHANT_BALANCE_NOT_ENOUGH/PROCESS_FAIL/PARAM_ILLEGAL/REFUND_WINDOW_EXCEED/ACCESS_DENIED/INVALID_ACCESS_TOKEN + */ private String refundStatus; /** The unique ID assigned by Alipay to identify a refund */