File tree Expand file tree Collapse file tree 7 files changed +65
-3
lines changed
src/main/java/com/alipay/global/api Expand file tree Collapse file tree 7 files changed +65
-3
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,8 @@ update --- 支付方式枚举类新增ABA
17617651、Version:2.0.61
1771771. Iyzico渠道接入AMS变更
1781782. update 0710
179- 51 、Version:2.0.62
179+ 52 、Version:2.0.62
1801801. AMS支付接口、支付通知、支付查询接口透传卡组ISO code和Mac code及渠道DE42和DE43
181+ 53、Version:2.0.63
182+ 1. 新增getCardInfo接口
181183
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ https://mvnrepository.com/artifact/com.alipay.global.sdk/global-open-sdk-java
1212<dependency >
1313 <groupId >com.alipay.global.sdk</groupId >
1414 <artifactId >global-open-sdk-java</artifactId >
15- <version >2.0.62 </version >
15+ <version >2.0.63 </version >
1616</dependency >
1717```
1818
Original file line number Diff line number Diff line change 44 <groupId >com.alipay.global.sdk</groupId >
55 <artifactId >global-open-sdk-java</artifactId >
66 <packaging >jar</packaging >
7- <version >2.0.62 </version >
7+ <version >2.0.63 </version >
88 <name >global-open-sdk-java</name >
99 <url >https://github.com/alipay/global-open-sdk-java</url >
1010 <description >
Original file line number Diff line number Diff line change 1+ package com .alipay .global .api .model .ams ;
2+
3+ public enum CardCategoryType {
4+ CONSUMER ,COMMERCIAL
5+ }
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ public class AntomPathConstants {
6666 */
6767 public static final String PAYMENT_PATH = "/ams/api/v1/payments/pay" ;
6868
69+ public static final String CARD_INFO_PATH = "/ams/api/v1/payments/getCardInfo" ;
70+
6971 /**
7072 * see <a href="https://global.alipay.com/docs/ac/oneapi/fetch">fetchNonce </a>
7173 */
Original file line number Diff line number Diff line change 1+ package com .alipay .global .api .request .ams .pay ;
2+
3+
4+ import com .alipay .global .api .model .constants .AntomPathConstants ;
5+ import com .alipay .global .api .request .AlipayRequest ;
6+ import com .alipay .global .api .response .ams .pay .AlipayGetCardInfoResponse ;
7+ import com .alipay .global .api .response .ams .pay .AlipayPayResponse ;
8+ import lombok .Data ;
9+ import lombok .EqualsAndHashCode ;
10+
11+ @ Data
12+ @ EqualsAndHashCode (callSuper = true )
13+ public class AlipayGetCardInfoRequest extends AlipayRequest <AlipayGetCardInfoResponse > {
14+
15+ private String cardNo ;
16+
17+ private String paymentMethodRegion ;
18+
19+ private String cardBin ;
20+
21+
22+ public AlipayGetCardInfoRequest () {
23+ this .setPath (AntomPathConstants .CARD_INFO_PATH );
24+ }
25+
26+
27+
28+ @ Override
29+ public Class <AlipayGetCardInfoResponse > getResponseClass () {
30+ return AlipayGetCardInfoResponse .class ;
31+ }
32+ }
Original file line number Diff line number Diff line change 1+ package com .alipay .global .api .response .ams .pay ;
2+
3+ import com .alipay .global .api .model .ams .CardCategoryType ;
4+ import com .alipay .global .api .model .ams .FundingType ;
5+ import com .alipay .global .api .model .ams .Installment ;
6+ import com .alipay .global .api .response .AlipayResponse ;
7+ import lombok .Data ;
8+ import lombok .EqualsAndHashCode ;
9+
10+ @ Data
11+ @ EqualsAndHashCode (callSuper = true )
12+ public class AlipayGetCardInfoResponse extends AlipayResponse {
13+ private String cardBrand ;
14+ private String localCardBrand ;
15+ private String coBagedCardBrand ;
16+ private String issuingRegion ;
17+ private FundingType funding ;
18+ private CardCategoryType cardCategory ;
19+ private Boolean supportInstallment ;
20+ private Installment installment ;
21+ }
You can’t perform that action at this time.
0 commit comments