Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

package com.alipay.global.api.model.ams;

import java.util.List;
import lombok.*;

/** BillingSubscriptionPriceItem */
Expand Down Expand Up @@ -44,12 +45,21 @@ public class BillingSubscriptionPriceItem {
/** The pricing model. Valid values are PER_UNIT and TIERED. */
private String pricingModel;

/** The tiered pricing mode. Valid values are GRADUATED and VOLUME. */
private String tiersMode;

/** The tiered pricing details. */
private List<Tier> tiers;

/** The associated product ID. Maximum length: 64 characters. */
private String productId;

/** The associated product name. */
private String productName;

/** The product description resolved from the product ID of this price item. */
private String productDescription;

/** The quantity of this subscription item. */
private Integer quantity;

Expand All @@ -63,4 +73,7 @@ public class BillingSubscriptionPriceItem {

/** The usage type. Valid values include LICENSED and METERED. */
private String usageType;

/** The external meter reference ID. */
private String meterId;
}
17 changes: 8 additions & 9 deletions src/main/java/com/alipay/global/api/model/ams/TaxBreakdown.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
@AllArgsConstructor
public class TaxBreakdown {

/**
* 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.
*/
/** The tax type. Supported values are SALES_TAX, VAT, GST, and OTHER. */
private String taxType;

/** The tax authority name. Maximum length: 128 characters. */
Expand All @@ -33,13 +30,15 @@ public class TaxBreakdown {
/** The tax rate. Maximum length: 16 characters. */
private String taxRate;

/** The tax amount. Maximum length: 19 characters. */
private String taxAmount;
private Amount taxAmount;

/** The taxable amount. Maximum length: 19 characters. */
private String taxableAmount;
private Amount taxableAmount;

/** The taxability reason. Maximum length: 32 characters. */
/**
* The taxability reason. Supported values are NOT_COLLECTING, PRODUCT_EXEMPT, REVERSE_CHARGE,
* CUSTOMER_EXEMPT, NOT_SUPPORTED, NOT_SUBJECT_TO_TAX, PRODUCT_EXEMPT_HOLIDAY,
* PORTION_PRODUCT_EXEMPT, ZERO_RATED, STANDARD_RATED, and UNKNOWN_ZERO_TAX.
*/
private String taxabilityReason;

/** Indicates whether the tax is inclusive. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class TaxCalculatedCustomerDetails {

private TaxCalculatedBusinessDetails businessDetails;

/** The customer name recorded for tax purposes. Maximum length: 256 characters. */
private String name;

private TaxCalculatedAddress shippingAddress;

private TaxCalculatedAddress billingAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public class TaxCalculatedExemption {
private String exemptionType;

private TaxCalculatedExemptionJurisdiction jurisdiction;

/**
* The ISO 8601 time with a timezone when the tax exemption becomes effective. Maximum length: 32
* characters.
*/
private String effectiveFrom;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ public class TaxCalculatedExemptionJurisdiction {

/** The city. Maximum length: 64 characters. */
private String city;

/** The time when the tax exemption becomes effective. Maximum length: 32 characters. */
private String effectiveFrom;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public class TaxCalculatedLineItem {
/** The goods reference ID. Maximum length: 128 characters. */
private String goodsReferenceId;

/** The amount. Maximum length: 19 characters. */
private String amount;
private Amount amount;

/** The quantity. */
private Integer quantity;
Expand All @@ -37,8 +36,7 @@ public class TaxCalculatedLineItem {
/** The tax behavior. Maximum length: 16 characters. */
private String taxBehavior;

/** The tax amount. Maximum length: 19 characters. */
private String taxAmount;
private Amount taxAmount;

/** The tax breakdown. */
private List<TaxBreakdown> taxBreakdown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
@AllArgsConstructor
public class TaxCalculatedShippingCost {

/** The amount. Maximum length: 19 characters. */
private String amount;
private Amount amount;

/** The tax amount. Maximum length: 19 characters. */
private String taxAmount;
private Amount taxAmount;

/** The tax breakdown. */
private List<TaxBreakdown> taxBreakdown;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ public class TaxCalculatedTaxId {

/** The region. Maximum length: 10 characters. */
private String region;

/** The customer name recorded for tax purposes. Maximum length: 256 characters. */
private String name;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ public class TaxCalculationLineItem {
/** The goods reference ID. Maximum length: 128 characters. */
private String goodsReferenceId;

/**
* The total amount of the line item in the smallest currency unit. Maximum length: 19 characters.
*/
private String amount;
private Amount amount;

/** The quantity. Valid range: 1 to 10000. */
private Integer quantity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class TaxCustomerDetails {

private TaxBusinessDetails businessDetails;

/** The customer name recorded for tax purposes. Maximum length: 256 characters. */
private String name;

private TaxAddress shippingAddress;

private TaxAddress billingAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ public class TaxExemption {
private String exemptionType;

private TaxExemptionJurisdiction jurisdiction;

/**
* The ISO 8601 time with a timezone when the tax exemption becomes effective. Maximum length: 32
* characters.
*/
private String effectiveFrom;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ public class TaxExemptionJurisdiction {

/** The city. Maximum length: 64 characters. */
private String city;

/** The time when the tax exemption becomes effective. Maximum length: 32 characters. */
private String effectiveFrom;
}
3 changes: 0 additions & 3 deletions src/main/java/com/alipay/global/api/model/ams/TaxId.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,4 @@ 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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@
@AllArgsConstructor
public class TaxShippingCost {

/** The amount. Maximum length: 19 characters. Note: See documentation for details. */
private String amount;
private Amount amount;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,7 @@ public class TaxTransaction {
/** The type. Maximum length: 16 characters. Note: See documentation for details. */
private String type;

/**
* 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. This field is returned together
* with taxAmount. Maximum length: 3 characters.
*/
private String currency;
private Amount taxAmount;

/** The current status. Maximum length: 16 characters. Note: See documentation for details. */
private String status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public class AlipayBillingSubscriptionCancelRequest
private BillingSubscriptionCancelCancellationDetails cancellationDetails;

/**
* The proration behavior for immediate termination. Valid values are CREATE_PRORATIONS, NONE, and
* ALWAYS_INVOICE. Maximum length: 18 characters.
* The proration behavior for immediate termination. Valid values are ALWAYS_INVOICE and NONE. The
* default value is NONE. Maximum length: 18 characters.
*/
private String prorationBehavior;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ public class AlipayCustomerCreateRequest extends AlipayRequest<AlipayCustomerCre
/** Billing address postal/zip code. Maximum length: 32 characters. */
private String zipcode;

/** Recipient phone number for shipping. Maximum length: 32 characters. */
private String shippingPhone;

/** Shipping address country code. Format: ISO 3166-1 alpha-2. Maximum length: 2 characters. */
private String shippingCountry;

Expand Down Expand Up @@ -128,19 +125,6 @@ public class AlipayCustomerCreateRequest extends AlipayRequest<AlipayCustomerCre
*/
private String metadata;

/**
* Customer&#39;s phone number (digits only). Maximum length: 32 characters. Cross-field
* constraint: when &#x60;phoneNo&#x60; is provided, &#x60;countryCode&#x60; is required; omitting
* it returns &#x60;PARAM_ILLEGAL&#x60;.
*/
private String phoneNo;

/**
* ISO 3166-1 alpha-2 country code paired with &#x60;phoneNo&#x60; (NOT a numeric dial prefix).
* Required when &#x60;phoneNo&#x60; is provided. Maximum length: 2 characters.
*/
private String countryCode;

/**
* Email address used to receive bills and invoices. It can differ from the account
* &#x60;email&#x60;. If omitted during customer creation, it defaults to &#x60;email&#x60;.
Expand All @@ -154,12 +138,6 @@ public class AlipayCustomerCreateRequest extends AlipayRequest<AlipayCustomerCre
/** Shipping recipient last name. Maximum length: 256 characters. */
private String shippingLastName;

/**
* ISO 3166-1 alpha-2 country code paired with &#x60;phoneNo&#x60;. Required when
* &#x60;shippingPhone&#x60; is provided. Maximum length: 2 characters.
*/
private String shippingCountryCode;

public AlipayCustomerCreateRequest() {
this.setPath("/ams/api/v1/billing/customer/create");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,6 @@ public class AlipayCustomerInquireListRequest
/** Filter by exact email address match. Maximum length: 256 characters. */
private String email;

/**
* Filter by phone number (canonical). Cross-field constraint: when &#x60;phoneNo&#x60; is
* provided, &#x60;countryCode&#x60; is REQUIRED - omitting it returns &#x60;PARAM_ILLEGAL&#x60;.
*/
private String phoneNo;

/**
* ISO 3166-1 alpha-2 country code paired with &#x60;phoneNo&#x60;. Required when
* &#x60;phoneNo&#x60; is provided.
*/
private String countryCode;

/**
* Inclusive end of the creation-timestamp range. Closed interval with &#x60;gmtCreateStart&#x60;.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ public class AlipayCustomerUpdateRequest extends AlipayRequest<AlipayCustomerUpd
/** Updated billing postal code. Maximum length: 32 characters. */
private String zipcode;

/** Updated shipping phone. Maximum length: 32 characters. */
private String shippingPhone;

/** Updated shipping country. Format: ISO 3166-1 alpha-2. Maximum length: 2 characters. */
private String shippingCountry;

Expand Down Expand Up @@ -114,19 +111,6 @@ public class AlipayCustomerUpdateRequest extends AlipayRequest<AlipayCustomerUpd
*/
private String metadata;

/**
* Updated phone number (digits only). Cross-field constraint: when &#x60;phoneNo&#x60; is
* provided, &#x60;countryCode&#x60; is required; omitting it returns &#x60;PARAM_ILLEGAL&#x60;.
* Maximum length: 32 characters.
*/
private String phoneNo;

/**
* ISO 3166-1 alpha-2 country code paired with &#x60;phoneNo&#x60;. Required when
* &#x60;phoneNo&#x60; is provided. Maximum length: 2 characters.
*/
private String countryCode;

/**
* Updated email address used to receive bills and invoices. Send this field explicitly when the
* invoice-recipient email must change; updating &#x60;email&#x60; alone does not change it.
Expand All @@ -140,12 +124,6 @@ public class AlipayCustomerUpdateRequest extends AlipayRequest<AlipayCustomerUpd
/** Updated shipping recipient last name. Maximum length: 256 characters. */
private String shippingLastName;

/**
* ISO 3166-1 alpha-2 country code paired with &#x60;phoneNo&#x60;. Required when
* &#x60;shippingPhone&#x60; is provided. Maximum length: 2 characters.
*/
private String shippingCountryCode;

public AlipayCustomerUpdateRequest() {
this.setPath("/ams/api/v1/billing/customer/update");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public class AlipayTaxCalculateRequest extends AlipayRequest<AlipayTaxCalculateR
*/
private String taxCalculationRequestId;

/**
* The 3-letter currency code that follows the ISO 4217 standard. Maximum length: 3 characters.
*/
private String currency;

/** The line item list. */
private List<TaxCalculationLineItem> lineItems;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ public class AlipayTaxInquireTransactionListRequest
*/
private String refundId;

/** The current page number. */
/** The current page number, starting from 1. The default value is 1. */
private Integer currentPage;

/** The number of records per page. */
/** The number of records returned per page. The default value is 20. */
private Integer pageSize;

public AlipayTaxInquireTransactionListRequest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.alipay.global.api.model.ams.BillingSubscriptionDiscountInfo;
import com.alipay.global.api.model.ams.BillingSubscriptionInquireDetailsCancellationDetails;
import com.alipay.global.api.model.ams.BillingSubscriptionPriceItem;
import com.alipay.global.api.model.ams.BillingSubscriptionTrialSettings;
import com.alipay.global.api.response.AlipayResponse;
import java.util.List;
import lombok.*;
Expand Down Expand Up @@ -86,8 +85,6 @@ public class AlipayBillingSubscriptionInquireDetailsResponse extends AlipayRespo
/** The trial end. Note: See documentation for details. */
private String trialEnd;

private BillingSubscriptionTrialSettings trialSettings;

/** The cancel at. Note: See documentation for details. */
private String cancelAt;

Expand Down
Loading
Loading