Skip to content

Commit 4e85adc

Browse files
authored
Merge pull request #2 from alipay/gol
Add Cashier Payment and Auto Debit support
2 parents 6b5e4b0 + 0b424db commit 4e85adc

File tree

67 files changed

+1616
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1616
-262
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Documentation
55

6-
Please see the [API docs](https://global.alipay.com/doc/ams) for the most up-to-date documentation.
6+
Please see the [API docs](https://global.alipay.com/docs/) for the most up-to-date documentation.
77

88
## Usage
99

@@ -17,7 +17,7 @@ alipayPublicKey=your_public_key_here
1717
gatewayUrl=the_alipay_gateway_endpoint
1818
```
1919

20-
Please see the [developer docs](https://global.alipay.com/doc/ams_upm/introduction) for help with getting the above information.
20+
Please see the [developer docs](https://global.alipay.com/developer) for help with getting the above information.
2121

2222
see `./ams-dotnet/src/example/Program.cs` for more demo usage.
2323

@@ -68,5 +68,6 @@ See [Digital signature](https://global.alipay.com/doc/ams/digital_signature) for
6868

6969
|Date|Version|Content|Backward compatible?|
7070
|---|---|---|---|
71+
|2020/11/13|1.1|Add Cashier Payment and Auto Debit support.|YES|
7172
|2020/10/10|1.0|v1 release|-|
7273

ams-dotnet/ams-dotnet.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
<Folder Include="src\com\alipay\ams\api\response\" />
1313
<Folder Include="src\com\alipay\ams\api\entities\" />
1414
<Folder Include="src\com\alipay\ams\util\" />
15+
<Folder Include="src\com\alipay\ams\api\request\users\" />
16+
<Folder Include="src\com\alipay\ams\api\response\users\" />
17+
<Folder Include="src\example\tests\" />
1518
</ItemGroup>
1619
</Project>

ams-dotnet/src/com/alipay/ams/api/DefaultAlipayClient.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public TAMSResponse Execute<TAMSResponse>(request.AMSRequest<TAMSResponse> requ
4444
requestMessage.Headers.Add(header.Key, header.Value);
4545
}
4646

47-
Console.WriteLine("Request --> " + body);
4847
requestMessage.Content = new ByteArrayContent(Encoding.UTF8.GetBytes(body));
4948
requestMessage.Content.Headers.Add("Content-Type", "application/json; charset=UTF-8");
5049

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using System.Text.Json.Serialization;
1+

22

33
namespace com.alipay.ams.api.entities
44
{
55
public class Amount
66
{
77
public Amount() { }
88

9-
[JsonPropertyNameAttribute("currency")]
9+
1010
public string Currency { get; set; }
1111

12-
[JsonPropertyNameAttribute("value")]
12+
1313
public string Value { get; set; }
1414

1515
public Amount(string currency, string amountInCents)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace com.alipay.ams.api.entities
6+
{
7+
public enum AuthenticationChannelType
8+
{
9+
EMAIL, SMS
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Text;
4+
5+
namespace com.alipay.ams.api.entities
6+
{
7+
public enum AuthenticationType
8+
{
9+
OTP
10+
}
11+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+

2+
3+
namespace com.alipay.ams.api.entities
4+
{
5+
public class ChallengeActionForm
6+
{
7+
8+
public ChallengeType ChallengeType { get; set; }
9+
10+
11+
public string ChallengeRenderValue { get; set; }
12+
13+
14+
public ChallengeTriggerSourceType ChallengeTriggerSourceType { get; set; }
15+
16+
17+
public string ExtendInfo { get; set; }
18+
}
19+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace com.alipay.ams.api.entities
2+
{
3+
public enum ChallengeTriggerSourceType
4+
{
5+
AMS, CHANNEL
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace com.alipay.ams.api.entities
2+
{
3+
public enum ChallengeType
4+
{
5+
SMS_OTP, PLAINTEXT_CARD_NO, CARD_EXPIRE_DATE
6+
}
7+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
3+
4+
namespace com.alipay.ams.api.entities
5+
{
6+
public class CodeDetail
7+
{
8+
9+
public CodeValueType CodeValueType { get; set; }
10+
11+
12+
public String CodeValue { get; set; }
13+
14+
15+
public DisplayType DisplayType { get; set; }
16+
}
17+
}

0 commit comments

Comments
 (0)