Skip to content

Commit da32d63

Browse files
Add type property to items in payment context. Payment Link Update. (#431)
* Add type property to items in payment context * Update card metadata response * Update payment link request and challenge indicator and exemption
1 parent 1430cfd commit da32d63

File tree

10 files changed

+59
-19
lines changed

10 files changed

+59
-19
lines changed

src/CheckoutSdk/Common/ChallengeIndicatorType.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,13 @@ public enum ChallengeIndicatorType
99

1010
[EnumMember(Value = "challenge_requested_mandate")]
1111
ChallengeRequestedMandate,
12-
13-
[EnumMember(Value = "data_share")]
14-
DataShare,
15-
16-
[EnumMember(Value = "low_value")]
17-
LowValue,
1812

1913
[EnumMember(Value = "no_challenge_requested")]
2014
NoChallengeRequested,
2115

2216
[EnumMember(Value = "no_preference")]
2317
NoPreference,
2418

25-
[EnumMember(Value = "transaction_risk_assessment")]
26-
TransactionRiskAssessment,
27-
28-
[EnumMember(Value = "trusted_listing")]
29-
TrustedListing,
30-
31-
[EnumMember(Value = "trusted_listing_prompt")]
32-
TrustedListingPrompt
19+
3320
}
3421
}

src/CheckoutSdk/Common/Exemption.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public enum Exemption
2828
TransactionRiskAssessment,
2929

3030
[EnumMember(Value = "trusted_listing")]
31-
TrustedListing
31+
TrustedListing,
32+
33+
[EnumMember(Value = "trusted_listing_prompt")]
34+
TrustedListingPrompt
3235
}
3336
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Checkout.Metadata.Card
2+
{
3+
public class AccountFundingTransaction
4+
{
5+
public AftIndicator AftIndicator { get; set; }
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Checkout.Metadata.Card
2+
{
3+
public class AftIndicator
4+
{
5+
public PullFunds PullFunds { get; set; }
6+
}
7+
}

src/CheckoutSdk/Metadata/Card/CardMetadataResponse.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,7 @@ public class CardMetadataResponse : HttpMetadata
4040
public CardMetadataPayouts CardPayouts { get; set; }
4141

4242
public SchemeMetadata SchemeMetadata { get; set; }
43+
44+
public AccountFundingTransaction AccountFundingTransaction { get; set; }
4345
}
4446
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Checkout.Metadata.Card
2+
{
3+
public class PullFunds
4+
{
5+
public bool? CrossBorder { get; set; }
6+
7+
public bool? Domestic { get; set; }
8+
}
9+
}
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
using System.Collections.Generic;
2+
13
namespace Checkout.Metadata.Card
24
{
35
public class SchemeMetadata
46
{
5-
public PinlessDebitSchemeMetadata Accel { get; set; }
6-
public PinlessDebitSchemeMetadata Pulse { get; set; }
7-
public PinlessDebitSchemeMetadata Nyce { get; set; }
8-
public PinlessDebitSchemeMetadata Star { get; set; }
7+
public IList<PinlessDebitSchemeMetadata> Accel { get; set; }
8+
public IList<PinlessDebitSchemeMetadata> Pulse { get; set; }
9+
public IList<PinlessDebitSchemeMetadata> Nyce { get; set; }
10+
public IList<PinlessDebitSchemeMetadata> Star { get; set; }
911
}
1012
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System.Runtime.Serialization;
2+
3+
namespace Checkout.Payments.Contexts
4+
{
5+
public enum PaymentContextItemType
6+
{
7+
[EnumMember(Value = "physical")]
8+
Physical,
9+
10+
[EnumMember(Value = "digital")]
11+
Digital,
12+
}
13+
}

src/CheckoutSdk/Payments/Contexts/PaymentContextsItems.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace Checkout.Payments.Contexts
22
{
33
public class PaymentContextsItems
44
{
5+
public PaymentContextItemType? Type { get; set; }
56
public string Name { get; set; }
67

78
public int Quantity { get; set; }

src/CheckoutSdk/Payments/Links/PaymentLinkRequest.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
using Checkout.Common;
2+
using Checkout.Payments.Request;
3+
using Checkout.Payments.Sender;
24
using Newtonsoft.Json;
35
using System;
46
using System.Collections.Generic;
7+
using Product = Checkout.Common.Product;
58

69
namespace Checkout.Payments.Links
710
{
@@ -35,6 +38,10 @@ public class PaymentLinkRequest
3538

3639
public RiskRequest Risk { get; set; }
3740

41+
public PaymentRetryRequest CustomerRetry { get; set; }
42+
43+
public PaymentSender Sender { get; set; }
44+
3845
public string ReturnUrl { get; set; }
3946

4047
public string Locale { get; set; }
@@ -50,6 +57,8 @@ public class PaymentLinkRequest
5057
public BillingDescriptor BillingDescriptor { get; set; }
5158

5259
public IList<PaymentSourceType> AllowPaymentMethods { get; set; }
60+
61+
public IList<PaymentSourceType> DisabledPaymentMethods { get; set; }
5362

5463
//Not available on Previous
5564

0 commit comments

Comments
 (0)