copyWith method

ShopifySharpOrder copyWith({
  1. int? appId,
  2. ShopifySharpAddress? billingAddress,
  3. String? browserIp,
  4. bool? buyerAcceptsMarketing,
  5. String? cancelReason,
  6. DateTime? cancelledAt,
  7. String? cartToken,
  8. String? checkoutToken,
  9. int? checkoutId,
  10. ShopifySharpClientDetails? clientDetails,
  11. DateTime? closedAt,
  12. bool? confirmed,
  13. DateTime? createdAt,
  14. String? currency,
  15. ShopifySharpCustomer? customer,
  16. String? customerLocale,
  17. int? deviceId,
  18. List<ShopifySharpDiscountCode>? discountCodes,
  19. List<ShopifySharpDiscountApplication>? discountApplications,
  20. String? email,
  21. String? financialStatus,
  22. List<ShopifySharpFulfillment>? fulfillments,
  23. String? fulfillmentStatus,
  24. String? phone,
  25. String? tags,
  26. String? landingSite,
  27. List<ShopifySharpLineItem>? lineItems,
  28. int? locationId,
  29. String? name,
  30. String? note,
  31. List<ShopifySharpNoteAttribute>? noteAttributes,
  32. int? number,
  33. int? orderNumber,
  34. String? orderStatusUrl,
  35. List<String>? paymentGatewayNames,
  36. DateTime? processedAt,
  37. String? processingMethod,
  38. String? referringSite,
  39. List<ShopifySharpRefund>? refunds,
  40. ShopifySharpAddress? shippingAddress,
  41. List<ShopifySharpShippingLine>? shippingLines,
  42. String? sourceIdentifier,
  43. String? sourceName,
  44. double? subtotalPrice,
  45. List<ShopifySharpTaxLine>? taxLines,
  46. bool? taxesIncluded,
  47. bool? test,
  48. String? token,
  49. double? totalDiscounts,
  50. double? totalLineItemsPrice,
  51. double? totalTipReceived,
  52. double? totalPrice,
  53. double? totalTax,
  54. int? totalWeight,
  55. DateTime? updatedAt,
  56. int? userId,
  57. List<ShopifySharpTransaction>? transactions,
  58. List<ShopifySharpMetaField>? metafields,
  59. ShopifySharpPriceSet? currentTotalDutiesSet,
  60. ShopifySharpPriceSet? originalTotalDutiesSet,
  61. String? presentmentCurrency,
  62. ShopifySharpPriceSet? totalLineItemsPriceSet,
  63. ShopifySharpPriceSet? totalDiscountsSet,
  64. ShopifySharpPriceSet? totalShippingPriceSet,
  65. ShopifySharpPriceSet? subtotalPriceSet,
  66. ShopifySharpPriceSet? totalPriceSet,
  67. String? totalOutstanding,
  68. ShopifySharpPriceSet? totalTaxSet,
  69. bool? estimatedTaxes,
  70. double? currentSubtotalPrice,
  71. ShopifySharpPriceSet? currentSubtotalPriceSet,
  72. double? currentTotalDiscounts,
  73. ShopifySharpPriceSet? currentTotalDiscountsSet,
  74. double? currentTotalPrice,
  75. ShopifySharpPriceSet? currentTotalPriceSet,
  76. double? currentTotalTax,
  77. ShopifySharpPriceSet? currentTotalTaxSet,
  78. ShopifySharpPaymentTerms? paymentTerms,
  79. ShopifySharpPriceSet? currentTotalAdditionalFeesSet,
  80. ShopifySharpPriceSet? originalTotalAdditionalFeesSet,
  81. String? poNumber,
  82. bool? taxExempt,
  83. ShopifySharpOrderCompany? company,
  84. int? id,
  85. 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,
  );
}