File tree Expand file tree Collapse file tree 5 files changed +99
-5
lines changed
src/main/java/com/alipay/global/api Expand file tree Collapse file tree 5 files changed +99
-5
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11package com .alipay .global .api .model .ams ;
22
33public enum SubscriptionNotificationType {
4- CREATE ,
5- CHANGE ,
6- CANCEL ,
7- UPDATE ,
8- TERMINATE ;
4+ CREATE ,
5+ CHANGE ,
6+ CANCEL ,
7+ UPDATE ,
8+ TERMINATE ;
99}
Original file line number Diff line number Diff line change 1515import com .alipay .global .api .model .ams .*;
1616import com .alipay .global .api .model .ams .CurrencyPair ;
1717import com .alipay .global .api .model .ams .ProductCodeType ;
18+ import com .alipay .global .api .model .ams .RateType ;
1819import com .alipay .global .api .request .AlipayRequest ;
1920import com .alipay .global .api .response .ams .pay .AlipayInquireExchangeRateResponse ;
2021import 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 }
Original file line number Diff line number Diff line change 1313package com .alipay .global .api .response .ams .pay ;
1414
1515import com .alipay .global .api .model .ams .*;
16+ import com .alipay .global .api .model .ams .PaymentQuote ;
1617import com .alipay .global .api .model .ams .Quote ;
1718import com .alipay .global .api .response .AlipayResponse ;
1819import java .util .List ;
2425public class AlipayInquireExchangeRateResponse extends AlipayResponse {
2526
2627 private List <Quote > quotes ;
28+
29+ private List <PaymentQuote > paymentQuotes ;
2730}
You can’t perform that action at this time.
0 commit comments