CashBackPayload constructor

CashBackPayload({
  1. required String merchantCashbackId,
  2. required String userAuthorizationId,
  3. required Amount amount,
  4. String? merchantCashbackReversalId,
  5. int? requestedAt,
  6. String? orderDescription,
  7. String? walletType,
  8. int? expiryDate,
  9. Map<String, dynamic>? metadata,
})

Implementation

factory CashBackPayload({
  /// [Required]
  /// string <= 64 characters
  required String merchantCashbackId,

  /// [Required]
  /// string <= 64 characters
  required String userAuthorizationId,

  /// [Required]
  /// Amount the user has to Pay
  required Amount amount,

  /// string <= 64 characters
  String? merchantCashbackReversalId,

  /// Request timestamp(Unix epoch but not Unix millisecond epoch)
  int? requestedAt,

  /// Description of the Order,
  /// to see the link to check how it will show up
  /// https://www.paypay.ne.jp/opa/doc/jp/v1.0/files/OPA%20PayPay%E3%82%A2%E3%83%97%E3%83%AA%E3%81%A7%E3%81%AE%E8%A1%A8%E7%A4%BA.pdf#page=4
  /// string <= 255 characters
  String? orderDescription,
  String? walletType,
  int? expiryDate,
  Map<String, dynamic>? metadata,
}) = _CashBackPayload;