CountryBasedPaymentAccountPayload constructor

CountryBasedPaymentAccountPayload({
  1. String? countryCode,
  2. Iterable<String>? acceptedCountryCodes,
  3. BankAccountPayload? bankAccountPayload,
  4. CashDepositAccountPayload? cashDepositAccountPayload,
  5. SepaAccountPayload? sepaAccountPayload,
  6. WesternUnionAccountPayload? westernUnionAccountPayload,
  7. SepaInstantAccountPayload? sepaInstantAccountPayload,
  8. F2FAccountPayload? f2fAccountPayload,
  9. UpiAccountPayload? upiAccountPayload,
  10. PaytmAccountPayload? paytmAccountPayload,
  11. IfscBasedAccountPayload? ifscBasedAccountPayload,
  12. NequiAccountPayload? nequiAccountPayload,
  13. BizumAccountPayload? bizumAccountPayload,
  14. PixAccountPayload? pixAccountPayload,
  15. SatispayAccountPayload? satispayAccountPayload,
  16. StrikeAccountPayload? strikeAccountPayload,
  17. TikkieAccountPayload? tikkieAccountPayload,
  18. TransferwiseUsdAccountPayload? transferwiseUsdAccountPayload,
  19. SwiftAccountPayload? swiftAccountPayload,
})

Implementation

factory CountryBasedPaymentAccountPayload({
  $core.String? countryCode,
  $core.Iterable<$core.String>? acceptedCountryCodes,
  BankAccountPayload? bankAccountPayload,
  CashDepositAccountPayload? cashDepositAccountPayload,
  SepaAccountPayload? sepaAccountPayload,
  WesternUnionAccountPayload? westernUnionAccountPayload,
  SepaInstantAccountPayload? sepaInstantAccountPayload,
  F2FAccountPayload? f2fAccountPayload,
  UpiAccountPayload? upiAccountPayload,
  PaytmAccountPayload? paytmAccountPayload,
  IfscBasedAccountPayload? ifscBasedAccountPayload,
  NequiAccountPayload? nequiAccountPayload,
  BizumAccountPayload? bizumAccountPayload,
  PixAccountPayload? pixAccountPayload,
  SatispayAccountPayload? satispayAccountPayload,
  StrikeAccountPayload? strikeAccountPayload,
  TikkieAccountPayload? tikkieAccountPayload,
  TransferwiseUsdAccountPayload? transferwiseUsdAccountPayload,
  SwiftAccountPayload? swiftAccountPayload,
}) {
  final $result = create();
  if (countryCode != null) {
    $result.countryCode = countryCode;
  }
  if (acceptedCountryCodes != null) {
    $result.acceptedCountryCodes.addAll(acceptedCountryCodes);
  }
  if (bankAccountPayload != null) {
    $result.bankAccountPayload = bankAccountPayload;
  }
  if (cashDepositAccountPayload != null) {
    $result.cashDepositAccountPayload = cashDepositAccountPayload;
  }
  if (sepaAccountPayload != null) {
    $result.sepaAccountPayload = sepaAccountPayload;
  }
  if (westernUnionAccountPayload != null) {
    $result.westernUnionAccountPayload = westernUnionAccountPayload;
  }
  if (sepaInstantAccountPayload != null) {
    $result.sepaInstantAccountPayload = sepaInstantAccountPayload;
  }
  if (f2fAccountPayload != null) {
    $result.f2fAccountPayload = f2fAccountPayload;
  }
  if (upiAccountPayload != null) {
    $result.upiAccountPayload = upiAccountPayload;
  }
  if (paytmAccountPayload != null) {
    $result.paytmAccountPayload = paytmAccountPayload;
  }
  if (ifscBasedAccountPayload != null) {
    $result.ifscBasedAccountPayload = ifscBasedAccountPayload;
  }
  if (nequiAccountPayload != null) {
    $result.nequiAccountPayload = nequiAccountPayload;
  }
  if (bizumAccountPayload != null) {
    $result.bizumAccountPayload = bizumAccountPayload;
  }
  if (pixAccountPayload != null) {
    $result.pixAccountPayload = pixAccountPayload;
  }
  if (satispayAccountPayload != null) {
    $result.satispayAccountPayload = satispayAccountPayload;
  }
  if (strikeAccountPayload != null) {
    $result.strikeAccountPayload = strikeAccountPayload;
  }
  if (tikkieAccountPayload != null) {
    $result.tikkieAccountPayload = tikkieAccountPayload;
  }
  if (transferwiseUsdAccountPayload != null) {
    $result.transferwiseUsdAccountPayload = transferwiseUsdAccountPayload;
  }
  if (swiftAccountPayload != null) {
    $result.swiftAccountPayload = swiftAccountPayload;
  }
  return $result;
}