diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/AccountInfo.cs b/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/AccountInfo.cs index fdbf2e6a..ba555f50 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/AccountInfo.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/AccountInfo.cs @@ -13,7 +13,7 @@ public class AccountInfo /// [Optional] /// [ 0 .. 9999 ] /// - public double PurchaseCount { get; set; } + public long? PurchaseCount { get; set; } /// /// The length of time that the payment account was enrolled in the cardholder's account. @@ -26,7 +26,7 @@ public class AccountInfo /// [Optional] /// [ 0 .. 999 ] /// - public double AddCardAttempts { get; set; } + public long? AddCardAttempts { get; set; } /// /// Indicates when the shipping address used for this transaction was first used. @@ -38,13 +38,13 @@ public class AccountInfo /// Indicates if the Cardholder Name on the account is identical to the shipping Name used for this transaction. /// [Optional] /// - public bool AccountNameMatchesShippingName { get; set; } + public bool? AccountNameMatchesShippingName { get; set; } /// /// Indicates whether suspicious activity on the cardholder account has been observed. /// [Optional] /// - public bool SuspiciousAccountActivity { get; set; } + public bool? SuspiciousAccountActivity { get; set; } /// /// The number of transactions (successful and abandoned) for the cardholder account across all payment accounts @@ -52,7 +52,7 @@ public class AccountInfo /// [Optional] /// [ 0 .. 999 ] /// - public double TransactionsToday { get; set; } + public long? TransactionsToday { get; set; } /// /// [DEPRECATED] @@ -77,7 +77,7 @@ public class AccountInfo /// [Optional] /// /// - public DateTime AccountChange { get; set; } + public DateTime? AccountChange { get; set; } /// /// The amount of time since the cardholder’s account information with the 3DS Requestor was last changed. @@ -94,7 +94,7 @@ public class AccountInfo /// [Optional] /// /// - public DateTime AccountDate { get; set; } + public DateTime? AccountDate { get; set; } /// /// The UTC date and time the cardholder’s account with the 3DS Requestor was last reset or had a password @@ -102,7 +102,7 @@ public class AccountInfo /// [Optional] /// /// - public DateTime AccountPasswordChange { get; set; } + public DateTime? AccountPasswordChange { get; set; } /// /// The amount of time since the cardholder’s account with the 3DS Requestor was last reset or had a password @@ -119,7 +119,7 @@ public class AccountInfo /// <= 3 /// <= 999 /// - public int TransactionsPerYear { get; set; } + public long? TransactionsPerYear { get; set; } /// /// The UTC date and time the payment account was enrolled in the cardholder’s account with the 3DS Requestor, @@ -127,7 +127,7 @@ public class AccountInfo /// [Optional] /// /// - public DateTime PaymentAccountAge { get; set; } + public DateTime? PaymentAccountAge { get; set; } /// /// The UTC date and time the shipping address used for the transaction was first used with the 3DS Requestor, @@ -135,7 +135,7 @@ public class AccountInfo /// [Optional] /// /// - public DateTime ShippingAddressUsage { get; set; } + public DateTime? ShippingAddressUsage { get; set; } /// /// The type of account, in the case of a card product with multiple accounts. diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/ThreeDsRequestorAuthenticationInfo/ThreeDsRequestorAuthenticationInfo.cs b/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/ThreeDsRequestorAuthenticationInfo/ThreeDsRequestorAuthenticationInfo.cs index 2fb06ec1..75d1cfba 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/ThreeDsRequestorAuthenticationInfo/ThreeDsRequestorAuthenticationInfo.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/AccountInfo/ThreeDsRequestorAuthenticationInfo/ThreeDsRequestorAuthenticationInfo.cs @@ -19,7 +19,7 @@ public class ThreeDsRequestorAuthenticationInfo /// [Optional] /// /// - public DateTime ThreeDsReqAuthTimestamp { get; set; } + public DateTime? ThreeDsReqAuthTimestamp { get; set; } /// /// Data that documents and supports a specific authentication process. diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Installment/Installment.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Installment/Installment.cs index 5817dd44..0f0fc474 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Installment/Installment.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Installment/Installment.cs @@ -17,14 +17,14 @@ public class Installment public int NumberOfPayments { get; set; } /// - /// Default: 1 Indicates the minimum number of days between authorisations. If no value is specified for an + /// Default: 1 Indicates the minimum number of days between authorisations. If no value is specified for an /// installment authentication type the default value will be used. /// [Optional] /// - public int DaysBetweenPayments { get; set; } = 1; + public int? DaysBetweenPayments { get; set; } = 1; /// - /// Default: 99991231 Date after which no further authorisations are performed in the format yyyyMMdd. If no + /// Default: 99991231 Date after which no further authorisations are performed in the format yyyyMMdd. If no /// value is specified for an installment authentication type the default value will be used. /// [Optional] /// diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/MerchantRiskInfo/MerchantRiskInfo.cs b/src/CheckoutSdk/Authentication/Standalone/Common/MerchantRiskInfo/MerchantRiskInfo.cs index a5bd27d9..70167c91 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/MerchantRiskInfo/MerchantRiskInfo.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/MerchantRiskInfo/MerchantRiskInfo.cs @@ -1,3 +1,4 @@ +using Checkout.Common; using System; namespace Checkout.Authentication.Standalone.Common.MerchantRiskInfo @@ -26,13 +27,13 @@ public class MerchantRiskInfo /// date. /// [Optional] /// - public bool IsPreorder { get; set; } + public bool? IsPreorder { get; set; } /// /// Indicates whether the cardholder is reordering previously purchased merchandise. /// [Optional] /// - public bool IsReorder { get; set; } + public bool? IsReorder { get; set; } /// /// Indicates the shipping method chosen for the transaction. Please choose an option that accurately describes @@ -59,7 +60,7 @@ public class MerchantRiskInfo /// [Optional] /// /// - public DateTime PreOrderDate { get; set; } + public DateTime? PreOrderDate { get; set; } /// /// The total purchase amount, in major units. For example, the major unit amount for a gift card purchase of @@ -75,7 +76,7 @@ public class MerchantRiskInfo /// [Optional] /// 3 characters /// - public string GiftCardCurrency { get; set; } + public Currency? GiftCardCurrency { get; set; } /// /// The total number of individual prepaid cards, gift cards, or gift codes purchased. Only applicable for diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Recurring/Recurring.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Recurring/Recurring.cs index bd5cb6ac..abeabb6e 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Recurring/Recurring.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Recurring/Recurring.cs @@ -8,14 +8,14 @@ namespace Checkout.Authentication.Standalone.Common.Recurring public class Recurring { /// - /// Default: 1 Indicates the minimum number of days between authorisations. If no value is specified for a + /// Default: 1 Indicates the minimum number of days between authorisations. If no value is specified for a /// recurring authentication type the default value will be used. /// [Optional] /// - public int DaysBetweenPayments { get; set; } = 1; + public int? DaysBetweenPayments { get; set; } = 1; /// - /// Default: 99991231 Date after which no further authorisations are performed in the format yyyyMMdd. If no + /// Default: 99991231 Date after which no further authorisations are performed in the format yyyyMMdd. If no /// value is specified for a recurring authentication type the default value will be used. /// [Optional] /// diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Card/Metadata/Metadata.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Card/Metadata/Metadata.cs index f54b0154..f7048472 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Card/Metadata/Metadata.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Card/Metadata/Metadata.cs @@ -1,3 +1,5 @@ +using Checkout.Common; + namespace Checkout.Authentication.Standalone.Common.Responses.Card.Metadata { /// @@ -28,7 +30,7 @@ public class Metadata /// The two letter alpha country code of the card issuer. /// [Optional] /// - public string IssuerCountry { get; set; } + public CountryCode? IssuerCountry { get; set; } /// /// The issuer/card scheme product identifier. diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Certificates/Certificates.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Certificates/Certificates.cs index 82d4f907..79314568 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Certificates/Certificates.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Certificates/Certificates.cs @@ -31,6 +31,6 @@ public class Certificates /// server (ACS). Each array element is a Base64 URL-encoded DER-encoded X.509 certificate. /// [Optional] /// - public IList CaPublicAll { get; set; } + public IList CaPublicAll { get; set; } } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/GoogleSpa/Token/Token.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/GoogleSpa/Token/Token.cs index f0100368..2c4a79f4 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/GoogleSpa/Token/Token.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/GoogleSpa/Token/Token.cs @@ -16,12 +16,12 @@ public class Token /// Expiry month of the token /// [Optional] /// - public double ExpiryMonth { get; set; } + public int? ExpiryMonth { get; set; } /// /// Expiry year of the token /// [Optional] /// - public double ExpiryYear { get; set; } + public int? ExpiryYear { get; set; } } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Optimization/Optimization.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Optimization/Optimization.cs index bf927fe1..34ac7a1d 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Optimization/Optimization.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/Optimization/Optimization.cs @@ -12,7 +12,7 @@ public class Optimization /// Indicates if any optimization has been applied /// [Optional] /// - public bool Optimized { get; set; } + public bool? Optimized { get; set; } /// /// The optimization framework applied diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/GoogleSpa/GoogleSpa.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/GoogleSpa/GoogleSpa.cs index a82ee2c9..b3a42c02 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/GoogleSpa/GoogleSpa.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/GoogleSpa/GoogleSpa.cs @@ -17,6 +17,6 @@ public class GoogleSpa /// Reason(s) why processing the experience was unsuccessful. /// [Optional] /// - public IList Reason { get; set; } + public IList Reason { get; set; } } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/Threeds/Threeds.cs b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/Threeds/Threeds.cs index b203c029..d57d168f 100644 --- a/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/Threeds/Threeds.cs +++ b/src/CheckoutSdk/Authentication/Standalone/Common/Responses/PreferredExperiences/Threeds/Threeds.cs @@ -17,6 +17,6 @@ public class Threeds /// Reason(s) why processing the experience was unsuccessful. /// [Optional] /// - public IList Reason { get; set; } + public IList Reason { get; set; } } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/GETSessionsId/Responses/GetSessionDetailsResponseOk/GetSessionDetailsResponseOk.cs b/src/CheckoutSdk/Authentication/Standalone/GETSessionsId/Responses/GetSessionDetailsResponseOk/GetSessionDetailsResponseOk.cs index 5f18f441..a5f06eec 100644 --- a/src/CheckoutSdk/Authentication/Standalone/GETSessionsId/Responses/GetSessionDetailsResponseOk/GetSessionDetailsResponseOk.cs +++ b/src/CheckoutSdk/Authentication/Standalone/GETSessionsId/Responses/GetSessionDetailsResponseOk/GetSessionDetailsResponseOk.cs @@ -15,6 +15,7 @@ using Checkout.Authentication.Standalone.Common.Responses.SchemeInfo; using Checkout.Authentication.Standalone.Common.Responses.Threeds; using Checkout.Common; +using Newtonsoft.Json; using System; using System.Collections.Generic; using ChallengeIndicatorType = Checkout.Authentication.Standalone.Common.Responses.ChallengeIndicatorType; @@ -55,7 +56,7 @@ public class GetSessionDetailsResponseOk : Resource /// [Required] /// [ 0 .. 9223372036854776000 ] /// - public int Amount { get; set; } + public long Amount { get; set; } /// /// The three-letter ISO currency code @@ -64,14 +65,14 @@ public class GetSessionDetailsResponseOk : Resource public Currency? Currency { get; set; } /// - /// Default: "regular" Indicates the type of payment this session is for. Please note the spelling of + /// Default: "regular" Indicates the type of payment this session is for. Please note the spelling of /// installment consists of two ls. /// [Required] /// public AuthenticationType AuthenticationType { get; set; } = AuthenticationType.Regular; /// - /// Default: "payment" Indicates the category of the authentication request + /// Default: "payment" Indicates the category of the authentication request /// [Required] /// public AuthenticationCategoryType AuthenticationCategory { get; set; } = AuthenticationCategoryType.Payment; @@ -90,7 +91,7 @@ public class GetSessionDetailsResponseOk : Resource public string ProtocolVersion { get; set; } /// - /// Default: "no_preference" Indicates the preference for whether or not a 3DS challenge should be performed. + /// Default: "no_preference" Indicates the preference for whether or not a 3DS challenge should be performed. /// The customer’s bank has the final say on whether or not the customer receives the challenge /// [Required] /// @@ -110,14 +111,14 @@ public class GetSessionDetailsResponseOk : Resource /// Indicates whether this session has been completed /// [Optional] /// - public bool Completed { get; set; } + public bool? Completed { get; set; } /// /// Indicates whether this session involved a challenge. This will only be set after communication with the /// scheme is finished. /// [Optional] /// - public bool Challenged { get; set; } + public bool? Challenged { get; set; } /// /// Public certificates specific to a Directory Server (DS) for encrypting device data and verifying ACS signed @@ -142,7 +143,7 @@ public class GetSessionDetailsResponseOk : Resource /// Whether the authentication was successful. This will only be set if the Session is in a final state /// [Optional] /// - public bool Approved { get; set; } + public bool? Approved { get; set; } /// /// Additional information about the Cardholder's account. @@ -165,11 +166,11 @@ public class GetSessionDetailsResponseOk : Resource public string Reference { get; set; } /// - /// Default: "goods_service" Identifies the type of transaction being authenticated + /// Default: "goods_service" Identifies the type of transaction being authenticated /// [Optional] /// <= 50 /// - public TransactionType TransactionType { get; set; } = TransactionType.GoodsService; + public TransactionType? TransactionType { get; set; } = Common.TransactionType.GoodsService; /// /// Specifies which action to take in order to complete the session. @@ -286,7 +287,7 @@ public class GetSessionDetailsResponseOk : Resource /// [Optional] /// /// - public DateTime AuthenticationDate { get; set; } + public DateTime? AuthenticationDate { get; set; } /// /// Details related to exemption present in 3DS flow @@ -316,6 +317,7 @@ public class GetSessionDetailsResponseOk : Resource /// This object provides more information about the 3DS experience /// [Optional] /// + [JsonProperty(PropertyName = "3ds")] public Threeds Threeds { get; set; } /// diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/AbstractChannelData.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/AbstractChannelData.cs index 99ff9086..7ff942ef 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/AbstractChannelData.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/AbstractChannelData.cs @@ -10,7 +10,7 @@ public abstract class AbstractChannelData /// Default: "browser" Indicates the type of channel interface being used to initiate the transaction. /// [Required] /// - public ChannelDataType? Channel; + public ChannelDataType Channel; protected AbstractChannelData(ChannelDataType channel) { diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/BrowserChannelData/BrowserChannelData.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/BrowserChannelData/BrowserChannelData.cs index 6a356dd1..c2c5c646 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/BrowserChannelData/BrowserChannelData.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/ChannelData/BrowserChannelData/BrowserChannelData.cs @@ -30,7 +30,7 @@ public BrowserChannelData() : base(ChannelDataType.Browser) public bool JavaEnabled { get; set; } /// - /// Default: true Boolean that represents the ability of the cardholder's browser to execute Javascript. Value + /// Default: true Boolean that represents the ability of the cardholder's browser to execute Javascript. Value /// is returned from the navigator.javascriptEnabled property. *only applicable/required for authentication /// performed using 3DS 2.2. If authentications results in processing on 2.1 or lower, this field will be /// disregarded. @@ -93,17 +93,16 @@ public BrowserChannelData() : base(ChannelDataType.Browser) /// Default: "U" Indicates whether the 3DS Method successfully completed • Y = Successfully completed • N = /// Did not successfully complete • U = Unavailable (3DS Method URL was not present in the preperation response /// (PRes) message data for the card range associated with the cardholder's account number) - /// [Optional] /// 1 characters /// - public ThreeDsMethodCompletionType ThreeDsMethodCompletion { get; set; } = ThreeDsMethodCompletionType.U; + public ThreeDsMethodCompletionType? ThreeDsMethodCompletion { get; set; } = ThreeDsMethodCompletionType.U; /// /// Whether the Payment API is enabled for all parent frames. This is required for Google SPA support in hosted /// sessions. /// [Optional] /// - public bool IframePaymentAllowed { get; set; } + public bool? IframePaymentAllowed { get; set; } /// /// The raw Sec-CH-UA header value. This can improve Google SPA support. diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Completion/AbstractCompletion.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Completion/AbstractCompletion.cs index 869be022..0bdd93e5 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Completion/AbstractCompletion.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Completion/AbstractCompletion.cs @@ -6,7 +6,7 @@ namespace Checkout.Authentication.Standalone.POSTSessions.Requests.RequestASessi /// public abstract class AbstractCompletion { - public CompletionType? Type; + public CompletionType Type; protected AbstractCompletion(CompletionType type) { diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/RequestASessionRequest.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/RequestASessionRequest.cs index 0f232953..be8bea42 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/RequestASessionRequest.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/RequestASessionRequest.cs @@ -50,7 +50,7 @@ public class RequestASessionRequest /// <= 48 /// >= 0 /// - public long Amount { get; set; } + public long? Amount { get; set; } /// /// The processing channel to be used for the session. Required if this was not set in the request for the OAuth @@ -71,13 +71,13 @@ public class RequestASessionRequest /// installment consists of two ls. /// [Optional] /// - public AuthenticationType AuthenticationType { get; set; } = AuthenticationType.Regular; + public AuthenticationType? AuthenticationType { get; set; } = Common.AuthenticationType.Regular; /// /// Default: "payment" Indicates the category of the authentication request /// [Optional] /// - public AuthenticationCategoryType AuthenticationCategory { get; set; } = AuthenticationCategoryType.Payment; + public AuthenticationCategoryType? AuthenticationCategory { get; set; } = AuthenticationCategoryType.Payment; /// /// Additional information about the Cardholder's account. @@ -87,13 +87,13 @@ public class RequestASessionRequest /// /// Default: "no_preference" Indicates whether a challenge is requested for this session. The following are - /// requests for exemption: • low_value • trusted_listing • trusted_listing_prompt • + /// requests for exemption: • low_value • trusted_listing • trusted_listing_prompt • /// transaction_risk_assessment /// If an exemption cannot be applied, then the value no_challenge_requested will be used instead. /// [Optional] /// <= 50 /// - public ChallengeIndicatorType ChallengeIndicator { get; set; } = ChallengeIndicatorType.NoPreference; + public ChallengeIndicatorType? ChallengeIndicator { get; set; } = ChallengeIndicatorType.NoPreference; /// /// An optional dynamic billing descriptor. @@ -117,10 +117,9 @@ public class RequestASessionRequest /// /// Default: "goods_service" Identifies the type of transaction being authenticated - /// [Optional] /// <= 50 /// - public TransactionType TransactionType { get; set; } = TransactionType.GoodsService; + public TransactionType? TransactionType { get; set; } = Common.TransactionType.GoodsService; /// /// The shipping address. Any special characters will be replaced. @@ -132,7 +131,7 @@ public class RequestASessionRequest /// Indicates whether the cardholder shipping address and billing address are the same. /// [Optional] /// - public bool ShippingAddressMatchesBilling { get; set; } + public bool? ShippingAddressMatchesBilling { get; set; } /// /// The information gathered from the environment used to initiate the session diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/AbstractSource.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/AbstractSource.cs index 046d7f70..83e2c859 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/AbstractSource.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/AbstractSource.cs @@ -6,7 +6,7 @@ namespace Checkout.Authentication.Standalone.POSTSessions.Requests.RequestASessi /// public abstract class AbstractSource { - public SourceType? Type; + public SourceType Type; protected AbstractSource(SourceType type) { diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/CardSource/CardSource.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/CardSource/CardSource.cs index 5f37da8c..65275e71 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/CardSource/CardSource.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/CardSource/CardSource.cs @@ -81,14 +81,13 @@ public CardSource() : base(SourceType.Card) /// The name of the cardholder. Any special characters will be replaced. /// [Optional] /// [ 2 .. 45 ] characters - /// [ 2 .. 45 ] /// public string Name { get; set; } /// - /// Default: false This must be set to true for authentications that use stored card details + /// Default: false This must be set to true for authentications that use stored card details /// [Optional] /// - public bool Stored { get; set; } = false; + public bool? Stored { get; set; } = false; } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/IdSource/IdSource.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/IdSource/IdSource.cs index d89794ac..aea18dd3 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/IdSource/IdSource.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/IdSource/IdSource.cs @@ -43,14 +43,14 @@ public IdSource() : base(SourceType.Id) /// [Optional] /// [ 1 .. 2 ] characters [ 1 .. 12 ] /// - public int ExpiryMonth { get; set; } + public int? ExpiryMonth { get; set; } /// /// The expiry year of the card. /// [Optional] /// 4 characters /// - public int ExpiryYear { get; set; } + public int? ExpiryYear { get; set; } /// /// The customer's billing address. Any special characters will be replaced. diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/NetworkTokenSource/NetworkTokenSource.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/NetworkTokenSource/NetworkTokenSource.cs index a62d6aed..5b74f97f 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/NetworkTokenSource/NetworkTokenSource.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/NetworkTokenSource/NetworkTokenSource.cs @@ -91,9 +91,9 @@ public NetworkTokenSource() : base(SourceType.NetworkToken) public string Name { get; set; } /// - /// Default: false This must be set to true for authentications that use stored card details + /// Default: false This must be set to true for authentications that use stored card details /// [Optional] /// - public bool Stored { get; set; } = false; + public bool? Stored { get; set; } = false; } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/TokenSource/TokenSource.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/TokenSource/TokenSource.cs index cae3919b..97a21311 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/TokenSource/TokenSource.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Requests/RequestASessionRequest/Source/TokenSource/TokenSource.cs @@ -43,14 +43,14 @@ public TokenSource() : base(SourceType.Token) /// [Optional] /// [ 1 .. 2 ] characters [ 1 .. 12 ] /// - public int ExpiryMonth { get; set; } + public int? ExpiryMonth { get; set; } /// /// The expiry year of the card. /// [Optional] /// 4 characters /// - public int ExpiryYear { get; set; } + public int? ExpiryYear { get; set; } /// /// The customer's billing address. Any special characters will be replaced. diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseAccepted/RequestASessionResponseAccepted.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseAccepted/RequestASessionResponseAccepted.cs index d3067cf5..87007bf6 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseAccepted/RequestASessionResponseAccepted.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseAccepted/RequestASessionResponseAccepted.cs @@ -61,7 +61,7 @@ public class RequestASessionResponseAccepted : Resource /// [Required] /// [ 0 .. 9223372036854776000 ] /// - public int Amount { get; set; } + public long Amount { get; set; } /// /// The three-letter ISO currency code @@ -120,7 +120,7 @@ public class RequestASessionResponseAccepted : Resource /// Specifies if the session was completed. /// [Optional] /// - public bool Completed { get; set; } + public bool? Completed { get; set; } /// /// Additional information about the Cardholder's account. @@ -147,7 +147,7 @@ public class RequestASessionResponseAccepted : Resource /// [Optional] /// <= 50 /// - public TransactionType TransactionType { get; set; } = TransactionType.GoodsService; + public TransactionType? TransactionType { get; set; } = Common.TransactionType.GoodsService; /// /// Details related to the Session source. This property should always be in the response, unless a card source diff --git a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseCreated/RequestASessionResponseCreated.cs b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseCreated/RequestASessionResponseCreated.cs index ab84eaf3..5572c083 100644 --- a/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseCreated/RequestASessionResponseCreated.cs +++ b/src/CheckoutSdk/Authentication/Standalone/POSTSessions/Responses/RequestASessionResponseCreated/RequestASessionResponseCreated.cs @@ -59,14 +59,14 @@ public class RequestASessionResponseCreated : Resource /// Indicates the scheme this authentication is carried out against /// [Required] /// - public SchemeType? Scheme { get; set; } + public SchemeType Scheme { get; set; } /// /// The amount in the minor currency. /// [Required] /// [ 0 .. 9223372036854776000 ] /// - public int Amount { get; set; } + public long Amount { get; set; } /// /// The three-letter ISO currency code @@ -111,14 +111,14 @@ public class RequestASessionResponseCreated : Resource /// Indicates whether this session has been completed /// [Optional] /// - public bool Completed { get; set; } + public bool? Completed { get; set; } /// /// Indicates whether this session involved a challenge. This will only be set after communication with the /// scheme is finished. /// [Optional] /// - public bool Challenged { get; set; } + public bool? Challenged { get; set; } /// /// Public certificates specific to a Directory Server (DS) for encrypting device data and verifying ACS signed @@ -143,7 +143,7 @@ public class RequestASessionResponseCreated : Resource /// Whether the authentication was successful. This will only be set if the Session is in a final state /// [Optional] /// - public bool Approved { get; set; } + public bool? Approved { get; set; } /// /// Additional information about the Cardholder's account. @@ -166,11 +166,11 @@ public class RequestASessionResponseCreated : Resource public string Reference { get; set; } /// - /// Default: "goods_service" Identifies the type of transaction being authenticated + /// Default: "goods_service" Identifies the type of transaction being authenticated /// [Optional] /// <= 50 /// - public TransactionType TransactionType { get; set; } = TransactionType.GoodsService; + public TransactionType? TransactionType { get; set; } = Common.TransactionType.GoodsService; /// /// Specifies which action to take in order to complete the session. @@ -287,7 +287,7 @@ public class RequestASessionResponseCreated : Resource /// [Optional] /// /// - public DateTime AuthenticationDate { get; set; } + public DateTime? AuthenticationDate { get; set; } /// /// Details related to exemption present in 3DS flow diff --git a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/AbstractUpdateASessionRequest.cs b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/AbstractUpdateASessionRequest.cs index c681ae5d..8f0781e3 100644 --- a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/AbstractUpdateASessionRequest.cs +++ b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/AbstractUpdateASessionRequest.cs @@ -6,7 +6,7 @@ public abstract class AbstractUpdateASessionRequest /// Default: "browser" Indicates the type of channel interface being used to initiate the transaction. /// [Required] /// - public ChannelType? Channel; + public ChannelType Channel; protected AbstractUpdateASessionRequest(ChannelType channel) { diff --git a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/BrowserRequest/BrowserRequest.cs b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/BrowserRequest/BrowserRequest.cs index dd05b7b6..da437262 100644 --- a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/BrowserRequest/BrowserRequest.cs +++ b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/BrowserRequest/BrowserRequest.cs @@ -30,7 +30,7 @@ public BrowserRequest() : base(ChannelType.Browser) public bool JavaEnabled { get; set; } /// - /// Default: true Boolean that represents the ability of the cardholder's browser to execute Javascript. Value + /// Default: true Boolean that represents the ability of the cardholder's browser to execute Javascript. Value /// is returned from the navigator.javascriptEnabled property. *only applicable/required for authentication /// performed using 3DS 2.2. If authentications results in processing on 2.1 or lower, this field will be /// disregarded. @@ -93,17 +93,17 @@ public BrowserRequest() : base(ChannelType.Browser) /// Default: "U" Indicates whether the 3DS Method successfully completed • Y = Successfully completed • N = /// Did not successfully complete • U = Unavailable (3DS Method URL was not present in the preperation response /// (PRes) message data for the card range associated with the cardholder's account number) - /// [Optional] /// 1 characters + /// [Optional] /// - public ThreeDsMethodCompletionType ThreeDsMethodCompletion { get; set; } = ThreeDsMethodCompletionType.U; + public ThreeDsMethodCompletionType? ThreeDsMethodCompletion { get; set; } = ThreeDsMethodCompletionType.U; /// /// Whether the Payment API is enabled for all parent frames. This is required for Google SPA support in hosted /// sessions. /// [Optional] /// - public bool IframePaymentAllowed { get; set; } + public bool? IframePaymentAllowed { get; set; } /// /// The raw Sec-CH-UA header value. This can improve Google SPA support. diff --git a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/MerchantInitiatedRequest/MerchantInitiatedRequest.cs b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/MerchantInitiatedRequest/MerchantInitiatedRequest.cs index aa1e19d6..a499d5c8 100644 --- a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/MerchantInitiatedRequest/MerchantInitiatedRequest.cs +++ b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Requests/MerchantInitiatedRequest/MerchantInitiatedRequest.cs @@ -16,6 +16,6 @@ public MerchantInitiatedRequest() : base(ChannelType.MerchantInitiated) /// /// [Required] /// - public RequestType? RequestType { get; set; } + public RequestType RequestType { get; set; } } } \ No newline at end of file diff --git a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Responses/UpdateASessionResponseOk/UpdateASessionResponseOk.cs b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Responses/UpdateASessionResponseOk/UpdateASessionResponseOk.cs index 93d7e76c..4fc8ae50 100644 --- a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Responses/UpdateASessionResponseOk/UpdateASessionResponseOk.cs +++ b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdCollectData/Responses/UpdateASessionResponseOk/UpdateASessionResponseOk.cs @@ -56,7 +56,7 @@ public class UpdateASessionResponseOk : Resource /// [Required] /// [ 0 .. 9223372036854776000 ] /// - public int Amount { get; set; } + public long Amount { get; set; } /// /// The three-letter ISO currency code @@ -72,7 +72,7 @@ public class UpdateASessionResponseOk : Resource public AuthenticationType AuthenticationType { get; set; } = AuthenticationType.Regular; /// - /// Default: "payment" Indicates the category of the authentication request + /// Default: "payment" Indicates the category of the authentication request /// [Required] /// public AuthenticationCategoryType AuthenticationCategory { get; set; } = AuthenticationCategoryType.Payment; @@ -111,14 +111,14 @@ public class UpdateASessionResponseOk : Resource /// Indicates whether this session has been completed /// [Optional] /// - public bool Completed { get; set; } + public bool? Completed { get; set; } /// /// Indicates whether this session involved a challenge. This will only be set after communication with the /// scheme is finished. /// [Optional] /// - public bool Challenged { get; set; } + public bool? Challenged { get; set; } /// /// Public certificates specific to a Directory Server (DS) for encrypting device data and verifying ACS signed @@ -143,7 +143,7 @@ public class UpdateASessionResponseOk : Resource /// Whether the authentication was successful. This will only be set if the Session is in a final state /// [Optional] /// - public bool Approved { get; set; } + public bool? Approved { get; set; } /// /// Additional information about the Cardholder's account. @@ -170,7 +170,7 @@ public class UpdateASessionResponseOk : Resource /// [Optional] /// <= 50 /// - public TransactionType TransactionType { get; set; } = TransactionType.GoodsService; + public TransactionType? TransactionType { get; set; } = Common.TransactionType.GoodsService; /// /// Specifies which action to take in order to complete the session. diff --git a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdIssuerFingerprint/Responses/UpdateSessionThreedsMethodCompletionIndicatorResponseOk/UpdateSessionThreedsMethodCompletionIndicatorResponseOk.cs b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdIssuerFingerprint/Responses/UpdateSessionThreedsMethodCompletionIndicatorResponseOk/UpdateSessionThreedsMethodCompletionIndicatorResponseOk.cs index bfa86ba6..36070d51 100644 --- a/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdIssuerFingerprint/Responses/UpdateSessionThreedsMethodCompletionIndicatorResponseOk/UpdateSessionThreedsMethodCompletionIndicatorResponseOk.cs +++ b/src/CheckoutSdk/Authentication/Standalone/PUTSessionsIdIssuerFingerprint/Responses/UpdateSessionThreedsMethodCompletionIndicatorResponseOk/UpdateSessionThreedsMethodCompletionIndicatorResponseOk.cs @@ -42,14 +42,14 @@ public class UpdateSessionThreedsMethodCompletionIndicatorResponseOk : Resource /// Indicates the scheme this authentication is carried out against /// [Required] /// - public SchemeType? Scheme { get; set; } + public SchemeType Scheme { get; set; } /// /// The amount in the minor currency. /// [Required] /// [ 0 .. 9223372036854776000 ] /// - public int Amount { get; set; } + public long Amount { get; set; } /// /// The three-letter ISO currency code @@ -74,7 +74,7 @@ public class UpdateSessionThreedsMethodCompletionIndicatorResponseOk : Resource /// Indicates the status of the session /// [Required] /// - public StatusType? Status { get; set; } + public StatusType Status { get; set; } /// /// The protocol version number of the specification used by the API for authentication @@ -97,14 +97,14 @@ public class UpdateSessionThreedsMethodCompletionIndicatorResponseOk : Resource /// Indicates whether this session has been completed /// [Optional] /// - public bool Completed { get; set; } + public bool? Completed { get; set; } /// /// Indicates whether this session involved a challenge. This will only be set after communication with the /// scheme is finished. /// [Optional] /// - public bool Challenged { get; set; } + public bool? Challenged { get; set; } /// /// When the Session is unavailable this will point to the reason it is so. @@ -122,7 +122,7 @@ public class UpdateSessionThreedsMethodCompletionIndicatorResponseOk : Resource /// Whether the authentication was successful. This will only be set if the Session is in a final state /// [Optional] /// - public bool Approved { get; set; } + public bool? Approved { get; set; } /// /// Additional information about the Cardholder's account. @@ -149,7 +149,7 @@ public class UpdateSessionThreedsMethodCompletionIndicatorResponseOk : Resource /// [Optional] /// <= 50 /// - public TransactionType TransactionType { get; set; } = TransactionType.GoodsService; + public TransactionType? TransactionType { get; set; } = Common.TransactionType.GoodsService; /// /// Details of a previous transaction