copyWith method

SubscriptionRequestMessage copyWith({
  1. String? customerId,
  2. String? planId,
  3. DateTime? expiresAt,
  4. bool? onlyOnChargeSuccess,
  5. String? payableWith,
  6. bool? isCreditBased,
  7. int? priceCents,
  8. int? creditsCycle,
  9. int? creditsMin,
  10. List<SubscriptionSubitem>? subitems,
  11. List<CustomVariables>? customVariables,
})

Implementation

SubscriptionRequestMessage copyWith({
  String? customerId,
  String? planId,
  DateTime? expiresAt,
  bool? onlyOnChargeSuccess,
  String? payableWith,
  bool? isCreditBased,
  int? priceCents,
  int? creditsCycle,
  int? creditsMin,
  List<SubscriptionSubitem>? subitems,
  List<CustomVariables>? customVariables,
}) {
  return SubscriptionRequestMessage(
    customerId: customerId ?? this.customerId,
    planId: planId ?? this.planId,
    expiresAt: expiresAt ?? this.expiresAt,
    onlyOnChargeSuccess: onlyOnChargeSuccess ?? this.onlyOnChargeSuccess,
    payableWith: payableWith ?? this.payableWith,
    isCreditBased: isCreditBased ?? this.isCreditBased,
    priceCents: priceCents ?? this.priceCents,
    creditsCycle: creditsCycle ?? this.creditsCycle,
    creditsMin: creditsMin ?? this.creditsMin,
    subitems: subitems ?? this.subitems,
    customVariables: customVariables ?? this.customVariables,
  );
}