Skip to content

Commit

Permalink
Add type property to items in payment context. Payment Link Update. (#…
Browse files Browse the repository at this point in the history
…431)

* Add type property to items in payment context

* Update card metadata response

* Update payment link request and challenge indicator and exemption
  • Loading branch information
armando-rodriguez-cko authored Oct 17, 2024
1 parent 1430cfd commit da32d63
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 19 deletions.
15 changes: 1 addition & 14 deletions src/CheckoutSdk/Common/ChallengeIndicatorType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,13 @@ public enum ChallengeIndicatorType

[EnumMember(Value = "challenge_requested_mandate")]
ChallengeRequestedMandate,

[EnumMember(Value = "data_share")]
DataShare,

[EnumMember(Value = "low_value")]
LowValue,

[EnumMember(Value = "no_challenge_requested")]
NoChallengeRequested,

[EnumMember(Value = "no_preference")]
NoPreference,

[EnumMember(Value = "transaction_risk_assessment")]
TransactionRiskAssessment,

[EnumMember(Value = "trusted_listing")]
TrustedListing,

[EnumMember(Value = "trusted_listing_prompt")]
TrustedListingPrompt

}
}
5 changes: 4 additions & 1 deletion src/CheckoutSdk/Common/Exemption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public enum Exemption
TransactionRiskAssessment,

[EnumMember(Value = "trusted_listing")]
TrustedListing
TrustedListing,

[EnumMember(Value = "trusted_listing_prompt")]
TrustedListingPrompt
}
}
7 changes: 7 additions & 0 deletions src/CheckoutSdk/Metadata/Card/AccountFundingTransaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Checkout.Metadata.Card
{
public class AccountFundingTransaction
{
public AftIndicator AftIndicator { get; set; }
}
}
7 changes: 7 additions & 0 deletions src/CheckoutSdk/Metadata/Card/AftIndicator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace Checkout.Metadata.Card
{
public class AftIndicator
{
public PullFunds PullFunds { get; set; }
}
}
2 changes: 2 additions & 0 deletions src/CheckoutSdk/Metadata/Card/CardMetadataResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ public class CardMetadataResponse : HttpMetadata
public CardMetadataPayouts CardPayouts { get; set; }

public SchemeMetadata SchemeMetadata { get; set; }

public AccountFundingTransaction AccountFundingTransaction { get; set; }
}
}
9 changes: 9 additions & 0 deletions src/CheckoutSdk/Metadata/Card/PullFunds.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace Checkout.Metadata.Card
{
public class PullFunds
{
public bool? CrossBorder { get; set; }

public bool? Domestic { get; set; }
}
}
10 changes: 6 additions & 4 deletions src/CheckoutSdk/Metadata/Card/SchemeMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System.Collections.Generic;

namespace Checkout.Metadata.Card
{
public class SchemeMetadata
{
public PinlessDebitSchemeMetadata Accel { get; set; }
public PinlessDebitSchemeMetadata Pulse { get; set; }
public PinlessDebitSchemeMetadata Nyce { get; set; }
public PinlessDebitSchemeMetadata Star { get; set; }
public IList<PinlessDebitSchemeMetadata> Accel { get; set; }
public IList<PinlessDebitSchemeMetadata> Pulse { get; set; }
public IList<PinlessDebitSchemeMetadata> Nyce { get; set; }
public IList<PinlessDebitSchemeMetadata> Star { get; set; }
}
}
13 changes: 13 additions & 0 deletions src/CheckoutSdk/Payments/Contexts/PaymentContextItemType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System.Runtime.Serialization;

namespace Checkout.Payments.Contexts
{
public enum PaymentContextItemType
{
[EnumMember(Value = "physical")]
Physical,

[EnumMember(Value = "digital")]
Digital,
}
}
1 change: 1 addition & 0 deletions src/CheckoutSdk/Payments/Contexts/PaymentContextsItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ namespace Checkout.Payments.Contexts
{
public class PaymentContextsItems
{
public PaymentContextItemType? Type { get; set; }
public string Name { get; set; }

public int Quantity { get; set; }
Expand Down
9 changes: 9 additions & 0 deletions src/CheckoutSdk/Payments/Links/PaymentLinkRequest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
using Checkout.Common;
using Checkout.Payments.Request;
using Checkout.Payments.Sender;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using Product = Checkout.Common.Product;

namespace Checkout.Payments.Links
{
Expand Down Expand Up @@ -35,6 +38,10 @@ public class PaymentLinkRequest

public RiskRequest Risk { get; set; }

public PaymentRetryRequest CustomerRetry { get; set; }

public PaymentSender Sender { get; set; }

public string ReturnUrl { get; set; }

public string Locale { get; set; }
Expand All @@ -50,6 +57,8 @@ public class PaymentLinkRequest
public BillingDescriptor BillingDescriptor { get; set; }

public IList<PaymentSourceType> AllowPaymentMethods { get; set; }

public IList<PaymentSourceType> DisabledPaymentMethods { get; set; }

//Not available on Previous

Expand Down

0 comments on commit da32d63

Please sign in to comment.