Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type property to items in payment context. Payment Link Update. #431

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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; }
armando-rodriguez-cko marked this conversation as resolved.
Show resolved Hide resolved
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
Loading