Skip to content

Commit 55002d0

Browse files
authored
Merge pull request #110 from alipay/sdk-automation/20260119-1010
Update all services
2 parents 725bacd + 28e3090 commit 55002d0

File tree

5 files changed

+99
-5
lines changed

5 files changed

+99
-5
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* InquireExchangeRate
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* The version of the OpenAPI document: 1.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.alipay.global.api.model.ams;
14+
15+
import java.math.BigDecimal;
16+
import lombok.*;
17+
18+
/** PaymentQuote */
19+
@Data
20+
@Builder
21+
@NoArgsConstructor
22+
@AllArgsConstructor
23+
public class PaymentQuote {
24+
25+
/** 商户视角下买入的币种 - 商户订单定价币种 */
26+
private String buyCurrency;
27+
28+
/** 商户视角下卖出的币种 - 用户支付币种 */
29+
private String sellCurrency;
30+
31+
/** 蚂蚁为此次报价颁发的唯一id */
32+
private String quoteId;
33+
34+
/** 商户可直接用于乘法计算的最终汇率值,精度统一为15位decimal place */
35+
private BigDecimal exchangeRate;
36+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* InquireExchangeRate
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* The version of the OpenAPI document: 1.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
package com.alipay.global.api.model.ams;
14+
15+
import com.fasterxml.jackson.annotation.JsonCreator;
16+
import com.fasterxml.jackson.annotation.JsonValue;
17+
import lombok.*;
18+
19+
/** Gets or Sets RateType */
20+
public enum RateType {
21+
TRADE("TRADE"),
22+
23+
REFERENCE("REFERENCE"),
24+
25+
REFERENCE_TRADE("REFERENCE_TRADE");
26+
27+
private String value;
28+
29+
RateType(String value) {
30+
this.value = value;
31+
}
32+
33+
@JsonValue
34+
public String getValue() {
35+
return value;
36+
}
37+
38+
@Override
39+
public String toString() {
40+
return String.valueOf(value);
41+
}
42+
43+
@JsonCreator
44+
public static RateType fromValue(String value) {
45+
for (RateType b : RateType.values()) {
46+
if (b.value.equals(value)) {
47+
return b;
48+
}
49+
}
50+
throw new IllegalArgumentException("Unexpected value '" + value + "'");
51+
}
52+
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.alipay.global.api.model.ams;
22

33
public enum SubscriptionNotificationType {
4-
CREATE,
5-
CHANGE,
6-
CANCEL,
7-
UPDATE,
8-
TERMINATE;
4+
CREATE,
5+
CHANGE,
6+
CANCEL,
7+
UPDATE,
8+
TERMINATE;
99
}

src/main/java/com/alipay/global/api/request/ams/pay/AlipayInquireExchangeRateRequest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.alipay.global.api.model.ams.*;
1616
import com.alipay.global.api.model.ams.CurrencyPair;
1717
import com.alipay.global.api.model.ams.ProductCodeType;
18+
import com.alipay.global.api.model.ams.RateType;
1819
import com.alipay.global.api.request.AlipayRequest;
1920
import com.alipay.global.api.response.ams.pay.AlipayInquireExchangeRateResponse;
2021
import java.util.List;
@@ -38,6 +39,8 @@ public class AlipayInquireExchangeRateRequest
3839

3940
private ProductCodeType productCode;
4041

42+
private RateType rateType;
43+
4144
public AlipayInquireExchangeRateRequest() {
4245
this.setPath("/ams/api/v1/payments/inquireExchangeRate");
4346
}

src/main/java/com/alipay/global/api/response/ams/pay/AlipayInquireExchangeRateResponse.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
package com.alipay.global.api.response.ams.pay;
1414

1515
import com.alipay.global.api.model.ams.*;
16+
import com.alipay.global.api.model.ams.PaymentQuote;
1617
import com.alipay.global.api.model.ams.Quote;
1718
import com.alipay.global.api.response.AlipayResponse;
1819
import java.util.List;
@@ -24,4 +25,6 @@
2425
public class AlipayInquireExchangeRateResponse extends AlipayResponse {
2526

2627
private List<Quote> quotes;
28+
29+
private List<PaymentQuote> paymentQuotes;
2730
}

0 commit comments

Comments
 (0)