Skip to content

Commit 90b7bee

Browse files
authored
Merge pull request #11 from alipay/feature-250106
Feature 250106
2 parents ae779c7 + e449dbc commit 90b7bee

File tree

9 files changed

+86
-9
lines changed

9 files changed

+86
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Changelog## 2.0.6 - 2024-12-24* [#11](https://github.com/alipay/global-open-sdk-dotnet/pull/10) feature-241224 - CKP二期支持商户传入可选支付方式列表 - AMS独立绑卡支持MIT交易## 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.7 - 2025-01-06* [#11](https://github.com/alipay/global-open-sdk-dotnet/pull/11) feature-250106 - 订阅支付新增“更新接口”## 2.0.6 - 2024-12-24* [#11](https://github.com/alipay/global-open-sdk-dotnet/pull/10) feature-241224 - CKP二期支持商户传入可选支付方式列表 - AMS独立绑卡支持MIT交易## 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.6
4+
Releass ^2.0.7
55
Copyright:Ant financial services group
66
```
77

ams-dotnet/ams-dotnet.csproj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3+
34
<PropertyGroup>
5+
<PackageId>global-open-sdk-dotnet</PackageId>
6+
<Version>2.0.7</Version>
7+
<Authors>wanglele</Authors>
8+
<Company>antom</Company>
49
<OutputType>Exe</OutputType>
510
<TargetFramework>netcoreapp8</TargetFramework>
611
<RootNamespace>ams_dotnet</RootNamespace>
712
<BaseDirectory>src</BaseDirectory>
813
</PropertyGroup>
9-
14+
1015
<ItemGroup>
11-
<Folder Include="src\com\alipay\ams\util\" />
12-
<Folder Include="src\com\alipay\ams\api\request\users\" />
13-
<Folder Include="src\com\alipay\ams\api\response\users\" />
14-
<Folder Include="src\example\tests\" />
15-
<Folder Include="src\com\alipay\ams\api\request\merchant\" />
16-
<Folder Include="src\com\alipay\ams\api\response\merchant\" />
16+
<Folder Include="src\com\alipay\ams\util\*.cs" />
17+
<Folder Include="src\com\alipay\ams\api\request\**\*.cs" />
18+
<Folder Include="src\com\alipay\ams\api\response\**\*.cs" />
19+
<Folder Include="src\com\alipay\ams\api\request\*.cs" />
20+
<Folder Include="src\com\alipay\ams\api\response\*.cs" />
21+
<Folder Include="src\com\alipay\ams\api\entities\*.cs" />
22+
<Folder Include="src\example\tests\*.cs" />
23+
<Folder Include="src\example\demo\*.cs" />
1724
</ItemGroup>
1825
</Project>

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";

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ namespace com.alipay.ams.api.entities
22
{
33
public class Discount
44
{
5+
private string DiscountTag { get; set; }
56
public string DiscountName { get; set; }
67
public Amount SavingsAmount { get; set; }
8+
private Amount EstimateSavingsAmount { get; set; }
79
}
810
}
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)