copyWith method
ShopifySharpOrder
copyWith({
- int? appId,
- ShopifySharpAddress? billingAddress,
- String? browserIp,
- bool? buyerAcceptsMarketing,
- String? cancelReason,
- DateTime? cancelledAt,
- String? cartToken,
- String? checkoutToken,
- int? checkoutId,
- ShopifySharpClientDetails? clientDetails,
- DateTime? closedAt,
- bool? confirmed,
- DateTime? createdAt,
- String? currency,
- ShopifySharpCustomer? customer,
- String? customerLocale,
- int? deviceId,
- List<
ShopifySharpDiscountCode> ? discountCodes, - List<
ShopifySharpDiscountApplication> ? discountApplications, - String? email,
- String? financialStatus,
- List<
ShopifySharpFulfillment> ? fulfillments, - String? fulfillmentStatus,
- String? phone,
- String? tags,
- String? landingSite,
- List<
ShopifySharpLineItem> ? lineItems, - int? locationId,
- String? name,
- String? note,
- List<
ShopifySharpNoteAttribute> ? noteAttributes, - int? number,
- int? orderNumber,
- String? orderStatusUrl,
- List<
String> ? paymentGatewayNames, - DateTime? processedAt,
- String? processingMethod,
- String? referringSite,
- List<
ShopifySharpRefund> ? refunds, - ShopifySharpAddress? shippingAddress,
- List<
ShopifySharpShippingLine> ? shippingLines, - String? sourceIdentifier,
- String? sourceName,
- double? subtotalPrice,
- List<
ShopifySharpTaxLine> ? taxLines, - bool? taxesIncluded,
- bool? test,
- String? token,
- double? totalDiscounts,
- double? totalLineItemsPrice,
- double? totalTipReceived,
- double? totalPrice,
- double? totalTax,
- int? totalWeight,
- DateTime? updatedAt,
- int? userId,
- List<
ShopifySharpTransaction> ? transactions, - List<
ShopifySharpMetaField> ? metafields, - ShopifySharpPriceSet? currentTotalDutiesSet,
- ShopifySharpPriceSet? originalTotalDutiesSet,
- String? presentmentCurrency,
- ShopifySharpPriceSet? totalLineItemsPriceSet,
- ShopifySharpPriceSet? totalDiscountsSet,
- ShopifySharpPriceSet? totalShippingPriceSet,
- ShopifySharpPriceSet? subtotalPriceSet,
- ShopifySharpPriceSet? totalPriceSet,
- String? totalOutstanding,
- ShopifySharpPriceSet? totalTaxSet,
- bool? estimatedTaxes,
- double? currentSubtotalPrice,
- ShopifySharpPriceSet? currentSubtotalPriceSet,
- double? currentTotalDiscounts,
- ShopifySharpPriceSet? currentTotalDiscountsSet,
- double? currentTotalPrice,
- ShopifySharpPriceSet? currentTotalPriceSet,
- double? currentTotalTax,
- ShopifySharpPriceSet? currentTotalTaxSet,
- ShopifySharpPaymentTerms? paymentTerms,
- ShopifySharpPriceSet? currentTotalAdditionalFeesSet,
- ShopifySharpPriceSet? originalTotalAdditionalFeesSet,
- String? poNumber,
- bool? taxExempt,
- ShopifySharpOrderCompany? company,
- int? id,
- String? adminGraphqlApiId,
Implementation
ShopifySharpOrder copyWith({
int? appId,
ShopifySharpAddress? billingAddress,
String? browserIp,
bool? buyerAcceptsMarketing,
String? cancelReason,
DateTime? cancelledAt,
String? cartToken,
String? checkoutToken,
int? checkoutId,
ShopifySharpClientDetails? clientDetails,
DateTime? closedAt,
bool? confirmed,
DateTime? createdAt,
String? currency,
ShopifySharpCustomer? customer,
String? customerLocale,
int? deviceId,
List<ShopifySharpDiscountCode>? discountCodes,
List<ShopifySharpDiscountApplication>? discountApplications,
String? email,
String? financialStatus,
List<ShopifySharpFulfillment>? fulfillments,
String? fulfillmentStatus,
String? phone,
String? tags,
String? landingSite,
List<ShopifySharpLineItem>? lineItems,
int? locationId,
String? name,
String? note,
List<ShopifySharpNoteAttribute>? noteAttributes,
int? number,
int? orderNumber,
String? orderStatusUrl,
List<String>? paymentGatewayNames,
DateTime? processedAt,
String? processingMethod,
String? referringSite,
List<ShopifySharpRefund>? refunds,
ShopifySharpAddress? shippingAddress,
List<ShopifySharpShippingLine>? shippingLines,
String? sourceIdentifier,
String? sourceName,
double? subtotalPrice,
List<ShopifySharpTaxLine>? taxLines,
bool? taxesIncluded,
bool? test,
String? token,
double? totalDiscounts,
double? totalLineItemsPrice,
double? totalTipReceived,
double? totalPrice,
double? totalTax,
int? totalWeight,
DateTime? updatedAt,
int? userId,
List<ShopifySharpTransaction>? transactions,
List<ShopifySharpMetaField>? metafields,
ShopifySharpPriceSet? currentTotalDutiesSet,
ShopifySharpPriceSet? originalTotalDutiesSet,
String? presentmentCurrency,
ShopifySharpPriceSet? totalLineItemsPriceSet,
ShopifySharpPriceSet? totalDiscountsSet,
ShopifySharpPriceSet? totalShippingPriceSet,
ShopifySharpPriceSet? subtotalPriceSet,
ShopifySharpPriceSet? totalPriceSet,
String? totalOutstanding,
ShopifySharpPriceSet? totalTaxSet,
bool? estimatedTaxes,
double? currentSubtotalPrice,
ShopifySharpPriceSet? currentSubtotalPriceSet,
double? currentTotalDiscounts,
ShopifySharpPriceSet? currentTotalDiscountsSet,
double? currentTotalPrice,
ShopifySharpPriceSet? currentTotalPriceSet,
double? currentTotalTax,
ShopifySharpPriceSet? currentTotalTaxSet,
ShopifySharpPaymentTerms? paymentTerms,
ShopifySharpPriceSet? currentTotalAdditionalFeesSet,
ShopifySharpPriceSet? originalTotalAdditionalFeesSet,
String? poNumber,
bool? taxExempt,
ShopifySharpOrderCompany? company,
int? id,
String? adminGraphqlApiId,
}) {
return ShopifySharpOrder(
appId: appId ?? this.appId,
billingAddress: billingAddress ?? this.billingAddress,
browserIp: browserIp ?? this.browserIp,
buyerAcceptsMarketing:
buyerAcceptsMarketing ?? this.buyerAcceptsMarketing,
cancelReason: cancelReason ?? this.cancelReason,
cancelledAt: cancelledAt ?? this.cancelledAt,
cartToken: cartToken ?? this.cartToken,
checkoutToken: checkoutToken ?? this.checkoutToken,
checkoutId: checkoutId ?? this.checkoutId,
clientDetails: clientDetails ?? this.clientDetails,
closedAt: closedAt ?? this.closedAt,
confirmed: confirmed ?? this.confirmed,
createdAt: createdAt ?? this.createdAt,
currency: currency ?? this.currency,
customer: customer ?? this.customer,
customerLocale: customerLocale ?? this.customerLocale,
deviceId: deviceId ?? this.deviceId,
discountCodes: discountCodes ?? this.discountCodes,
discountApplications: discountApplications ?? this.discountApplications,
email: email ?? this.email,
financialStatus: financialStatus ?? this.financialStatus,
fulfillments: fulfillments ?? this.fulfillments,
fulfillmentStatus: fulfillmentStatus ?? this.fulfillmentStatus,
phone: phone ?? this.phone,
tags: tags ?? this.tags,
landingSite: landingSite ?? this.landingSite,
lineItems: lineItems ?? this.lineItems,
locationId: locationId ?? this.locationId,
name: name ?? this.name,
note: note ?? this.note,
noteAttributes: noteAttributes ?? this.noteAttributes,
number: number ?? this.number,
orderNumber: orderNumber ?? this.orderNumber,
orderStatusUrl: orderStatusUrl ?? this.orderStatusUrl,
paymentGatewayNames: paymentGatewayNames ?? this.paymentGatewayNames,
processedAt: processedAt ?? this.processedAt,
processingMethod: processingMethod ?? this.processingMethod,
referringSite: referringSite ?? this.referringSite,
refunds: refunds ?? this.refunds,
shippingAddress: shippingAddress ?? this.shippingAddress,
shippingLines: shippingLines ?? this.shippingLines,
sourceIdentifier: sourceIdentifier ?? this.sourceIdentifier,
sourceName: sourceName ?? this.sourceName,
subtotalPrice: subtotalPrice ?? this.subtotalPrice,
taxLines: taxLines ?? this.taxLines,
taxesIncluded: taxesIncluded ?? this.taxesIncluded,
test: test ?? this.test,
token: token ?? this.token,
totalDiscounts: totalDiscounts ?? this.totalDiscounts,
totalLineItemsPrice: totalLineItemsPrice ?? this.totalLineItemsPrice,
totalTipReceived: totalTipReceived ?? this.totalTipReceived,
totalPrice: totalPrice ?? this.totalPrice,
totalTax: totalTax ?? this.totalTax,
totalWeight: totalWeight ?? this.totalWeight,
updatedAt: updatedAt ?? this.updatedAt,
userId: userId ?? this.userId,
transactions: transactions ?? this.transactions,
metafields: metafields ?? this.metafields,
currentTotalDutiesSet:
currentTotalDutiesSet ?? this.currentTotalDutiesSet,
originalTotalDutiesSet:
originalTotalDutiesSet ?? this.originalTotalDutiesSet,
presentmentCurrency: presentmentCurrency ?? this.presentmentCurrency,
totalLineItemsPriceSet:
totalLineItemsPriceSet ?? this.totalLineItemsPriceSet,
totalDiscountsSet: totalDiscountsSet ?? this.totalDiscountsSet,
totalShippingPriceSet:
totalShippingPriceSet ?? this.totalShippingPriceSet,
subtotalPriceSet: subtotalPriceSet ?? this.subtotalPriceSet,
totalPriceSet: totalPriceSet ?? this.totalPriceSet,
totalOutstanding: totalOutstanding ?? this.totalOutstanding,
totalTaxSet: totalTaxSet ?? this.totalTaxSet,
estimatedTaxes: estimatedTaxes ?? this.estimatedTaxes,
currentSubtotalPrice: currentSubtotalPrice ?? this.currentSubtotalPrice,
currentSubtotalPriceSet:
currentSubtotalPriceSet ?? this.currentSubtotalPriceSet,
currentTotalDiscounts:
currentTotalDiscounts ?? this.currentTotalDiscounts,
currentTotalDiscountsSet:
currentTotalDiscountsSet ?? this.currentTotalDiscountsSet,
currentTotalPrice: currentTotalPrice ?? this.currentTotalPrice,
currentTotalPriceSet: currentTotalPriceSet ?? this.currentTotalPriceSet,
currentTotalTax: currentTotalTax ?? this.currentTotalTax,
currentTotalTaxSet: currentTotalTaxSet ?? this.currentTotalTaxSet,
paymentTerms: paymentTerms ?? this.paymentTerms,
currentTotalAdditionalFeesSet:
currentTotalAdditionalFeesSet ?? this.currentTotalAdditionalFeesSet,
originalTotalAdditionalFeesSet:
originalTotalAdditionalFeesSet ?? this.originalTotalAdditionalFeesSet,
poNumber: poNumber ?? this.poNumber,
taxExempt: taxExempt ?? this.taxExempt,
company: company ?? this.company,
id: id ?? this.id,
adminGraphqlApiId: adminGraphqlApiId ?? this.adminGraphqlApiId,
);
}