From 938bb78687309f7cc10565e161d9c7289c8185af Mon Sep 17 00:00:00 2001 From: Wang Zunjiao Date: Mon, 24 Aug 2026 05:53:30 +0000 Subject: [PATCH] false[antom-sdk-automation] automated change --- .../alipay/global/api/Http2JsonTransport.java | 8 +- .../api/model/ams/AuthorizationControl.java | 16 ++++ .../ams/BillingSubscriptionStatusChange.java | 30 +++++++ .../global/api/model/ams/CardholderInfo.java | 2 +- .../global/api/model/ams/FundsType.java | 48 +++++++++++ .../global/api/model/ams/Paginator.java | 8 +- .../api/model/ams/PaymentMethodScope.java | 50 ++++++++++++ .../global/api/model/ams/ReleaseType.java | 50 ++++++++++++ .../global/api/model/ams/ReserveRule.java | 76 +++++++++++++++++ .../global/api/model/ams/RuleStatus.java | 53 ++++++++++++ .../alipay/global/api/model/ams/TakeType.java | 48 +++++++++++ .../global/api/model/ams/TaxBreakdown.java | 5 +- .../api/model/ams/TaxCalculatedAddress.java | 47 +++++++++++ .../ams/TaxCalculatedBusinessDetails.java | 25 ++++++ .../ams/TaxCalculatedCustomerDetails.java | 36 +++++++++ .../api/model/ams/TaxCalculatedExemption.java | 31 +++++++ .../TaxCalculatedExemptionJurisdiction.java | 35 ++++++++ .../api/model/ams/TaxCalculatedLineItem.java | 3 - .../ams/TaxCalculatedShipFromDetails.java | 25 ++++++ .../api/model/ams/TaxCalculatedTaxId.java | 35 ++++++++ .../api/model/ams/TaxCalculationLineItem.java | 8 +- .../api/model/ams/TaxCustomerDetails.java | 8 +- .../global/api/model/ams/TaxExemption.java | 31 +++++++ .../model/ams/TaxExemptionJurisdiction.java | 35 ++++++++ .../alipay/global/api/model/ams/TaxId.java | 3 + .../global/api/model/ams/TaxRegistration.java | 11 ++- .../global/api/model/ams/TaxTransaction.java | 10 ++- ...BillingSubscriptionInquireListRequest.java | 7 +- ...lipayBillingSubscriptionUpdateRequest.java | 3 + ...AlipayCustomerCreatePortalLinkRequest.java | 24 +++--- .../billing/AlipayCustomerCreateRequest.java | 5 +- .../billing/AlipayCustomerUpdateRequest.java | 10 ++- .../ams/billing/AlipayPriceCreateRequest.java | 30 ++++--- .../ams/billing/AlipayPriceUpdateRequest.java | 12 +-- .../AlipayTaxCancelRegistrationRequest.java | 4 +- .../AlipayTaxInitializeSettingsRequest.java | 5 +- .../AlipayTaxInquireCalculationRequest.java | 13 +-- ...lipayTaxInquireTransactionListRequest.java | 16 ++-- .../ams/billing/AlipayTaxRegisterRequest.java | 16 +++- ...payTaxUpdateRegistrationPeriodRequest.java | 10 ++- .../ams/pay/AlipayCancelRuleRequest.java | 36 +++++++++ .../ams/pay/AlipayCreateRuleRequest.java | 61 ++++++++++++++ .../ams/pay/AlipayInquireRuleListRequest.java | 59 ++++++++++++++ .../ams/pay/AlipayUpdateRuleRequest.java | 61 ++++++++++++++ .../aba/AlipayInquireCardDetailResponse.java | 33 ++++---- ...lipayInquireCardSensitiveInfoResponse.java | 3 + ...ingSubscriptionInquireDetailsResponse.java | 11 ++- ...ipayBillingSubscriptionUpdateResponse.java | 9 ++- ...lipayCustomerCreatePortalLinkResponse.java | 21 ++--- .../billing/AlipayInvoiceExportResponse.java | 7 ++ .../billing/AlipayReceiptExportResponse.java | 17 +++- .../AlipayReceiptInquireListResponse.java | 8 ++ .../billing/AlipayTaxCalculateResponse.java | 3 + .../AlipayTaxCancelRegistrationResponse.java | 9 ++- .../AlipayTaxInitializeSettingsResponse.java | 5 +- .../AlipayTaxInquireCalculationResponse.java | 6 ++ .../AlipayTaxInquireSettingsResponse.java | 14 +++- .../billing/AlipayTaxRegisterResponse.java | 9 ++- ...ayTaxUpdateRegistrationPeriodResponse.java | 9 ++- .../AlipayTaxUpdateSettingsResponse.java | 6 +- .../ams/pay/AlipayCancelRuleResponse.java | 81 +++++++++++++++++++ .../ams/pay/AlipayCreateRuleResponse.java | 81 +++++++++++++++++++ .../pay/AlipayInquireRuleListResponse.java | 33 ++++++++ .../ams/pay/AlipayUpdateRuleResponse.java | 81 +++++++++++++++++++ 64 files changed, 1427 insertions(+), 128 deletions(-) create mode 100644 src/main/java/com/alipay/global/api/model/ams/BillingSubscriptionStatusChange.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/FundsType.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/PaymentMethodScope.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/ReleaseType.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/ReserveRule.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/RuleStatus.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TakeType.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedAddress.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedBusinessDetails.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedCustomerDetails.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemption.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemptionJurisdiction.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedShipFromDetails.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxCalculatedTaxId.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxExemption.java create mode 100644 src/main/java/com/alipay/global/api/model/ams/TaxExemptionJurisdiction.java create mode 100644 src/main/java/com/alipay/global/api/request/ams/pay/AlipayCancelRuleRequest.java create mode 100644 src/main/java/com/alipay/global/api/request/ams/pay/AlipayCreateRuleRequest.java create mode 100644 src/main/java/com/alipay/global/api/request/ams/pay/AlipayInquireRuleListRequest.java create mode 100644 src/main/java/com/alipay/global/api/request/ams/pay/AlipayUpdateRuleRequest.java create mode 100644 src/main/java/com/alipay/global/api/response/ams/pay/AlipayCancelRuleResponse.java create mode 100644 src/main/java/com/alipay/global/api/response/ams/pay/AlipayCreateRuleResponse.java create mode 100644 src/main/java/com/alipay/global/api/response/ams/pay/AlipayInquireRuleListResponse.java create mode 100644 src/main/java/com/alipay/global/api/response/ams/pay/AlipayUpdateRuleResponse.java diff --git a/src/main/java/com/alipay/global/api/Http2JsonTransport.java b/src/main/java/com/alipay/global/api/Http2JsonTransport.java index 76ec91ac..791e4bc9 100644 --- a/src/main/java/com/alipay/global/api/Http2JsonTransport.java +++ b/src/main/java/com/alipay/global/api/Http2JsonTransport.java @@ -10,9 +10,9 @@ import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.commons.lang3.StringUtils; -import org.apache.hc.client5.http.config.ConnectionConfig; import org.apache.hc.client5.http.async.methods.SimpleHttpRequest; import org.apache.hc.client5.http.async.methods.SimpleHttpResponse; +import org.apache.hc.client5.http.config.ConnectionConfig; import org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient; import org.apache.hc.client5.http.impl.async.HttpAsyncClients; import org.apache.hc.client5.http.impl.nio.PoolingAsyncClientConnectionManagerBuilder; @@ -36,8 +36,7 @@ static String post(String gatewayUrl, String path, String sessionId, String requ request.setHeader("X-Session-Id", sessionId); request.setHeader("Accept", "application/json"); request.setHeader("User-Agent", SdkVersion.getUserAgent()); - request.setBody( - requestBody, ContentType.create("application/json", StandardCharsets.UTF_8)); + request.setBody(requestBody, ContentType.create("application/json", StandardCharsets.UTF_8)); Future responseFuture = HTTP_CLIENT.execute(request, null); SimpleHttpResponse response; @@ -115,8 +114,7 @@ private static URI buildRequestUri(String gatewayUrl, String path) throws Alipay throw new AlipayApiException( "gatewayUrl must be an HTTPS origin without path, query, fragment, or user info."); } - return new URI( - "https", null, gateway.getHost(), gateway.getPort(), path, null, null); + return new URI("https", null, gateway.getHost(), gateway.getPort(), path, null, null); } catch (URISyntaxException e) { throw new AlipayApiException("gatewayUrl is invalid.", e); } 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 56812119..f97cecda 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 @@ -49,6 +49,22 @@ public class AuthorizationControl { */ private List allowedCurrencies; + /** + * An ordered list of ISO 4217 currency codes that defines the card-level balance-consumption + * priority. Only applyCard accepts this field in a request; do not send it to updateCard. For + * applyCard, the list must not contain duplicates and every currency must be supported by Antom. + * Omission, null, or an empty list configures no card-level preference. The field participates in + * requestId idempotency, and invalid values, more than 9 entries, duplicates, or + * capability-disabled use return PARAM_ILLEGAL. For inquireCardDetail, a configured list is + * returned in stored order; an enabled merchant without a card-level preference receives null, + * and a disabled merchant does not receive the field. For inquireCardSensitiveInfo, a whitelisted + * merchant receives the configured list, the child field is omitted when no card-level preference + * exists, and a non-whitelisted merchant does not receive the parent cardDetail object. The + * initially supported currencies are USD, EUR, GBP, HKD, AUD, CAD, CNH, JPY, and NZD; the + * supported set is configuration-driven and can change without an API contract change. + */ + private List paymentPreferenceCurrencies; + private CardLimitDetail cardLimitDetail; private CardLimitInfo cardLimitInfo; diff --git a/src/main/java/com/alipay/global/api/model/ams/BillingSubscriptionStatusChange.java b/src/main/java/com/alipay/global/api/model/ams/BillingSubscriptionStatusChange.java new file mode 100644 index 00000000..46b47472 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/BillingSubscriptionStatusChange.java @@ -0,0 +1,30 @@ +/* + * v1_billing_subscription_update + * 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.*; + +/** BillingSubscriptionStatusChange */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class BillingSubscriptionStatusChange { + + /** + * The subscription status change action. The currently supported value is PAUSE, which pauses + * payment collection and changes the subscription status from ACTIVE to PAUSED. To reactivate a + * paused subscription, call the resume subscription API. Maximum length: 10 characters. + */ + private String action; +} 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 index c8e68f62..b38bff9b 100644 --- a/src/main/java/com/alipay/global/api/model/ams/CardholderInfo.java +++ b/src/main/java/com/alipay/global/api/model/ams/CardholderInfo.java @@ -1,5 +1,5 @@ /* - * aba-inquireCardDetail + * aba-inquireCardSensitiveInfo * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 diff --git a/src/main/java/com/alipay/global/api/model/ams/FundsType.java b/src/main/java/com/alipay/global/api/model/ams/FundsType.java new file mode 100644 index 00000000..04746ccb --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/FundsType.java @@ -0,0 +1,48 @@ +/* + * v1_payments_reserve_updateRule + * 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.*; + +/** The funds type. The current version supports COLLATERAL only. */ +public enum FundsType { + COLLATERAL("COLLATERAL"); + + private String value; + + FundsType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FundsType fromValue(String value) { + for (FundsType b : FundsType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/alipay/global/api/model/ams/Paginator.java b/src/main/java/com/alipay/global/api/model/ams/Paginator.java index 66dc9e23..23bd464a 100644 --- a/src/main/java/com/alipay/global/api/model/ams/Paginator.java +++ b/src/main/java/com/alipay/global/api/model/ams/Paginator.java @@ -21,15 +21,15 @@ @AllArgsConstructor public class Paginator { - /** The current page number, start from 1. */ + /** The current page number, starting from 1. */ private Integer currentPage; - /** The maximum records returned per page. */ + /** The number of records returned per page. */ private Integer pageSize; - /** Total number of pages. */ + /** The total number of pages. */ private Integer totalPage; - /** Total items that match the criteria. */ + /** The total number of records that match the query criteria. */ private Integer totalCount; } diff --git a/src/main/java/com/alipay/global/api/model/ams/PaymentMethodScope.java b/src/main/java/com/alipay/global/api/model/ams/PaymentMethodScope.java new file mode 100644 index 00000000..b3bd6f74 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/PaymentMethodScope.java @@ -0,0 +1,50 @@ +/* + * v1_payments_reserve_updateRule + * 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.*; + +/** The payment method scope to which the reserve rule applies. */ +public enum PaymentMethodScope { + ALL("ALL"), + + CARD("CARD"); + + private String value; + + PaymentMethodScope(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PaymentMethodScope fromValue(String value) { + for (PaymentMethodScope b : PaymentMethodScope.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/alipay/global/api/model/ams/ReleaseType.java b/src/main/java/com/alipay/global/api/model/ams/ReleaseType.java new file mode 100644 index 00000000..a28d690e --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/ReleaseType.java @@ -0,0 +1,50 @@ +/* + * v1_payments_reserve_updateRule + * 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.*; + +/** The release schedule type. FIXED_TIME uses releaseTime and INTERVAL_TIME uses retentionTime. */ +public enum ReleaseType { + FIXED_TIME("FIXED_TIME"), + + INTERVAL_TIME("INTERVAL_TIME"); + + private String value; + + ReleaseType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ReleaseType fromValue(String value) { + for (ReleaseType b : ReleaseType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/alipay/global/api/model/ams/ReserveRule.java b/src/main/java/com/alipay/global/api/model/ams/ReserveRule.java new file mode 100644 index 00000000..a3226c9d --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/ReserveRule.java @@ -0,0 +1,76 @@ +/* + * v1_payments_reserve_inquireRuleList + * 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.*; + +/** ReserveRule */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class ReserveRule { + + /** + * The Antom-assigned positive numeric reserve rule identifier. Save and return this value + * unchanged for updates, cancellation, and cursor pagination. Returned only when + * result.resultCode is SUCCESS. + */ + private String ruleId; + + /** + * The ID of the merchant that owns the reserve rule. Returned only when result.resultCode is + * SUCCESS. + */ + private String merchantId; + + private FundsType fundsType; + + private TakeType takeType; + + private PaymentMethodScope paymentMethodScope; + + /** + * The rolling reserve percentage. Returned when takeType is ROLLING and result.resultCode is + * SUCCESS. + */ + private Integer ratio; + + private ReleaseType releaseType; + + /** + * The fixed release instant as an ISO 8601 UTC string, for example 2026-12-31T16:00:00Z. Returned + * when releaseType is FIXED_TIME and result.resultCode is SUCCESS. + */ + private String releaseTime; + + /** + * The rolling retention period in days. Returned when releaseType is INTERVAL_TIME and + * result.resultCode is SUCCESS. + */ + private Integer retentionTime; + + private RuleStatus ruleStatus; + + /** + * The rule creation time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String createTime; + + /** + * The rule last-update time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String updateTime; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/RuleStatus.java b/src/main/java/com/alipay/global/api/model/ams/RuleStatus.java new file mode 100644 index 00000000..11611a87 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/RuleStatus.java @@ -0,0 +1,53 @@ +/* + * v1_payments_reserve_updateRule + * 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.*; + +/** + * The reserve rule configuration status. This status does not indicate whether retained funds have + * been released. + */ +public enum RuleStatus { + ACTIVE("ACTIVE"), + + DISABLED("DISABLED"); + + private String value; + + RuleStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RuleStatus fromValue(String value) { + for (RuleStatus b : RuleStatus.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TakeType.java b/src/main/java/com/alipay/global/api/model/ams/TakeType.java new file mode 100644 index 00000000..5caa55ae --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TakeType.java @@ -0,0 +1,48 @@ +/* + * v1_payments_reserve_updateRule + * 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.*; + +/** The collateral collection type. The current version supports ROLLING only. */ +public enum TakeType { + ROLLING("ROLLING"); + + private String value; + + TakeType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TakeType fromValue(String value) { + for (TakeType b : TakeType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxBreakdown.java b/src/main/java/com/alipay/global/api/model/ams/TaxBreakdown.java index 357f0fb4..06190534 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxBreakdown.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxBreakdown.java @@ -21,7 +21,10 @@ @AllArgsConstructor public class TaxBreakdown { - /** The tax type. Maximum length: 32 characters. */ + /** + * The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, + * SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX. + */ private String taxType; /** The tax authority name. Maximum length: 128 characters. */ diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedAddress.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedAddress.java new file mode 100644 index 00000000..a8563332 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedAddress.java @@ -0,0 +1,47 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedAddress */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedAddress { + + /** The country or region code. Maximum length: 2 characters. */ + private String country; + + /** The region. Maximum length: 10 characters. */ + private String region; + + /** The county. Maximum length: 64 characters. */ + private String county; + + /** The city. Maximum length: 64 characters. */ + private String city; + + /** The district. Maximum length: 64 characters. */ + private String district; + + /** The first address line. Maximum length: 256 characters. */ + private String line1; + + /** The second address line. Maximum length: 256 characters. */ + private String line2; + + /** The postal code. Maximum length: 16 characters. */ + private String postalCode; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedBusinessDetails.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedBusinessDetails.java new file mode 100644 index 00000000..bc12315b --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedBusinessDetails.java @@ -0,0 +1,25 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedBusinessDetails */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedBusinessDetails { + + private TaxCalculatedAddress address; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedCustomerDetails.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedCustomerDetails.java new file mode 100644 index 00000000..34f5aba2 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedCustomerDetails.java @@ -0,0 +1,36 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedCustomerDetails */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedCustomerDetails { + + private TaxCalculatedBusinessDetails businessDetails; + + private TaxCalculatedAddress shippingAddress; + + private TaxCalculatedAddress billingAddress; + + /** The effective customer tax ID list. Maximum size: 10. */ + private List taxIds; + + /** The effective customer tax exemption list. Maximum size: 10. */ + private List taxExemptions; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemption.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemption.java new file mode 100644 index 00000000..f1c9c3c4 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemption.java @@ -0,0 +1,31 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedExemption */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedExemption { + + /** The tax exemption certificate number. Maximum length: 64 characters. */ + private String certificateNumber; + + /** The tax exemption type. Maximum length: 32 characters. */ + private String exemptionType; + + private TaxCalculatedExemptionJurisdiction jurisdiction; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemptionJurisdiction.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemptionJurisdiction.java new file mode 100644 index 00000000..5e153de7 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedExemptionJurisdiction.java @@ -0,0 +1,35 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedExemptionJurisdiction */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedExemptionJurisdiction { + + /** The country or region code. Maximum length: 2 characters. */ + private String country; + + /** The region. Maximum length: 10 characters. */ + private String region; + + /** The city. Maximum length: 64 characters. */ + private String city; + + /** The time when the tax exemption becomes effective. Maximum length: 32 characters. */ + private String effectiveFrom; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedLineItem.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedLineItem.java index 0fd284b4..9e262f5c 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedLineItem.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedLineItem.java @@ -25,9 +25,6 @@ public class TaxCalculatedLineItem { /** The goods reference ID. Maximum length: 128 characters. */ private String goodsReferenceId; - /** The unit amount. Maximum length: 19 characters. */ - private String unitAmount; - /** The amount. Maximum length: 19 characters. */ private String amount; diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedShipFromDetails.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedShipFromDetails.java new file mode 100644 index 00000000..0ca4043b --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedShipFromDetails.java @@ -0,0 +1,25 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedShipFromDetails */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedShipFromDetails { + + private TaxCalculatedAddress address; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedTaxId.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedTaxId.java new file mode 100644 index 00000000..afe0a3f5 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculatedTaxId.java @@ -0,0 +1,35 @@ +/* + * v1_tax_inquireCalculation + * 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.*; + +/** TaxCalculatedTaxId */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxCalculatedTaxId { + + /** The customer tax ID value. Maximum length: 64 characters. */ + private String value; + + /** The country or region code. Maximum length: 2 characters. */ + private String country; + + /** The region. Maximum length: 10 characters. */ + private String region; + + /** The customer name recorded for tax purposes. Maximum length: 256 characters. */ + private String name; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCalculationLineItem.java b/src/main/java/com/alipay/global/api/model/ams/TaxCalculationLineItem.java index 52f325f3..06f014e9 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxCalculationLineItem.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCalculationLineItem.java @@ -24,10 +24,12 @@ public class TaxCalculationLineItem { /** The goods reference ID. Maximum length: 128 characters. */ private String goodsReferenceId; - /** The unit amount. Maximum length: 19 characters. */ - private String unitAmount; + /** + * The total amount of the line item in the smallest currency unit. Maximum length: 19 characters. + */ + private String amount; - /** The quantity. */ + /** The quantity. Valid range: 1 to 10000. */ private Integer quantity; /** The tax code. Maximum length: 32 characters. Note: See documentation for details. */ diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxCustomerDetails.java b/src/main/java/com/alipay/global/api/model/ams/TaxCustomerDetails.java index 4cfe5f87..4eede82a 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxCustomerDetails.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxCustomerDetails.java @@ -22,15 +22,15 @@ @AllArgsConstructor public class TaxCustomerDetails { - /** The name. Maximum length: 128 characters. Note: See documentation for details. */ - private String name; - private TaxBusinessDetails businessDetails; private TaxAddress shippingAddress; private TaxAddress billingAddress; - /** The tax ID list. Note: See documentation for details. */ + /** The customer tax ID list. Maximum size: 10. */ private List taxIds; + + /** The customer tax exemption list. Maximum size: 10. */ + private List taxExemptions; } diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxExemption.java b/src/main/java/com/alipay/global/api/model/ams/TaxExemption.java new file mode 100644 index 00000000..ed7fa9c3 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxExemption.java @@ -0,0 +1,31 @@ +/* + * v1_tax_calculate + * 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.*; + +/** TaxExemption */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxExemption { + + /** The tax exemption certificate number. Maximum length: 64 characters. */ + private String certificateNumber; + + /** The tax exemption type. Currently supported value: RESALE. Maximum length: 32 characters. */ + private String exemptionType; + + private TaxExemptionJurisdiction jurisdiction; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxExemptionJurisdiction.java b/src/main/java/com/alipay/global/api/model/ams/TaxExemptionJurisdiction.java new file mode 100644 index 00000000..62a8a913 --- /dev/null +++ b/src/main/java/com/alipay/global/api/model/ams/TaxExemptionJurisdiction.java @@ -0,0 +1,35 @@ +/* + * v1_tax_calculate + * 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.*; + +/** TaxExemptionJurisdiction */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class TaxExemptionJurisdiction { + + /** The country or region code. Maximum length: 2 characters. */ + private String country; + + /** The region. Maximum length: 10 characters. */ + private String region; + + /** The city. Maximum length: 64 characters. */ + private String city; + + /** The time when the tax exemption becomes effective. Maximum length: 32 characters. */ + private String effectiveFrom; +} diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxId.java b/src/main/java/com/alipay/global/api/model/ams/TaxId.java index 7fdf3f5a..410c5f0d 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxId.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxId.java @@ -32,4 +32,7 @@ public class TaxId { /** The region. Maximum length: 10 characters. Note: See documentation for details. */ private String region; + + /** The customer name recorded for tax purposes. Maximum length: 128 characters. */ + private String name; } diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxRegistration.java b/src/main/java/com/alipay/global/api/model/ams/TaxRegistration.java index 6915245e..9e46a2c0 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxRegistration.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxRegistration.java @@ -26,12 +26,19 @@ public class TaxRegistration { */ private String taxRegistrationId; - /** The tax type. Maximum length: 16 characters. */ + /** + * The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, + * SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX. + */ private String taxType; private TaxJurisdiction jurisdiction; - /** The tax registration type. Maximum length: 32 characters. */ + /** + * The tax registration type. Supported values are OSS_NON_UNION, STANDARD_LOCAL_TAX, + * SINGLE_LOCAL_USE_TAX_RATE, SIMPLIFIED_SELLERS_USE_TAX, STANDARD_SALES_AND_USE_TAX, + * NORMAL_GST_HST, and SIMPLIFIED_GST_HST. Maximum length: 32 characters. + */ private String registrationType; /** The tax ID. Maximum length: 64 characters. */ diff --git a/src/main/java/com/alipay/global/api/model/ams/TaxTransaction.java b/src/main/java/com/alipay/global/api/model/ams/TaxTransaction.java index 8158dc38..0ce4664d 100644 --- a/src/main/java/com/alipay/global/api/model/ams/TaxTransaction.java +++ b/src/main/java/com/alipay/global/api/model/ams/TaxTransaction.java @@ -34,11 +34,17 @@ public class TaxTransaction { /** The type. Maximum length: 16 characters. Note: See documentation for details. */ private String type; - /** The tax amount. Maximum length: 19 characters. */ + /** + * The non-negative tax amount in the smallest currency unit, without leading zeros. For + * TRANSACTION and REVERSAL records, this value is always a positive absolute amount. Reconcile a + * business scope by subtracting the sum of REVERSAL amounts from the sum of TRANSACTION amounts. + * Maximum length: 19 characters. + */ private String taxAmount; /** - * The 3-letter currency code that follows the ISO 4217 standard. Maximum length: 3 characters. + * The 3-letter currency code that follows the ISO 4217 standard. This field is returned together + * with taxAmount. Maximum length: 3 characters. */ private String currency; diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionInquireListRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionInquireListRequest.java index 885d299f..1b44d940 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionInquireListRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionInquireListRequest.java @@ -23,7 +23,12 @@ public class AlipayBillingSubscriptionInquireListRequest extends AlipayRequest { - /** The current status. Maximum length: 20 characters. */ + /** + * Filters subscriptions by status. To provide multiple values, use a comma-separated string such + * as ACTIVE,PAUSED. Up to eight values are supported. Valid values are INCOMPLETE, TRIALING, + * ACTIVE, PAST_DUE, PAUSED, CANCELLED, TERMINATED, and UNPAID. Each status value has a maximum + * length of 20 characters. + */ private String status; /** The unique ID assigned by Antom to identify a customer. Maximum length: 64 characters. */ diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionUpdateRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionUpdateRequest.java index f3be0164..4adecfbf 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionUpdateRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayBillingSubscriptionUpdateRequest.java @@ -14,6 +14,7 @@ import com.alipay.global.api.model.ams.*; import com.alipay.global.api.model.ams.BillingSubscriptionCancellationDetails; +import com.alipay.global.api.model.ams.BillingSubscriptionStatusChange; import com.alipay.global.api.model.ams.BillingTrialSettings; import com.alipay.global.api.model.ams.PriceItemChange; import com.alipay.global.api.request.AlipayRequest; @@ -46,6 +47,8 @@ public class AlipayBillingSubscriptionUpdateRequest private BillingTrialSettings trialSettings; + private BillingSubscriptionStatusChange statusChange; + /** The cancel at period end. Note: See documentation for details. */ private Boolean cancelAtPeriodEnd; diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreatePortalLinkRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreatePortalLinkRequest.java index 2ec12780..a4e22960 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreatePortalLinkRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreatePortalLinkRequest.java @@ -25,23 +25,26 @@ public class AlipayCustomerCreatePortalLinkRequest extends AlipayRequest { /** - * Customer ID to target. When both `customerId` and `email` are supplied, - * `customerId` takes precedence. + * Customer ID to target. Either `customerId` or `email` must be provided. + * When both are provided, `email` must match the registered account email of this + * customer; otherwise, the API returns `PARAM_ILLEGAL`. Maximum length: 64 characters. */ private String customerId; /** - * Customer email for lookup. When multiple customers share the email, the most recently created - * (by `gmtCreate DESC`) is selected. Maximum length: 254 characters (RFC 5322). + * Customer email for lookup. Either `customerId` or `email` must be provided. + * When multiple customers share the email, the most recently created customer by + * `gmtCreate` descending is selected. When both fields are provided, this value must + * match the registered account email of the specified customer; otherwise, the API returns + * `PARAM_ILLEGAL`. Maximum length: 254 characters (RFC 5322). */ private String email; /** * Feature set enabled for this portal session. Allowed values: `SUBSCRIPTION`, - * `INVOICE`, `PAYMENT_METHOD`. Empty/absent list -> ALL features enabled - * by default (NOT an intersection with settingId features, as previously documented). The portal - * settings referenced by `settingId` may further restrict which features are shown at - * render time. + * `INVOICE`, `PAYMENT_METHOD`. An empty or absent list enables all features + * by default. The portal settings referenced by `settingId` may further restrict which + * features are shown at render time. Maximum size: 3 elements. */ private List features; @@ -51,7 +54,10 @@ public class AlipayCustomerCreatePortalLinkRequest */ private Boolean autoSend; - /** Portal setting configuration ID. Passed through token payload, parsed by iexpfront. */ + /** + * Portal setting configuration ID passed through the token payload. Maximum length: 64 + * characters. + */ private String settingId; public AlipayCustomerCreatePortalLinkRequest() { diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreateRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreateRequest.java index 562a1ee7..866d5b0c 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreateRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayCustomerCreateRequest.java @@ -142,8 +142,9 @@ public class AlipayCustomerCreateRequest extends AlipayRequest { /** - * The unique ID assigned by a merchant to identify a tax registration cancellation request. - * Maximum length: 64 characters. Note: See documentation for details. + * The unique ID assigned by a merchant to identify a tax registration cancellation request. Any + * repeated request using an accepted ID returns REPEATED_SUBMIT. Maximum length: 64 characters. */ private String registrationCancelRequestId; diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInitializeSettingsRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInitializeSettingsRequest.java index db62b8ee..bbc1ef8f 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInitializeSettingsRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInitializeSettingsRequest.java @@ -25,8 +25,9 @@ public class AlipayTaxInitializeSettingsRequest extends AlipayRequest { /** - * The unique ID assigned by a merchant to identify a tax settings initialization request. Maximum - * length: 64 characters. Note: See documentation for details. + * The unique ID assigned by a merchant to identify a tax settings initialization request. Reuse + * it only with the original request body when recovering an unknown result. Maximum length: 64 + * characters. */ private String settingsRequestId; diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireCalculationRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireCalculationRequest.java index eee8be9d..b9ddd542 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireCalculationRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireCalculationRequest.java @@ -24,20 +24,21 @@ public class AlipayTaxInquireCalculationRequest extends AlipayRequest { /** - * The unique ID assigned by Antom to identify a tax calculation. Maximum length: 64 characters. - * Note: See documentation for details. + * The tax calculation ID returned by a successful calculate request. Specify exactly one of + * taxCalculationId, taxCalculationRequestId, and paymentRequestId. Maximum length: 64 characters. */ private String taxCalculationId; /** - * The unique ID assigned by a merchant to identify a tax calculation request. Maximum length: 64 - * characters. Note: See documentation for details. + * The original tax calculation request ID. Use this field to recover an unknown, timed-out, or + * lost calculate response. Specify exactly one query key. Maximum length: 64 characters. */ private String taxCalculationRequestId; /** - * The unique ID assigned by a merchant to identify a payment request. Maximum length: 64 - * characters. Note: See documentation for details. + * The payment request ID associated with the tax calculation. Use this field only when the + * payment references the calculation. Specify exactly one query key. Maximum length: 64 + * characters. */ private String paymentRequestId; diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireTransactionListRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireTransactionListRequest.java index cb32c774..bb612608 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireTransactionListRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxInquireTransactionListRequest.java @@ -24,18 +24,24 @@ public class AlipayTaxInquireTransactionListRequest extends AlipayRequest { /** - * The unique ID assigned by Antom to identify a tax calculation. Maximum length: 64 characters. - * Note: See documentation for details. + * The unique ID assigned by Antom to identify a tax calculation. Exactly one of taxCalculationId, + * paymentId, and refundId must be provided. Omit the unused query keys; do not send them with + * null values. Maximum length: 64 characters. */ private String taxCalculationId; /** - * The unique ID assigned by Antom to identify a payment. Maximum length: 64 characters. Note: See - * documentation for details. + * The unique ID assigned by Antom to identify a payment. Exactly one of taxCalculationId, + * paymentId, and refundId must be provided. Omit the unused query keys; do not send them with + * null values. Maximum length: 64 characters. */ private String paymentId; - /** The refund ID. Maximum length: 64 characters. Note: See documentation for details. */ + /** + * The unique ID assigned by Antom to identify a refund. Exactly one of taxCalculationId, + * paymentId, and refundId must be provided. Omit the unused query keys; do not send them with + * null values. Maximum length: 64 characters. + */ private String refundId; /** The current page number. */ diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxRegisterRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxRegisterRequest.java index 2be78f3a..04653c1f 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxRegisterRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxRegisterRequest.java @@ -24,17 +24,25 @@ public class AlipayTaxRegisterRequest extends AlipayRequest { /** - * The unique ID assigned by a merchant to identify a tax registration request. Maximum length: 64 - * characters. Note: See documentation for details. + * The unique ID assigned by a merchant to identify a tax registration request. Once accepted, the + * ID is permanently occupied and any subsequent request using it returns REPEATED_SUBMIT. Maximum + * length: 64 characters. */ private String registrationRequestId; - /** The tax type. Maximum length: 16 characters. */ + /** + * The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, + * SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX. + */ private String taxType; private TaxJurisdiction jurisdiction; - /** The tax registration type. Maximum length: 32 characters. */ + /** + * The tax registration type. Supported values are OSS_NON_UNION, STANDARD_LOCAL_TAX, + * SINGLE_LOCAL_USE_TAX_RATE, SIMPLIFIED_SELLERS_USE_TAX, STANDARD_SALES_AND_USE_TAX, + * NORMAL_GST_HST, and SIMPLIFIED_GST_HST. Maximum length: 32 characters. + */ private String registrationType; /** The tax ID. Maximum length: 64 characters. */ diff --git a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxUpdateRegistrationPeriodRequest.java b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxUpdateRegistrationPeriodRequest.java index d17ac85b..68e4ea18 100644 --- a/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxUpdateRegistrationPeriodRequest.java +++ b/src/main/java/com/alipay/global/api/request/ams/billing/AlipayTaxUpdateRegistrationPeriodRequest.java @@ -35,12 +35,16 @@ public class AlipayTaxUpdateRegistrationPeriodRequest private String taxRegistrationId; /** - * The time from which the tax registration is active. Maximum length: 32 characters. Note: See - * documentation for details. + * The new activation time for a SCHEDULED registration. The value must be later than the current + * time. Maximum length: 32 characters. */ private String activeFrom; - /** The expiration time. Maximum length: 32 characters. Note: See documentation for details. */ + /** + * The new expiration time for an ACTIVE or SCHEDULED registration. The value must be later than + * the current time and, for a scheduled registration, later than the effective activeFrom. + * Maximum length: 32 characters. + */ private String expireAt; public AlipayTaxUpdateRegistrationPeriodRequest() { diff --git a/src/main/java/com/alipay/global/api/request/ams/pay/AlipayCancelRuleRequest.java b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayCancelRuleRequest.java new file mode 100644 index 00000000..f8a8173a --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayCancelRuleRequest.java @@ -0,0 +1,36 @@ +/* + * v1_payments_reserve_cancelRule + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.pay.AlipayCancelRuleResponse; +import lombok.*; + +/** AlipayCancelRuleRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayCancelRuleRequest extends AlipayRequest { + + /** The Antom-assigned reserve rule identifier to cancel. */ + private String ruleId; + + public AlipayCancelRuleRequest() { + this.setPath("/ams/api/v1/payments/reserve/cancelRule"); + } + + @Override + public Class getResponseClass() { + return AlipayCancelRuleResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/pay/AlipayCreateRuleRequest.java b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayCreateRuleRequest.java new file mode 100644 index 00000000..165615ac --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayCreateRuleRequest.java @@ -0,0 +1,61 @@ +/* + * v1_payments_reserve_createRule + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.FundsType; +import com.alipay.global.api.model.ams.PaymentMethodScope; +import com.alipay.global.api.model.ams.ReleaseType; +import com.alipay.global.api.model.ams.TakeType; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.pay.AlipayCreateRuleResponse; +import lombok.*; + +/** AlipayCreateRuleRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayCreateRuleRequest extends AlipayRequest { + + private FundsType fundsType; + + private TakeType takeType; + + private PaymentMethodScope paymentMethodScope; + + /** The rolling reserve percentage. An integer from 1 through 100. */ + private Integer ratio; + + private ReleaseType releaseType; + + /** + * The fixed release instant as a quoted ISO 8601 offset date-time. Required only when releaseType + * is FIXED_TIME. The parsed instant must be from 3 through 180 days after the server time. Do not + * provide this field when releaseType is INTERVAL_TIME. + */ + private String releaseTime; + + /** + * The rolling retention period in days. Required only when releaseType is INTERVAL_TIME. Do not + * provide this field when releaseType is FIXED_TIME. + */ + private Integer retentionTime; + + public AlipayCreateRuleRequest() { + this.setPath("/ams/api/v1/payments/reserve/createRule"); + } + + @Override + public Class getResponseClass() { + return AlipayCreateRuleResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/pay/AlipayInquireRuleListRequest.java b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayInquireRuleListRequest.java new file mode 100644 index 00000000..f5b0e78d --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayInquireRuleListRequest.java @@ -0,0 +1,59 @@ +/* + * v1_payments_reserve_inquireRuleList + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.FundsType; +import com.alipay.global.api.model.ams.ReleaseType; +import com.alipay.global.api.model.ams.TakeType; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.pay.AlipayInquireRuleListResponse; +import lombok.*; + +/** AlipayInquireRuleListRequest */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireRuleListRequest extends AlipayRequest { + + private FundsType fundsType; + + private TakeType takeType; + + private ReleaseType releaseType; + + /** The maximum number of rules to return. The default value is 10. */ + private Integer limit; + + /** + * The forward-pagination cursor. Return rules with a ruleId lower than this value in descending + * ruleId order. This field is mutually exclusive with endingBefore. Omission, null, empty, or + * blank means no cursor. + */ + private String startingAfter; + + /** + * The backward-pagination cursor. Return the nearest page of rules with a ruleId higher than this + * value, presented in descending ruleId order. This field is mutually exclusive with + * startingAfter. Omission, null, empty, or blank means no cursor. + */ + private String endingBefore; + + public AlipayInquireRuleListRequest() { + this.setPath("/ams/api/v1/payments/reserve/inquireRuleList"); + } + + @Override + public Class getResponseClass() { + return AlipayInquireRuleListResponse.class; + } +} diff --git a/src/main/java/com/alipay/global/api/request/ams/pay/AlipayUpdateRuleRequest.java b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayUpdateRuleRequest.java new file mode 100644 index 00000000..435f363a --- /dev/null +++ b/src/main/java/com/alipay/global/api/request/ams/pay/AlipayUpdateRuleRequest.java @@ -0,0 +1,61 @@ +/* + * v1_payments_reserve_updateRule + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.PaymentMethodScope; +import com.alipay.global.api.model.ams.RuleStatus; +import com.alipay.global.api.request.AlipayRequest; +import com.alipay.global.api.response.ams.pay.AlipayUpdateRuleResponse; +import lombok.*; + +/** + * Provide at least one field to update in addition to ruleId. fundsType, takeType, and releaseType + * cannot be updated. + */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayUpdateRuleRequest extends AlipayRequest { + + /** The Antom-assigned reserve rule identifier to update. */ + private String ruleId; + + private PaymentMethodScope paymentMethodScope; + + /** The updated rolling reserve percentage. Omission or null leaves the field unchanged. */ + private Integer ratio; + + /** + * The updated fixed release instant as a quoted ISO 8601 offset date-time. This field applies + * only to a stored FIXED_TIME rule. Omission or null leaves the field unchanged. A supplied + * instant must be from 3 through 180 days after the server time. + */ + private String releaseTime; + + /** + * The updated rolling retention period in days. This field applies only to a stored INTERVAL_TIME + * rule. Omission or null leaves the field unchanged. + */ + private Integer retentionTime; + + private RuleStatus ruleStatus; + + public AlipayUpdateRuleRequest() { + this.setPath("/ams/api/v1/payments/reserve/updateRule"); + } + + @Override + public Class getResponseClass() { + return AlipayUpdateRuleResponse.class; + } +} 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 index c358fe5d..f2dc9fc1 100644 --- 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 @@ -1,5 +1,5 @@ /* - * aba-inquireCardDetail + * aba-inquireCardSensitiveInfo * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 @@ -26,20 +26,16 @@ @Data public class AlipayInquireCardDetailResponse extends AlipayResponse { - /** 卡资产ID。 Card asset Id. */ + /** Card asset Id. */ private String assetId; - /** - * 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。 User-defined card nickname, designed to help users manage multiple - * cards more conveniently. - */ + /** 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. + * 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"), @@ -76,19 +72,18 @@ public static CardStatusEnum fromValue(String 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. + * 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. */ + /** 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. + * 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"); @@ -121,8 +116,8 @@ public static CardBrandEnum fromValue(String value) { } /** - * 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: - * MASTERCARD: The card is part of the Mastercard network. + * Card Brand: Indicates the brand or network of the card. Possible value: MASTERCARD: The card is + * part of the Mastercard network. */ private CardBrandEnum cardBrand; 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 index e0c87045..2704ec9c 100644 --- 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 @@ -13,6 +13,7 @@ package com.alipay.global.api.response.ams.aba; import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.AlipayInquireCardDetailResponse; import com.alipay.global.api.response.AlipayResponse; import lombok.*; @@ -52,4 +53,6 @@ public class AlipayInquireCardSensitiveInfoResponse extends AlipayResponse { * \"29.\" This field will only be returned on demand when result.resultStatus = S. */ private String expiredYear; + + private AlipayInquireCardDetailResponse cardDetail; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionInquireDetailsResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionInquireDetailsResponse.java index 02e45d65..a51d4cd2 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionInquireDetailsResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionInquireDetailsResponse.java @@ -42,7 +42,16 @@ public class AlipayBillingSubscriptionInquireDetailsResponse extends AlipayRespo */ private String createTime; - /** The current status. Maximum length: 20 characters. */ + /** + * The current subscription status. Valid values are INCOMPLETE, TRIALING, ACTIVE, PAST_DUE, + * PAUSED, CANCELLED, TERMINATED, and UNPAID. PAST_DUE means the latest renewal payment failed and + * collection retry is in progress. PAUSED means payment collection is suspended and the + * subscription can be resumed. CANCELLED remains reversible before the current billing period + * ends. TERMINATED is a permanent final state. UNPAID means all collection retries have been + * exhausted and collection remains suspended until the outstanding invoice is paid. Clients must + * tolerate future unknown status values and should log and alert on them instead of failing + * response parsing. Maximum length: 20 characters. + */ private String status; /** diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionUpdateResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionUpdateResponse.java index 874017e3..7b6cd29e 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionUpdateResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayBillingSubscriptionUpdateResponse.java @@ -26,7 +26,14 @@ public class AlipayBillingSubscriptionUpdateResponse extends AlipayResponse { /** The subscription ID. Maximum length: 64 characters. */ private String subscriptionId; - /** The current status. Maximum length: 20 characters. */ + /** + * The subscription status after the update. PAST_DUE means the latest renewal payment failed and + * collection retry is in progress. PAUSED means payment collection is suspended and can be + * entered by setting statusChange.action to PAUSE. CANCELLED means the subscription remains + * active until the current period ends and can be reverted before then by setting + * cancelAtPeriodEnd to false. TERMINATED is a permanent final state. Maximum length: 20 + * characters. + */ private String status; /** The subscription items. Note: See documentation for details. */ diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayCustomerCreatePortalLinkResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayCustomerCreatePortalLinkResponse.java index d6aa627d..c42b6fdd 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayCustomerCreatePortalLinkResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayCustomerCreatePortalLinkResponse.java @@ -23,28 +23,29 @@ public class AlipayCustomerCreatePortalLinkResponse extends AlipayResponse { /** * Opaque URL-safe bearer token. Treat it as a credential: do not log, parse, or store its - * internal structure - the format may change without notice. Returned only when result.resultCode - * is SUCCESS. + * internal structure because the format may change without notice. Maximum length: 4096 + * characters. Returned only when result.resultCode is SUCCESS. */ private String token; /** - * Fully-qualified portal URL. Null when the portal base URL is not configured for the merchant - - * in that case build the URL from `token`. Returned only when result.resultCode is - * SUCCESS. + * Fully-qualified portal URL. Null when the portal base URL is not configured for the merchant; + * in that case, build the URL from `token`. Maximum length: 2048 characters. Returned + * only when result.resultCode is SUCCESS. */ private String portalUrl; /** - * Token expiration timestamp. Format: `yyyy-MM-dd HH:mm:ss` (NOT ISO 8601). Returned - * only when result.resultCode is SUCCESS. + * Expiration time of the portal link, returned as a string. Maximum length: 32 characters. + * Returned only when result.resultCode is SUCCESS. */ private String expiresAt; /** - * `SENT` / `FAILED`. Populated only when request - * `autoSend=true`. Best-effort: failure never blocks link creation. Null when - * `autoSend=false`. Returned only when result.resultCode is SUCCESS. + * Email send status. Valid values are `SENT` and `FAILED`. Populated only + * when request `autoSend=true`; a send failure never blocks link creation. Null + * when `autoSend=false`. Maximum length: 16 characters. Returned only when + * result.resultCode is SUCCESS. */ private String sendStatus; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayInvoiceExportResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayInvoiceExportResponse.java index 9d6eeefc..8d8d38fe 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayInvoiceExportResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayInvoiceExportResponse.java @@ -53,4 +53,11 @@ public class AlipayInvoiceExportResponse extends AlipayResponse { * length: 256 characters. Returned only when result.resultCode is SUCCESS. */ private String fileName; + + /** + * Execution mode of the export request. The returned value is `SYNC`, indicating + * synchronous export. Maximum length: 8 characters. Returned only when result.resultCode is + * SUCCESS. + */ + private String mode; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptExportResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptExportResponse.java index f9d495f3..48bae7bc 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptExportResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptExportResponse.java @@ -26,7 +26,8 @@ public class AlipayReceiptExportResponse extends AlipayResponse { * requested format: `csv` -> `text/csv`, `xlsx` -> * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`. Note: the * response `fileFormat` returns the MIME type, not the request format code. The request - * accepts `csv`/`xlsx`. Returned only when result.resultCode is SUCCESS. + * accepts `csv`/`xlsx`. Maximum length: 128 characters. Returned only when + * result.resultCode is SUCCESS. */ private String fileFormat; @@ -39,7 +40,8 @@ public class AlipayReceiptExportResponse extends AlipayResponse { /** * Signed OSS URL for file download. URL is time-limited; see `expiresAt`. After expiry, - * accessing the URL returns HTTP 403. Returned only when result.resultCode is SUCCESS. + * accessing the URL returns HTTP 403. Maximum length: 2048 characters. Returned only when + * result.resultCode is SUCCESS. */ private String fileUrl; @@ -47,8 +49,15 @@ public class AlipayReceiptExportResponse extends AlipayResponse { private Long fileSize; /** - * Generated file name (e.g., `receipts_20260401_20260430_1685000000.csv`). Returned - * only when result.resultCode is SUCCESS. + * Generated file name (e.g., `receipts_20260401_20260430_1685000000.csv`). Maximum + * length: 256 characters. Returned only when result.resultCode is SUCCESS. */ private String fileName; + + /** + * Execution mode of the export request. The returned value is `SYNC`, indicating + * synchronous export. Maximum length: 8 characters. Returned only when result.resultCode is + * SUCCESS. + */ + private String mode; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptInquireListResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptInquireListResponse.java index f43af455..5addf922 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptInquireListResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayReceiptInquireListResponse.java @@ -52,4 +52,12 @@ public class AlipayReceiptInquireListResponse extends AlipayResponse { * result.resultCode is SUCCESS. */ private String nextCursor; + + /** + * The `receiptId` of the first receipt in the current page. Use this value as + * `endingBefore` in the next request to continue paging backward to earlier data. + * Returned only when `endingBefore` is used. Maximum length: 64 characters. Returned + * only when result.resultCode is SUCCESS. + */ + private String previousCursor; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCalculateResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCalculateResponse.java index 36086a2a..6a5b067f 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCalculateResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCalculateResponse.java @@ -14,6 +14,7 @@ import com.alipay.global.api.model.ams.*; import com.alipay.global.api.model.ams.TaxBreakdown; +import com.alipay.global.api.model.ams.TaxCalculatedCustomerDetails; import com.alipay.global.api.model.ams.TaxCalculatedLineItem; import com.alipay.global.api.model.ams.TaxCalculatedShippingCost; import com.alipay.global.api.response.AlipayResponse; @@ -62,4 +63,6 @@ public class AlipayTaxCalculateResponse extends AlipayResponse { private String taxDate; private TaxCalculatedShippingCost shippingCost; + + private TaxCalculatedCustomerDetails customerDetails; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCancelRegistrationResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCancelRegistrationResponse.java index 5e27d4c5..53e9c26c 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCancelRegistrationResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxCancelRegistrationResponse.java @@ -28,13 +28,18 @@ public class AlipayTaxCancelRegistrationResponse extends AlipayResponse { */ private String taxRegistrationId; - /** The tax type. Maximum length: 16 characters. Note: See documentation for details. */ + /** + * The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, + * SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX. + */ private String taxType; private TaxJurisdiction jurisdiction; /** - * The tax registration type. Maximum length: 32 characters. Note: See documentation for details. + * The tax registration type. Supported values are OSS_NON_UNION, STANDARD_LOCAL_TAX, + * SINGLE_LOCAL_USE_TAX_RATE, SIMPLIFIED_SELLERS_USE_TAX, STANDARD_SALES_AND_USE_TAX, + * NORMAL_GST_HST, and SIMPLIFIED_GST_HST. Maximum length: 32 characters. */ private String registrationType; diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInitializeSettingsResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInitializeSettingsResponse.java index 1e564629..be3aa98e 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInitializeSettingsResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInitializeSettingsResponse.java @@ -30,6 +30,9 @@ public class AlipayTaxInitializeSettingsResponse extends AlipayResponse { private TaxHeadOffice headOffice; - /** The current status. Maximum length: 16 characters. Note: See documentation for details. */ + /** + * The tax settings status. Valid values are ACTIVE and PENDING. Do not treat an unknown value as + * ACTIVE. Maximum length: 16 characters. + */ private String status; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireCalculationResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireCalculationResponse.java index 41c488ef..e7e13a85 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireCalculationResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireCalculationResponse.java @@ -14,7 +14,9 @@ import com.alipay.global.api.model.ams.*; import com.alipay.global.api.model.ams.TaxBreakdown; +import com.alipay.global.api.model.ams.TaxCalculatedCustomerDetails; import com.alipay.global.api.model.ams.TaxCalculatedLineItem; +import com.alipay.global.api.model.ams.TaxCalculatedShipFromDetails; import com.alipay.global.api.model.ams.TaxCalculatedShippingCost; import com.alipay.global.api.response.AlipayResponse; import java.util.List; @@ -35,6 +37,10 @@ public class AlipayTaxInquireCalculationResponse extends AlipayResponse { */ private String currency; + private TaxCalculatedCustomerDetails customerDetails; + + private TaxCalculatedShipFromDetails shipFromDetails; + /** The total amount. Maximum length: 19 characters. */ private String totalAmount; diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireSettingsResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireSettingsResponse.java index 328219e1..ace0af7c 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireSettingsResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxInquireSettingsResponse.java @@ -22,14 +22,22 @@ @Data public class AlipayTaxInquireSettingsResponse extends AlipayResponse { - /** The default tax code. Maximum length: 32 characters. */ + /** + * The default tax code. Returned only when the API call succeeds. Maximum length: 32 characters. + */ private String defaultTaxCode; - /** The default tax behavior. Maximum length: 16 characters. */ + /** + * The default tax behavior. Returned only when the API call succeeds. Maximum length: 16 + * characters. + */ private String defaultTaxBehavior; private TaxHeadOffice headOffice; - /** The current status. Maximum length: 16 characters. Note: See documentation for details. */ + /** + * The tax settings status. Valid values are ACTIVE and PENDING. Returned only when the API call + * succeeds. Maximum length: 16 characters. + */ private String status; } diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxRegisterResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxRegisterResponse.java index 8453697c..868d6017 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxRegisterResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxRegisterResponse.java @@ -28,13 +28,18 @@ public class AlipayTaxRegisterResponse extends AlipayResponse { */ private String taxRegistrationId; - /** The tax type. Maximum length: 16 characters. Note: See documentation for details. */ + /** + * The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, + * SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX. + */ private String taxType; private TaxJurisdiction jurisdiction; /** - * The tax registration type. Maximum length: 32 characters. Note: See documentation for details. + * The tax registration type. Supported values are OSS_NON_UNION, STANDARD_LOCAL_TAX, + * SINGLE_LOCAL_USE_TAX_RATE, SIMPLIFIED_SELLERS_USE_TAX, STANDARD_SALES_AND_USE_TAX, + * NORMAL_GST_HST, and SIMPLIFIED_GST_HST. Maximum length: 32 characters. */ private String registrationType; diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateRegistrationPeriodResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateRegistrationPeriodResponse.java index 735ca8b8..2424a8b1 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateRegistrationPeriodResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateRegistrationPeriodResponse.java @@ -28,13 +28,18 @@ public class AlipayTaxUpdateRegistrationPeriodResponse extends AlipayResponse { */ private String taxRegistrationId; - /** The tax type. Maximum length: 16 characters. Note: See documentation for details. */ + /** + * The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, + * SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX. + */ private String taxType; private TaxJurisdiction jurisdiction; /** - * The tax registration type. Maximum length: 32 characters. Note: See documentation for details. + * The tax registration type. Supported values are OSS_NON_UNION, STANDARD_LOCAL_TAX, + * SINGLE_LOCAL_USE_TAX_RATE, SIMPLIFIED_SELLERS_USE_TAX, STANDARD_SALES_AND_USE_TAX, + * NORMAL_GST_HST, and SIMPLIFIED_GST_HST. Maximum length: 32 characters. */ private String registrationType; diff --git a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateSettingsResponse.java b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateSettingsResponse.java index 8231a471..7c88cfd3 100644 --- a/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateSettingsResponse.java +++ b/src/main/java/com/alipay/global/api/response/ams/billing/AlipayTaxUpdateSettingsResponse.java @@ -30,6 +30,10 @@ public class AlipayTaxUpdateSettingsResponse extends AlipayResponse { private TaxHeadOffice headOffice; - /** The current status. Maximum length: 16 characters. Note: See documentation for details. */ + /** + * The tax settings status. Valid values are ACTIVE and PENDING. A valid update to ACTIVE settings + * keeps the status ACTIVE; do not treat an unknown value as ACTIVE. Maximum length: 16 + * characters. + */ private String status; } diff --git a/src/main/java/com/alipay/global/api/response/ams/pay/AlipayCancelRuleResponse.java b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayCancelRuleResponse.java new file mode 100644 index 00000000..b258fb78 --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayCancelRuleResponse.java @@ -0,0 +1,81 @@ +/* + * v1_payments_reserve_cancelRule + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.FundsType; +import com.alipay.global.api.model.ams.PaymentMethodScope; +import com.alipay.global.api.model.ams.ReleaseType; +import com.alipay.global.api.model.ams.RuleStatus; +import com.alipay.global.api.model.ams.TakeType; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayCancelRuleResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayCancelRuleResponse extends AlipayResponse { + + /** + * The Antom-assigned positive numeric reserve rule identifier. Save and return this value + * unchanged for updates, cancellation, and cursor pagination. Returned only when + * result.resultCode is SUCCESS. + */ + private String ruleId; + + /** + * The ID of the merchant that owns the reserve rule. Returned only when result.resultCode is + * SUCCESS. + */ + private String merchantId; + + private FundsType fundsType; + + private TakeType takeType; + + private PaymentMethodScope paymentMethodScope; + + /** + * The rolling reserve percentage. Returned when takeType is ROLLING and result.resultCode is + * SUCCESS. + */ + private Integer ratio; + + private ReleaseType releaseType; + + /** + * The fixed release instant as an ISO 8601 UTC string, for example 2026-12-31T16:00:00Z. Returned + * when releaseType is FIXED_TIME and result.resultCode is SUCCESS. + */ + private String releaseTime; + + /** + * The rolling retention period in days. Returned when releaseType is INTERVAL_TIME and + * result.resultCode is SUCCESS. + */ + private Integer retentionTime; + + private RuleStatus ruleStatus; + + /** + * The rule creation time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String createTime; + + /** + * The rule last-update time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String updateTime; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/pay/AlipayCreateRuleResponse.java b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayCreateRuleResponse.java new file mode 100644 index 00000000..162eea3b --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayCreateRuleResponse.java @@ -0,0 +1,81 @@ +/* + * v1_payments_reserve_createRule + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.FundsType; +import com.alipay.global.api.model.ams.PaymentMethodScope; +import com.alipay.global.api.model.ams.ReleaseType; +import com.alipay.global.api.model.ams.RuleStatus; +import com.alipay.global.api.model.ams.TakeType; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayCreateRuleResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayCreateRuleResponse extends AlipayResponse { + + /** + * The Antom-assigned positive numeric reserve rule identifier. Save and return this value + * unchanged for updates, cancellation, and cursor pagination. Returned only when + * result.resultCode is SUCCESS. + */ + private String ruleId; + + /** + * The ID of the merchant that owns the reserve rule. Returned only when result.resultCode is + * SUCCESS. + */ + private String merchantId; + + private FundsType fundsType; + + private TakeType takeType; + + private PaymentMethodScope paymentMethodScope; + + /** + * The rolling reserve percentage. Returned when takeType is ROLLING and result.resultCode is + * SUCCESS. + */ + private Integer ratio; + + private ReleaseType releaseType; + + /** + * The fixed release instant as an ISO 8601 UTC string, for example 2026-12-31T16:00:00Z. Returned + * when releaseType is FIXED_TIME and result.resultCode is SUCCESS. + */ + private String releaseTime; + + /** + * The rolling retention period in days. Returned when releaseType is INTERVAL_TIME and + * result.resultCode is SUCCESS. + */ + private Integer retentionTime; + + private RuleStatus ruleStatus; + + /** + * The rule creation time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String createTime; + + /** + * The rule last-update time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String updateTime; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/pay/AlipayInquireRuleListResponse.java b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayInquireRuleListResponse.java new file mode 100644 index 00000000..5dbb7e2b --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayInquireRuleListResponse.java @@ -0,0 +1,33 @@ +/* + * v1_payments_reserve_inquireRuleList + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.ReserveRule; +import com.alipay.global.api.response.AlipayResponse; +import java.util.List; +import lombok.*; + +/** AlipayInquireRuleListResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayInquireRuleListResponse extends AlipayResponse { + + /** Whether another page of rules is available. This field is false when rules is empty. */ + private Boolean hasMore; + + /** + * The reserve rules in descending ruleId order. An empty result is returned as an empty array. + */ + private List rules; +} diff --git a/src/main/java/com/alipay/global/api/response/ams/pay/AlipayUpdateRuleResponse.java b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayUpdateRuleResponse.java new file mode 100644 index 00000000..9df4dc0c --- /dev/null +++ b/src/main/java/com/alipay/global/api/response/ams/pay/AlipayUpdateRuleResponse.java @@ -0,0 +1,81 @@ +/* + * v1_payments_reserve_updateRule + * 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.pay; + +import com.alipay.global.api.model.ams.*; +import com.alipay.global.api.model.ams.FundsType; +import com.alipay.global.api.model.ams.PaymentMethodScope; +import com.alipay.global.api.model.ams.ReleaseType; +import com.alipay.global.api.model.ams.RuleStatus; +import com.alipay.global.api.model.ams.TakeType; +import com.alipay.global.api.response.AlipayResponse; +import lombok.*; + +/** AlipayUpdateRuleResponse */ +@EqualsAndHashCode(callSuper = true) +@Data +public class AlipayUpdateRuleResponse extends AlipayResponse { + + /** + * The Antom-assigned positive numeric reserve rule identifier. Save and return this value + * unchanged for updates, cancellation, and cursor pagination. Returned only when + * result.resultCode is SUCCESS. + */ + private String ruleId; + + /** + * The ID of the merchant that owns the reserve rule. Returned only when result.resultCode is + * SUCCESS. + */ + private String merchantId; + + private FundsType fundsType; + + private TakeType takeType; + + private PaymentMethodScope paymentMethodScope; + + /** + * The rolling reserve percentage. Returned when takeType is ROLLING and result.resultCode is + * SUCCESS. + */ + private Integer ratio; + + private ReleaseType releaseType; + + /** + * The fixed release instant as an ISO 8601 UTC string, for example 2026-12-31T16:00:00Z. Returned + * when releaseType is FIXED_TIME and result.resultCode is SUCCESS. + */ + private String releaseTime; + + /** + * The rolling retention period in days. Returned when releaseType is INTERVAL_TIME and + * result.resultCode is SUCCESS. + */ + private Integer retentionTime; + + private RuleStatus ruleStatus; + + /** + * The rule creation time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String createTime; + + /** + * The rule last-update time as an ISO 8601 UTC string. Returned only when result.resultCode is + * SUCCESS. + */ + private String updateTime; +}