/// <summary> /// Initializes a new instance of the <see cref="DepositMethodsResponseOpenBankTransfer" /> class. /// </summary> /// <param name="cannotDisableReason">cannotDisableReason (required).</param> /// <param name="disablePermitted">disablePermitted (required).</param> /// <param name="iban">iban (required).</param> /// <param name="lastUsed">lastUsed (required).</param> /// <param name="maxDeposit">maxDeposit (required).</param> /// <param name="methodId">methodId (required).</param> /// <param name="minDeposit">minDeposit (required).</param> /// <param name="providerId">providerId (required).</param> public DepositMethodsResponseOpenBankTransfer(CannotDisableReasonEnum cannotDisableReason = default(CannotDisableReasonEnum), bool?disablePermitted = default(bool?), string iban = default(string), bool?lastUsed = default(bool?), OneOfdepositMethodsResponseOpenBankTransferMaxDeposit maxDeposit = default(OneOfdepositMethodsResponseOpenBankTransferMaxDeposit), string methodId = default(string), OneOfdepositMethodsResponseOpenBankTransferMinDeposit minDeposit = default(OneOfdepositMethodsResponseOpenBankTransferMinDeposit), string providerId = default(string)) { // to ensure "cannotDisableReason" is required (not null) if (cannotDisableReason == null) { throw new InvalidDataException("cannotDisableReason is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.CannotDisableReason = cannotDisableReason; } // to ensure "disablePermitted" is required (not null) if (disablePermitted == null) { throw new InvalidDataException("disablePermitted is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.DisablePermitted = disablePermitted; } // to ensure "iban" is required (not null) if (iban == null) { throw new InvalidDataException("iban is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.Iban = iban; } // to ensure "lastUsed" is required (not null) if (lastUsed == null) { throw new InvalidDataException("lastUsed is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.LastUsed = lastUsed; } // to ensure "maxDeposit" is required (not null) if (maxDeposit == null) { throw new InvalidDataException("maxDeposit is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.MaxDeposit = maxDeposit; } // to ensure "methodId" is required (not null) if (methodId == null) { throw new InvalidDataException("methodId is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.MethodId = methodId; } // to ensure "minDeposit" is required (not null) if (minDeposit == null) { throw new InvalidDataException("minDeposit is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.MinDeposit = minDeposit; } // to ensure "providerId" is required (not null) if (providerId == null) { throw new InvalidDataException("providerId is a required property for DepositMethodsResponseOpenBankTransfer and cannot be null"); } else { this.ProviderId = providerId; } }
/// <summary> /// Initializes a new instance of the <see cref="InlineResponse20068OpenBankTransfer" /> class. /// </summary> /// <param name="cannotDisableReason">cannotDisableReason (required).</param> /// <param name="disablePermitted">disablePermitted (required).</param> /// <param name="iban">iban (required).</param> /// <param name="lastUsed">lastUsed (required).</param> /// <param name="maxWithdrawal">maxWithdrawal (required).</param> /// <param name="methodId">methodId (required).</param> /// <param name="minWithdrawal">minWithdrawal (required).</param> /// <param name="providerId">providerId (required).</param> /// <param name="withdrawalBalance">withdrawalBalance (required).</param> public InlineResponse20068OpenBankTransfer(CannotDisableReasonEnum cannotDisableReason = default(CannotDisableReasonEnum), bool?disablePermitted = default(bool?), string iban = default(string), bool?lastUsed = default(bool?), OneOfinlineResponse20068OpenBankTransferMaxWithdrawal maxWithdrawal = default(OneOfinlineResponse20068OpenBankTransferMaxWithdrawal), string methodId = default(string), OneOfinlineResponse20068OpenBankTransferMinWithdrawal minWithdrawal = default(OneOfinlineResponse20068OpenBankTransferMinWithdrawal), string providerId = default(string), string withdrawalBalance = default(string)) { // to ensure "cannotDisableReason" is required (not null) if (cannotDisableReason == null) { throw new InvalidDataException("cannotDisableReason is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.CannotDisableReason = cannotDisableReason; } // to ensure "disablePermitted" is required (not null) if (disablePermitted == null) { throw new InvalidDataException("disablePermitted is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.DisablePermitted = disablePermitted; } // to ensure "iban" is required (not null) if (iban == null) { throw new InvalidDataException("iban is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.Iban = iban; } // to ensure "lastUsed" is required (not null) if (lastUsed == null) { throw new InvalidDataException("lastUsed is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.LastUsed = lastUsed; } // to ensure "maxWithdrawal" is required (not null) if (maxWithdrawal == null) { throw new InvalidDataException("maxWithdrawal is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.MaxWithdrawal = maxWithdrawal; } // to ensure "methodId" is required (not null) if (methodId == null) { throw new InvalidDataException("methodId is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.MethodId = methodId; } // to ensure "minWithdrawal" is required (not null) if (minWithdrawal == null) { throw new InvalidDataException("minWithdrawal is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.MinWithdrawal = minWithdrawal; } // to ensure "providerId" is required (not null) if (providerId == null) { throw new InvalidDataException("providerId is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.ProviderId = providerId; } // to ensure "withdrawalBalance" is required (not null) if (withdrawalBalance == null) { throw new InvalidDataException("withdrawalBalance is a required property for InlineResponse20068OpenBankTransfer and cannot be null"); } else { this.WithdrawalBalance = withdrawalBalance; } }
/// <summary> /// Initializes a new instance of the <see cref="InlineResponse20068Card" /> class. /// </summary> /// <param name="bin">bin (required).</param> /// <param name="cannotDisableReason">cannotDisableReason (required).</param> /// <param name="credit">credit (required).</param> /// <param name="disablePermitted">disablePermitted (required).</param> /// <param name="expiry">expiry (required).</param> /// <param name="issuer">issuer (required).</param> /// <param name="lastFour">lastFour (required).</param> /// <param name="lastUsed">lastUsed (required).</param> /// <param name="maxWithdrawal">maxWithdrawal (required).</param> /// <param name="methodId">methodId (required).</param> /// <param name="minWithdrawal">minWithdrawal (required).</param> /// <param name="paymentType">paymentType (required).</param> /// <param name="withdrawalBalance">withdrawalBalance (required).</param> public InlineResponse20068Card(string bin = default(string), CannotDisableReasonEnum cannotDisableReason = default(CannotDisableReasonEnum), bool?credit = default(bool?), bool?disablePermitted = default(bool?), DateTime?expiry = default(DateTime?), string issuer = default(string), string lastFour = default(string), bool?lastUsed = default(bool?), OneOfinlineResponse20068CardMaxWithdrawal maxWithdrawal = default(OneOfinlineResponse20068CardMaxWithdrawal), string methodId = default(string), OneOfinlineResponse20068CardMinWithdrawal minWithdrawal = default(OneOfinlineResponse20068CardMinWithdrawal), PaymentTypeEnum paymentType = default(PaymentTypeEnum), string withdrawalBalance = default(string)) { // to ensure "bin" is required (not null) if (bin == null) { throw new InvalidDataException("bin is a required property for InlineResponse20068Card and cannot be null"); } else { this.Bin = bin; } // to ensure "cannotDisableReason" is required (not null) if (cannotDisableReason == null) { throw new InvalidDataException("cannotDisableReason is a required property for InlineResponse20068Card and cannot be null"); } else { this.CannotDisableReason = cannotDisableReason; } // to ensure "credit" is required (not null) if (credit == null) { throw new InvalidDataException("credit is a required property for InlineResponse20068Card and cannot be null"); } else { this.Credit = credit; } // to ensure "disablePermitted" is required (not null) if (disablePermitted == null) { throw new InvalidDataException("disablePermitted is a required property for InlineResponse20068Card and cannot be null"); } else { this.DisablePermitted = disablePermitted; } // to ensure "expiry" is required (not null) if (expiry == null) { throw new InvalidDataException("expiry is a required property for InlineResponse20068Card and cannot be null"); } else { this.Expiry = expiry; } // to ensure "issuer" is required (not null) if (issuer == null) { throw new InvalidDataException("issuer is a required property for InlineResponse20068Card and cannot be null"); } else { this.Issuer = issuer; } // to ensure "lastFour" is required (not null) if (lastFour == null) { throw new InvalidDataException("lastFour is a required property for InlineResponse20068Card and cannot be null"); } else { this.LastFour = lastFour; } // to ensure "lastUsed" is required (not null) if (lastUsed == null) { throw new InvalidDataException("lastUsed is a required property for InlineResponse20068Card and cannot be null"); } else { this.LastUsed = lastUsed; } // to ensure "maxWithdrawal" is required (not null) if (maxWithdrawal == null) { throw new InvalidDataException("maxWithdrawal is a required property for InlineResponse20068Card and cannot be null"); } else { this.MaxWithdrawal = maxWithdrawal; } // to ensure "methodId" is required (not null) if (methodId == null) { throw new InvalidDataException("methodId is a required property for InlineResponse20068Card and cannot be null"); } else { this.MethodId = methodId; } // to ensure "minWithdrawal" is required (not null) if (minWithdrawal == null) { throw new InvalidDataException("minWithdrawal is a required property for InlineResponse20068Card and cannot be null"); } else { this.MinWithdrawal = minWithdrawal; } // to ensure "paymentType" is required (not null) if (paymentType == null) { throw new InvalidDataException("paymentType is a required property for InlineResponse20068Card and cannot be null"); } else { this.PaymentType = paymentType; } // to ensure "withdrawalBalance" is required (not null) if (withdrawalBalance == null) { throw new InvalidDataException("withdrawalBalance is a required property for InlineResponse20068Card and cannot be null"); } else { this.WithdrawalBalance = withdrawalBalance; } }
/// <summary> /// Initializes a new instance of the <see cref="DepositMethodsResponseWorldpay" /> class. /// </summary> /// <param name="bin">bin (required).</param> /// <param name="cannotDisableReason">cannotDisableReason (required).</param> /// <param name="disablePermitted">disablePermitted (required).</param> /// <param name="expiry">expiry (required).</param> /// <param name="issuer">issuer (required).</param> /// <param name="lastFour">lastFour (required).</param> /// <param name="lastUsed">lastUsed (required).</param> /// <param name="maxDeposit">maxDeposit (required).</param> /// <param name="methodId">methodId (required).</param> /// <param name="minDeposit">minDeposit (required).</param> public DepositMethodsResponseWorldpay(string bin = default(string), CannotDisableReasonEnum cannotDisableReason = default(CannotDisableReasonEnum), bool?disablePermitted = default(bool?), DateTime?expiry = default(DateTime?), string issuer = default(string), string lastFour = default(string), bool?lastUsed = default(bool?), OneOfdepositMethodsResponseWorldpayMaxDeposit maxDeposit = default(OneOfdepositMethodsResponseWorldpayMaxDeposit), string methodId = default(string), OneOfdepositMethodsResponseWorldpayMinDeposit minDeposit = default(OneOfdepositMethodsResponseWorldpayMinDeposit)) { // to ensure "bin" is required (not null) if (bin == null) { throw new InvalidDataException("bin is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.Bin = bin; } // to ensure "cannotDisableReason" is required (not null) if (cannotDisableReason == null) { throw new InvalidDataException("cannotDisableReason is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.CannotDisableReason = cannotDisableReason; } // to ensure "disablePermitted" is required (not null) if (disablePermitted == null) { throw new InvalidDataException("disablePermitted is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.DisablePermitted = disablePermitted; } // to ensure "expiry" is required (not null) if (expiry == null) { throw new InvalidDataException("expiry is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.Expiry = expiry; } // to ensure "issuer" is required (not null) if (issuer == null) { throw new InvalidDataException("issuer is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.Issuer = issuer; } // to ensure "lastFour" is required (not null) if (lastFour == null) { throw new InvalidDataException("lastFour is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.LastFour = lastFour; } // to ensure "lastUsed" is required (not null) if (lastUsed == null) { throw new InvalidDataException("lastUsed is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.LastUsed = lastUsed; } // to ensure "maxDeposit" is required (not null) if (maxDeposit == null) { throw new InvalidDataException("maxDeposit is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.MaxDeposit = maxDeposit; } // to ensure "methodId" is required (not null) if (methodId == null) { throw new InvalidDataException("methodId is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.MethodId = methodId; } // to ensure "minDeposit" is required (not null) if (minDeposit == null) { throw new InvalidDataException("minDeposit is a required property for DepositMethodsResponseWorldpay and cannot be null"); } else { this.MinDeposit = minDeposit; } }