Skip to content

Commit ad48153

Browse files
authored
Merge pull request #38 from alipay/feature_align_doc_fields
add AlipayAuthCreateSessionRequest/Response
2 parents eb2a142 + 1ad211e commit ad48153

File tree

4 files changed

+50
-2
lines changed

4 files changed

+50
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.35</version>
15+
<version>2.0.36</version>
1616
</dependency>
1717
```
1818

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<groupId>com.alipay.global.sdk</groupId>
55
<artifactId>global-open-sdk-java</artifactId>
66
<packaging>jar</packaging>
7-
<version>2.0.35</version>
7+
<version>2.0.36</version>
88
<name>global-open-sdk-java</name>
99
<url>https://github.com/alipay/global-open-sdk-java</url>
1010
<description>
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package com.alipay.global.api.request.ams.auth;
2+
3+
import com.alipay.global.api.model.ams.AgreementInfo;
4+
import com.alipay.global.api.model.ams.PaymentMethod;
5+
import com.alipay.global.api.model.ams.ProductCodeType;
6+
import com.alipay.global.api.model.ams.ScopeType;
7+
import com.alipay.global.api.model.constants.AntomPathConstants;
8+
import com.alipay.global.api.request.AlipayRequest;
9+
import com.alipay.global.api.response.ams.auth.AlipayAuthCreateSessionResponse;
10+
import lombok.Data;
11+
import lombok.EqualsAndHashCode;
12+
13+
@EqualsAndHashCode(callSuper = true)
14+
@Data
15+
public class AlipayAuthCreateSessionRequest extends AlipayRequest<AlipayAuthCreateSessionResponse> {
16+
17+
private ProductCodeType productCode;
18+
private AgreementInfo agreementInfo;
19+
private ScopeType[] scopes;
20+
private PaymentMethod paymentMethod;
21+
private String paymentRedirectUrl;
22+
23+
public AlipayAuthCreateSessionRequest() {
24+
this.setPath(AntomPathConstants.CREATE_SESSION_PATH);
25+
this.setProductCode(ProductCodeType.AGREEMENT_PAYMENT);
26+
}
27+
28+
@Override
29+
public Class<AlipayAuthCreateSessionResponse> getResponseClass() {
30+
return AlipayAuthCreateSessionResponse.class;
31+
}
32+
33+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.alipay.global.api.response.ams.auth;
2+
3+
import com.alipay.global.api.response.AlipayResponse;
4+
import lombok.Data;
5+
import lombok.EqualsAndHashCode;
6+
7+
@EqualsAndHashCode(callSuper = true)
8+
@Data
9+
public class AlipayAuthCreateSessionResponse extends AlipayResponse {
10+
11+
private String paymentSessionId;
12+
private String paymentSessionData;
13+
private String paymentSessionExpiryTime;
14+
15+
}

0 commit comments

Comments
 (0)