copyWith method

ShopifySharpPaymentSchedule copyWith({
  1. double? amount,
  2. String? currency,
  3. DateTime? issuedAt,
  4. DateTime? dueAt,
  5. DateTime? completedAt,
  6. String? expectedPaymentMethod,
})

Implementation

ShopifySharpPaymentSchedule copyWith({
  double? amount,
  String? currency,
  DateTime? issuedAt,
  DateTime? dueAt,
  DateTime? completedAt,
  String? expectedPaymentMethod,
}) {
  return ShopifySharpPaymentSchedule(
    amount: amount ?? this.amount,
    currency: currency ?? this.currency,
    issuedAt: issuedAt ?? this.issuedAt,
    dueAt: dueAt ?? this.dueAt,
    completedAt: completedAt ?? this.completedAt,
    expectedPaymentMethod:
        expectedPaymentMethod ?? this.expectedPaymentMethod,
  );
}