@@ -179,7 +179,8 @@ extension Order {
179179 shippingLines: CopiableProp < [ ShippingLine ] > = . copy,
180180 coupons: CopiableProp < [ OrderCouponLine ] > = . copy,
181181 refunds: CopiableProp < [ OrderRefundCondensed ] > = . copy,
182- fees: CopiableProp < [ OrderFeeLine ] > = . copy
182+ fees: CopiableProp < [ OrderFeeLine ] > = . copy,
183+ tax: CopiableProp < [ OrderTaxLine ] > = . copy
183184 ) -> Order {
184185 let siteID = siteID ?? self . siteID
185186 let orderID = orderID ?? self . orderID
@@ -208,6 +209,7 @@ extension Order {
208209 let coupons = coupons ?? self . coupons
209210 let refunds = refunds ?? self . refunds
210211 let fees = fees ?? self . fees
212+ let tax = tax ?? self . tax
211213
212214 return Order (
213215 siteID: siteID,
@@ -236,7 +238,8 @@ extension Order {
236238 shippingLines: shippingLines,
237239 coupons: coupons,
238240 refunds: refunds,
239- fees: fees
241+ fees: fees,
242+ tax: tax
240243 )
241244 }
242245}
@@ -472,6 +475,42 @@ extension OrderStatsV4Totals {
472475 }
473476}
474477
478+ extension OrderTaxLine {
479+ public func copy(
480+ taxID: CopiableProp < Int64 > = . copy,
481+ rateCode: CopiableProp < String > = . copy,
482+ rateID: CopiableProp < Int64 > = . copy,
483+ label: CopiableProp < String > = . copy,
484+ isCompoundTaxRate: CopiableProp < Bool > = . copy,
485+ totalTax: CopiableProp < String > = . copy,
486+ totalShippingTax: CopiableProp < String > = . copy,
487+ ratePercent: CopiableProp < Double > = . copy,
488+ attributes: CopiableProp < [ OrderItemAttribute ] > = . copy
489+ ) -> OrderTaxLine {
490+ let taxID = taxID ?? self . taxID
491+ let rateCode = rateCode ?? self . rateCode
492+ let rateID = rateID ?? self . rateID
493+ let label = label ?? self . label
494+ let isCompoundTaxRate = isCompoundTaxRate ?? self . isCompoundTaxRate
495+ let totalTax = totalTax ?? self . totalTax
496+ let totalShippingTax = totalShippingTax ?? self . totalShippingTax
497+ let ratePercent = ratePercent ?? self . ratePercent
498+ let attributes = attributes ?? self . attributes
499+
500+ return OrderTaxLine (
501+ taxID: taxID,
502+ rateCode: rateCode,
503+ rateID: rateID,
504+ label: label,
505+ isCompoundTaxRate: isCompoundTaxRate,
506+ totalTax: totalTax,
507+ totalShippingTax: totalShippingTax,
508+ ratePercent: ratePercent,
509+ attributes: attributes
510+ )
511+ }
512+ }
513+
475514extension PaymentGatewayAccount {
476515 public func copy(
477516 siteID: CopiableProp < Int64 > = . copy,
0 commit comments