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