copyWith method

PaymentAttributesResponse copyWith({
  1. String? accessUrl,
  2. int? amount,
  3. String? balanceTransactionId,
  4. PayMongoBilling? billing,
  5. String? currency,
  6. String? description,
  7. bool? disputed,
  8. String? externalReferenceNumber,
  9. int? fee,
  10. int? foreignFee,
  11. bool? livemode,
  12. int? netAmount,
  13. String? origin,
  14. String? paymentIntentId,
  15. String? payout,
  16. PaymentAttributeSourceResponse? source,
  17. String? statementDescriptor,
  18. String? status,
  19. int? taxAmount,
  20. List<PaymentRefundResponse>? refunds,
  21. List<PaymentTaxResponse>? taxes,
  22. DateTime? availableAt,
  23. DateTime? createdAt,
  24. DateTime? paidAt,
  25. DateTime? updatedAt,
})

Implementation

PaymentAttributesResponse copyWith({
  String? accessUrl,
  int? amount,
  String? balanceTransactionId,
  PayMongoBilling? billing,
  String? currency,
  String? description,
  bool? disputed,
  String? externalReferenceNumber,
  int? fee,
  int? foreignFee,
  bool? livemode,
  int? netAmount,
  String? origin,
  String? paymentIntentId,
  String? payout,
  PaymentAttributeSourceResponse? source,
  String? statementDescriptor,
  String? status,
  int? taxAmount,
  List<PaymentRefundResponse>? refunds,
  List<PaymentTaxResponse>? taxes,
  DateTime? availableAt,
  DateTime? createdAt,
  DateTime? paidAt,
  DateTime? updatedAt,
}) {
  return PaymentAttributesResponse(
    accessUrl: accessUrl ?? this.accessUrl,
    amount: amount ?? this.amount,
    balanceTransactionId: balanceTransactionId ?? this.balanceTransactionId,
    billing: billing ?? this.billing,
    currency: currency ?? this.currency,
    description: description ?? this.description,
    disputed: disputed ?? this.disputed,
    externalReferenceNumber:
        externalReferenceNumber ?? this.externalReferenceNumber,
    fee: fee ?? this.fee,
    foreignFee: foreignFee ?? this.foreignFee,
    livemode: livemode ?? this.livemode,
    netAmount: netAmount ?? this.netAmount,
    origin: origin ?? this.origin,
    paymentIntentId: paymentIntentId ?? this.paymentIntentId,
    payout: payout ?? this.payout,
    source: source ?? this.source,
    statementDescriptor: statementDescriptor ?? this.statementDescriptor,
    status: status ?? this.status,
    taxAmount: taxAmount ?? this.taxAmount,
    refunds: refunds ?? this.refunds,
    taxes: taxes ?? this.taxes,
    availableAt: availableAt ?? this.availableAt,
    createdAt: createdAt ?? this.createdAt,
    paidAt: paidAt ?? this.paidAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}