diff --git a/Adyen.Test/PaymentMethodDetailsTest.cs b/Adyen.Test/PaymentMethodDetailsTest.cs index 2612d880d..93de57661 100644 --- a/Adyen.Test/PaymentMethodDetailsTest.cs +++ b/Adyen.Test/PaymentMethodDetailsTest.cs @@ -11,6 +11,7 @@ public void TestAchPaymentMethod() { var achDetails = new AchDetails { + Type = AchDetails.TypeEnum.Ach, BankAccountNumber = "1234567", BankLocationId = "1234567", EncryptedBankAccountNumber = "1234asdfg", @@ -45,6 +46,7 @@ public void TestApplePayPaymentMethod() { var applePay = new ApplePayDetails { + Type = ApplePayDetails.TypeEnum.Applepay, ApplePayToken = "VNRWtuNlNEWkRCSm1xWndjMDFFbktkQU..." }; var paymentRequest = new PaymentRequest @@ -73,6 +75,7 @@ public void TestGooglePayPaymentMethod() Reference = "google pay test", PaymentMethod = new CheckoutPaymentMethod(new GooglePayDetails { + Type = GooglePayDetails.TypeEnum.Googlepay, GooglePayToken = "==Payload as retrieved from Google Pay response==", FundingSource = GooglePayDetails.FundingSourceEnum.Debit }), @@ -98,6 +101,7 @@ public void TestIdealPaymentMethod() Reference = "ideal test", PaymentMethod = new CheckoutPaymentMethod(new IdealDetails { + Type = IdealDetails.TypeEnum.Ideal, Issuer = "1121" }), ReturnUrl = "https://your-company.com/checkout?shopperOrder=12xy.." @@ -119,6 +123,7 @@ public void TestBacsDirectDebitDetails() Reference = "bacs direct debit test", PaymentMethod = new CheckoutPaymentMethod(new BacsDirectDebitDetails { + Type = BacsDirectDebitDetails.TypeEnum.DirectdebitGB, BankAccountNumber = "NL0123456789", BankLocationId = "121000358", HolderName = "John Smith" @@ -146,6 +151,7 @@ public void TestPaypalSuccess() Reference = "paypal test", PaymentMethod = new CheckoutPaymentMethod( new PayPalDetails { + Type = PayPalDetails.TypeEnum.Paypal, Subtype = PayPalDetails.SubtypeEnum.Sdk, StoredPaymentMethodId = "2345654212345432345" }), diff --git a/Adyen.Test/SerializerTest.cs b/Adyen.Test/SerializerTest.cs index 26819b1c5..62b92b193 100644 --- a/Adyen.Test/SerializerTest.cs +++ b/Adyen.Test/SerializerTest.cs @@ -80,8 +80,12 @@ public void CheckoutLongSerializationTest() } }.ToJson(); // Assert that Long parameters set to zero are actually serialised (just like Int) - Assert.IsTrue(checkoutSessionRequest.Contains("amountExcludingTax\": 0,")); - Assert.IsTrue(checkoutSessionRequest.Contains("taxAmount\": 0")); + Assert.IsTrue(checkoutSessionRequest.Contains("\"amountExcludingTax\": 0,")); + Assert.IsTrue(checkoutSessionRequest.Contains("\"taxAmount\": 0")); + // check attribute with default values + Assert.IsFalse(checkoutSessionRequest.Contains("\"mode\": \"embedded\"")); + Assert.IsFalse(checkoutSessionRequest.Contains("\"splitCardFundingSources\": false")); + Assert.IsFalse(checkoutSessionRequest.Contains("\"threeDSAuthenticationOnly\": false")); } [TestMethod] diff --git a/Adyen/Adyen.csproj b/Adyen/Adyen.csproj index c39053e60..fd69e9785 100644 --- a/Adyen/Adyen.csproj +++ b/Adyen/Adyen.csproj @@ -1,6 +1,7 @@  + Adyen net8.0;net6.0;net462;netstandard2.0 12 enable diff --git a/Adyen/Model/Checkout/AchDetails.cs b/Adyen/Model/Checkout/AchDetails.cs index 17a32245d..dd0b94610 100644 --- a/Adyen/Model/Checkout/AchDetails.cs +++ b/Adyen/Model/Checkout/AchDetails.cs @@ -161,7 +161,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.. /// **ach** (default to TypeEnum.Ach). - public AchDetails(AccountHolderTypeEnum? accountHolderType = default(AccountHolderTypeEnum?), string bankAccountNumber = default(string), BankAccountTypeEnum? bankAccountType = default(BankAccountTypeEnum?), string bankLocationId = default(string), string checkoutAttemptId = default(string), string encryptedBankAccountNumber = default(string), string encryptedBankLocationId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = TypeEnum.Ach) + public AchDetails(AccountHolderTypeEnum? accountHolderType = default(AccountHolderTypeEnum?), string bankAccountNumber = default(string), BankAccountTypeEnum? bankAccountType = default(BankAccountTypeEnum?), string bankLocationId = default(string), string checkoutAttemptId = default(string), string encryptedBankAccountNumber = default(string), string encryptedBankLocationId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = null) { this.AccountHolderType = accountHolderType; this.BankAccountNumber = bankAccountNumber; diff --git a/Adyen/Model/Checkout/AffirmDetails.cs b/Adyen/Model/Checkout/AffirmDetails.cs index d3ff4747b..e2c2d20d8 100644 --- a/Adyen/Model/Checkout/AffirmDetails.cs +++ b/Adyen/Model/Checkout/AffirmDetails.cs @@ -59,7 +59,7 @@ public enum TypeEnum /// /// The checkout attempt identifier.. /// **affirm** (default to TypeEnum.Affirm). - public AffirmDetails(string checkoutAttemptId = default(string), TypeEnum? type = TypeEnum.Affirm) + public AffirmDetails(string checkoutAttemptId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Type = type; diff --git a/Adyen/Model/Checkout/AmazonPayDetails.cs b/Adyen/Model/Checkout/AmazonPayDetails.cs index df075513d..b224b1b49 100644 --- a/Adyen/Model/Checkout/AmazonPayDetails.cs +++ b/Adyen/Model/Checkout/AmazonPayDetails.cs @@ -61,7 +61,7 @@ public enum TypeEnum /// The checkout attempt identifier.. /// The `checkoutSessionId` is used to identify the checkout session at the Amazon Pay side. This field is required only for drop-in and components integration, where it replaces the amazonPayToken.. /// **amazonpay** (default to TypeEnum.Amazonpay). - public AmazonPayDetails(string amazonPayToken = default(string), string checkoutAttemptId = default(string), string checkoutSessionId = default(string), TypeEnum? type = TypeEnum.Amazonpay) + public AmazonPayDetails(string amazonPayToken = default(string), string checkoutAttemptId = default(string), string checkoutSessionId = default(string), TypeEnum? type = null) { this.AmazonPayToken = amazonPayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/AndroidPayDetails.cs b/Adyen/Model/Checkout/AndroidPayDetails.cs index 13933bbb6..510100247 100644 --- a/Adyen/Model/Checkout/AndroidPayDetails.cs +++ b/Adyen/Model/Checkout/AndroidPayDetails.cs @@ -59,7 +59,7 @@ public enum TypeEnum /// /// The checkout attempt identifier.. /// **androidpay** (default to TypeEnum.Androidpay). - public AndroidPayDetails(string checkoutAttemptId = default(string), TypeEnum? type = TypeEnum.Androidpay) + public AndroidPayDetails(string checkoutAttemptId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Type = type; diff --git a/Adyen/Model/Checkout/ApplePayDetails.cs b/Adyen/Model/Checkout/ApplePayDetails.cs index 03f028850..aa62c2895 100644 --- a/Adyen/Model/Checkout/ApplePayDetails.cs +++ b/Adyen/Model/Checkout/ApplePayDetails.cs @@ -96,7 +96,7 @@ protected ApplePayDetails() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **applepay** (default to TypeEnum.Applepay). - public ApplePayDetails(string applePayToken = default(string), string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Applepay) + public ApplePayDetails(string applePayToken = default(string), string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.ApplePayToken = applePayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/ApplePayDonations.cs b/Adyen/Model/Checkout/ApplePayDonations.cs index ca15916c5..35d4f852f 100644 --- a/Adyen/Model/Checkout/ApplePayDonations.cs +++ b/Adyen/Model/Checkout/ApplePayDonations.cs @@ -96,7 +96,7 @@ protected ApplePayDonations() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **applepay** (default to TypeEnum.Applepay). - public ApplePayDonations(string applePayToken = default(string), string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Applepay) + public ApplePayDonations(string applePayToken = default(string), string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.ApplePayToken = applePayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/AuthenticationData.cs b/Adyen/Model/Checkout/AuthenticationData.cs index 974b35995..e61eeca14 100644 --- a/Adyen/Model/Checkout/AuthenticationData.cs +++ b/Adyen/Model/Checkout/AuthenticationData.cs @@ -66,7 +66,7 @@ public enum AttemptAuthenticationEnum /// Indicates when 3D Secure authentication should be attempted. This overrides all other rules, including [Dynamic 3D Secure settings](https://docs.adyen.com/risk-management/dynamic-3d-secure). Possible values: * **always**: Perform 3D Secure authentication. * **never**: Don't perform 3D Secure authentication. If PSD2 SCA or other national regulations require authentication, the transaction gets declined.. /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization. Default: **false**. (default to false). /// threeDSRequestData. - public AuthenticationData(AttemptAuthenticationEnum? attemptAuthentication = default(AttemptAuthenticationEnum?), bool? authenticationOnly = false, ThreeDSRequestData threeDSRequestData = default(ThreeDSRequestData)) + public AuthenticationData(AttemptAuthenticationEnum? attemptAuthentication = default(AttemptAuthenticationEnum?), bool? authenticationOnly = null, ThreeDSRequestData threeDSRequestData = default(ThreeDSRequestData)) { this.AttemptAuthentication = attemptAuthentication; this.AuthenticationOnly = authenticationOnly; diff --git a/Adyen/Model/Checkout/BacsDirectDebitDetails.cs b/Adyen/Model/Checkout/BacsDirectDebitDetails.cs index e5db52c40..f4cf6e848 100644 --- a/Adyen/Model/Checkout/BacsDirectDebitDetails.cs +++ b/Adyen/Model/Checkout/BacsDirectDebitDetails.cs @@ -65,7 +65,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.. /// **directdebit_GB** (default to TypeEnum.DirectdebitGB). - public BacsDirectDebitDetails(string bankAccountNumber = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string holderName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = TypeEnum.DirectdebitGB) + public BacsDirectDebitDetails(string bankAccountNumber = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string holderName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = null) { this.BankAccountNumber = bankAccountNumber; this.BankLocationId = bankLocationId; diff --git a/Adyen/Model/Checkout/BalanceCheckRequest.cs b/Adyen/Model/Checkout/BalanceCheckRequest.cs index 50f294353..e2cdca81a 100644 --- a/Adyen/Model/Checkout/BalanceCheckRequest.cs +++ b/Adyen/Model/Checkout/BalanceCheckRequest.cs @@ -158,7 +158,7 @@ protected BalanceCheckRequest() { } /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. (default to false). /// The reference value to aggregate sales totals in reporting. When not specified, the store field is used (if available).. /// Set to true if the payment should be routed to a trusted MID.. - public BalanceCheckRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), BrowserInfo browserInfo = default(BrowserInfo), int? captureDelayHours = default(int?), DateTime dateOfBirth = default(DateTime), ForexQuote dccQuote = default(ForexQuote), Address deliveryAddress = default(Address), DateTime deliveryDate = default(DateTime), string deviceFingerprint = default(string), int? fraudOffset = default(int?), Installments installments = default(Installments), Dictionary localizedShopperStatement = default(Dictionary), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), string orderReference = default(string), Dictionary paymentMethod = default(Dictionary), Recurring recurring = default(Recurring), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), string selectedBrand = default(string), string selectedRecurringDetailReference = default(string), string sessionId = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), string socialSecurityNumber = default(string), List splits = default(List), string store = default(string), string telephoneNumber = default(string), ThreeDS2RequestData threeDS2RequestData = default(ThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, string totalsGroup = default(string), bool? trustedShopper = default(bool?)) + public BalanceCheckRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), BrowserInfo browserInfo = default(BrowserInfo), int? captureDelayHours = default(int?), DateTime dateOfBirth = default(DateTime), ForexQuote dccQuote = default(ForexQuote), Address deliveryAddress = default(Address), DateTime deliveryDate = default(DateTime), string deviceFingerprint = default(string), int? fraudOffset = default(int?), Installments installments = default(Installments), Dictionary localizedShopperStatement = default(Dictionary), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), string orderReference = default(string), Dictionary paymentMethod = default(Dictionary), Recurring recurring = default(Recurring), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), string selectedBrand = default(string), string selectedRecurringDetailReference = default(string), string sessionId = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), string socialSecurityNumber = default(string), List splits = default(List), string store = default(string), string telephoneNumber = default(string), ThreeDS2RequestData threeDS2RequestData = default(ThreeDS2RequestData), bool? threeDSAuthenticationOnly = null, string totalsGroup = default(string), bool? trustedShopper = default(bool?)) { this.Amount = amount; this.MerchantAccount = merchantAccount; diff --git a/Adyen/Model/Checkout/BrowserInfo.cs b/Adyen/Model/Checkout/BrowserInfo.cs index 7f6560ead..dad12438f 100644 --- a/Adyen/Model/Checkout/BrowserInfo.cs +++ b/Adyen/Model/Checkout/BrowserInfo.cs @@ -49,7 +49,7 @@ protected BrowserInfo() { } /// The total width of the shopper's device screen in pixels. (required). /// Time difference between UTC time and the shopper's browser local time, in minutes. (required). /// The user agent value of the shopper's browser. (required). - public BrowserInfo(string acceptHeader = default(string), int? colorDepth = default(int?), bool? javaEnabled = default(bool?), bool? javaScriptEnabled = true, string language = default(string), int? screenHeight = default(int?), int? screenWidth = default(int?), int? timeZoneOffset = default(int?), string userAgent = default(string)) + public BrowserInfo(string acceptHeader = default(string), int? colorDepth = default(int?), bool? javaEnabled = default(bool?), bool? javaScriptEnabled = null, string language = default(string), int? screenHeight = default(int?), int? screenWidth = default(int?), int? timeZoneOffset = default(int?), string userAgent = default(string)) { this.AcceptHeader = acceptHeader; this.ColorDepth = colorDepth; diff --git a/Adyen/Model/Checkout/CardDetails.cs b/Adyen/Model/Checkout/CardDetails.cs index 1d87040d4..6e9c8401a 100644 --- a/Adyen/Model/Checkout/CardDetails.cs +++ b/Adyen/Model/Checkout/CardDetails.cs @@ -140,7 +140,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.. /// Default payment method details. Common for scheme payment methods, and for simple payment method details. (default to TypeEnum.Scheme). - public CardDetails(string brand = default(string), string checkoutAttemptId = default(string), string cupsecureplusSmscode = default(string), string cvc = default(string), string encryptedCard = default(string), string encryptedCardNumber = default(string), string encryptedExpiryMonth = default(string), string encryptedExpiryYear = default(string), string encryptedSecurityCode = default(string), string expiryMonth = default(string), string expiryYear = default(string), string fastlaneData = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string holderName = default(string), string networkPaymentReference = default(string), string number = default(string), string recurringDetailReference = default(string), string shopperNotificationReference = default(string), string srcCorrelationId = default(string), string srcDigitalCardId = default(string), string srcScheme = default(string), string srcTokenReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Scheme) + public CardDetails(string brand = default(string), string checkoutAttemptId = default(string), string cupsecureplusSmscode = default(string), string cvc = default(string), string encryptedCard = default(string), string encryptedCardNumber = default(string), string encryptedExpiryMonth = default(string), string encryptedExpiryYear = default(string), string encryptedSecurityCode = default(string), string expiryMonth = default(string), string expiryYear = default(string), string fastlaneData = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string holderName = default(string), string networkPaymentReference = default(string), string number = default(string), string recurringDetailReference = default(string), string shopperNotificationReference = default(string), string srcCorrelationId = default(string), string srcDigitalCardId = default(string), string srcScheme = default(string), string srcTokenReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = null) { this.Brand = brand; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/CardDonations.cs b/Adyen/Model/Checkout/CardDonations.cs index 13a88d4f8..7c6aaa852 100644 --- a/Adyen/Model/Checkout/CardDonations.cs +++ b/Adyen/Model/Checkout/CardDonations.cs @@ -140,7 +140,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.. /// Default payment method details. Common for scheme payment methods, and for simple payment method details. (default to TypeEnum.Scheme). - public CardDonations(string brand = default(string), string checkoutAttemptId = default(string), string cupsecureplusSmscode = default(string), string cvc = default(string), string encryptedCard = default(string), string encryptedCardNumber = default(string), string encryptedExpiryMonth = default(string), string encryptedExpiryYear = default(string), string encryptedSecurityCode = default(string), string expiryMonth = default(string), string expiryYear = default(string), string fastlaneData = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string holderName = default(string), string networkPaymentReference = default(string), string number = default(string), string recurringDetailReference = default(string), string shopperNotificationReference = default(string), string srcCorrelationId = default(string), string srcDigitalCardId = default(string), string srcScheme = default(string), string srcTokenReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Scheme) + public CardDonations(string brand = default(string), string checkoutAttemptId = default(string), string cupsecureplusSmscode = default(string), string cvc = default(string), string encryptedCard = default(string), string encryptedCardNumber = default(string), string encryptedExpiryMonth = default(string), string encryptedExpiryYear = default(string), string encryptedSecurityCode = default(string), string expiryMonth = default(string), string expiryYear = default(string), string fastlaneData = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string holderName = default(string), string networkPaymentReference = default(string), string number = default(string), string recurringDetailReference = default(string), string shopperNotificationReference = default(string), string srcCorrelationId = default(string), string srcDigitalCardId = default(string), string srcScheme = default(string), string srcTokenReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = null) { this.Brand = brand; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/CashAppDetails.cs b/Adyen/Model/Checkout/CashAppDetails.cs index b001e3386..2de6a9bb7 100644 --- a/Adyen/Model/Checkout/CashAppDetails.cs +++ b/Adyen/Model/Checkout/CashAppDetails.cs @@ -67,7 +67,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// The payment method subtype.. /// cashapp (default to TypeEnum.Cashapp). - public CashAppDetails(string cashtag = default(string), string checkoutAttemptId = default(string), string customerId = default(string), string grantId = default(string), string onFileGrantId = default(string), string recurringDetailReference = default(string), string requestId = default(string), string storedPaymentMethodId = default(string), string subtype = default(string), TypeEnum? type = TypeEnum.Cashapp) + public CashAppDetails(string cashtag = default(string), string checkoutAttemptId = default(string), string customerId = default(string), string grantId = default(string), string onFileGrantId = default(string), string recurringDetailReference = default(string), string requestId = default(string), string storedPaymentMethodId = default(string), string subtype = default(string), TypeEnum? type = null) { this.Cashtag = cashtag; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/CellulantDetails.cs b/Adyen/Model/Checkout/CellulantDetails.cs index 44022dfc1..8cc5f77bc 100644 --- a/Adyen/Model/Checkout/CellulantDetails.cs +++ b/Adyen/Model/Checkout/CellulantDetails.cs @@ -60,7 +60,7 @@ public enum TypeEnum /// The checkout attempt identifier.. /// The Cellulant issuer.. /// **Cellulant** (default to TypeEnum.Cellulant). - public CellulantDetails(string checkoutAttemptId = default(string), string issuer = default(string), TypeEnum? type = TypeEnum.Cellulant) + public CellulantDetails(string checkoutAttemptId = default(string), string issuer = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Issuer = issuer; diff --git a/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs b/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs index 6cecc7153..8b06fcd50 100644 --- a/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs +++ b/Adyen/Model/Checkout/CreateCheckoutSessionRequest.cs @@ -305,7 +305,7 @@ protected CreateCheckoutSessionRequest() { } /// threeDS2RequestData. /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. (default to false). /// Set to true if the payment should be routed to a trusted MID.. - public CreateCheckoutSessionRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = ModeEnum.Embedded, ThreeDSecureData mpiData = default(ThreeDSecureData), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?)) + public CreateCheckoutSessionRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = null, ThreeDSecureData mpiData = default(ThreeDSecureData), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = null, List splits = default(List), string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = null, bool? trustedShopper = default(bool?)) { this.Amount = amount; this.MerchantAccount = merchantAccount; diff --git a/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs b/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs index 2e2d58a66..bb592ab75 100644 --- a/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs +++ b/Adyen/Model/Checkout/CreateCheckoutSessionResponse.cs @@ -307,7 +307,7 @@ protected CreateCheckoutSessionResponse() { } /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. (default to false). /// Set to true if the payment should be routed to a trusted MID.. /// The URL for the Hosted Checkout page. Redirect the shopper to this URL so they can make the payment.. - public CreateCheckoutSessionResponse(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = ModeEnum.Embedded, ThreeDSecureData mpiData = default(ThreeDSecureData), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string sessionData = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?), string url = default(string)) + public CreateCheckoutSessionResponse(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), Company company = default(Company), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), ModeEnum? mode = null, ThreeDSecureData mpiData = default(ThreeDSecureData), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string sessionData = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showInstallmentAmount = default(bool?), bool? showRemovePaymentMethodButton = default(bool?), string socialSecurityNumber = default(string), bool? splitCardFundingSources = null, List splits = default(List), string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), bool? storePaymentMethod = default(bool?), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), bool? threeDSAuthenticationOnly = null, bool? trustedShopper = default(bool?), string url = default(string)) { this.Amount = amount; this.ExpiresAt = expiresAt; diff --git a/Adyen/Model/Checkout/DetailsRequestAuthenticationData.cs b/Adyen/Model/Checkout/DetailsRequestAuthenticationData.cs index ee3580d0d..c01df30d6 100644 --- a/Adyen/Model/Checkout/DetailsRequestAuthenticationData.cs +++ b/Adyen/Model/Checkout/DetailsRequestAuthenticationData.cs @@ -36,7 +36,7 @@ public partial class DetailsRequestAuthenticationData : IEquatable class. /// /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. (default to false). - public DetailsRequestAuthenticationData(bool? authenticationOnly = false) + public DetailsRequestAuthenticationData(bool? authenticationOnly = null) { this.AuthenticationOnly = authenticationOnly; } diff --git a/Adyen/Model/Checkout/DeviceRenderOptions.cs b/Adyen/Model/Checkout/DeviceRenderOptions.cs index a74655b04..aeb28b57d 100644 --- a/Adyen/Model/Checkout/DeviceRenderOptions.cs +++ b/Adyen/Model/Checkout/DeviceRenderOptions.cs @@ -117,7 +117,7 @@ public enum SdkUiTypeEnum /// /// Supported SDK interface types. Allowed values: * native * html * both (default to SdkInterfaceEnum.Both). /// UI types supported for displaying specific challenges. Allowed values: * text * singleSelect * outOfBand * otherHtml * multiSelect. - public DeviceRenderOptions(SdkInterfaceEnum? sdkInterface = SdkInterfaceEnum.Both, List sdkUiType = default(List)) + public DeviceRenderOptions(SdkInterfaceEnum? sdkInterface = null, List sdkUiType = default(List)) { this.SdkInterface = sdkInterface; this.SdkUiType = sdkUiType; diff --git a/Adyen/Model/Checkout/DonationPaymentRequest.cs b/Adyen/Model/Checkout/DonationPaymentRequest.cs index 1fd2eef0b..b61f533bb 100644 --- a/Adyen/Model/Checkout/DonationPaymentRequest.cs +++ b/Adyen/Model/Checkout/DonationPaymentRequest.cs @@ -190,7 +190,7 @@ protected DonationPaymentRequest() { } /// The shopper's telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication.. /// threeDS2RequestData. /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. (default to false). - public DonationPaymentRequest(AccountInfo accountInfo = default(AccountInfo), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), string deviceFingerprint = default(string), string donationAccount = default(string), string donationCampaignId = default(string), string donationOriginalPspReference = default(string), string donationToken = default(string), List lineItems = default(List), string merchantAccount = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), string origin = default(string), DonationPaymentMethod paymentMethod = default(DonationPaymentMethod), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), string sessionValidity = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string socialSecurityNumber = default(string), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = false) + public DonationPaymentRequest(AccountInfo accountInfo = default(AccountInfo), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), string deviceFingerprint = default(string), string donationAccount = default(string), string donationCampaignId = default(string), string donationOriginalPspReference = default(string), string donationToken = default(string), List lineItems = default(List), string merchantAccount = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), string origin = default(string), DonationPaymentMethod paymentMethod = default(DonationPaymentMethod), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), string sessionValidity = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string socialSecurityNumber = default(string), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = null) { this.Amount = amount; this.MerchantAccount = merchantAccount; diff --git a/Adyen/Model/Checkout/EftDetails.cs b/Adyen/Model/Checkout/EftDetails.cs index 326b7600f..0ffd9eb62 100644 --- a/Adyen/Model/Checkout/EftDetails.cs +++ b/Adyen/Model/Checkout/EftDetails.cs @@ -65,7 +65,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **eft** (default to TypeEnum.EftDirectdebitCA). - public EftDetails(string bankAccountNumber = default(string), string bankCode = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.EftDirectdebitCA) + public EftDetails(string bankAccountNumber = default(string), string bankCode = default(string), string bankLocationId = default(string), string checkoutAttemptId = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.BankAccountNumber = bankAccountNumber; this.BankCode = bankCode; diff --git a/Adyen/Model/Checkout/GooglePayDetails.cs b/Adyen/Model/Checkout/GooglePayDetails.cs index ece11396a..3a3a0407a 100644 --- a/Adyen/Model/Checkout/GooglePayDetails.cs +++ b/Adyen/Model/Checkout/GooglePayDetails.cs @@ -98,7 +98,7 @@ protected GooglePayDetails() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.. /// **googlepay**, **paywithgoogle** (default to TypeEnum.Googlepay). - public GooglePayDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayCardNetwork = default(string), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Googlepay) + public GooglePayDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayCardNetwork = default(string), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = null) { this.GooglePayToken = googlePayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/GooglePayDonations.cs b/Adyen/Model/Checkout/GooglePayDonations.cs index 610475245..cd1714ffa 100644 --- a/Adyen/Model/Checkout/GooglePayDonations.cs +++ b/Adyen/Model/Checkout/GooglePayDonations.cs @@ -98,7 +98,7 @@ protected GooglePayDonations() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.. /// **googlepay**, **paywithgoogle** (default to TypeEnum.Googlepay). - public GooglePayDonations(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayCardNetwork = default(string), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Googlepay) + public GooglePayDonations(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayCardNetwork = default(string), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = null) { this.GooglePayToken = googlePayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/IdealDetails.cs b/Adyen/Model/Checkout/IdealDetails.cs index 5468a7ffd..0421a3911 100644 --- a/Adyen/Model/Checkout/IdealDetails.cs +++ b/Adyen/Model/Checkout/IdealDetails.cs @@ -62,7 +62,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **ideal** (default to TypeEnum.Ideal). - public IdealDetails(string checkoutAttemptId = default(string), string issuer = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Ideal) + public IdealDetails(string checkoutAttemptId = default(string), string issuer = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Issuer = issuer; diff --git a/Adyen/Model/Checkout/IdealDonations.cs b/Adyen/Model/Checkout/IdealDonations.cs index 421a40fa4..b788bae3c 100644 --- a/Adyen/Model/Checkout/IdealDonations.cs +++ b/Adyen/Model/Checkout/IdealDonations.cs @@ -62,7 +62,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **ideal** (default to TypeEnum.Ideal). - public IdealDonations(string checkoutAttemptId = default(string), string issuer = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Ideal) + public IdealDonations(string checkoutAttemptId = default(string), string issuer = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Issuer = issuer; diff --git a/Adyen/Model/Checkout/MasterpassDetails.cs b/Adyen/Model/Checkout/MasterpassDetails.cs index c78db8bd8..88f5a854c 100644 --- a/Adyen/Model/Checkout/MasterpassDetails.cs +++ b/Adyen/Model/Checkout/MasterpassDetails.cs @@ -94,7 +94,7 @@ protected MasterpassDetails() { } /// The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.. /// The Masterpass transaction ID. (required). /// **masterpass** (default to TypeEnum.Masterpass). - public MasterpassDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string masterpassTransactionId = default(string), TypeEnum? type = TypeEnum.Masterpass) + public MasterpassDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string masterpassTransactionId = default(string), TypeEnum? type = null) { this.MasterpassTransactionId = masterpassTransactionId; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/MbwayDetails.cs b/Adyen/Model/Checkout/MbwayDetails.cs index 01098eacb..e68709cac 100644 --- a/Adyen/Model/Checkout/MbwayDetails.cs +++ b/Adyen/Model/Checkout/MbwayDetails.cs @@ -66,7 +66,7 @@ protected MbwayDetails() { } /// shopperEmail (required). /// telephoneNumber (required). /// **mbway** (default to TypeEnum.Mbway). - public MbwayDetails(string checkoutAttemptId = default(string), string shopperEmail = default(string), string telephoneNumber = default(string), TypeEnum? type = TypeEnum.Mbway) + public MbwayDetails(string checkoutAttemptId = default(string), string shopperEmail = default(string), string telephoneNumber = default(string), TypeEnum? type = null) { this.ShopperEmail = shopperEmail; this.TelephoneNumber = telephoneNumber; diff --git a/Adyen/Model/Checkout/MobilePayDetails.cs b/Adyen/Model/Checkout/MobilePayDetails.cs index 6b6e06a05..6e7b48ecd 100644 --- a/Adyen/Model/Checkout/MobilePayDetails.cs +++ b/Adyen/Model/Checkout/MobilePayDetails.cs @@ -59,7 +59,7 @@ public enum TypeEnum /// /// The checkout attempt identifier.. /// **mobilepay** (default to TypeEnum.Mobilepay). - public MobilePayDetails(string checkoutAttemptId = default(string), TypeEnum? type = TypeEnum.Mobilepay) + public MobilePayDetails(string checkoutAttemptId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Type = type; diff --git a/Adyen/Model/Checkout/OpenInvoiceDetails.cs b/Adyen/Model/Checkout/OpenInvoiceDetails.cs index 18a35115f..71eabfd25 100644 --- a/Adyen/Model/Checkout/OpenInvoiceDetails.cs +++ b/Adyen/Model/Checkout/OpenInvoiceDetails.cs @@ -76,7 +76,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **openinvoice** (default to TypeEnum.Openinvoice). - public OpenInvoiceDetails(string billingAddress = default(string), string checkoutAttemptId = default(string), string deliveryAddress = default(string), string personalDetails = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Openinvoice) + public OpenInvoiceDetails(string billingAddress = default(string), string checkoutAttemptId = default(string), string deliveryAddress = default(string), string personalDetails = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.BillingAddress = billingAddress; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/PayPayDetails.cs b/Adyen/Model/Checkout/PayPayDetails.cs index 796bc2287..714d0cfad 100644 --- a/Adyen/Model/Checkout/PayPayDetails.cs +++ b/Adyen/Model/Checkout/PayPayDetails.cs @@ -61,7 +61,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **paypay** (default to TypeEnum.Paypay). - public PayPayDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Paypay) + public PayPayDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.RecurringDetailReference = recurringDetailReference; diff --git a/Adyen/Model/Checkout/PayToDetails.cs b/Adyen/Model/Checkout/PayToDetails.cs index 718ee3940..f952cff3c 100644 --- a/Adyen/Model/Checkout/PayToDetails.cs +++ b/Adyen/Model/Checkout/PayToDetails.cs @@ -62,7 +62,7 @@ public enum TypeEnum /// The shopper's banking details or payId reference, used to complete payment.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **payto** (default to TypeEnum.Payto). - public PayToDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string shopperAccountIdentifier = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Payto) + public PayToDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string shopperAccountIdentifier = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.RecurringDetailReference = recurringDetailReference; diff --git a/Adyen/Model/Checkout/PayWithGoogleDetails.cs b/Adyen/Model/Checkout/PayWithGoogleDetails.cs index 39b4bfc98..150027429 100644 --- a/Adyen/Model/Checkout/PayWithGoogleDetails.cs +++ b/Adyen/Model/Checkout/PayWithGoogleDetails.cs @@ -97,7 +97,7 @@ protected PayWithGoogleDetails() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.. /// **paywithgoogle** (default to TypeEnum.Paywithgoogle). - public PayWithGoogleDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Paywithgoogle) + public PayWithGoogleDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = null) { this.GooglePayToken = googlePayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/PayWithGoogleDonations.cs b/Adyen/Model/Checkout/PayWithGoogleDonations.cs index 3062f2d61..665b1b8be 100644 --- a/Adyen/Model/Checkout/PayWithGoogleDonations.cs +++ b/Adyen/Model/Checkout/PayWithGoogleDonations.cs @@ -97,7 +97,7 @@ protected PayWithGoogleDonations() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// Required for mobile integrations. Version of the 3D Secure 2 mobile SDK.. /// **paywithgoogle** (default to TypeEnum.Paywithgoogle). - public PayWithGoogleDonations(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = TypeEnum.Paywithgoogle) + public PayWithGoogleDonations(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string googlePayToken = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string threeDS2SdkVersion = default(string), TypeEnum? type = null) { this.GooglePayToken = googlePayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/PaymentLinkRequest.cs b/Adyen/Model/Checkout/PaymentLinkRequest.cs index b21f923cb..a3178f789 100644 --- a/Adyen/Model/Checkout/PaymentLinkRequest.cs +++ b/Adyen/Model/Checkout/PaymentLinkRequest.cs @@ -196,7 +196,7 @@ protected PaymentLinkRequest() { } /// The shopper's telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication.. /// A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area.. /// threeDS2RequestData. - public PaymentLinkRequest(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = true, string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData)) + public PaymentLinkRequest(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = null, string socialSecurityNumber = default(string), bool? splitCardFundingSources = null, List splits = default(List), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData)) { this.Amount = amount; this.MerchantAccount = merchantAccount; diff --git a/Adyen/Model/Checkout/PaymentLinkResponse.cs b/Adyen/Model/Checkout/PaymentLinkResponse.cs index 6895075ad..ee925f456 100644 --- a/Adyen/Model/Checkout/PaymentLinkResponse.cs +++ b/Adyen/Model/Checkout/PaymentLinkResponse.cs @@ -244,7 +244,7 @@ protected PaymentLinkResponse() { } /// A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area.. /// threeDS2RequestData. /// The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.. - public PaymentLinkResponse(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = true, string socialSecurityNumber = default(string), bool? splitCardFundingSources = false, List splits = default(List), StatusEnum status = default(StatusEnum), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), DateTime updatedAt = default(DateTime)) + public PaymentLinkResponse(List allowedPaymentMethods = default(List), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), Address billingAddress = default(Address), List blockedPaymentMethods = default(List), int? captureDelayHours = default(int?), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), DateTime deliverAt = default(DateTime), Address deliveryAddress = default(Address), string description = default(string), DateTime expiresAt = default(DateTime), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), Dictionary installmentOptions = default(Dictionary), List lineItems = default(List), bool? manualCapture = default(bool?), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), Dictionary metadata = default(Dictionary), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string reference = default(string), List requiredShopperFields = default(List), string returnUrl = default(string), bool? reusable = default(bool?), RiskData riskData = default(RiskData), string shopperEmail = default(string), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), bool? showRemovePaymentMethodButton = null, string socialSecurityNumber = default(string), bool? splitCardFundingSources = null, List splits = default(List), StatusEnum status = default(StatusEnum), string store = default(string), StorePaymentMethodModeEnum? storePaymentMethodMode = default(StorePaymentMethodModeEnum?), string telephoneNumber = default(string), string themeId = default(string), CheckoutSessionThreeDS2RequestData threeDS2RequestData = default(CheckoutSessionThreeDS2RequestData), DateTime updatedAt = default(DateTime)) { this.Amount = amount; this.MerchantAccount = merchantAccount; diff --git a/Adyen/Model/Checkout/PaymentMethodIssuer.cs b/Adyen/Model/Checkout/PaymentMethodIssuer.cs index 82fae51a2..eebbbd336 100644 --- a/Adyen/Model/Checkout/PaymentMethodIssuer.cs +++ b/Adyen/Model/Checkout/PaymentMethodIssuer.cs @@ -43,7 +43,7 @@ protected PaymentMethodIssuer() { } /// A boolean value indicating whether this issuer is unavailable. Can be `true` whenever the issuer is offline. (default to false). /// The unique identifier of this issuer, to submit in requests to /payments. (required). /// A localized name of the issuer. (required). - public PaymentMethodIssuer(bool? disabled = false, string id = default(string), string name = default(string)) + public PaymentMethodIssuer(bool? disabled = null, string id = default(string), string name = default(string)) { this.Id = id; this.Name = name; diff --git a/Adyen/Model/Checkout/PaymentMethodsRequest.cs b/Adyen/Model/Checkout/PaymentMethodsRequest.cs index 19f498a3a..6b65044c6 100644 --- a/Adyen/Model/Checkout/PaymentMethodsRequest.cs +++ b/Adyen/Model/Checkout/PaymentMethodsRequest.cs @@ -126,7 +126,7 @@ protected PaymentMethodsRequest() { } /// Required for Adyen for Platforms integrations if you are a platform model. This is your [reference](https://docs.adyen.com/api-explorer/Management/3/post/merchants/(merchantId)/stores#request-reference) (on [balance platform](https://docs.adyen.com/platforms)) or the [storeReference](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccountHolder#request-accountHolderDetails-storeDetails-storeReference) (in the [classic integration](https://docs.adyen.com/classic-platforms/processing-payments/route-payment-to-store/#route-a-payment-to-a-store)) for the ecommerce or point-of-sale store that is processing the payment.. /// Specifies how payment methods should be filtered based on the 'store' parameter: - 'exclusive': Only payment methods belonging to the specified 'store' are returned. - 'inclusive': Payment methods from the 'store' and those not associated with any other store are returned.. /// The shopper's telephone number. > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you did not include the `shopperEmail`. The phone number must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not follow the guidelines, we drop the value and do not submit it for authentication.. - public PaymentMethodsRequest(Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), List blockedPaymentMethods = default(List), BrowserInfo browserInfo = default(BrowserInfo), ChannelEnum? channel = default(ChannelEnum?), string countryCode = default(string), string merchantAccount = default(string), EncryptedOrderData order = default(EncryptedOrderData), string shopperConversionId = default(string), string shopperEmail = default(string), string shopperIP = default(string), string shopperLocale = default(string), string shopperReference = default(string), bool? splitCardFundingSources = false, string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), string telephoneNumber = default(string)) + public PaymentMethodsRequest(Dictionary additionalData = default(Dictionary), List allowedPaymentMethods = default(List), Amount amount = default(Amount), List blockedPaymentMethods = default(List), BrowserInfo browserInfo = default(BrowserInfo), ChannelEnum? channel = default(ChannelEnum?), string countryCode = default(string), string merchantAccount = default(string), EncryptedOrderData order = default(EncryptedOrderData), string shopperConversionId = default(string), string shopperEmail = default(string), string shopperIP = default(string), string shopperLocale = default(string), string shopperReference = default(string), bool? splitCardFundingSources = null, string store = default(string), StoreFiltrationModeEnum? storeFiltrationMode = default(StoreFiltrationModeEnum?), string telephoneNumber = default(string)) { this.MerchantAccount = merchantAccount; this.AdditionalData = additionalData; diff --git a/Adyen/Model/Checkout/PaymentRequest.cs b/Adyen/Model/Checkout/PaymentRequest.cs index ddb2751e2..9d2bb6bc5 100644 --- a/Adyen/Model/Checkout/PaymentRequest.cs +++ b/Adyen/Model/Checkout/PaymentRequest.cs @@ -282,7 +282,7 @@ protected PaymentRequest() { } /// threeDS2RequestData. /// Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorisation.Default: **false**. (default to false). /// Set to true if the payment should be routed to a trusted MID.. - public PaymentRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), CheckoutBankAccount bankAccount = default(CheckoutBankAccount), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), Company company = default(Company), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), ForexQuote dccQuote = default(ForexQuote), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), DateTime deliveryDate = default(DateTime), string deviceFingerprint = default(string), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), EnhancedSchemeData enhancedSchemeData = default(EnhancedSchemeData), EntityTypeEnum? entityType = default(EntityTypeEnum?), int? fraudOffset = default(int?), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), IndustryUsageEnum? industryUsage = default(IndustryUsageEnum?), Installments installments = default(Installments), List lineItems = default(List), Dictionary localizedShopperStatement = default(Dictionary), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), EncryptedOrderData order = default(EncryptedOrderData), string orderReference = default(string), string origin = default(string), CheckoutPaymentMethod paymentMethod = default(CheckoutPaymentMethod), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string sessionValidity = default(string), string shopperConversionId = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), string socialSecurityNumber = default(string), List splits = default(List), string store = default(string), bool? storePaymentMethod = default(bool?), List subMerchants = default(List), Surcharge surcharge = default(Surcharge), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = false, bool? trustedShopper = default(bool?)) + public PaymentRequest(AccountInfo accountInfo = default(AccountInfo), Amount additionalAmount = default(Amount), Dictionary additionalData = default(Dictionary), Amount amount = default(Amount), ApplicationInfo applicationInfo = default(ApplicationInfo), AuthenticationData authenticationData = default(AuthenticationData), CheckoutBankAccount bankAccount = default(CheckoutBankAccount), BillingAddress billingAddress = default(BillingAddress), BrowserInfo browserInfo = default(BrowserInfo), int? captureDelayHours = default(int?), ChannelEnum? channel = default(ChannelEnum?), string checkoutAttemptId = default(string), Company company = default(Company), string conversionId = default(string), string countryCode = default(string), DateTime dateOfBirth = default(DateTime), ForexQuote dccQuote = default(ForexQuote), DateTime deliverAt = default(DateTime), DeliveryAddress deliveryAddress = default(DeliveryAddress), DateTime deliveryDate = default(DateTime), string deviceFingerprint = default(string), bool? enableOneClick = default(bool?), bool? enablePayOut = default(bool?), bool? enableRecurring = default(bool?), EnhancedSchemeData enhancedSchemeData = default(EnhancedSchemeData), EntityTypeEnum? entityType = default(EntityTypeEnum?), int? fraudOffset = default(int?), FundOrigin fundOrigin = default(FundOrigin), FundRecipient fundRecipient = default(FundRecipient), IndustryUsageEnum? industryUsage = default(IndustryUsageEnum?), Installments installments = default(Installments), List lineItems = default(List), Dictionary localizedShopperStatement = default(Dictionary), Mandate mandate = default(Mandate), string mcc = default(string), string merchantAccount = default(string), string merchantOrderReference = default(string), MerchantRiskIndicator merchantRiskIndicator = default(MerchantRiskIndicator), Dictionary metadata = default(Dictionary), ThreeDSecureData mpiData = default(ThreeDSecureData), EncryptedOrderData order = default(EncryptedOrderData), string orderReference = default(string), string origin = default(string), CheckoutPaymentMethod paymentMethod = default(CheckoutPaymentMethod), PlatformChargebackLogic platformChargebackLogic = default(PlatformChargebackLogic), string recurringExpiry = default(string), string recurringFrequency = default(string), RecurringProcessingModelEnum? recurringProcessingModel = default(RecurringProcessingModelEnum?), string redirectFromIssuerMethod = default(string), string redirectToIssuerMethod = default(string), string reference = default(string), string returnUrl = default(string), RiskData riskData = default(RiskData), string sessionValidity = default(string), string shopperConversionId = default(string), string shopperEmail = default(string), string shopperIP = default(string), ShopperInteractionEnum? shopperInteraction = default(ShopperInteractionEnum?), string shopperLocale = default(string), Name shopperName = default(Name), string shopperReference = default(string), string shopperStatement = default(string), string socialSecurityNumber = default(string), List splits = default(List), string store = default(string), bool? storePaymentMethod = default(bool?), List subMerchants = default(List), Surcharge surcharge = default(Surcharge), string telephoneNumber = default(string), ThreeDS2RequestFields threeDS2RequestData = default(ThreeDS2RequestFields), bool? threeDSAuthenticationOnly = null, bool? trustedShopper = default(bool?)) { this.Amount = amount; this.MerchantAccount = merchantAccount; diff --git a/Adyen/Model/Checkout/RakutenPayDetails.cs b/Adyen/Model/Checkout/RakutenPayDetails.cs index ee4929ddb..c476ca0e1 100644 --- a/Adyen/Model/Checkout/RakutenPayDetails.cs +++ b/Adyen/Model/Checkout/RakutenPayDetails.cs @@ -61,7 +61,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **rakutenpay** (default to TypeEnum.Rakutenpay). - public RakutenPayDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Rakutenpay) + public RakutenPayDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.RecurringDetailReference = recurringDetailReference; diff --git a/Adyen/Model/Checkout/SamsungPayDetails.cs b/Adyen/Model/Checkout/SamsungPayDetails.cs index 06b92a3df..346687d36 100644 --- a/Adyen/Model/Checkout/SamsungPayDetails.cs +++ b/Adyen/Model/Checkout/SamsungPayDetails.cs @@ -96,7 +96,7 @@ protected SamsungPayDetails() { } /// The payload you received from the Samsung Pay SDK response. (required). /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **samsungpay** (default to TypeEnum.Samsungpay). - public SamsungPayDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string recurringDetailReference = default(string), string samsungPayToken = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Samsungpay) + public SamsungPayDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), string recurringDetailReference = default(string), string samsungPayToken = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.SamsungPayToken = samsungPayToken; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/SepaDirectDebitDetails.cs b/Adyen/Model/Checkout/SepaDirectDebitDetails.cs index ccb9c3096..13126ee22 100644 --- a/Adyen/Model/Checkout/SepaDirectDebitDetails.cs +++ b/Adyen/Model/Checkout/SepaDirectDebitDetails.cs @@ -75,7 +75,7 @@ protected SepaDirectDebitDetails() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// The unique identifier of your user's verified transfer instrument, which you can use to top up their balance accounts.. /// **sepadirectdebit** (default to TypeEnum.Sepadirectdebit). - public SepaDirectDebitDetails(string checkoutAttemptId = default(string), string iban = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = TypeEnum.Sepadirectdebit) + public SepaDirectDebitDetails(string checkoutAttemptId = default(string), string iban = default(string), string ownerName = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string transferInstrumentId = default(string), TypeEnum? type = null) { this.Iban = iban; this.OwnerName = ownerName; diff --git a/Adyen/Model/Checkout/ThreeDS2RequestData.cs b/Adyen/Model/Checkout/ThreeDS2RequestData.cs index 97da42098..58f2a6f07 100644 --- a/Adyen/Model/Checkout/ThreeDS2RequestData.cs +++ b/Adyen/Model/Checkout/ThreeDS2RequestData.cs @@ -326,7 +326,7 @@ protected ThreeDS2RequestData() { } /// Identify the type of the transaction being authenticated.. /// The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0.. /// workPhone. - public ThreeDS2RequestData(AcctInfo acctInfo = default(AcctInfo), AcctTypeEnum? acctType = default(AcctTypeEnum?), string acquirerBIN = default(string), string acquirerMerchantID = default(string), AddrMatchEnum? addrMatch = default(AddrMatchEnum?), bool? authenticationOnly = false, ChallengeIndicatorEnum? challengeIndicator = default(ChallengeIndicatorEnum?), string deviceChannel = default(string), DeviceRenderOptions deviceRenderOptions = default(DeviceRenderOptions), Phone homePhone = default(Phone), string mcc = default(string), string merchantName = default(string), string messageVersion = default(string), Phone mobilePhone = default(Phone), string notificationURL = default(string), bool? payTokenInd = default(bool?), string paymentAuthenticationUseCase = default(string), string purchaseInstalData = default(string), string recurringExpiry = default(string), string recurringFrequency = default(string), string sdkAppID = default(string), string sdkEncData = default(string), SDKEphemPubKey sdkEphemPubKey = default(SDKEphemPubKey), int? sdkMaxTimeout = 60, string sdkReferenceNumber = default(string), string sdkTransID = default(string), string sdkVersion = default(string), string threeDSCompInd = default(string), string threeDSRequestorAuthenticationInd = default(string), ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = default(ThreeDSRequestorAuthenticationInfo), ThreeDSRequestorChallengeIndEnum? threeDSRequestorChallengeInd = default(ThreeDSRequestorChallengeIndEnum?), string threeDSRequestorID = default(string), string threeDSRequestorName = default(string), ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = default(ThreeDSRequestorPriorAuthenticationInfo), string threeDSRequestorURL = default(string), TransTypeEnum? transType = default(TransTypeEnum?), TransactionTypeEnum? transactionType = default(TransactionTypeEnum?), string whiteListStatus = default(string), Phone workPhone = default(Phone)) + public ThreeDS2RequestData(AcctInfo acctInfo = default(AcctInfo), AcctTypeEnum? acctType = default(AcctTypeEnum?), string acquirerBIN = default(string), string acquirerMerchantID = default(string), AddrMatchEnum? addrMatch = default(AddrMatchEnum?), bool? authenticationOnly = null, ChallengeIndicatorEnum? challengeIndicator = default(ChallengeIndicatorEnum?), string deviceChannel = default(string), DeviceRenderOptions deviceRenderOptions = default(DeviceRenderOptions), Phone homePhone = default(Phone), string mcc = default(string), string merchantName = default(string), string messageVersion = default(string), Phone mobilePhone = default(Phone), string notificationURL = default(string), bool? payTokenInd = default(bool?), string paymentAuthenticationUseCase = default(string), string purchaseInstalData = default(string), string recurringExpiry = default(string), string recurringFrequency = default(string), string sdkAppID = default(string), string sdkEncData = default(string), SDKEphemPubKey sdkEphemPubKey = default(SDKEphemPubKey), int? sdkMaxTimeout = null, string sdkReferenceNumber = default(string), string sdkTransID = default(string), string sdkVersion = default(string), string threeDSCompInd = default(string), string threeDSRequestorAuthenticationInd = default(string), ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = default(ThreeDSRequestorAuthenticationInfo), ThreeDSRequestorChallengeIndEnum? threeDSRequestorChallengeInd = default(ThreeDSRequestorChallengeIndEnum?), string threeDSRequestorID = default(string), string threeDSRequestorName = default(string), ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = default(ThreeDSRequestorPriorAuthenticationInfo), string threeDSRequestorURL = default(string), TransTypeEnum? transType = default(TransTypeEnum?), TransactionTypeEnum? transactionType = default(TransactionTypeEnum?), string whiteListStatus = default(string), Phone workPhone = default(Phone)) { this.DeviceChannel = deviceChannel; this.AcctInfo = acctInfo; diff --git a/Adyen/Model/Checkout/ThreeDS2RequestFields.cs b/Adyen/Model/Checkout/ThreeDS2RequestFields.cs index f53902a61..c0b4ee214 100644 --- a/Adyen/Model/Checkout/ThreeDS2RequestFields.cs +++ b/Adyen/Model/Checkout/ThreeDS2RequestFields.cs @@ -318,7 +318,7 @@ public enum TransactionTypeEnum /// Identify the type of the transaction being authenticated.. /// The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0.. /// workPhone. - public ThreeDS2RequestFields(AcctInfo acctInfo = default(AcctInfo), AcctTypeEnum? acctType = default(AcctTypeEnum?), string acquirerBIN = default(string), string acquirerMerchantID = default(string), AddrMatchEnum? addrMatch = default(AddrMatchEnum?), bool? authenticationOnly = false, ChallengeIndicatorEnum? challengeIndicator = default(ChallengeIndicatorEnum?), DeviceRenderOptions deviceRenderOptions = default(DeviceRenderOptions), Phone homePhone = default(Phone), string mcc = default(string), string merchantName = default(string), string messageVersion = default(string), Phone mobilePhone = default(Phone), string notificationURL = default(string), bool? payTokenInd = default(bool?), string paymentAuthenticationUseCase = default(string), string purchaseInstalData = default(string), string recurringExpiry = default(string), string recurringFrequency = default(string), string sdkAppID = default(string), SDKEphemPubKey sdkEphemPubKey = default(SDKEphemPubKey), int? sdkMaxTimeout = 60, string sdkReferenceNumber = default(string), string sdkTransID = default(string), string threeDSCompInd = default(string), string threeDSRequestorAuthenticationInd = default(string), ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = default(ThreeDSRequestorAuthenticationInfo), ThreeDSRequestorChallengeIndEnum? threeDSRequestorChallengeInd = default(ThreeDSRequestorChallengeIndEnum?), string threeDSRequestorID = default(string), string threeDSRequestorName = default(string), ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = default(ThreeDSRequestorPriorAuthenticationInfo), string threeDSRequestorURL = default(string), TransTypeEnum? transType = default(TransTypeEnum?), TransactionTypeEnum? transactionType = default(TransactionTypeEnum?), string whiteListStatus = default(string), Phone workPhone = default(Phone)) + public ThreeDS2RequestFields(AcctInfo acctInfo = default(AcctInfo), AcctTypeEnum? acctType = default(AcctTypeEnum?), string acquirerBIN = default(string), string acquirerMerchantID = default(string), AddrMatchEnum? addrMatch = default(AddrMatchEnum?), bool? authenticationOnly = null, ChallengeIndicatorEnum? challengeIndicator = default(ChallengeIndicatorEnum?), DeviceRenderOptions deviceRenderOptions = default(DeviceRenderOptions), Phone homePhone = default(Phone), string mcc = default(string), string merchantName = default(string), string messageVersion = default(string), Phone mobilePhone = default(Phone), string notificationURL = default(string), bool? payTokenInd = default(bool?), string paymentAuthenticationUseCase = default(string), string purchaseInstalData = default(string), string recurringExpiry = default(string), string recurringFrequency = default(string), string sdkAppID = default(string), SDKEphemPubKey sdkEphemPubKey = default(SDKEphemPubKey), int? sdkMaxTimeout = null, string sdkReferenceNumber = default(string), string sdkTransID = default(string), string threeDSCompInd = default(string), string threeDSRequestorAuthenticationInd = default(string), ThreeDSRequestorAuthenticationInfo threeDSRequestorAuthenticationInfo = default(ThreeDSRequestorAuthenticationInfo), ThreeDSRequestorChallengeIndEnum? threeDSRequestorChallengeInd = default(ThreeDSRequestorChallengeIndEnum?), string threeDSRequestorID = default(string), string threeDSRequestorName = default(string), ThreeDSRequestorPriorAuthenticationInfo threeDSRequestorPriorAuthenticationInfo = default(ThreeDSRequestorPriorAuthenticationInfo), string threeDSRequestorURL = default(string), TransTypeEnum? transType = default(TransTypeEnum?), TransactionTypeEnum? transactionType = default(TransactionTypeEnum?), string whiteListStatus = default(string), Phone workPhone = default(Phone)) { this.AcctInfo = acctInfo; this.AcctType = acctType; diff --git a/Adyen/Model/Checkout/VippsDetails.cs b/Adyen/Model/Checkout/VippsDetails.cs index f3d88f6ba..b609864e1 100644 --- a/Adyen/Model/Checkout/VippsDetails.cs +++ b/Adyen/Model/Checkout/VippsDetails.cs @@ -67,7 +67,7 @@ protected VippsDetails() { } /// This is the `recurringDetailReference` returned in the response when you created the token.. /// telephoneNumber (required). /// **vipps** (default to TypeEnum.Vipps). - public VippsDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string telephoneNumber = default(string), TypeEnum? type = TypeEnum.Vipps) + public VippsDetails(string checkoutAttemptId = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), string telephoneNumber = default(string), TypeEnum? type = null) { this.TelephoneNumber = telephoneNumber; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/VisaCheckoutDetails.cs b/Adyen/Model/Checkout/VisaCheckoutDetails.cs index e51dd8658..486b9449c 100644 --- a/Adyen/Model/Checkout/VisaCheckoutDetails.cs +++ b/Adyen/Model/Checkout/VisaCheckoutDetails.cs @@ -94,7 +94,7 @@ protected VisaCheckoutDetails() { } /// The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**.. /// **visacheckout** (default to TypeEnum.Visacheckout). /// The Visa Click to Pay Call ID value. When your shopper selects a payment and/or a shipping address from Visa Click to Pay, you will receive a Visa Click to Pay Call ID. (required). - public VisaCheckoutDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), TypeEnum? type = TypeEnum.Visacheckout, string visaCheckoutCallId = default(string)) + public VisaCheckoutDetails(string checkoutAttemptId = default(string), FundingSourceEnum? fundingSource = default(FundingSourceEnum?), TypeEnum? type = null, string visaCheckoutCallId = default(string)) { this.VisaCheckoutCallId = visaCheckoutCallId; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/WeChatPayDetails.cs b/Adyen/Model/Checkout/WeChatPayDetails.cs index ef5b1aafb..a0c1d53ee 100644 --- a/Adyen/Model/Checkout/WeChatPayDetails.cs +++ b/Adyen/Model/Checkout/WeChatPayDetails.cs @@ -65,7 +65,7 @@ public enum TypeEnum /// /// The checkout attempt identifier.. /// **wechatpay** (default to TypeEnum.Wechatpay). - public WeChatPayDetails(string checkoutAttemptId = default(string), TypeEnum? type = TypeEnum.Wechatpay) + public WeChatPayDetails(string checkoutAttemptId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.Type = type; diff --git a/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.cs b/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.cs index f7ed49490..6b95c1035 100644 --- a/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.cs +++ b/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.cs @@ -61,7 +61,7 @@ public enum TypeEnum /// The checkout attempt identifier.. /// openid. /// **wechatpayMiniProgram** (default to TypeEnum.WechatpayMiniProgram). - public WeChatPayMiniProgramDetails(string appId = default(string), string checkoutAttemptId = default(string), string openid = default(string), TypeEnum? type = TypeEnum.WechatpayMiniProgram) + public WeChatPayMiniProgramDetails(string appId = default(string), string checkoutAttemptId = default(string), string openid = default(string), TypeEnum? type = null) { this.AppId = appId; this.CheckoutAttemptId = checkoutAttemptId; diff --git a/Adyen/Model/Checkout/ZipDetails.cs b/Adyen/Model/Checkout/ZipDetails.cs index d4c340e79..8202ab000 100644 --- a/Adyen/Model/Checkout/ZipDetails.cs +++ b/Adyen/Model/Checkout/ZipDetails.cs @@ -68,7 +68,7 @@ public enum TypeEnum /// This is the `recurringDetailReference` returned in the response when you created the token.. /// This is the `recurringDetailReference` returned in the response when you created the token.. /// **zip** (default to TypeEnum.Zip). - public ZipDetails(string checkoutAttemptId = default(string), string clickAndCollect = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = TypeEnum.Zip) + public ZipDetails(string checkoutAttemptId = default(string), string clickAndCollect = default(string), string recurringDetailReference = default(string), string storedPaymentMethodId = default(string), TypeEnum? type = null) { this.CheckoutAttemptId = checkoutAttemptId; this.ClickAndCollect = clickAndCollect; diff --git a/templates/csharp/modelGeneric.mustache b/templates/csharp/modelGeneric.mustache index ffeedcb6e..2dfcf2199 100644 --- a/templates/csharp/modelGeneric.mustache +++ b/templates/csharp/modelGeneric.mustache @@ -128,7 +128,7 @@ {{#hasOnlyReadOnly}} [JsonConstructorAttribute] {{/hasOnlyReadOnly}} - public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isNumeric}}?{{/isNumeric}}{{#isBoolean}}{{^isNullable}}?{{/isNullable}}{{/isBoolean}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{^isDateTime}}{{{defaultValue}}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isNumeric}}?{{/isNumeric}}{{#isBoolean}}{{^isNullable}}?{{/isNullable}}{{/isBoolean}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}} + public {{classname}}({{#readWriteVars}}{{{datatypeWithEnum}}}{{#isNumeric}}?{{/isNumeric}}{{#isBoolean}}{{^isNullable}}?{{/isNullable}}{{/isBoolean}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}} {{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}} = {{#defaultValue}}{{^isDateTime}}{{^required}}null{{/required}}{{#required}}{{{defaultValue}}}{{/required}}{{/isDateTime}}{{#isDateTime}}default({{{datatypeWithEnum}}}){{/isDateTime}}{{/defaultValue}}{{^defaultValue}}default({{{datatypeWithEnum}}}{{#isNumeric}}?{{/isNumeric}}{{#isBoolean}}{{^isNullable}}?{{/isNullable}}{{/isBoolean}}{{#isEnum}}{{^isContainer}}{{^required}}?{{/required}}{{/isContainer}}{{/isEnum}}){{/defaultValue}}{{^-last}}, {{/-last}}{{/readWriteVars}}){{#parent}} : base({{#parentVars}}{{#lambda.camelcase_param}}{{name}}{{/lambda.camelcase_param}}{{^-last}}, {{/-last}}{{/parentVars}}){{/parent}} { {{#vars}} {{^isInherited}}