Skip to content
Closed
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
12 changes: 10 additions & 2 deletions src/main/java/com/alipay/global/api/model/ams/Applicability.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,17 @@
@AllArgsConstructor
public class Applicability {

/** The scope. Maximum length: 8 characters. */
/**
* The applicability scope. Valid values are ALL and SPECIFIC. ALL applies the Credit Grant to all
* eligible Prices that use the same currency as the Grant and omits priceIds; SPECIFIC applies it
* only to the Prices specified by priceIds. Maximum length: 8 characters.
*/
private String scope;

/** The price ids. Note: See documentation for details. */
/**
* The Price IDs that the Credit Grant applies to. Required when scope is SPECIFIC and values must
* be unique; omitted when scope is ALL. Maximum size: 64 elements. Maximum length per item: 64
* characters.
*/
private List<String> priceIds;
}
34 changes: 0 additions & 34 deletions src/main/java/com/alipay/global/api/model/ams/AvailableAmount.java

This file was deleted.

38 changes: 27 additions & 11 deletions src/main/java/com/alipay/global/api/model/ams/CreditGrant.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,57 @@
@AllArgsConstructor
public class CreditGrant {

/** The credit grant ID. Maximum length: 64 characters. */
/** The unique identifier of the Credit Grant. Maximum length: 64 characters. */
private String creditGrantId;

/** The credit grant name. Maximum length: 255 characters. */
/** The merchant-facing name of the Credit Grant. Maximum length: 255 characters. */
private String creditGrantName;

/** The unique ID assigned by Antom to identify a customer. Maximum length: 64 characters. */
/** The Customer that receives the credit. Maximum length: 64 characters. */
private String customerId;

/** The current status. Maximum length: 8 characters. */
/**
* The Credit Grant status. Valid values are PENDING, ACTIVE, EXPIRED, and VOIDED. VOIDED is the
* only irreversible terminal state. Maximum length: 8 characters.
*/
private String status;

private Amount amount;

private AvailableAmount availableAmount;
private Amount availableAmount;

private Applicability applicability;

/** The priority. */
/** The application priority from 0 to 100. A lower value has a higher priority. */
private Integer priority;

/** The category. Maximum length: 16 characters. */
/**
* The Credit Grant category. Valid values are PREPAID and PROMOTIONAL. Maximum length: 16
* characters.
*/
private String category;

/**
* The effective date time. Maximum length: 32 characters. Note: See documentation for details.
* The effective time in ISO 8601 UTC format, encoded as a JSON string. Omitted when the Grant is
* effective immediately. Maximum length: 32 characters.
*/
private String effectiveDateTime;

/** The expiry date time. Maximum length: 32 characters. Note: See documentation for details. */
/**
* The expiration time in ISO 8601 UTC format, encoded as a JSON string. Omitted when the Grant
* does not expire automatically. Maximum length: 32 characters.
*/
private String expiryDateTime;

/** The created date time. Maximum length: 32 characters. */
/**
* The creation time in ISO 8601 UTC format, encoded as a JSON string. Maximum length: 32
* characters.
*/
private String createdDateTime;

/** The updated date time. Maximum length: 32 characters. */
/**
* The last update time in ISO 8601 UTC format, encoded as a JSON string. Maximum length: 32
* characters.
*/
private String updatedDateTime;
}
38 changes: 29 additions & 9 deletions src/main/java/com/alipay/global/api/model/ams/Meter.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,50 @@
@AllArgsConstructor
public class Meter {

/** The meter ID. Maximum length: 64 characters. */
/** The unique identifier of the Meter. Maximum length: 64 characters. */
private String meterId;

/** The meter name. Maximum length: 255 characters. */
/** The merchant-facing name of the Meter. Maximum length: 255 characters. */
private String meterName;

/** The event name. Maximum length: 100 characters. */
/**
* The event routing name. It is unique within a merchant and cannot be changed after creation.
* Maximum length: 100 characters.
*/
private String eventName;

/** The current status. Maximum length: 8 characters. */
/** The Meter status. Valid values are ACTIVE and INACTIVE. Maximum length: 8 characters. */
private String status;

/** The aggregation method. Maximum length: 8 characters. */
/**
* The aggregation method. Valid values are SUM, COUNT, and LAST. SUM adds the metered values from
* all eligible Events within the aggregation period; COUNT counts the number of eligible Events
* within the aggregation period; LAST uses the metered value from the most recent eligible Event.
* Maximum length: 8 characters.
*/
private String aggregationMethod;

/** The event time window. Maximum length: 4 characters. */
/**
* The upstream pre-aggregation window. Valid values are HOUR and DAY. The field is omitted for
* raw Events. Maximum length: 4 characters.
*/
private String eventTimeWindow;

/** The value key override. Maximum length: 256 characters. */
/**
* The field name in the Event payload that contains the metered value. Its length is 1 to 100
* characters and it must match ^[A-Za-z0-9_]{1,100}$. Maximum length: 100 characters.
*/
private String valueKeyOverride;

/** The created date time. Maximum length: 32 characters. */
/**
* The creation time in ISO 8601 UTC format, encoded as a JSON string. Maximum length: 32
* characters.
*/
private String createdDateTime;

/** The updated date time. Maximum length: 32 characters. */
/**
* The last update time in ISO 8601 UTC format, encoded as a JSON string. Maximum length: 32
* characters.
*/
private String updatedDateTime;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* payments_ inquiryPayment
* Use this API to inquire about the transaction status and other information about a previously submitted payment request.
*
* 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.*;

/** PopRiskDecisionResultInfo */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PopRiskDecisionResultInfo {

/** The risk decision that is related to the authorization of the payment. */
private String riskAuthDecision;

/** The risk decision for the payment. */
private String riskDecision;

/**
* The post-authorization risk decision result. Valid values are: ACCEPT: The post-authorization
* risk review is passed. The merchant can continue to capture the payment or fulfill the order.
* REVIEW: The post-authorization risk review recommends a manual review. REJECT: The
* post-authorization risk review is rejected. Cancel the order. Note: This field is returned when
* the merchant calls the post-authorization risk review interface and the interface returns a
* non-empty result within the time limit. When the interface times out, returns null, or is not
* called, this field is not returned and no post-authorization risk review is deemed to have
* occurred. More information: Maximum length: 6 characters
*/
private String postRiskDecision;
}
46 changes: 46 additions & 0 deletions src/main/java/com/alipay/global/api/model/ams/SplitDetail.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* payments_refund
* Use this API to initiate a refund against a successful payment. The refund can be full or partial. A transaction can have multiple refunds as long as the total refund amount is less than or equal to the original transaction amount. If the refund request is out of the refund window determined in the contract, the refund request will be declined. Note: Use the same refundRequestId field to retry a refund in case of timeout or when the returned resultStatus is ​U​. The refundRequestId field is designed to be idempotent.
*
* 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.*;

/** SplitDetail */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SplitDetail {

/**
* The original split recipient from which the funds are reversed for this refund. Valid values
* are: SELLER: indicates that the payment funds were split to the seller. MARKETPLACE: indicates
* that the payment funds were split to the marketplace. PLATFORM: indicates that the payment
* funds were split to the platform. ISV: indicates that the payment funds were split to the
* independent software vendor. Note: The value must exist in the successful split of the original
* payment or capture. Unknown values are rejected with the existing PARAM_ILLEGAL behavior. More
* information: Maximum length: 32 characters
*/
private String splitTo;

private Amount splitAmount;

private Amount actualSplitAmount;

/**
* The merchant-supplied remark for billing and reconciliation. If this field is provided, it is
* reflected in the bill and returned with the corresponding refund split detail. Omission does
* not affect refund or split-reversal processing. More information: Maximum length: 256
* characters
*/
private String description;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,40 @@
@Data
public class AlipayCreditGrantCreateRequest extends AlipayRequest<AlipayCreditGrantCreateResponse> {

/** The unique ID assigned by Antom to identify a customer. Maximum length: 64 characters. */
/**
* The Customer receiving the credit. The service validates ownership and status. Maximum length:
* 64 characters.
*/
private String customerId;

/** The credit grant name. Maximum length: 255 characters. */
/**
* The merchant-facing name of the Credit Grant. It must not be null, empty, blank, or longer than
* 255 characters. Maximum length: 255 characters.
*/
private String creditGrantName;

private Amount amount;

private Applicability applicability;

/** The priority. */
/** The application priority from 0 to 100. Omit to use 0. A lower value has a higher priority. */
private Integer priority;

/** The category. Maximum length: 16 characters. */
/** The category. Valid values are PREPAID and PROMOTIONAL. Maximum length: 16 characters. */
private String category;

/**
* The effective date time. Maximum length: 32 characters. Note: See documentation for details.
* The effective time in ISO 8601 UTC format, encoded as a JSON string. Omit for immediate
* activation; a provided value earlier than server time is accepted only within the clock-skew
* tolerance. Maximum length: 32 characters.
*/
private String effectiveDateTime;

/** The expiry date time. Maximum length: 32 characters. Note: See documentation for details. */
/**
* The expiration time in ISO 8601 UTC format, encoded as a JSON string. Omit for no automatic
* expiration; otherwise the value must be later than the current and effective times. Maximum
* length: 32 characters.
*/
private String expiryDateTime;

public AlipayCreditGrantCreateRequest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
public class AlipayCreditGrantInquireDetailsRequest
extends AlipayRequest<AlipayCreditGrantInquireDetailsResponse> {

/** The credit grant ID. Maximum length: 64 characters. */
/**
* The unique identifier of the Credit Grant. The resource must belong to the authenticated
* merchant. Maximum length: 64 characters.
*/
private String creditGrantId;

public AlipayCreditGrantInquireDetailsRequest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,24 @@ public class AlipayCreditGrantInquireListRequest
extends AlipayRequest<AlipayCreditGrantInquireListResponse> {

/**
* The page number. The value must be at least 1. The default value is 1. A page beyond the last
* page returns SUCCESS with an empty &#x60;creditGrants&#x60; array.
* The page number. Omit to use 1. When present, it must be an integer at least 1; a page beyond
* the current last page returns success with an empty creditGrants array.
*/
private Integer pageNum;

/** The number of records per page. Value range: 1-100. The default value is 10. */
/**
* The number of records per page. Omit to use 10. When present, it must be an integer from 1 to
* 100.
*/
private Integer pageSize;

/** The unique ID assigned by Antom to identify a customer. Maximum length: 64 characters. */
/** The Customer filter. Omit to include all Customers. Maximum length: 64 characters. */
private String customerId;

/** The current status. Maximum length: 8 characters. */
/**
* The Credit Grant status filter. Valid values are PENDING, ACTIVE, EXPIRED, and VOIDED; omit to
* include all states. Maximum length: 8 characters.
*/
private String status;

public AlipayCreditGrantInquireListRequest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,26 @@
public class AlipayCreditGrantUpdateExpiryRequest
extends AlipayRequest<AlipayCreditGrantUpdateExpiryResponse> {

/** The credit grant ID. Maximum length: 64 characters. */
/**
* The unique identifier of the Credit Grant. The resource must belong to the authenticated
* merchant. Maximum length: 64 characters.
*/
private String creditGrantId;

/** The expiry mode. Maximum length: 16 characters. */
/**
* The expiration mode. Valid values are NEVER, SPECIFIC_DATE, and IMMEDIATELY. NEVER means the
* Credit Grant does not expire automatically and expiryDateTime is omitted; SPECIFIC_DATE means
* the Credit Grant expires at the time specified by expiryDateTime, which is required;
* IMMEDIATELY means the Credit Grant expires immediately after the request is successfully
* processed and expiryDateTime is omitted. Maximum length: 16 characters.
*/
private String expiryMode;

/** The expiry date time. Maximum length: 32 characters. Note: See documentation for details. */
/**
* The expiration time in ISO 8601 UTC format, encoded as a JSON string. Send this field only when
* expiryMode is SPECIFIC_DATE; otherwise omit. The value must be later than the current and
* effective times. Maximum length: 32 characters.
*/
private String expiryDateTime;

public AlipayCreditGrantUpdateExpiryRequest() {
Expand Down
Loading
Loading