code property

String get code

The raw category id the API uses; inverse of fromApiValue. Empty for local-only categories.

Implementation

String get code => switch (this) {
  PaymentCategory.paymentSession => '',
  PaymentCategory.paymentSessionSheet => '',
  PaymentCategory.sdkCheckout => '',
  PaymentCategory.ewallet => 'ewallet',
  PaymentCategory.biller => 'biller',
  PaymentCategory.bankAccount => 'bankaccount',
  PaymentCategory.visaMasterCardPayment => 'visamastercardpayment',
  PaymentCategory.unionPayCardPayment => 'unionpaycardpayment',
  PaymentCategory.dqrcPayment => 'dqrcpayment',
  PaymentCategory.sqrcPayment => 'sqrcpayment',
  PaymentCategory.rtpNowPayment => 'rtpnowpayment',
  PaymentCategory.rtpLaterPayment => 'rtplaterpayment',
  PaymentCategory.tokenization => 'tokenization',
  PaymentCategory.rtpEwalletPayment => 'rtpewalletpayment',
  PaymentCategory.bnpl => 'bnpl',
  PaymentCategory.unknown => '',
};