copyWith method
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,
})
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,
);
}