Skip to content

Commit 7f1ea82

Browse files
author
guangling.zgl
committed
Remove JsonPropertyNameAttribute
1 parent fddb972 commit 7f1ea82

Some content is hidden

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

42 files changed

+249
-252
lines changed

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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
using System.Text.Json.Serialization;
1+

22

33
namespace com.alipay.ams.api.entities
44
{
55
public class ChallengeActionForm
66
{
7-
[JsonPropertyNameAttribute("challengeType")]
7+
88
public ChallengeType ChallengeType { get; set; }
99

10-
[JsonPropertyNameAttribute("challengeRenderValue")]
10+
1111
public string ChallengeRenderValue { get; set; }
1212

13-
[JsonPropertyNameAttribute("challengeTriggerSourceType")]
13+
1414
public ChallengeTriggerSourceType ChallengeTriggerSourceType { get; set; }
1515

16-
[JsonPropertyNameAttribute("extendInfo")]
16+
1717
public string ExtendInfo { get; set; }
1818
}
1919
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
using System;
2-
using System.Text.Json.Serialization;
2+
33

44
namespace com.alipay.ams.api.entities
55
{
66
public class CodeDetail
77
{
8-
[JsonPropertyNameAttribute("codeValueType")]
8+
99
public CodeValueType CodeValueType { get; set; }
1010

11-
[JsonPropertyNameAttribute("codeValue")]
11+
1212
public String CodeValue { get; set; }
1313

14-
[JsonPropertyNameAttribute("displayType")]
14+
1515
public DisplayType DisplayType { get; set; }
1616
}
1717
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
using System.Text.Json.Serialization;
1+

22

33
namespace com.alipay.ams.api.entities
44
{
55
public class CreditPayPlan
66
{
7-
[JsonPropertyNameAttribute("installmentNum")]
7+
88
public int InstallmentNum { get; set; }
99

10-
[JsonPropertyNameAttribute("creditPayFeeType")]
10+
1111
public CreditPayFeeType CreditPayFeeType { get; set; }
1212

13-
[JsonPropertyNameAttribute("feePercentage")]
13+
1414
public int FeePercentage { get; set; }
1515
}
1616
}
Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using System;
2-
using System.Text.Json.Serialization;
1+

32

43
namespace com.alipay.ams.api.entities
54
{
@@ -9,33 +8,28 @@ public Env()
98
{
109
}
1110

12-
[JsonPropertyNameAttribute("storeTerminalId")]
11+
1312
public string StoreTerminalId { get; internal set; }
1413

15-
[JsonPropertyNameAttribute("storeTerminalRequestTime")]
14+
1615
public string StoreTerminalRequestTime { get; internal set; }
1716

18-
[JsonConverter(typeof(JsonStringEnumConverter))]
19-
[JsonPropertyNameAttribute("terminalType")]
2017
public TerminalType TerminalType { get; set; }
2118

22-
[JsonPropertyNameAttribute("userAgent")]
2319
public string UserAgent { get; set; }
2420

25-
[JsonConverter(typeof(JsonStringEnumConverter))]
26-
[JsonPropertyNameAttribute("osType")]
2721
public OsType OsType { get; set; }
2822

29-
[JsonPropertyNameAttribute("deviceTokenId")]
23+
3024
public string DeviceTokenId { get; set; }
3125

32-
[JsonPropertyNameAttribute("clientIp")]
26+
3327
public string ClientIp { get; set; }
3428

35-
[JsonPropertyNameAttribute("cookieId")]
29+
3630
public string CookieId { get; set; }
3731

38-
[JsonPropertyNameAttribute("extendInfo")]
32+
3933
public string ExtendInfo { get; set; }
4034
}
4135
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System;
2-
using System.Text.Json.Serialization;
2+
33

44
namespace com.alipay.ams.api.entities
55
{
@@ -14,16 +14,16 @@ public Merchant(string merchantName, string referenceMerchantId, string merchant
1414
this.Store = store;
1515
}
1616

17-
[JsonPropertyNameAttribute("referenceMerchantId")]
17+
1818
public string ReferenceMerchantId { get; internal set; }
1919

20-
[JsonPropertyNameAttribute("merchantMCC")]
20+
2121
public string MerchantMCC { get; internal set; }
2222

23-
[JsonPropertyNameAttribute("merchantName")]
23+
2424
public string MerchantName { get; internal set; }
2525

26-
[JsonPropertyNameAttribute("store")]
26+
2727
public Store Store { get; internal set; }
2828
}
2929
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
using System.Text.Json.Serialization;
1+

22

33
namespace com.alipay.ams.api.entities
44
{
55
public class Order
66
{
7-
[JsonPropertyNameAttribute("referenceOrderId")]
7+
88
public string ReferenceOrderId { get; set; }
99

10-
[JsonPropertyNameAttribute("orderDescription")]
10+
1111
public string OrderDescription { get; set; }
1212

13-
[JsonPropertyNameAttribute("orderAmount")]
13+
1414
public Amount OrderAmount { get; set; }
1515

16-
[JsonPropertyNameAttribute("merchant")]
16+
1717
public Merchant Merchant { get; set; }
1818

19-
[JsonPropertyNameAttribute("env")]
19+
2020
public Env Env { get; set; }
2121
}
2222
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text;
4-
using System.Text.Json.Serialization;
4+
55

66
namespace com.alipay.ams.api.entities
77
{
88
public class OrderCodeForm
99
{
10-
[JsonPropertyNameAttribute("paymentMethodType")]
10+
1111
public String PaymentMethodType { get; set; }
1212

13-
[JsonPropertyNameAttribute("expireTime")]
13+
1414
public String ExpireTime { get; set; }
1515

16-
[JsonPropertyNameAttribute("codeDetails")]
16+
1717
public List<CodeDetail> CodeDetails { get; set; }
1818

19-
[JsonPropertyNameAttribute("extendInfo")]
19+
2020
public String ExtendInfo { get; set; }
2121
}
2222
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
using System;
2-
using System.Text.Json.Serialization;
2+
33

44
namespace com.alipay.ams.api.entities
55
{
66
public class PaymentFactor
77
{
8-
[JsonPropertyNameAttribute("isPaymentEvaluation")]
8+
99
public Boolean IsPaymentEvaluation { get; set; }
1010

11-
[JsonPropertyNameAttribute("inStorePaymentScenario")]
11+
1212
public InStorePaymentScenario InStorePaymentScenario { get; set; }
1313
}
1414
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Text;
4-
using System.Text.Json.Serialization;
4+
55

66
namespace com.alipay.ams.api.entities
77
{
@@ -12,13 +12,13 @@ public PaymentMethod(String paymentMethodType)
1212
this.PaymentMethodType = paymentMethodType;
1313
}
1414

15-
[JsonPropertyNameAttribute("paymentMethodType")]
15+
1616
public String PaymentMethodType { get; set; }
17-
[JsonPropertyNameAttribute("paymentMethodId")]
17+
1818
public String PaymentMethodId { get; set; }
19-
[JsonPropertyNameAttribute("paymentMethodMetaData")]
19+
2020
public String PaymentMethodMetaData { get; set; }
21-
[JsonPropertyNameAttribute("customerId")]
21+
2222
public String CustomerId { get; set; }
2323
}
2424
}

0 commit comments

Comments
 (0)