copyWith method
GooglePayRequest
copyWith({
- String? merchant,
- String? orderNumber,
- String? description,
- String? language,
- Map<
String, dynamic> ? additionalParameters, - bool? preAuth,
- String? clientId,
- String? paymentToken,
- String? ip,
- int? amount,
- String? currencyCode,
- String? email,
- int? phone,
- String? returnUrl,
- String? failUrl,
- ProtocolVersion? protocolVersion,
- int? feeInput,
- String? dynamicCallbackUrl,
- BillingPayerData? billingPayerData,
Создает экземпляр с заданными параметрами
Implementation
@override
GooglePayRequest copyWith({
String? merchant,
String? orderNumber,
String? description,
String? language,
Map<String, dynamic>? additionalParameters,
bool? preAuth,
String? clientId,
String? paymentToken,
String? ip,
int? amount,
String? currencyCode,
String? email,
int? phone,
String? returnUrl,
String? failUrl,
ProtocolVersion? protocolVersion,
int? feeInput,
String? dynamicCallbackUrl,
BillingPayerData? billingPayerData,
}) {
return GooglePayRequest(
merchant: merchant ?? this.merchant,
orderNumber: orderNumber ?? this.orderNumber,
description: description ?? this.description,
language: language ?? this.language,
additionalParameters: additionalParameters ?? this.additionalParameters,
preAuth: preAuth ?? this.preAuth,
clientId: clientId ?? this.clientId,
paymentToken: paymentToken ?? this.paymentToken,
ip: ip ?? this.ip,
amount: amount ?? this.amount,
currencyCode: currencyCode ?? this.currencyCode,
email: email ?? this.email,
phone: phone ?? this.phone,
returnUrl: returnUrl ?? this.returnUrl,
failUrl: failUrl ?? this.failUrl,
protocolVersion: protocolVersion ?? this.protocolVersion,
feeInput: feeInput ?? this.feeInput,
dynamicCallbackUrl: dynamicCallbackUrl ?? this.dynamicCallbackUrl,
billingPayerData: billingPayerData ?? this.billingPayerData,
);
}