Skip to content

Commit 9f1cac1

Browse files
committed
订阅支付新增“更新接口”
1 parent 9be8070 commit 9f1cac1

File tree

7 files changed

+70
-2
lines changed

7 files changed

+70
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Changelog## 2.0.5 - 2024-12-16* [#10](https://github.com/alipay/global-open-sdk-dotnet/pull/10) feature-241216 - RDR拒付通知优化通用能力变更 - Antom新增ApplePay支付方式## 2.0.4 - 2024-12-02* [#9](https://github.com/alipay/global-open-sdk-dotnet/pull/9) feature-241202 - update AlipayDisputeNotify - update AlipayPayQueryResponse## 2.0.3 - 2024-11-25* [#8](https://github.com/alipay/global-open-sdk-dotnet/pull/8) feature-241125 - update AlipayPayResultNotify - update AlipayPayQueryRequest## 2.0.3 - 2024-11-25* [#7](https://github.com/alipay/global-open-sdk-dotnet/pull/7) feature-241125 - update Leg## 2.0.2 - 2024-11-04* [#6](https://github.com/alipay/global-open-sdk-dotnet/pull/6) feature-notify - add notify## 2.0.1 - 2024-10-23 * [#5](https://github.com/alipay/global-open-sdk-dotnet/pull/5) feature-p2 - add MARKETPLACE - add vaulting - add Dispute - add risk - add Notify - add MARKETPLACE_demo - add subscription_demo - add vaulting_demo - add Dispute_demo## 2.0.0 - 2024-09-04* [#4](https://github.com/alipay/global-open-sdk-dotnet/pull/4) Init object library * Add pay - request response * Add auth - request response * Add customs - request response * Add subscription - request response * Add example - auth customs pay * Add Changelog## 1.0.0 - 2021-08-02* Init object library
1+
# Changelog## 2.0.6 - 2025-01-06* [#11](https://github.com/alipay/global-open-sdk-dotnet/pull/11) feature-250106 - 订阅支付新增“更新接口”## 2.0.5 - 2024-12-16* [#10](https://github.com/alipay/global-open-sdk-dotnet/pull/10) feature-241216 - RDR拒付通知优化通用能力变更 - Antom新增ApplePay支付方式## 2.0.4 - 2024-12-02* [#9](https://github.com/alipay/global-open-sdk-dotnet/pull/9) feature-241202 - update AlipayDisputeNotify - update AlipayPayQueryResponse## 2.0.3 - 2024-11-25* [#8](https://github.com/alipay/global-open-sdk-dotnet/pull/8) feature-241125 - update AlipayPayResultNotify - update AlipayPayQueryRequest## 2.0.3 - 2024-11-25* [#7](https://github.com/alipay/global-open-sdk-dotnet/pull/7) feature-241125 - update Leg## 2.0.2 - 2024-11-04* [#6](https://github.com/alipay/global-open-sdk-dotnet/pull/6) feature-notify - add notify## 2.0.1 - 2024-10-23 * [#5](https://github.com/alipay/global-open-sdk-dotnet/pull/5) feature-p2 - add MARKETPLACE - add vaulting - add Dispute - add risk - add Notify - add MARKETPLACE_demo - add subscription_demo - add vaulting_demo - add Dispute_demo## 2.0.0 - 2024-09-04* [#4](https://github.com/alipay/global-open-sdk-dotnet/pull/4) Init object library * Add pay - request response * Add auth - request response * Add customs - request response * Add subscription - request response * Add example - auth customs pay * Add Changelog## 1.0.0 - 2021-08-02* Init object library

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Alipay AMS(Alipay Merchant Services) C# Bindings
22
```
33
Language:C#
4-
Releass ^2.0.5
4+
Releass ^2.0.6
55
Copyright:Ant financial services group
66
```
77

ams-dotnet/src/com/alipay/ams/api/entities/AntomPathConstants.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public static class AntomPathConstants
1919
public const string SUBSCRIPTION_CREATE_PATH = "/ams/api/v1/subscriptions/create";
2020
public const string SUBSCRIPTION_CHANGE_PATH = "/ams/api/v1/subscriptions/change";
2121
public const string SUBSCRIPTION_CANCEL_PATH = "/ams/api/v1/subscriptions/cancel";
22+
public const string SUBSCRIPTION_UPDATE_PATH = "/ams/api/v1/subscriptions/update";
2223
public const string ACCEPT_DISPUTE_PATH = "/ams/api/v1/payments/acceptDispute";
2324
public const string SUPPLY_DEFENCE_DOC_PATH = "/ams/api/v1/payments/supplyDefenseDocument";
2425
public const string DOWNLOAD_DISPUTE_EVIDENCE_PATH = "/ams/api/v1/payments/downloadDisputeEvidence";
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
3+
using com.alipay.ams.api.entities;
4+
using com.alipay.ams.api.response.auth;
5+
6+
namespace com.alipay.ams.api.request.auth;
7+
8+
public class AlipayAuthCreateSessionRequest : AMSRequest<AlipayAuthCreateSessionResponse>
9+
{
10+
public ProductCodeType ProductCode { get; set; }
11+
public AgreementInfo AgreementInfo { get; set; }
12+
public ScopeType[] Scopes { get; set; }
13+
public PaymentMethod PaymentMethod { get; set; }
14+
public string PaymentRedirectUrl { get; set; }
15+
16+
public override string GetRequestURI()
17+
{
18+
return AntomPathConstants.CREATE_SESSION_PATH;
19+
}
20+
21+
public override void validate()
22+
{
23+
}
24+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using ams_dotnet.com.alipay.ams.api.response.subscription;
2+
using com.alipay.ams.api.entities;
3+
using com.alipay.ams.api.request;
4+
5+
namespace ams_dotnet.com.alipay.ams.api.request.subscription;
6+
7+
public class AlipaySubscriptionUpdateRequest : AMSRequest<AlipaySubscriptionUpdateResponse>
8+
{
9+
public string SubscriptionUpdateRequestId { get; set; }
10+
public string SubscriptionId { get; set; }
11+
public string SubscriptionDescription { get; set; }
12+
public PeriodRule PeriodRule { get; set; }
13+
public Amount PaymentAmount { get; set; }
14+
public string SubscriptionEndTime { get; set; }
15+
public OrderInfo OrderInfo { get; set; }
16+
17+
18+
public override string GetRequestURI()
19+
{
20+
return AntomPathConstants.SUBSCRIPTION_UPDATE_PATH;
21+
}
22+
23+
public override void validate()
24+
{
25+
26+
}
27+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
namespace com.alipay.ams.api.response.auth;
2+
3+
public class AlipayAuthCreateSessionResponse : AMSResponse
4+
{
5+
public string PaymentSessionId { get; set; }
6+
public string PaymentSessionData { get; set; }
7+
public string PaymentSessionExpiryTime { get; set; }
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using com.alipay.ams.api.response;
2+
3+
namespace ams_dotnet.com.alipay.ams.api.response.subscription;
4+
5+
public class AlipaySubscriptionUpdateResponse : AMSResponse
6+
{
7+
8+
}

0 commit comments

Comments
 (0)