copyWith method

ShopifySharpPaymentTerms copyWith({
  1. double? amount,
  2. String? currency,
  3. int? dueInDays,
  4. String? paymentTermsName,
  5. String? paymentTermsType,
  6. List<ShopifySharpPaymentSchedule>? paymentSchedules,
})

Implementation

ShopifySharpPaymentTerms copyWith({
  double? amount,
  String? currency,
  int? dueInDays,
  String? paymentTermsName,
  String? paymentTermsType,
  List<ShopifySharpPaymentSchedule>? paymentSchedules,
}) {
  return ShopifySharpPaymentTerms(
    amount: amount ?? this.amount,
    currency: currency ?? this.currency,
    dueInDays: dueInDays ?? this.dueInDays,
    paymentTermsName: paymentTermsName ?? this.paymentTermsName,
    paymentTermsType: paymentTermsType ?? this.paymentTermsType,
    paymentSchedules: paymentSchedules ?? this.paymentSchedules,
  );
}