Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix avalara for free shipping (#9973)

Iga Karbowiak90c076e33238
diff --git a/saleor/plugins/avatax/__init__.py b/saleor/plugins/avatax/__init__.py
index 9a290e4d74..9795eedc41 100644
--- a/saleor/plugins/avatax/__init__.py
+++ b/saleor/plugins/avatax/__init__.py
@@ -301,15 +301,23 @@ def get_checkout_lines_data(
undiscounted_amount = prices_data.undiscounted_price.net.amount
price_with_discounts_amount = prices_data.price_with_discounts.net.amount
+ # This is a workaround for Avatax and sending a lines with amount 0. Like
+ # order lines which are fully discounted for some reason. If we use a
+ # standard tax_code, Avatax will raise an exception: "When shipping
+ # cross-border into CIF countries, Tax Included is not supported with mixed
+ # positive and negative line amounts."
+ # This is also a workaround for Avatax when the tax_override_data is used.
+ # Otherwise Avatax will raise an exception: "TaxIncluded is not supported in
+ # combination with caps, thresholds, or base rules."
+ tax_code = (
+ tax_code
+ if undiscounted_amount and not tax_override_data
+ else DEFAULT_TAX_CODE
+ )
append_line_to_data_kwargs = {
"data": data,
"quantity": line_info.line.quantity,
- # This is a workaround for Avatax and sending a lines with amount 0. Like
- # order lines which are fully discounted for some reason. If we use a
- # standard tax_code, Avatax will raise an exception: "When shipping
- # cross-border into CIF countries, Tax Included is not supported with mixed
- # positive and negative line amounts."
- "tax_code": tax_code if undiscounted_amount else DEFAULT_TAX_CODE,
+ "tax_code": tax_code,
"item_code": item_code,
"name": name,
"tax_included": tax_included,
@@ -468,7 +476,7 @@ def generate_request_data_from_checkout(
discount_amount = (
checkout_info.checkout.discount.amount
if voucher
- and voucher.type == VoucherType.ENTIRE_ORDER
+ and voucher.type != VoucherType.SPECIFIC_PRODUCT
and not voucher.apply_once_per_order
else 0
)
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-24.39-30.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-24.39-30.00-True].yaml
index e1f6a1a8b4..3dec1c4122 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-24.39-30.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-24.39-30.00-True].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "7700a6a1-67d5-4fa4-9c21-3014823ebe8d",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "73aaa2e9-def5-42f8-9657-9f25c7f4524e", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"7700a6a1-67d5-4fa4-9c21-3014823ebe8d","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:06.9831635Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"73aaa2e9-def5-42f8-9657-9f25c7f4524e","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:40.3362922Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:06 GMT
+ - Fri, 10 Jun 2022 10:43:40 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0166558'
+ - '00:00:00.0140909'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - f8084462-7212-443c-81ad-eb97136a382a
+ - 7b8c7998-3e1c-43f6-9b01-8739fb5382bd
x-correlation-id:
- - f8084462-7212-443c-81ad-eb97136a382a
+ - 7b8c7998-3e1c-43f6-9b01-8739fb5382bd
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-30.00-36.90-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-30.00-36.90-False].yaml
index 99472643df..57fc648cdc 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-30.00-36.90-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[False-30.00-36.90-False].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false, "itemCode":
- "Shipping", "description": null}], "code": "71022bcf-8aae-449f-bdb6-0d3fd2e220d9",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ false, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "c91c298f-5db4-468e-b614-f0d047b63b60", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '788'
+ - '848'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"71022bcf-8aae-449f-bdb6-0d3fd2e220d9","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":9.2,"totalTaxable":40.0,"totalTaxCalculated":9.2,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:07.5108078Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"c91c298f-5db4-468e-b614-f0d047b63b60","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":9.2,"totalTaxable":40.0,"totalTaxCalculated":9.2,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:39.3906025Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:07 GMT
+ - Fri, 10 Jun 2022 10:43:39 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0178994'
+ - '00:00:00.0187541'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 8ecf0a20-9538-45dc-af03-35c3d5a4fe74
+ - 49a0d171-00d7-4d38-b6e7-60deed143a6e
x-correlation-id:
- - 8ecf0a20-9538-45dc-af03-35c3d5a4fe74
+ - 49a0d171-00d7-4d38-b6e7-60deed143a6e
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-12.20-15.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-12.20-15.00-True].yaml
index 32e88af6e8..06f2017251 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-12.20-15.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-12.20-15.00-True].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "a1c8e3ab-0be6-4ad4-9eb7-edc6bcea0e89",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "3caee3bb-fe98-49d2-a8e0-e1bdabc34cb7", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"a1c8e3ab-0be6-4ad4-9eb7-edc6bcea0e89","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:07.5520315Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"3caee3bb-fe98-49d2-a8e0-e1bdabc34cb7","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:39.7815724Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:07 GMT
+ - Fri, 10 Jun 2022 10:43:39 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0161400'
+ - '00:00:00.0142562'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 8cee50e5-a363-4838-aefb-40ec9eccbc17
+ - 7a3729eb-c642-4b67-a9db-5c0ec19f3e14
x-correlation-id:
- - 8cee50e5-a363-4838-aefb-40ec9eccbc17
+ - 7a3729eb-c642-4b67-a9db-5c0ec19f3e14
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-15.00-18.45-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-15.00-18.45-False].yaml
index 423fd96ee2..32ca67ed1f 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-15.00-18.45-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total[True-15.00-18.45-False].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false, "itemCode":
- "Shipping", "description": null}], "code": "693ef506-11a8-4693-9ca1-4cac869bea92",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ false, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "d6dc817e-0e3d-4825-bdb4-d65fe75566d7", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '788'
+ - '848'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"693ef506-11a8-4693-9ca1-4cac869bea92","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.75,"totalTaxable":25.0,"totalTaxCalculated":5.75,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:06.9825546Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":3.45,"taxableAmount":15.0,"taxCalculated":3.45,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.45,"taxableAmount":15.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":3.45,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":15.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.45,"reportingTaxCalculated":3.45,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"d6dc817e-0e3d-4825-bdb4-d65fe75566d7","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.75,"totalTaxable":25.0,"totalTaxCalculated":5.75,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:37.45295Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":3.45,"taxableAmount":15.0,"taxCalculated":3.45,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.45,"taxableAmount":15.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":3.45,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":15.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.45,"reportingTaxCalculated":3.45,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:06 GMT
+ - Fri, 10 Jun 2022 10:43:37 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0159633'
+ - '00:00:00.0155674'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 75d9669c-9b6a-44a3-ae43-548e54bbdf7e
+ - a8ea1fa2-62d1-485d-aecb-6802fb97c686
x-correlation-id:
- - 75d9669c-9b6a-44a3-ae43-548e54bbdf7e
+ - a8ea1fa2-62d1-485d-aecb-6802fb97c686
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale.yaml
index 5089415653..f85bd5fd55 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "c14a5402-a299-4b57-bef4-90feddf4ff48",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "39e4cd3e-05fe-408b-a632-96a0cd0d5fb1", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"c14a5402-a299-4b57-bef4-90feddf4ff48","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:07.5636854Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"39e4cd3e-05fe-408b-a632-96a0cd0d5fb1","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:41.5922739Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:07 GMT
+ - Fri, 10 Jun 2022 10:43:41 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0192057'
+ - '00:00:00.0150172'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - e12013e3-3280-4128-a35f-312a48acb324
+ - 54878f19-d366-41fb-a0b0-ceb4a30114a9
x-correlation-id:
- - e12013e3-3280-4128-a35f-312a48acb324
+ - 54878f19-d366-41fb-a0b0-ceb4a30114a9
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher.yaml
index f14aa89150..23dc5e00e6 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "6.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "30553d0a-b934-40d4-809f-cfc1539a1b4f",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "869f7b78-fb42-4560-9f28-995471cefc27", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '784'
+ - '844'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"30553d0a-b934-40d4-809f-cfc1539a1b4f","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":13.01,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":2.99,"totalTaxable":13.01,"totalTaxCalculated":2.99,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:07.5592127Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":4.8800,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":1.12,"taxableAmount":4.88,"taxCalculated":1.12,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.12,"taxableAmount":4.88,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":1.12,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":4.88,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.12,"reportingTaxCalculated":1.12,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"869f7b78-fb42-4560-9f28-995471cefc27","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":13.01,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":2.99,"totalTaxable":13.01,"totalTaxCalculated":2.99,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:41.544339Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":4.8800,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":1.12,"taxableAmount":4.88,"taxCalculated":1.12,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.12,"taxableAmount":4.88,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":1.12,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":4.88,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.12,"reportingTaxCalculated":1.12,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:07 GMT
+ - Fri, 10 Jun 2022 10:43:41 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0176978'
+ - '00:00:00.0174858'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - e7ecf30a-945c-47e2-8297-13e6756e5f9e
+ - 3a6d1b22-df3e-46e7-bf69-e3fc97c00186
x-correlation-id:
- - e7ecf30a-945c-47e2-8297-13e6756e5f9e
+ - 3a6d1b22-df3e-46e7-bf69-e3fc97c00186
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher_only_once.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher_only_once.yaml
index ddbd2feb88..d9667478f7 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher_only_once.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_variant_on_sale_and_voucher_only_once.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "12.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "7e86dd8b-661c-4661-b00f-c84c89a29b09",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "cbb3aef1-a8a7-47e0-98d4-fd01909bf457", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"7e86dd8b-661c-4661-b00f-c84c89a29b09","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":17.89,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.11,"totalTaxable":17.89,"totalTaxCalculated":4.11,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:08.6247975Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":9.7600,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.24,"taxableAmount":9.76,"taxCalculated":2.24,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.24,"taxableAmount":9.76,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.24,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.76,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.24,"reportingTaxCalculated":2.24,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"cbb3aef1-a8a7-47e0-98d4-fd01909bf457","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":17.89,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.11,"totalTaxable":17.89,"totalTaxCalculated":4.11,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:41.6104124Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":9.7600,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.24,"taxableAmount":9.76,"taxCalculated":2.24,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.24,"taxableAmount":9.76,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.24,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.76,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.24,"reportingTaxCalculated":2.24,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:41 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0177770'
+ - '00:00:00.0153488'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ba69b8fa-dbbb-4440-b3c5-c7c10c8eb5cf
+ - 5fee3f48-2bb3-4abc-9306-d671f34c580a
x-correlation-id:
- - ba69b8fa-dbbb-4440-b3c5-c7c10c8eb5cf
+ - 5fee3f48-2bb3-4abc-9306-d671f34c580a
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher.yaml
index eb2c579a54..7462eb09ad 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "21.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "04ff29d4-2650-466a-ba34-af16fdb7c056",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "9cda5899-ff3d-4cd0-8ad6-bc797e7c72a0", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"04ff29d4-2650-466a-ba34-af16fdb7c056","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.2,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.8,"totalTaxable":25.2,"totalTaxCalculated":5.8,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:06.9861363Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":17.0700,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":3.93,"taxableAmount":17.07,"taxCalculated":3.93,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.93,"taxableAmount":17.07,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":3.93,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":17.07,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.93,"reportingTaxCalculated":3.93,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"9cda5899-ff3d-4cd0-8ad6-bc797e7c72a0","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.2,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.8,"totalTaxable":25.2,"totalTaxCalculated":5.8,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:39.1862856Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":17.0700,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":3.93,"taxableAmount":17.07,"taxCalculated":3.93,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.93,"taxableAmount":17.07,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":3.93,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":17.07,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.93,"reportingTaxCalculated":3.93,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:06 GMT
+ - Fri, 10 Jun 2022 10:43:39 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0174614'
+ - '00:00:00.0146523'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 0978f468-5ca0-447b-985c-5f761da4edcc
+ - f8fdea34-501e-4444-a2d5-a66cf1f356c8
x-correlation-id:
- - 0978f468-5ca0-447b-985c-5f761da4edcc
+ - f8fdea34-501e-4444-a2d5-a66cf1f356c8
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher_once_per_order.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher_once_per_order.yaml
index b274f6c3ac..d4a838fa37 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher_once_per_order.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_total_with_voucher_once_per_order.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "27.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "bf902ef4-308e-44c8-948d-4d389ad5c334",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "00720ecb-4ef8-4746-ba71-6e650682de50", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"bf902ef4-308e-44c8-948d-4d389ad5c334","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":30.08,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:06.9876267Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":21.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"00720ecb-4ef8-4746-ba71-6e650682de50","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":30.08,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:34.1267578Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":21.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:06 GMT
+ - Fri, 10 Jun 2022 10:43:34 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0228250'
+ - '00:00:00.0441453'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 7bac1c2a-5378-4df7-9b28-1601ec560d51
+ - 20c5c916-96bf-43d2-b878-05129a6cece0
x-correlation-id:
- - 7bac1c2a-5378-4df7-9b28-1601ec560d51
+ - 20c5c916-96bf-43d2-b878-05129a6cece0
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price[True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price[True].yaml
index bb3e59957c..31b24db6d6 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price[True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price[True].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "4bd17cbe-da6a-41f8-8de4-591a4f4f8cb7",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "bfd158c5-338f-4f41-be25-6d59a27a860f", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"4bd17cbe-da6a-41f8-8de4-591a4f4f8cb7","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:11.8819949Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"bfd158c5-338f-4f41-be25-6d59a27a860f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:53.0803308Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0170713'
+ - '00:00:00.0141111'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 24315a47-9f20-42a7-9699-eb7a5471797f
+ - 161ab72c-1a38-4cff-8a89-6347c82a3d07
x-correlation-id:
- - 24315a47-9f20-42a7-9699-eb7a5471797f
+ - 161ab72c-1a38-4cff-8a89-6347c82a3d07
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_in_JPY.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_in_JPY.yaml
index b4ad25a526..0aa40e3e25 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_in_JPY.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_in_JPY.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "3600", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "700.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "ef59bd23-e07e-419b-ac37-7b8b762521b4",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "JPY", "email": null}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000",
+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "37d35079-8d91-4cd9-9eec-9c6bf949d57d", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "JPY", "email": null}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '774'
+ - '834'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"ef59bd23-e07e-419b-ac37-7b8b762521b4","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":3496.83,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":803.0,"totalTaxable":3495.94,"totalTaxCalculated":803.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"modifiedDate":"2022-05-05T09:28:12.963991Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":2926.8300,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":673.0,"taxableAmount":2926.83,"taxCalculated":673.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":673.17,"taxableAmount":2926.83,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":673.17,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2926.83,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":673.17,"reportingTaxCalculated":673.17,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":570.0000,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":130.89,"taxableAmount":569.11,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"37d35079-8d91-4cd9-9eec-9c6bf949d57d","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":3496.11,"totalExempt":0.17,"totalDiscount":0.0,"totalTax":803.0,"totalTaxable":3495.94,"totalTaxCalculated":803.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"modifiedDate":"2022-06-10T10:43:55.5797619Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":2927.0000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":673.0,"taxableAmount":2926.83,"taxCalculated":673.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":673.17,"taxableAmount":2926.83,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":673.17,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2926.83,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":673.17,"reportingTaxCalculated":673.17,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":569.1100,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":130.89,"taxableAmount":569.11,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":130.89,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":569.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":130.89,"reportingTaxCalculated":130.89,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:55 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0168527'
+ - '00:00:00.0142676'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 59fea473-f56c-4d3a-ba24-63f254e162e9
+ - c2d1c72a-7455-4f93-90c6-b90e012e1e35
x-correlation-id:
- - 59fea473-f56c-4d3a-ba24-63f254e162e9
+ - c2d1c72a-7455-4f93-90c6-b90e012e1e35
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale.yaml
index 0c53a5612a..3b65709760 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "9d0e25c2-eb94-47ff-b10e-fc9e0ffc0659",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "f9960d55-72cb-47b5-a4e3-684fb75e806f", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"9d0e25c2-eb94-47ff-b10e-fc9e0ffc0659","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:10.7204795Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"f9960d55-72cb-47b5-a4e3-684fb75e806f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:53.2273114Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0176042'
+ - '00:00:00.0147189'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 3297a264-8c06-4739-ad94-c431ecf33226
+ - 355c81a0-a30d-4d48-8ee4-91001abab167
x-correlation-id:
- - 3297a264-8c06-4739-ad94-c431ecf33226
+ - 355c81a0-a30d-4d48-8ee4-91001abab167
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher.yaml
index 6335af9e3e..b147ffff53 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "6.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "69039e17-7a83-413e-bf5e-504956e5488b",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "c6885f98-8c42-4a45-8635-600ea125716b", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '784'
+ - '844'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"69039e17-7a83-413e-bf5e-504956e5488b","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":13.01,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":2.99,"totalTaxable":13.01,"totalTaxCalculated":2.99,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:13.8592881Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":4.8800,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":1.12,"taxableAmount":4.88,"taxCalculated":1.12,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.12,"taxableAmount":4.88,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":1.12,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":4.88,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.12,"reportingTaxCalculated":1.12,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"c6885f98-8c42-4a45-8635-600ea125716b","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":13.01,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":2.99,"totalTaxable":13.01,"totalTaxCalculated":2.99,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:56.9523756Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":4.8800,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":1.12,"taxableAmount":4.88,"taxCalculated":1.12,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.12,"taxableAmount":4.88,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":1.12,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":4.88,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.12,"reportingTaxCalculated":1.12,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:13 GMT
+ - Fri, 10 Jun 2022 10:43:56 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0157660'
+ - '00:00:00.0163511'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 1c7f0aaf-87d5-4440-8e25-8885e0ade9dc
+ - 24a36da7-f93d-4fff-aff5-e90faf6554cf
x-correlation-id:
- - 1c7f0aaf-87d5-4440-8e25-8885e0ade9dc
+ - 24a36da7-f93d-4fff-aff5-e90faf6554cf
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher_only_once.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher_only_once.yaml
index 3fc88dd05e..bb9332c9fe 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher_only_once.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_variant_on_sale_and_voucher_only_once.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "12.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "7d235d68-e45a-477e-9c69-b144b59054cd",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "b18633bd-f704-4f76-9b00-f06f260f606d", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"7d235d68-e45a-477e-9c69-b144b59054cd","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":17.89,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.11,"totalTaxable":17.89,"totalTaxCalculated":4.11,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:11.177106Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":9.7600,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.24,"taxableAmount":9.76,"taxCalculated":2.24,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.24,"taxableAmount":9.76,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.24,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.76,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.24,"reportingTaxCalculated":2.24,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"b18633bd-f704-4f76-9b00-f06f260f606d","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":17.89,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.11,"totalTaxable":17.89,"totalTaxCalculated":4.11,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:58.7646803Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":9.7600,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.24,"taxableAmount":9.76,"taxCalculated":2.24,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.24,"taxableAmount":9.76,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.24,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.76,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.24,"reportingTaxCalculated":2.24,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 10:43:58 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0189420'
+ - '00:00:00.0172988'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - a3b90260-4855-479b-a446-3bb00e95aca6
+ - b067fb32-eba2-410c-bb40-e9e0a55bde1e
x-correlation-id:
- - a3b90260-4855-479b-a446-3bb00e95aca6
+ - b067fb32-eba2-410c-bb40-e9e0a55bde1e
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher.yaml
index ec2805ecc6..69cb9ce33b 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "21.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "68202b76-9c23-44b9-b080-6559db8f8ebb",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "85287964-e13c-45c4-a909-a4cd4da55d98", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"68202b76-9c23-44b9-b080-6559db8f8ebb","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.2,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.8,"totalTaxable":25.2,"totalTaxCalculated":5.8,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:11.8819657Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":17.0700,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":3.93,"taxableAmount":17.07,"taxCalculated":3.93,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.93,"taxableAmount":17.07,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":3.93,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":17.07,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.93,"reportingTaxCalculated":3.93,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"85287964-e13c-45c4-a909-a4cd4da55d98","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.2,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.8,"totalTaxable":25.2,"totalTaxCalculated":5.8,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:55.2689938Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":17.0700,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":3.93,"taxableAmount":17.07,"taxCalculated":3.93,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.93,"taxableAmount":17.07,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":3.93,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":17.07,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.93,"reportingTaxCalculated":3.93,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 10:43:55 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0158167'
+ - '00:00:00.0154645'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 98ecb58a-7aff-42f4-aea5-cefa9dc3ce55
+ - 3a76e1b5-07a8-4f71-917c-2ac19db1c21f
x-correlation-id:
- - 98ecb58a-7aff-42f4-aea5-cefa9dc3ce55
+ - 3a76e1b5-07a8-4f71-917c-2ac19db1c21f
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher_once_per_order.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher_once_per_order.yaml
index 56e44dd7cf..858b35ffd4 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher_once_per_order.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_unit_price_with_voucher_once_per_order.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "27.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "be5249f2-9fa6-442f-8bd8-396c406c43f4",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "c6c3064f-7b66-460b-ab4e-a6570df14f9f", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"be5249f2-9fa6-442f-8bd8-396c406c43f4","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":30.08,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:12.8693004Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":21.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"c6c3064f-7b66-460b-ab4e-a6570df14f9f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":30.08,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:57.1882829Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":21.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:57 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0154196'
+ - '00:00:00.0156086'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 7732132c-edea-4456-9baf-e433e8cbfb09
+ - fd6d3295-4dcc-499b-b64e-00aeb29037f9
x-correlation-id:
- - 7732132c-edea-4456-9baf-e433e8cbfb09
+ - fd6d3295-4dcc-499b-b64e-00aeb29037f9
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-24.39-30.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-24.39-30.00-True].yaml
index 067b10622e..0367a5016c 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-24.39-30.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-24.39-30.00-True].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "description": "Test product"},
- {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
- "itemCode": "Shipping", "description": null}], "code": "eaacdea2-7ea1-4f6c-bf35-6194dac657dd",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "discounted": false, "description":
+ "Test product"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "a21410fb-6687-43ef-900f-7150cb35849f", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '790'
+ - '850'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"eaacdea2-7ea1-4f6c-bf35-6194dac657dd","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:08.031044Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"a21410fb-6687-43ef-900f-7150cb35849f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:39.9815335Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:39 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0171162'
+ - '00:00:00.0157889'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 0868b25f-08b3-485c-b13d-ef7635558b8c
+ - d7a90677-0c37-45b3-bd85-88cbe50e704e
x-correlation-id:
- - 0868b25f-08b3-485c-b13d-ef7635558b8c
+ - d7a90677-0c37-45b3-bd85-88cbe50e704e
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-30.00-36.90-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-30.00-36.90-False].yaml
index 72b04d2269..ae2df07924 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-30.00-36.90-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[False-30.00-36.90-False].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "description": "Test product"},
- {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
- "itemCode": "Shipping", "description": null}], "code": "1a8366c9-7beb-451f-84d8-359743730e78",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ false, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "discounted": false, "description":
+ "Test product"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": false, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "225f3558-d6d7-4e43-bf7f-3be079bc79e8", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '792'
+ - '852'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"1a8366c9-7beb-451f-84d8-359743730e78","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":9.2,"totalTaxable":40.0,"totalTaxCalculated":9.2,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:08.5790731Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":30.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"225f3558-d6d7-4e43-bf7f-3be079bc79e8","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":9.2,"totalTaxable":40.0,"totalTaxCalculated":9.2,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:44.1350872Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":30.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:44 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0175456'
+ - '00:00:00.0146580'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - fcf88427-a611-4d34-848b-cc2493e320e0
+ - 2d2a892c-d966-493b-b4cc-af4f52a473d3
x-correlation-id:
- - fcf88427-a611-4d34-848b-cc2493e320e0
+ - 2d2a892c-d966-493b-b4cc-af4f52a473d3
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-12.20-15.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-12.20-15.00-True].yaml
index 56d2fb9324..1e7f03fd48 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-12.20-15.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-12.20-15.00-True].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "description": "Test product"},
- {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
- "itemCode": "Shipping", "description": null}], "code": "fd820a7a-88ef-4e4e-9213-8d65d0151f6d",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "discounted": false, "description":
+ "Test product"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "7319b141-baac-4c1c-af20-e021eb54d167", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '790'
+ - '850'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"fd820a7a-88ef-4e4e-9213-8d65d0151f6d","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:08.0349642Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":12.2000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"7319b141-baac-4c1c-af20-e021eb54d167","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:41.964428Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":12.2000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:41 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0173997'
+ - '00:00:00.0144565'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - c97d85ca-0cc6-4c98-9e24-37f15cf5b55e
+ - 5d08d93e-841a-4d30-a8af-70a2330d043c
x-correlation-id:
- - c97d85ca-0cc6-4c98-9e24-37f15cf5b55e
+ - 5d08d93e-841a-4d30-a8af-70a2330d043c
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-15.00-18.45-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-15.00-18.45-False].yaml
index 76df568798..616ae83427 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-15.00-18.45-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_line_without_sku_total[True-15.00-18.45-False].yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "description": "Test product"},
- {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
- "itemCode": "Shipping", "description": null}], "code": "e362bce3-244a-4c94-8523-7924d2db0b94",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ false, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "discounted": false, "description":
+ "Test product"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": false, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "6fa36e02-b663-486e-8492-a33015b92da8", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '792'
+ - '852'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"e362bce3-244a-4c94-8523-7924d2db0b94","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.75,"totalTaxable":25.0,"totalTaxCalculated":5.75,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:08.4834759Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":15.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":3.45,"taxableAmount":15.0,"taxCalculated":3.45,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.45,"taxableAmount":15.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":3.45,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":15.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.45,"reportingTaxCalculated":3.45,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"6fa36e02-b663-486e-8492-a33015b92da8","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.75,"totalTaxable":25.0,"totalTaxCalculated":5.75,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:41.04902Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":15.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":3.45,"taxableAmount":15.0,"taxCalculated":3.45,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.45,"taxableAmount":15.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":3.45,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":15.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.45,"reportingTaxCalculated":3.45,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:41 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0181321'
+ - '00:00:00.0144969'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 97255154-ddd6-406a-97ae-6d80db143f6c
+ - 4ff3d118-e933-470e-97b2-84c7547b7bdc
x-correlation-id:
- - 97255154-ddd6-406a-97ae-6d80db143f6c
+ - 4ff3d118-e933-470e-97b2-84c7547b7bdc
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_shipping.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_shipping.yaml
index f345409382..b1e2a33009 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_shipping.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_shipping.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "9f4debde-b2b2-40d9-8607-d044560a2844",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "1e5354da-4814-4cb1-a272-938d531a2926", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"9f4debde-b2b2-40d9-8607-d044560a2844","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:10.5188043Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"1e5354da-4814-4cb1-a272-938d531a2926","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:53.0906035Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0178913'
+ - '00:00:00.0155357'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - fe400636-4455-40b3-b659-780d3861a3b9
+ - ce46c386-a5a9-4d99-a9fd-74ef63c6f6f6
x-correlation-id:
- - fe400636-4455-40b3-b659-780d3861a3b9
+ - ce46c386-a5a9-4d99-a9fd-74ef63c6f6f6
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-40.65-50.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-40.65-50.00-True].yaml
index 0ca0b2ad94..f46ddee42a 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-40.65-50.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-40.65-50.00-True].yaml
@@ -2,12 +2,13 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 2, "amount": "20.00", "taxCode": "O9999999", "taxIncluded": true, "itemCode":
- "SKU_A", "description": "Test product", "ref1": "SKU_A"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "61d83fd6-6909-4801-a6e2-dc0b6151ee9c", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 2, "amount": "20.00", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product",
+ "ref1": "SKU_A"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "a1e4b78e-716d-426e-9188-d05225f3871a", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
"53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
@@ -22,18 +23,18 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '935'
+ - '1016'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"61d83fd6-6909-4801-a6e2-dc0b6151ee9c","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":48.78,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":11.22,"totalTaxable":48.78,"totalTaxCalculated":11.22,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:10.1280891Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"a1e4b78e-716d-426e-9188-d05225f3871a","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":48.78,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":11.22,"totalTaxable":48.78,"totalTaxCalculated":11.22,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:45.7653736Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":16.2600,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-05-05","tax":3.74,"taxableAmount":16.26,"taxCalculated":3.74,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.74,"taxableAmount":16.26,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":3.74,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":16.26,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.74,"reportingTaxCalculated":3.74,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":16.2600,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-06-10","tax":3.74,"taxableAmount":16.26,"taxCalculated":3.74,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.74,"taxableAmount":16.26,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":3.74,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":16.26,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.74,"reportingTaxCalculated":3.74,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -44,23 +45,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:45 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0221740'
+ - '00:00:00.0194135'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 2f88d40b-9ee7-460c-8e9c-c9f73c59f2e9
+ - d564f55c-a4fe-45f6-ae81-5cf1a6df1845
x-correlation-id:
- - 2f88d40b-9ee7-460c-8e9c-c9f73c59f2e9
+ - d564f55c-a4fe-45f6-ae81-5cf1a6df1845
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-50.00-61.50-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-50.00-61.50-False].yaml
index 7afbef7b20..348faa4656 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-50.00-61.50-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[False-50.00-61.50-False].yaml
@@ -2,12 +2,13 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 2, "amount": "20.00", "taxCode": "O9999999", "taxIncluded": false, "itemCode":
- "SKU_A", "description": "Test product", "ref1": "SKU_A"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": false, "itemCode": "Shipping",
- "description": null}], "code": "0ac69837-77f5-4093-8f7c-9f9bfa04bcd3", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
+ false, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 2, "amount": "20.00", "taxCode": "O9999999", "taxIncluded":
+ false, "itemCode": "SKU_A", "discounted": false, "description": "Test product",
+ "ref1": "SKU_A"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": false, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "19622a2a-b459-45e0-96cc-ea6031529019", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
"53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
@@ -22,18 +23,18 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '938'
+ - '1019'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"0ac69837-77f5-4093-8f7c-9f9bfa04bcd3","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":60.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":13.8,"totalTaxable":60.0,"totalTaxCalculated":13.8,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:10.1305329Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"19622a2a-b459-45e0-96cc-ea6031529019","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":60.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":13.8,"totalTaxable":60.0,"totalTaxCalculated":13.8,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:47.3854745Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":20.0,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-05-05","tax":4.6,"taxableAmount":20.0,"taxCalculated":4.6,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":4.6,"taxableAmount":20.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":4.6,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":20.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":4.6,"reportingTaxCalculated":4.6,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":20.0,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-06-10","tax":4.6,"taxableAmount":20.0,"taxCalculated":4.6,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":4.6,"taxableAmount":20.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":4.6,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":20.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":4.6,"reportingTaxCalculated":4.6,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -44,23 +45,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:47 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0210014'
+ - '00:00:00.0187075'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 0c523407-20fd-41aa-bb7d-ea0ebfabdc47
+ - 4895f21a-0ecb-4057-9d2c-b51ebcf1e999
x-correlation-id:
- - 0c523407-20fd-41aa-bb7d-ea0ebfabdc47
+ - 4895f21a-0ecb-4057-9d2c-b51ebcf1e999
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-20.33-25.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-20.33-25.00-True].yaml
index 0cf7ae5a7c..3b1d2a9dfd 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-20.33-25.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-20.33-25.00-True].yaml
@@ -2,12 +2,13 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 2, "amount": "10.00", "taxCode": "O9999999", "taxIncluded": true, "itemCode":
- "SKU_A", "description": "Test product", "ref1": "SKU_A"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "8fad4426-aaf0-402e-b2a0-b007585c326c", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 2, "amount": "10.00", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product",
+ "ref1": "SKU_A"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "e2c6cc2c-45c2-4c78-bc8a-c2971db0902f", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
"53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
@@ -22,18 +23,18 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '935'
+ - '1016'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"8fad4426-aaf0-402e-b2a0-b007585c326c","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":28.46,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.54,"totalTaxable":28.46,"totalTaxCalculated":6.54,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:11.1770728Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"e2c6cc2c-45c2-4c78-bc8a-c2971db0902f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":28.46,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.54,"totalTaxable":28.46,"totalTaxCalculated":6.54,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:49.3911346Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":8.1300,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":8.1300,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -44,23 +45,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 10:43:49 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0193193'
+ - '00:00:00.0178148'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 8d917720-731d-4f52-b7ee-18b880ec5a57
+ - dece057f-0276-492d-9459-b7b9802e4bcf
x-correlation-id:
- - 8d917720-731d-4f52-b7ee-18b880ec5a57
+ - dece057f-0276-492d-9459-b7b9802e4bcf
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-25.00-30.75-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-25.00-30.75-False].yaml
index ae5f3cbf48..6eaf57bddf 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-25.00-30.75-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal[True-25.00-30.75-False].yaml
@@ -2,12 +2,13 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 2, "amount": "10.00", "taxCode": "O9999999", "taxIncluded": false, "itemCode":
- "SKU_A", "description": "Test product", "ref1": "SKU_A"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": false, "itemCode": "Shipping",
- "description": null}], "code": "5ac7fb68-ce52-4b5d-a1a4-732ae969fcda", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
+ false, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 2, "amount": "10.00", "taxCode": "O9999999", "taxIncluded":
+ false, "itemCode": "SKU_A", "discounted": false, "description": "Test product",
+ "ref1": "SKU_A"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": false, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "8284696e-fb66-48ad-8c4a-3ec9c5d7d02b", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
"53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
@@ -22,18 +23,18 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '938'
+ - '1019'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"5ac7fb68-ce52-4b5d-a1a4-732ae969fcda","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":35.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.05,"totalTaxable":35.0,"totalTaxCalculated":8.05,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:10.532301Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":3.45,"taxableAmount":15.0,"taxCalculated":3.45,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.45,"taxableAmount":15.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"8284696e-fb66-48ad-8c4a-3ec9c5d7d02b","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":35.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.05,"totalTaxable":35.0,"totalTaxCalculated":8.05,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:55.1282391Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":3.45,"taxableAmount":15.0,"taxCalculated":3.45,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":3.45,"taxableAmount":15.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":3.45,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":15.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.45,"reportingTaxCalculated":3.45,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":10.0,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"SKU_A","lineAmount":10.0,"quantity":2.0,"ref1":"SKU_A","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -44,23 +45,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:55 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0281494'
+ - '00:00:00.0193985'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 15277c5c-5138-4958-b69c-bface2e10d2f
+ - f8ff7ff5-84fb-4a61-beec-3f725e2a9c37
x-correlation-id:
- - 15277c5c-5138-4958-b69c-bface2e10d2f
+ - f8ff7ff5-84fb-4a61-beec-3f725e2a9c37
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[False].yaml
index c3425518e4..f4410315c3 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[False].yaml
@@ -5,7 +5,7 @@ interactions:
false, "itemCode": "123", "discounted": true, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "0af4e820-220b-45eb-8810-70fd02db1d76", "date": "2022-05-16", "customerCode":
+ "8ebed2d7-da48-4af8-9995-d4753567389b", "date": "2022-06-10", "customerCode":
0, "discount": "30.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"0af4e820-220b-45eb-8810-70fd02db1d76","companyId":242975,"date":"2022-05-16","paymentDate":"2022-05-16","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":2.3,"totalTaxable":10.0,"totalTaxCalculated":2.3,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-16","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-16T13:07:37.6906528Z","modifiedUserId":283192,"taxDate":"2022-05-16","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-16","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-16","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-16","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-16","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"8ebed2d7-da48-4af8-9995-d4753567389b","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":2.3,"totalTaxable":10.0,"totalTaxCalculated":2.3,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:53.2709298Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Mon, 16 May 2022 13:07:37 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0175036'
+ - '00:00:00.0173816'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - cf64e248-1341-4c8d-9880-1f65ecdaef67
+ - f58de65c-b0d1-47d5-8a06-4c1616552ac8
x-correlation-id:
- - cf64e248-1341-4c8d-9880-1f65ecdaef67
+ - f58de65c-b0d1-47d5-8a06-4c1616552ac8
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[True].yaml
index dc6c54dd40..f50bc9aa9e 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_entire_order[True].yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "123", "discounted": true, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "fefea9b8-3d85-4f74-aa5c-bdba69ba1475", "date": "2022-05-16", "customerCode":
+ "40d338a6-6cf7-4926-8dc5-dd84f09165e0", "date": "2022-06-10", "customerCode":
0, "discount": "30.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"fefea9b8-3d85-4f74-aa5c-bdba69ba1475","companyId":242975,"date":"2022-05-16","paymentDate":"2022-05-16","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":1.87,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-16","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-16T13:07:37.6518444Z","modifiedUserId":283192,"taxDate":"2022-05-16","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-16","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-16","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-16","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-16","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"40d338a6-6cf7-4926-8dc5-dd84f09165e0","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":1.87,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:50.655274Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Mon, 16 May 2022 13:07:37 GMT
+ - Fri, 10 Jun 2022 10:43:50 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0176611'
+ - '00:00:00.0157656'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ed3e2c8c-660a-47ec-be12-58d86f990992
+ - f2577102-df48-4c73-a09a-3acc180fb529
x-correlation-id:
- - ed3e2c8c-660a-47ec-be12-58d86f990992
+ - f2577102-df48-4c73-a09a-3acc180fb529
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[24.39-30.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[24.39-30.00-True].yaml
index 12d775ea3a..778f4a41ec 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[24.39-30.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[24.39-30.00-True].yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "123", "discounted": false, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
true, "itemCode": "Shipping", "discounted": true, "description": null}], "code":
- "8415f3fc-a3fe-4c18-a0fe-24045d6bdec1", "date": "2022-05-13", "customerCode":
+ "89fea00e-b52d-4e7c-8592-d441c94aee62", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"8415f3fc-a3fe-4c18-a0fe-24045d6bdec1","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":34.39,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T08:41:59.0456706Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"89fea00e-b52d-4e7c-8592-d441c94aee62","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":34.39,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:55.2285926Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 13 May 2022 08:41:59 GMT
+ - Fri, 10 Jun 2022 10:43:55 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0157535'
+ - '00:00:00.0157730'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ca45a481-f167-4b19-92e9-e4e20982fd1a
+ - 3f67e464-5f34-4ca0-a089-861839eb784e
x-correlation-id:
- - ca45a481-f167-4b19-92e9-e4e20982fd1a
+ - 3f67e464-5f34-4ca0-a089-861839eb784e
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[30.00-36.90-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[30.00-36.90-False].yaml
index cfbedbb5ec..3bddf75451 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[30.00-36.90-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_subtotal_voucher_on_shipping[30.00-36.90-False].yaml
@@ -5,7 +5,7 @@ interactions:
false, "itemCode": "123", "discounted": false, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
false, "itemCode": "Shipping", "discounted": true, "description": null}], "code":
- "52dea757-d13d-452e-91fa-f2918a71921e", "date": "2022-05-13", "customerCode":
+ "13b37b56-d932-4caf-8575-4ab8585835fe", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"52dea757-d13d-452e-91fa-f2918a71921e","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T08:42:02.1813523Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"13b37b56-d932-4caf-8575-4ab8585835fe","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:57.0364048Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 13 May 2022 08:42:02 GMT
+ - Fri, 10 Jun 2022 10:43:57 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0159616'
+ - '00:00:00.0148209'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 6494ecd8-24c8-46be-b9fa-2bfa5cbee2cd
+ - ac3cf502-25e3-40b3-8105-a8bec5c34f1f
x-correlation-id:
- - 6494ecd8-24c8-46be-b9fa-2bfa5cbee2cd
+ - ac3cf502-25e3-40b3-8105-a8bec5c34f1f
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.04-38.99-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.04-38.99-3.0-True].yaml
new file mode 100644
index 0000000000..90258ce3dc
--- /dev/null
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.04-38.99-3.0-True].yaml
@@ -0,0 +1,79 @@
+interactions:
+- request:
+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
+ "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PS081282", "taxIncluded":
+ true, "itemCode": "123", "discounted": true, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description": "Test
+ product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "8ab38d51-58b0-4f58-ae7e-b7d551e75379", "date": "2022-06-10", "customerCode":
+ 0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate, br
+ Authorization:
+ - Basic Og==
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '1173'
+ User-Agent:
+ - python-requests/2.27.1
+ method: POST
+ uri: https://rest.avatax.com/api/v2/transactions/createoradjust
+ response:
+ body:
+ string: '{"id":0,"code":"8ab38d51-58b0-4f58-ae7e-b7d551e75379","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":35.04,"totalExempt":1.8,"totalDiscount":3.0,"totalTax":6.95,"totalTaxable":30.24,"totalTaxCalculated":7.36,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T11:51:02.3542493Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":2.81,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9200,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.08,"taxableAmount":22.11,"taxCalculated":5.08,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.08,"taxableAmount":22.11,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.08,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":22.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.08,"reportingTaxCalculated":5.08,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.19,"exemptAmount":1.8,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.41,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.8,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.41,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.8,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.41,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ Rate","rateType":"Standard","taxable":30.24,"rate":0.230000,"tax":6.95,"taxCalculated":7.36,"nonTaxable":1.8,"exemption":0.0}]}'
+ headers:
+ Connection:
+ - keep-alive
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Fri, 10 Jun 2022 11:51:02 GMT
+ Location:
+ - /api/v2/companies/242975/transactions/0
+ ServerDuration:
+ - '00:00:00.0204565'
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ cache-control:
+ - private, no-cache, no-store
+ referrer-policy:
+ - same-origin
+ strict-transport-security:
+ - max-age=31536000; includeSubdomains
+ x-avalara-uid:
+ - 3987f3e3-441d-4de3-9f89-05f62ea7db1f
+ x-correlation-id:
+ - 3987f3e3-441d-4de3-9f89-05f62ea7db1f
+ x-frame-options:
+ - sameorigin
+ x-permitted-cross-domain-policies:
+ - none
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.07-38.99-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.07-38.99-3.0-True].yaml
index 4979674df2..a7848fb430 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.07-38.99-3.0-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-32.07-38.99-3.0-True].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PS081282", "taxIncluded":
true, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "1df436e1-037f-4615-b171-0917186233b2", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description": "Test
+ product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "ab4dd56a-bd5a-4eef-925b-23ae3aa55f3f", "date": "2022-06-10", "customerCode":
0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '846'
+ - '1173'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"1df436e1-037f-4615-b171-0917186233b2","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":33.08,"totalExempt":0.0,"totalDiscount":3.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:04:28.4924809Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":3.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"ab4dd56a-bd5a-4eef-925b-23ae3aa55f3f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":35.04,"totalExempt":1.8,"totalDiscount":3.0,"totalTax":6.95,"totalTaxable":30.24,"totalTaxCalculated":7.36,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T11:43:23.8676313Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":2.81,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9200,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.08,"taxableAmount":22.11,"taxCalculated":5.08,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.08,"taxableAmount":22.11,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.08,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":22.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.08,"reportingTaxCalculated":5.08,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.19,"exemptAmount":1.8,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.41,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.8,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.41,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.8,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.41,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":30.08,"rate":0.230000,"tax":6.92,"taxCalculated":6.92,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":30.24,"rate":0.230000,"tax":6.95,"taxCalculated":7.36,"nonTaxable":1.8,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:04:28 GMT
+ - Fri, 10 Jun 2022 11:43:23 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0172522'
+ - '00:00:00.0200937'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - bd7deed2-4b51-454c-bd9a-322d202dce39
+ - 3fc3242c-15de-4636-8cb3-dc7c2e1820c7
x-correlation-id:
- - bd7deed2-4b51-454c-bd9a-322d202dce39
+ - 3fc3242c-15de-4636-8cb3-dc7c2e1820c7
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.05-0.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.05-0.0-False].yaml
new file mode 100644
index 0000000000..114e6321df
--- /dev/null
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.05-0.0-False].yaml
@@ -0,0 +1,79 @@
+interactions:
+- request:
+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
+ "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PS081282", "taxIncluded":
+ false, "itemCode": "123", "discounted": true, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PS081282", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "a5084109-b337-4393-9c8b-7db7e0bbd50c", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate, br
+ Authorization:
+ - Basic Og==
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '1175'
+ User-Agent:
+ - python-requests/2.27.1
+ method: POST
+ uri: https://rest.avatax.com/api/v2/transactions/createoradjust
+ response:
+ body:
+ string: '{"id":0,"code":"a5084109-b337-4393-9c8b-7db7e0bbd50c","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":41.99,"totalExempt":2.61,"totalDiscount":0.0,"totalTax":9.06,"totalTaxable":39.38,"totalTaxCalculated":9.52,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:51:46.7756984Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.0,"exemptAmount":1.99,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.46,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.99,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.46,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.99,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.46,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.62,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.16,"taxableAmount":9.38,"taxCalculated":2.16,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.62,"rate":0.230000,"tax":2.16,"taxableAmount":9.38,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.16,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.38,"reportingNonTaxableUnits":0.62,"reportingExemptUnits":0.0,"reportingTax":2.16,"reportingTaxCalculated":2.16,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ Rate","rateType":"Standard","taxable":39.38,"rate":0.230000,"tax":9.06,"taxCalculated":9.52,"nonTaxable":2.61,"exemption":0.0}]}'
+ headers:
+ Connection:
+ - keep-alive
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Fri, 10 Jun 2022 10:51:46 GMT
+ Location:
+ - /api/v2/companies/242975/transactions/0
+ ServerDuration:
+ - '00:00:00.0181342'
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ cache-control:
+ - private, no-cache, no-store
+ referrer-policy:
+ - same-origin
+ strict-transport-security:
+ - max-age=31536000; includeSubdomains
+ x-avalara-uid:
+ - ec268e01-9862-4233-bc9b-6848365d9c12
+ x-correlation-id:
+ - ec268e01-9862-4233-bc9b-6848365d9c12
+ x-frame-options:
+ - sameorigin
+ x-permitted-cross-domain-policies:
+ - none
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.19-0.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.19-0.0-False].yaml
index 7fcc6a884d..08c7b4cce0 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.19-0.0-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[False-41.99-51.19-0.0-False].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PS081282", "taxIncluded":
false, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "d00b6a8f-0208-4b05-80ed-d93695ce8cc2", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PS081282", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "17b5cecc-e6f1-40fb-8afc-490c21753b28", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '847'
+ - '1175'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"d00b6a8f-0208-4b05-80ed-d93695ce8cc2","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":9.2,"totalTaxable":40.0,"totalTaxCalculated":9.2,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:04:28.6730516Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ string: '{"id":0,"code":"17b5cecc-e6f1-40fb-8afc-490c21753b28","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":41.99,"totalExempt":2.61,"totalDiscount":0.0,"totalTax":9.06,"totalTaxable":39.38,"totalTaxCalculated":9.52,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:46.5431828Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.0,"exemptAmount":1.99,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.46,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.99,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.46,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.99,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.46,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.62,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.16,"taxableAmount":9.38,"taxCalculated":2.16,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.62,"rate":0.230000,"tax":2.16,"taxableAmount":9.38,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.16,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.38,"reportingNonTaxableUnits":0.62,"reportingExemptUnits":0.0,"reportingTax":2.16,"reportingTaxCalculated":2.16,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":40.0,"rate":0.230000,"tax":9.2,"taxCalculated":9.2,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":39.38,"rate":0.230000,"tax":9.06,"taxCalculated":9.52,"nonTaxable":2.61,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:04:28 GMT
+ - Fri, 10 Jun 2022 10:43:46 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0177066'
+ - '00:00:00.0175518'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - d5cbe8bb-d02b-475c-91d7-6fc2c6c3efd5
+ - aff0ea70-031e-4093-bc92-181cdb3fce28
x-correlation-id:
- - d5cbe8bb-d02b-475c-91d7-6fc2c6c3efd5
+ - aff0ea70-031e-4093-bc92-181cdb3fce28
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.46-5.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.46-5.0-False].yaml
new file mode 100644
index 0000000000..b9fa661ee6
--- /dev/null
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.46-5.0-False].yaml
@@ -0,0 +1,79 @@
+interactions:
+- request:
+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
+ "lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PS081282", "taxIncluded":
+ false, "itemCode": "123", "discounted": true, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PS081282", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "461ead8b-452b-43b3-94f6-b2e4753a67b0", "date": "2022-06-10", "customerCode":
+ 0, "discount": "5.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate, br
+ Authorization:
+ - Basic Og==
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '1176'
+ User-Agent:
+ - python-requests/2.27.1
+ method: POST
+ uri: https://rest.avatax.com/api/v2/transactions/createoradjust
+ response:
+ body:
+ string: '{"id":0,"code":"461ead8b-452b-43b3-94f6-b2e4753a67b0","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":26.99,"totalExempt":2.57,"totalDiscount":5.0,"totalTax":4.47,"totalTaxable":19.42,"totalTaxCalculated":4.79,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:51:46.9435585Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":4.41,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.44,"taxableAmount":10.59,"taxCalculated":2.44,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.44,"taxableAmount":10.59,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.44,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.59,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.44,"reportingTaxCalculated":2.44,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.59,"exemptAmount":1.4,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.32,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.4,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.32,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.4,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.32,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":1.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.03,"taxableAmount":8.83,"taxCalculated":2.03,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.17,"rate":0.230000,"tax":2.03,"taxableAmount":8.83,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.03,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.83,"reportingNonTaxableUnits":1.17,"reportingExemptUnits":0.0,"reportingTax":2.03,"reportingTaxCalculated":2.03,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ Rate","rateType":"Standard","taxable":19.42,"rate":0.230000,"tax":4.47,"taxCalculated":4.79,"nonTaxable":2.57,"exemption":0.0}]}'
+ headers:
+ Connection:
+ - keep-alive
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Fri, 10 Jun 2022 10:51:46 GMT
+ Location:
+ - /api/v2/companies/242975/transactions/0
+ ServerDuration:
+ - '00:00:00.0352843'
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ cache-control:
+ - private, no-cache, no-store
+ referrer-policy:
+ - same-origin
+ strict-transport-security:
+ - max-age=31536000; includeSubdomains
+ x-avalara-uid:
+ - b297462b-01bd-4b83-ad14-457df7432f6b
+ x-correlation-id:
+ - b297462b-01bd-4b83-ad14-457df7432f6b
+ x-frame-options:
+ - sameorigin
+ x-permitted-cross-domain-policies:
+ - none
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.59-5.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.59-5.0-False].yaml
index 0b15a9de64..0c4cb39862 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.59-5.0-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-21.99-26.59-5.0-False].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PS081282", "taxIncluded":
false, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "5d49ca70-1198-49e3-b917-aede71892d55", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PS081282", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "9ba853b7-aba4-4059-9b50-e9f031584fe2", "date": "2022-06-10", "customerCode":
0, "discount": "5.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '848'
+ - '1176'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"5d49ca70-1198-49e3-b917-aede71892d55","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":5.0,"totalTax":4.6,"totalTaxable":20.0,"totalTaxCalculated":4.6,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:04:28.5460544Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":5.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ string: '{"id":0,"code":"9ba853b7-aba4-4059-9b50-e9f031584fe2","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":26.99,"totalExempt":2.57,"totalDiscount":5.0,"totalTax":4.47,"totalTaxable":19.42,"totalTaxCalculated":4.79,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:45.6935156Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":4.41,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.44,"taxableAmount":10.59,"taxCalculated":2.44,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.44,"taxableAmount":10.59,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.44,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.59,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.44,"reportingTaxCalculated":2.44,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.59,"exemptAmount":1.4,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.32,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.4,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.32,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.4,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.32,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":1.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.03,"taxableAmount":8.83,"taxCalculated":2.03,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.17,"rate":0.230000,"tax":2.03,"taxableAmount":8.83,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.03,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.83,"reportingNonTaxableUnits":1.17,"reportingExemptUnits":0.0,"reportingTax":2.03,"reportingTaxCalculated":2.03,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":20.0,"rate":0.230000,"tax":4.6,"taxCalculated":4.6,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":19.42,"rate":0.230000,"tax":4.47,"taxCalculated":4.79,"nonTaxable":2.57,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:04:28 GMT
+ - Fri, 10 Jun 2022 10:43:45 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0163220'
+ - '00:00:00.0219146'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 6ea9a2f2-be1e-4e08-a96f-8e2c975c6036
+ - 1783c752-4086-41ec-b17a-77d73807e4cb
x-correlation-id:
- - 6ea9a2f2-be1e-4e08-a96f-8e2c975c6036
+ - 1783c752-4086-41ec-b17a-77d73807e4cb
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-22.32-26.99-0.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-22.32-26.99-0.0-True].yaml
index 96117e2840..cbf4a0dbf8 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-22.32-26.99-0.0-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total[True-22.32-26.99-0.0-True].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PS081282", "taxIncluded":
true, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "f8feb0c8-98b9-4f59-ab40-616ffb9be1af", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description": "Test
+ product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "72fac070-f66a-46f3-8124-57fdd6b28cb5", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '845'
+ - '1172'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"f8feb0c8-98b9-4f59-ab40-616ffb9be1af","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:04:28.4620862Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"72fac070-f66a-46f3-8124-57fdd6b28cb5","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":22.32,"totalExempt":1.99,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":5.13,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T11:43:24.1006278Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"PS081282","taxCodeId":28918,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.0,"exemptAmount":1.99,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.46,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.99,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.46,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.99,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.46,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":20.33,"rate":0.230000,"tax":4.67,"taxCalculated":4.67,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":20.33,"rate":0.230000,"tax":4.67,"taxCalculated":5.13,"nonTaxable":1.99,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:04:28 GMT
+ - Fri, 10 Jun 2022 11:43:24 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0172576'
+ - '00:00:00.0206208'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 0d850c32-99bc-428f-a797-7551af81a6e8
+ - 4b02b59c-2f7e-4e15-956f-b35d0660056d
x-correlation-id:
- - 0d850c32-99bc-428f-a797-7551af81a6e8
+ - 4b02b59c-2f7e-4e15-956f-b35d0660056d
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_not_charged_product_and_shipping_with_0_price.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_not_charged_product_and_shipping_with_0_price.yaml
index 8e06f645fb..faa5d04bc2 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_not_charged_product_and_shipping_with_0_price.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_not_charged_product_and_shipping_with_0_price.yaml
@@ -1,10 +1,10 @@
interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
- "lines": [], "code": "13a89b41-b30b-41a0-862d-ed5490e37ca9", "date": "2022-05-05",
- "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
- null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
- "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "lines": [], "code": "af2d109e-8c07-4438-b13e-ff4e21024b8a", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
@@ -17,7 +17,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '517'
+ - '535'
User-Agent:
- python-requests/2.27.1
method: POST
@@ -34,21 +34,23 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:49 GMT
ServerDuration:
- - '00:00:00.0007413'
+ - '00:00:00.0004194'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ec2a57cc-993f-4654-be50-27cf2a447760
+ - f4bc7115-59ca-4987-850c-bdc3a18b43ce
x-correlation-id:
- - ec2a57cc-993f-4654-be50-27cf2a447760
+ - f4bc7115-59ca-4987-850c-bdc3a18b43ce
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-31.51-38.99-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-31.51-38.99-3.0-True].yaml
deleted file mode 100644
index 9a49b23563..0000000000
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-31.51-38.99-3.0-True].yaml
+++ /dev/null
@@ -1,70 +0,0 @@
-interactions:
-- request:
- body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
- "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PC040156", "taxIncluded":
- true, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "07e54beb-13fc-4ec8-964c-a152686d0eb4", "date": "2022-05-12", "customerCode":
- 0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
- null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
- "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
- "USD", "email": "[email protected]"}}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate, br
- Authorization:
- - Basic Og==
- Connection:
- - keep-alive
- Content-Length:
- - '846'
- User-Agent:
- - python-requests/2.27.1
- method: POST
- uri: https://rest.avatax.com/api/v2/transactions/createoradjust
- response:
- body:
- string: '{"id":0,"code":"07e54beb-13fc-4ec8-964c-a152686d0eb4","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":33.08,"totalExempt":0.0,"totalDiscount":3.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:24:09.4777666Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":3.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":30.08,"rate":0.230000,"tax":6.92,"taxCalculated":6.92,"nonTaxable":0.0,"exemption":0.0}]}'
- headers:
- Connection:
- - keep-alive
- Content-Type:
- - application/json; charset=utf-8
- Date:
- - Thu, 12 May 2022 13:24:09 GMT
- Location:
- - /api/v2/companies/242975/transactions/0
- ServerDuration:
- - '00:00:00.0167349'
- Transfer-Encoding:
- - chunked
- X-Content-Type-Options:
- - nosniff
- referrer-policy:
- - same-origin
- strict-transport-security:
- - max-age=31536000; includeSubdomains
- x-avalara-uid:
- - c61652fb-fc61-415c-a20b-5df12599e627
- x-correlation-id:
- - c61652fb-fc61-415c-a20b-5df12599e627
- x-frame-options:
- - sameorigin
- x-permitted-cross-domain-policies:
- - none
- x-xss-protection:
- - 1; mode=block
- status:
- code: 201
- message: Created
-version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.04-38.99-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.04-38.99-3.0-True].yaml
new file mode 100644
index 0000000000..d3af06f3a3
--- /dev/null
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.04-38.99-3.0-True].yaml
@@ -0,0 +1,79 @@
+interactions:
+- request:
+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
+ "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PC040156", "taxIncluded":
+ true, "itemCode": "123", "discounted": true, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description": "Test
+ product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "8c27113f-5c6f-426c-be22-9df503b89a8c", "date": "2022-06-10", "customerCode":
+ 0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate, br
+ Authorization:
+ - Basic Og==
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '1173'
+ User-Agent:
+ - python-requests/2.27.1
+ method: POST
+ uri: https://rest.avatax.com/api/v2/transactions/createoradjust
+ response:
+ body:
+ string: '{"id":0,"code":"8c27113f-5c6f-426c-be22-9df503b89a8c","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":35.04,"totalExempt":1.8,"totalDiscount":3.0,"totalTax":6.95,"totalTaxable":30.24,"totalTaxCalculated":7.36,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T11:44:57.6022907Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":2.81,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9200,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.08,"taxableAmount":22.11,"taxCalculated":5.08,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.08,"taxableAmount":22.11,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.08,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":22.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.08,"reportingTaxCalculated":5.08,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.19,"exemptAmount":1.8,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.41,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.8,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.41,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.8,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.41,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ Rate","rateType":"Standard","taxable":30.24,"rate":0.230000,"tax":6.95,"taxCalculated":7.36,"nonTaxable":1.8,"exemption":0.0}]}'
+ headers:
+ Connection:
+ - keep-alive
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Fri, 10 Jun 2022 11:44:57 GMT
+ Location:
+ - /api/v2/companies/242975/transactions/0
+ ServerDuration:
+ - '00:00:00.0216791'
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ cache-control:
+ - private, no-cache, no-store
+ referrer-policy:
+ - same-origin
+ strict-transport-security:
+ - max-age=31536000; includeSubdomains
+ x-avalara-uid:
+ - a61faee5-9acf-4817-bdbe-140ab91ab4e3
+ x-correlation-id:
+ - a61faee5-9acf-4817-bdbe-140ab91ab4e3
+ x-frame-options:
+ - sameorigin
+ x-permitted-cross-domain-policies:
+ - none
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.07-38.99-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.07-38.99-3.0-True].yaml
index 51e5e600c1..0aba715db9 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.07-38.99-3.0-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-32.07-38.99-3.0-True].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PC040156", "taxIncluded":
true, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "e33c5050-9458-4544-bd66-0f1ce5ba489a", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description": "Test
+ product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "62c1d34d-4322-4d6f-800e-60413d6f9f22", "date": "2022-06-10", "customerCode":
0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '846'
+ - '1173'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"e33c5050-9458-4544-bd66-0f1ce5ba489a","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":33.08,"totalExempt":0.0,"totalDiscount":3.0,"totalTax":6.92,"totalTaxable":30.08,"totalTaxCalculated":6.92,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:26:03.2858297Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":3.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9500,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":5.05,"taxableAmount":21.95,"taxCalculated":5.05,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.05,"taxableAmount":21.95,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.05,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.95,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.05,"reportingTaxCalculated":5.05,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"62c1d34d-4322-4d6f-800e-60413d6f9f22","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":35.04,"totalExempt":1.8,"totalDiscount":3.0,"totalTax":6.95,"totalTaxable":30.24,"totalTaxCalculated":7.36,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T11:43:24.1537767Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":2.81,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.9200,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.08,"taxableAmount":22.11,"taxCalculated":5.08,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.08,"taxableAmount":22.11,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.08,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":22.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.08,"reportingTaxCalculated":5.08,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.19,"exemptAmount":1.8,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.41,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.8,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.41,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.8,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.41,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":30.08,"rate":0.230000,"tax":6.92,"taxCalculated":6.92,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":30.24,"rate":0.230000,"tax":6.95,"taxCalculated":7.36,"nonTaxable":1.8,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:26:03 GMT
+ - Fri, 10 Jun 2022 11:43:24 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0165708'
+ - '00:00:00.0180753'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ef6bcd4e-866a-4ec4-8fc5-751e6e34fbab
+ - afccc3cb-c383-45dc-be9c-862af304e943
x-correlation-id:
- - ef6bcd4e-866a-4ec4-8fc5-751e6e34fbab
+ - afccc3cb-c383-45dc-be9c-862af304e943
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.05-0.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.05-0.0-False].yaml
new file mode 100644
index 0000000000..6f255f471a
--- /dev/null
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.05-0.0-False].yaml
@@ -0,0 +1,79 @@
+interactions:
+- request:
+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
+ "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PC040156", "taxIncluded":
+ false, "itemCode": "123", "discounted": true, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PC040156", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "4ada0200-3406-4fe3-a94e-d5e24ce24147", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate, br
+ Authorization:
+ - Basic Og==
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '1175'
+ User-Agent:
+ - python-requests/2.27.1
+ method: POST
+ uri: https://rest.avatax.com/api/v2/transactions/createoradjust
+ response:
+ body:
+ string: '{"id":0,"code":"4ada0200-3406-4fe3-a94e-d5e24ce24147","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":41.99,"totalExempt":2.61,"totalDiscount":0.0,"totalTax":9.06,"totalTaxable":39.38,"totalTaxCalculated":9.52,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:51:46.866652Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.0,"exemptAmount":1.99,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.46,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.99,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.46,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.99,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.46,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.62,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.16,"taxableAmount":9.38,"taxCalculated":2.16,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.62,"rate":0.230000,"tax":2.16,"taxableAmount":9.38,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.16,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.38,"reportingNonTaxableUnits":0.62,"reportingExemptUnits":0.0,"reportingTax":2.16,"reportingTaxCalculated":2.16,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ Rate","rateType":"Standard","taxable":39.38,"rate":0.230000,"tax":9.06,"taxCalculated":9.52,"nonTaxable":2.61,"exemption":0.0}]}'
+ headers:
+ Connection:
+ - keep-alive
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Fri, 10 Jun 2022 10:51:46 GMT
+ Location:
+ - /api/v2/companies/242975/transactions/0
+ ServerDuration:
+ - '00:00:00.0213316'
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ cache-control:
+ - private, no-cache, no-store
+ referrer-policy:
+ - same-origin
+ strict-transport-security:
+ - max-age=31536000; includeSubdomains
+ x-avalara-uid:
+ - 3e938133-034d-499a-9789-250fbc33f9be
+ x-correlation-id:
+ - 3e938133-034d-499a-9789-250fbc33f9be
+ x-frame-options:
+ - sameorigin
+ x-permitted-cross-domain-policies:
+ - none
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.19-0.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.19-0.0-False].yaml
index a48f3b70b2..01cb462eb8 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.19-0.0-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[False-41.99-51.19-0.0-False].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "PC040156", "taxIncluded":
false, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "e376ef5e-dc9a-41a8-998c-1ed702080049", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PC040156", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "4aad3882-5de4-44ee-93b0-82df0931c46f", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '847'
+ - '1175'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"e376ef5e-dc9a-41a8-998c-1ed702080049","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":9.2,"totalTaxable":40.0,"totalTaxCalculated":9.2,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:24:09.5228594Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ string: '{"id":0,"code":"4aad3882-5de4-44ee-93b0-82df0931c46f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":41.99,"totalExempt":2.61,"totalDiscount":0.0,"totalTax":9.06,"totalTaxable":39.38,"totalTaxCalculated":9.52,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:45.9614237Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.0,"exemptAmount":1.99,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.46,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.99,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.46,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.99,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.46,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.62,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.16,"taxableAmount":9.38,"taxCalculated":2.16,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.62,"rate":0.230000,"tax":2.16,"taxableAmount":9.38,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.16,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":9.38,"reportingNonTaxableUnits":0.62,"reportingExemptUnits":0.0,"reportingTax":2.16,"reportingTaxCalculated":2.16,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":40.0,"rate":0.230000,"tax":9.2,"taxCalculated":9.2,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":39.38,"rate":0.230000,"tax":9.06,"taxCalculated":9.52,"nonTaxable":2.61,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:24:09 GMT
+ - Fri, 10 Jun 2022 10:43:45 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0173252'
+ - '00:00:00.0172284'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - dbd5dd4f-c875-483e-ab36-36b960826b83
+ - ee1b6b2d-be3f-49ba-9c23-408ca4e5cd3f
x-correlation-id:
- - dbd5dd4f-c875-483e-ab36-36b960826b83
+ - ee1b6b2d-be3f-49ba-9c23-408ca4e5cd3f
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.46-5.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.46-5.0-False].yaml
new file mode 100644
index 0000000000..0b7e19d3c9
--- /dev/null
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.46-5.0-False].yaml
@@ -0,0 +1,79 @@
+interactions:
+- request:
+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
+ "lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PC040156", "taxIncluded":
+ false, "itemCode": "123", "discounted": true, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PC040156", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "927adff3-2850-4bcb-83b5-6c14ae6fe384", "date": "2022-06-10", "customerCode":
+ 0, "discount": "5.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
+ headers:
+ Accept:
+ - '*/*'
+ Accept-Encoding:
+ - gzip, deflate, br
+ Authorization:
+ - Basic Og==
+ Connection:
+ - keep-alive
+ Content-Length:
+ - '1176'
+ User-Agent:
+ - python-requests/2.27.1
+ method: POST
+ uri: https://rest.avatax.com/api/v2/transactions/createoradjust
+ response:
+ body:
+ string: '{"id":0,"code":"927adff3-2850-4bcb-83b5-6c14ae6fe384","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":26.99,"totalExempt":2.57,"totalDiscount":5.0,"totalTax":4.47,"totalTaxable":19.42,"totalTaxCalculated":4.79,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:51:46.7100842Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":4.41,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.44,"taxableAmount":10.59,"taxCalculated":2.44,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.44,"taxableAmount":10.59,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.44,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.59,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.44,"reportingTaxCalculated":2.44,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.59,"exemptAmount":1.4,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.32,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.4,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.32,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.4,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.32,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":1.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.03,"taxableAmount":8.83,"taxCalculated":2.03,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.17,"rate":0.230000,"tax":2.03,"taxableAmount":8.83,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.03,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.83,"reportingNonTaxableUnits":1.17,"reportingExemptUnits":0.0,"reportingTax":2.03,"reportingTaxCalculated":2.03,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ Rate","rateType":"Standard","taxable":19.42,"rate":0.230000,"tax":4.47,"taxCalculated":4.79,"nonTaxable":2.57,"exemption":0.0}]}'
+ headers:
+ Connection:
+ - keep-alive
+ Content-Type:
+ - application/json; charset=utf-8
+ Date:
+ - Fri, 10 Jun 2022 10:51:46 GMT
+ Location:
+ - /api/v2/companies/242975/transactions/0
+ ServerDuration:
+ - '00:00:00.0197152'
+ Transfer-Encoding:
+ - chunked
+ X-Content-Type-Options:
+ - nosniff
+ cache-control:
+ - private, no-cache, no-store
+ referrer-policy:
+ - same-origin
+ strict-transport-security:
+ - max-age=31536000; includeSubdomains
+ x-avalara-uid:
+ - 0d7792a3-1656-4e9b-bc3d-ff766b53a5db
+ x-correlation-id:
+ - 0d7792a3-1656-4e9b-bc3d-ff766b53a5db
+ x-frame-options:
+ - sameorigin
+ x-permitted-cross-domain-policies:
+ - none
+ x-xss-protection:
+ - 1; mode=block
+ status:
+ code: 201
+ message: Created
+version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.59-5.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.59-5.0-False].yaml
index 6453d72ac8..44a780f835 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.59-5.0-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-26.59-5.0-False].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PC040156", "taxIncluded":
false, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "2bf6455b-c3bb-43d7-9d08-6023aef24dd0", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "PC040156", "taxIncluded":
+ false, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description":
+ "Test product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "562e6247-4120-4a5b-8537-73d30f03cc6d", "date": "2022-06-10", "customerCode":
0, "discount": "5.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '848'
+ - '1176'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"2bf6455b-c3bb-43d7-9d08-6023aef24dd0","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":5.0,"totalTax":4.6,"totalTaxable":20.0,"totalTaxCalculated":4.6,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:26:03.0987901Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":5.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
+ string: '{"id":0,"code":"562e6247-4120-4a5b-8537-73d30f03cc6d","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":26.99,"totalExempt":2.57,"totalDiscount":5.0,"totalTax":4.47,"totalTaxable":19.42,"totalTaxCalculated":4.79,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:45.9808978Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":4.41,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.44,"taxableAmount":10.59,"taxCalculated":2.44,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.44,"taxableAmount":10.59,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.44,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.59,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.44,"reportingTaxCalculated":2.44,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.59,"exemptAmount":1.4,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.32,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.4,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.32,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.4,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.32,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":1.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.03,"taxableAmount":8.83,"taxCalculated":2.03,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.17,"rate":0.230000,"tax":2.03,"taxableAmount":8.83,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.03,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.83,"reportingNonTaxableUnits":1.17,"reportingExemptUnits":0.0,"reportingTax":2.03,"reportingTaxCalculated":2.03,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":20.0,"rate":0.230000,"tax":4.6,"taxCalculated":4.6,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":19.42,"rate":0.230000,"tax":4.47,"taxCalculated":4.79,"nonTaxable":2.57,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:26:03 GMT
+ - Fri, 10 Jun 2022 10:43:45 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0166500'
+ - '00:00:00.0183790'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 1d61e08a-d88e-4f50-9dd7-d178d447a12a
+ - d402344c-8d07-4a66-939a-f78583297ee7
x-correlation-id:
- - 1d61e08a-d88e-4f50-9dd7-d178d447a12a
+ - d402344c-8d07-4a66-939a-f78583297ee7
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-27.74-5.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-27.74-5.0-False].yaml
deleted file mode 100644
index 6d970221f0..0000000000
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-21.99-27.74-5.0-False].yaml
+++ /dev/null
@@ -1,70 +0,0 @@
-interactions:
-- request:
- body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
- "lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PC040156", "taxIncluded":
- false, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "5808de90-aff0-42fa-a643-880174ffcec4", "date": "2022-05-12", "customerCode":
- 0, "discount": "5.0", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
- null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
- "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
- "USD", "email": "[email protected]"}}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate, br
- Authorization:
- - Basic Og==
- Connection:
- - keep-alive
- Content-Length:
- - '848'
- User-Agent:
- - python-requests/2.27.1
- method: POST
- uri: https://rest.avatax.com/api/v2/transactions/createoradjust
- response:
- body:
- string: '{"id":0,"code":"5808de90-aff0-42fa-a643-880174ffcec4","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":25.0,"totalExempt":0.0,"totalDiscount":5.0,"totalTax":4.6,"totalTaxable":20.0,"totalTaxCalculated":4.6,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:24:09.51892Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":5.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":15.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":20.0,"rate":0.230000,"tax":4.6,"taxCalculated":4.6,"nonTaxable":0.0,"exemption":0.0}]}'
- headers:
- Connection:
- - keep-alive
- Content-Type:
- - application/json; charset=utf-8
- Date:
- - Thu, 12 May 2022 13:24:09 GMT
- Location:
- - /api/v2/companies/242975/transactions/0
- ServerDuration:
- - '00:00:00.0186480'
- Transfer-Encoding:
- - chunked
- X-Content-Type-Options:
- - nosniff
- referrer-policy:
- - same-origin
- strict-transport-security:
- - max-age=31536000; includeSubdomains
- x-avalara-uid:
- - ef3b9e76-8667-49b1-9555-f1535e3c0d39
- x-correlation-id:
- - ef3b9e76-8667-49b1-9555-f1535e3c0d39
- x-frame-options:
- - sameorigin
- x-permitted-cross-domain-policies:
- - none
- x-xss-protection:
- - 1; mode=block
- status:
- code: 201
- message: Created
-version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-22.32-26.99-0.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-22.32-26.99-0.0-True].yaml
index 38e9d67639..40867950f8 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-22.32-26.99-0.0-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_uses_default_calculation[True-22.32-26.99-0.0-True].yaml
@@ -3,9 +3,13 @@ interactions:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "PC040156", "taxIncluded":
true, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "ad906e36-4827-40bc-99b8-1b96ca5d68ce", "date": "2022-05-12", "customerCode":
+ "ref1": "123"}, {"quantity": 1, "amount": "1.99", "taxCode": "O9999999", "taxIncluded":
+ true, "itemCode": "SKU_SINGLE_VARIANT", "discounted": true, "description": "Test
+ product with single variant", "taxOverride": {"type": "taxAmount", "taxAmount":
+ 0, "reason": "Charge taxes for this product are turned off."}, "ref1": "SKU_SINGLE_VARIANT"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "a5b0289c-50cd-4f6a-95c7-97b091571c0c", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -21,43 +25,48 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '845'
+ - '1172'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"ad906e36-4827-40bc-99b8-1b96ca5d68ce","companyId":242975,"date":"2022-05-12","paymentDate":"2022-05-12","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-12","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-12T13:24:09.5057381Z","modifiedUserId":283192,"taxDate":"2022-05-12","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-12","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-12","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-12","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"a5b0289c-50cd-4f6a-95c7-97b091571c0c","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":22.32,"totalExempt":1.99,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":5.13,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T11:43:23.3319287Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"PC040156","taxCodeId":6622,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
+ product with single variant","discountAmount":0.0,"exemptAmount":1.99,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"SKU_SINGLE_VARIANT","lineAmount":1.99,"quantity":1.0,"ref1":"SKU_SINGLE_VARIANT","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.46,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":1.99,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.46,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":1.99,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.46,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":20.33,"rate":0.230000,"tax":4.67,"taxCalculated":4.67,"nonTaxable":0.0,"exemption":0.0}]}'
+ Rate","rateType":"Standard","taxable":20.33,"rate":0.230000,"tax":4.67,"taxCalculated":5.13,"nonTaxable":1.99,"exemption":0.0}]}'
headers:
Connection:
- keep-alive
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 12 May 2022 13:24:09 GMT
+ - Fri, 10 Jun 2022 11:43:23 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0199536'
+ - '00:00:00.0181311'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 77d675f6-0e3d-41c1-a2ab-dc409f62995d
+ - 40bc5aae-b6f2-4f93-bd4f-fdfca84524fa
x-correlation-id:
- - 77d675f6-0e3d-41c1-a2ab-dc409f62995d
+ - 40bc5aae-b6f2-4f93-bd4f-fdfca84524fa
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[10.00-12.30-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[10.00-12.30-False].yaml
index 60e37f1f0e..136f1e862d 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[10.00-12.30-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[10.00-12.30-False].yaml
@@ -5,7 +5,7 @@ interactions:
false, "itemCode": "123", "discounted": true, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "e9fc372d-7d2f-45fc-ba50-bf26dee97547", "date": "2022-05-13", "customerCode":
+ "9e452bb6-fec9-420e-93b3-28e1c8717b61", "date": "2022-06-10", "customerCode":
0, "discount": "30.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"e9fc372d-7d2f-45fc-ba50-bf26dee97547","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":2.3,"totalTaxable":10.0,"totalTaxCalculated":2.3,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T09:18:13.5692766Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"9e452bb6-fec9-420e-93b3-28e1c8717b61","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":2.3,"totalTaxable":10.0,"totalTaxCalculated":2.3,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:47.6204691Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 13 May 2022 09:18:13 GMT
+ - Fri, 10 Jun 2022 10:43:47 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0159573'
+ - '00:00:00.0146825'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - c41dcaba-39f8-4ac1-bcc1-13f11f2db6a4
+ - 4522db53-f82d-41c4-90b5-bcadd72abd66
x-correlation-id:
- - c41dcaba-39f8-4ac1-bcc1-13f11f2db6a4
+ - 4522db53-f82d-41c4-90b5-bcadd72abd66
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[24.39-30.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[24.39-30.00-True].yaml
deleted file mode 100644
index c376459bcf..0000000000
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[24.39-30.00-True].yaml
+++ /dev/null
@@ -1,70 +0,0 @@
-interactions:
-- request:
- body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
- "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "0d4ecac2-5025-4aed-ab9d-2b512c228375", "date": "2022-05-13", "customerCode":
- 0, "discount": "30.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
- null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
- "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
- "USD", "email": "[email protected]"}}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate, br
- Authorization:
- - Basic Og==
- Connection:
- - keep-alive
- Content-Length:
- - '849'
- User-Agent:
- - python-requests/2.27.1
- method: POST
- uri: https://rest.avatax.com/api/v2/transactions/createoradjust
- response:
- body:
- string: '{"id":0,"code":"0d4ecac2-5025-4aed-ab9d-2b512c228375","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":1.87,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T09:05:45.9637919Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":8.13,"rate":0.230000,"tax":1.87,"taxCalculated":1.87,"nonTaxable":0.0,"exemption":0.0}]}'
- headers:
- Connection:
- - keep-alive
- Content-Type:
- - application/json; charset=utf-8
- Date:
- - Fri, 13 May 2022 09:05:45 GMT
- Location:
- - /api/v2/companies/242975/transactions/0
- ServerDuration:
- - '00:00:00.0200972'
- Transfer-Encoding:
- - chunked
- X-Content-Type-Options:
- - nosniff
- referrer-policy:
- - same-origin
- strict-transport-security:
- - max-age=31536000; includeSubdomains
- x-avalara-uid:
- - ad575c83-947a-4993-ac18-29e7f03bcb9e
- x-correlation-id:
- - ad575c83-947a-4993-ac18-29e7f03bcb9e
- x-frame-options:
- - sameorigin
- x-permitted-cross-domain-policies:
- - none
- x-xss-protection:
- - 1; mode=block
- status:
- code: 201
- message: Created
-version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[30.00-36.90-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[30.00-36.90-False].yaml
deleted file mode 100644
index 0246bdbcff..0000000000
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[30.00-36.90-False].yaml
+++ /dev/null
@@ -1,70 +0,0 @@
-interactions:
-- request:
- body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
- "lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- false, "itemCode": "123", "discounted": true, "description": "Test product",
- "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- false, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "5c47f4d1-da74-47d6-8ffb-eff76323b4cb", "date": "2022-05-13", "customerCode":
- 0, "discount": "30.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
- null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
- "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
- "USD", "email": "[email protected]"}}'
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate, br
- Authorization:
- - Basic Og==
- Connection:
- - keep-alive
- Content-Length:
- - '851'
- User-Agent:
- - python-requests/2.27.1
- method: POST
- uri: https://rest.avatax.com/api/v2/transactions/createoradjust
- response:
- body:
- string: '{"id":0,"code":"5c47f4d1-da74-47d6-8ffb-eff76323b4cb","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":2.3,"totalTaxable":10.0,"totalTaxCalculated":2.3,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T09:05:48.1001733Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.3,"taxableAmount":10.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.3,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
- Rate","rateType":"Standard","taxable":10.0,"rate":0.230000,"tax":2.3,"taxCalculated":2.3,"nonTaxable":0.0,"exemption":0.0}]}'
- headers:
- Connection:
- - keep-alive
- Content-Type:
- - application/json; charset=utf-8
- Date:
- - Fri, 13 May 2022 09:05:48 GMT
- Location:
- - /api/v2/companies/242975/transactions/0
- ServerDuration:
- - '00:00:00.0174934'
- Transfer-Encoding:
- - chunked
- X-Content-Type-Options:
- - nosniff
- referrer-policy:
- - same-origin
- strict-transport-security:
- - max-age=31536000; includeSubdomains
- x-avalara-uid:
- - de869976-f116-405d-a198-b7c5b62e91d5
- x-correlation-id:
- - de869976-f116-405d-a198-b7c5b62e91d5
- x-frame-options:
- - sameorigin
- x-permitted-cross-domain-policies:
- - none
- x-xss-protection:
- - 1; mode=block
- status:
- code: 201
- message: Created
-version: 1
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[8.13-10.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[8.13-10.00-True].yaml
index d1ebbf700a..1e9ca57ecc 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[8.13-10.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order[8.13-10.00-True].yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "123", "discounted": true, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "7acb6056-92e8-4022-8591-013559f8b835", "date": "2022-05-13", "customerCode":
+ "aa273950-7bf7-4f23-bc43-06c9c4cac29d", "date": "2022-06-10", "customerCode":
0, "discount": "30.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"7acb6056-92e8-4022-8591-013559f8b835","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":1.87,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T09:18:11.6968879Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"aa273950-7bf7-4f23-bc43-06c9c4cac29d","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":30.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":1.87,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:44.0236644Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":30.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 13 May 2022 09:18:11 GMT
+ - Fri, 10 Jun 2022 10:43:44 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0236105'
+ - '00:00:00.0159442'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 4d433fb6-a579-4985-b5a6-7a0af8d354e0
+ - cc2e00fb-b9b0-4c83-bf9b-cb2bf67bfcf8
x-correlation-id:
- - 4d433fb6-a579-4985-b5a6-7a0af8d354e0
+ - cc2e00fb-b9b0-4c83-bf9b-cb2bf67bfcf8
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_applied_once_per_order.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_applied_once_per_order.yaml
index 489c0f4924..80c182b591 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_applied_once_per_order.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_applied_once_per_order.yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "123", "discounted": false, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "c5a96402-e327-4f1b-83c0-a9a725f785cc", "date": "2022-06-09", "customerCode":
+ "cd71e87e-1f89-4fe2-9101-05670fa61e4b", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"c5a96402-e327-4f1b-83c0-a9a725f785cc","companyId":242975,"date":"2022-06-09","paymentDate":"2022-06-09","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":31.71,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.29,"totalTaxable":31.71,"totalTaxCalculated":7.29,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-09","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-09T11:04:15.2339743Z","modifiedUserId":283192,"taxDate":"2022-06-09","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":23.5800,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-09","tax":5.42,"taxableAmount":23.58,"taxCalculated":5.42,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-09","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.42,"taxableAmount":23.58,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.42,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":23.58,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.42,"reportingTaxCalculated":5.42,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-09","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-09","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"cd71e87e-1f89-4fe2-9101-05670fa61e4b","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":31.71,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.29,"totalTaxable":31.71,"totalTaxCalculated":7.29,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:49.3531337Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":23.5800,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.42,"taxableAmount":23.58,"taxCalculated":5.42,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.42,"taxableAmount":23.58,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.42,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":23.58,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.42,"reportingTaxCalculated":5.42,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,11 +41,11 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 09 Jun 2022 11:04:15 GMT
+ - Fri, 10 Jun 2022 10:43:49 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0140140'
+ - '00:00:00.0147086'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
@@ -57,9 +57,9 @@ interactions:
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 0ac25b68-5b54-41bd-97d0-36fdf3de30ed
+ - 1a6c2f7d-4e32-4a92-b7c8-48613b6fe61d
x-correlation-id:
- - 0ac25b68-5b54-41bd-97d0-36fdf3de30ed
+ - 1a6c2f7d-4e32-4a92-b7c8-48613b6fe61d
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_product_without_taxes.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_product_without_taxes.yaml
index 2b238ffc40..96cdc35f6f 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_product_without_taxes.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_entire_order_product_without_taxes.yaml
@@ -6,8 +6,8 @@ interactions:
"taxOverride": {"type": "taxAmount", "taxAmount": 0, "reason": "Charge taxes
for this product are turned off."}, "ref1": "123"}, {"quantity": 1, "amount":
"10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "discounted": false, "description": null}], "code": "4596776d-deba-46ab-9e5c-84948a2f201d",
- "date": "2022-05-31", "customerCode": 0, "discount": "2.0", "addresses": {"shipFrom":
+ "discounted": false, "description": null}], "code": "64443ec7-3494-42ae-92e4-695c5904491e",
+ "date": "2022-06-10", "customerCode": 0, "discount": "2.0", "addresses": {"shipFrom":
{"line1": "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country":
"PL", "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2":
"", "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
@@ -29,10 +29,10 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"4596776d-deba-46ab-9e5c-84948a2f201d","companyId":242975,"date":"2022-05-31","paymentDate":"2022-05-31","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":28.0,"totalDiscount":2.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":8.31,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-31","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-31T12:22:06.6383944Z","modifiedUserId":283192,"taxDate":"2022-05-31","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":2.0,"exemptAmount":28.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-31","tax":0.0,"taxableAmount":0.0,"taxCalculated":6.44,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-31","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
+ string: '{"id":0,"code":"64443ec7-3494-42ae-92e4-695c5904491e","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":38.13,"totalExempt":28.0,"totalDiscount":2.0,"totalTax":1.87,"totalTaxable":8.13,"totalTaxCalculated":8.31,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:53.0906877Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":2.0,"exemptAmount":28.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":6.44,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxOverrideType":"TaxAmount","taxOverrideAmount":0.0,"taxOverrideReason":"Charge
taxes for this product are turned off.","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":28.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.44,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":28.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":6.44,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-31","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-31","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.44,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":28.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":6.44,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -43,11 +43,11 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 31 May 2022 12:22:06 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0143473'
+ - '00:00:00.0165259'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
@@ -59,9 +59,9 @@ interactions:
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 3d7ba6d9-126b-4091-9dc2-df41e4484010
+ - 4385aba6-0d28-4bb0-9738-f664e9825d84
x-correlation-id:
- - 3d7ba6d9-126b-4091-9dc2-df41e4484010
+ - 4385aba6-0d28-4bb0-9738-f664e9825d84
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[24.39-30.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[24.39-30.00-True].yaml
index 8f7b0dcc16..f5325e9da1 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[24.39-30.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[24.39-30.00-True].yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "123", "discounted": false, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
true, "itemCode": "Shipping", "discounted": true, "description": null}], "code":
- "4cf89126-f0c2-41a7-8cd3-22f7c45a3981", "date": "2022-05-13", "customerCode":
+ "fce96055-01ff-4043-b620-4054173e23ab", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"4cf89126-f0c2-41a7-8cd3-22f7c45a3981","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":34.39,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T08:45:57.9444209Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"fce96055-01ff-4043-b620-4054173e23ab","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":34.39,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:54.9139539Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 13 May 2022 08:45:57 GMT
+ - Fri, 10 Jun 2022 10:43:54 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0171240'
+ - '00:00:00.0148167'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 3850b795-df67-470a-a038-fb86c8004f0f
+ - 212809bc-e60a-400f-a820-841bfc1618b2
x-correlation-id:
- - 3850b795-df67-470a-a038-fb86c8004f0f
+ - 212809bc-e60a-400f-a820-841bfc1618b2
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[30.00-36.90-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[30.00-36.90-False].yaml
index 6efd5fe7d9..f72df23fe2 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[30.00-36.90-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_voucher_on_shipping[30.00-36.90-False].yaml
@@ -5,7 +5,7 @@ interactions:
false, "itemCode": "123", "discounted": false, "description": "Test product",
"ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
false, "itemCode": "Shipping", "discounted": true, "description": null}], "code":
- "5bb6b0a6-3211-4021-9350-7c01dbd208e0", "date": "2022-05-13", "customerCode":
+ "8303e9d5-4a1f-41e9-863c-46972a2c1575", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,9 +28,9 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"5bb6b0a6-3211-4021-9350-7c01dbd208e0","companyId":242975,"date":"2022-05-13","paymentDate":"2022-05-13","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-13","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-13T08:46:00.5961952Z","modifiedUserId":283192,"taxDate":"2022-05-13","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-13","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-13","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-13","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"8303e9d5-4a1f-41e9-863c-46972a2c1575","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:47.7104924Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":30.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":6.9,"taxableAmount":30.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":6.9,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":10.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":false,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Fri, 13 May 2022 08:46:00 GMT
+ - Fri, 10 Jun 2022 10:43:47 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0208480'
+ - '00:00:00.0167081'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 7703c268-fbcc-4650-9bdd-c68af9863ba1
+ - f4189214-52ee-4d0b-bdb2-6316aad619fd
x-correlation-id:
- - 7703c268-fbcc-4650-9bdd-c68af9863ba1
+ - f4189214-52ee-4d0b-bdb2-6316aad619fd
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total.yaml
index 8c63bf7062..738b709cf6 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total.yaml
@@ -2,12 +2,13 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "5c4cc4b3-2a6a-49f1-939c-07f86a687839", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "697e49f2-c025-4a37-8aed-2a6b67dc7350", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '778'
+ - '838'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019771246912,"code":"5c4cc4b3-2a6a-49f1-939c-07f86a687839","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019771246914,"destinationAddressId":85019771246913,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:08.0776682Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019771246918,"transactionId":85019771246912,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019771246913,"originAddressId":85019771246914,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019771246923,"transactionLineId":85019771246918,"transactionId":85019771246912,"addressId":85019771246913,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019771246921,"documentLineId":85019771246918,"documentAddressId":85019771246914,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019771246922,"documentLineId":85019771246918,"documentAddressId":85019771246913,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019771246919,"transactionId":85019771246912,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019771246913,"originAddressId":85019771246914,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019771246927,"transactionLineId":85019771246919,"transactionId":85019771246912,"addressId":85019771246913,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019771246925,"documentLineId":85019771246919,"documentAddressId":85019771246914,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019771246926,"documentLineId":85019771246919,"documentAddressId":85019771246913,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019771246913,"transactionId":85019771246912,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85019771246914,"transactionId":85019771246912,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019771246916,"documentId":85019771246912,"documentAddressId":85019771246914,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019771246917,"documentId":85019771246912,"documentAddressId":85019771246913,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035836271081,"code":"697e49f2-c025-4a37-8aed-2a6b67dc7350","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035836271083,"destinationAddressId":85035836271082,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:40.7797919Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035836271087,"transactionId":85035836271081,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035836271082,"originAddressId":85035836271083,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035836271092,"transactionLineId":85035836271087,"transactionId":85035836271081,"addressId":85035836271082,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035836271090,"documentLineId":85035836271087,"documentAddressId":85035836271083,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035836271091,"documentLineId":85035836271087,"documentAddressId":85035836271082,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035836271088,"transactionId":85035836271081,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035836271082,"originAddressId":85035836271083,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035836271096,"transactionLineId":85035836271088,"transactionId":85035836271081,"addressId":85035836271082,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035836271094,"documentLineId":85035836271088,"documentAddressId":85035836271083,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035836271095,"documentLineId":85035836271088,"documentAddressId":85035836271082,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035836271082,"transactionId":85035836271081,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035836271083,"transactionId":85035836271081,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035836271085,"documentId":85035836271081,"documentAddressId":85035836271083,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035836271086,"documentId":85035836271081,"documentAddressId":85035836271082,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":32.52,"rate":0.230000,"tax":7.48,"taxCalculated":7.48,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:40 GMT
Location:
- - /api/v2/companies/242975/transactions/85019771246912
+ - /api/v2/companies/242975/transactions/85035836271081
ServerDuration:
- - '00:00:00.0906446'
+ - '00:00:00.0976213'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 1b6cbc6d-6dbc-49de-bbb7-1694b31632e0
+ - 01a1637f-eb20-4e32-88da-ef779981e62e
x-correlation-id:
- - 1b6cbc6d-6dbc-49de-bbb7-1694b31632e0
+ - 01a1637f-eb20-4e32-88da-ef779981e62e
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[16.26-20.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[16.26-20.00-True].yaml
index c8bed865e9..15c4794e3b 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[16.26-20.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[16.26-20.00-True].yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "SKU_A", "discounted": true, "description": "Test product"},
{"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "87e8d8ea-306e-4e45-87ed-ecc7a8edeed3", "date": "2022-05-17", "customerCode":
+ "85001a3a-7f9c-401e-98aa-752c5bd14a45", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025119543287,"code":"87e8d8ea-306e-4e45-87ed-ecc7a8edeed3","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":34.39,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025119543289,"destinationAddressId":85025119543288,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T07:23:13.5109874Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025119543293,"transactionId":85025119543287,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025119543288,"originAddressId":85025119543289,"discountAmount":10.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":26.2600,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":3.74,"taxableAmount":16.26,"taxCalculated":3.74,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025119543298,"transactionLineId":85025119543293,"transactionId":85025119543287,"addressId":85025119543288,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":3.7400,"taxableAmount":16.2600,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":3.7400,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":16.2600,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":16.26,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.74,"reportingTaxCalculated":3.74,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025119543296,"documentLineId":85025119543293,"documentAddressId":85025119543289,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025119543297,"documentLineId":85025119543293,"documentAddressId":85025119543288,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025119543294,"transactionId":85025119543287,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025119543288,"originAddressId":85025119543289,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025119543302,"transactionLineId":85025119543294,"transactionId":85025119543287,"addressId":85025119543288,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025119543300,"documentLineId":85025119543294,"documentAddressId":85025119543289,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025119543301,"documentLineId":85025119543294,"documentAddressId":85025119543288,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025119543288,"transactionId":85025119543287,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85025119543289,"transactionId":85025119543287,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025119543291,"documentId":85025119543287,"documentAddressId":85025119543289,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025119543292,"documentId":85025119543287,"documentAddressId":85025119543288,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838815322,"code":"85001a3a-7f9c-401e-98aa-752c5bd14a45","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":34.39,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838815324,"destinationAddressId":85035838815323,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:44.1348061Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838815328,"transactionId":85035838815322,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838815323,"originAddressId":85035838815324,"discountAmount":10.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":26.2600,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":3.74,"taxableAmount":16.26,"taxCalculated":3.74,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838815333,"transactionLineId":85035838815328,"transactionId":85035838815322,"addressId":85035838815323,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":3.7400,"taxableAmount":16.2600,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":3.7400,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":16.2600,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":16.26,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":3.74,"reportingTaxCalculated":3.74,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838815331,"documentLineId":85035838815328,"documentAddressId":85035838815324,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838815332,"documentLineId":85035838815328,"documentAddressId":85035838815323,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838815329,"transactionId":85035838815322,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838815323,"originAddressId":85035838815324,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838815337,"transactionLineId":85035838815329,"transactionId":85035838815322,"addressId":85035838815323,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838815335,"documentLineId":85035838815329,"documentAddressId":85035838815324,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838815336,"documentLineId":85035838815329,"documentAddressId":85035838815323,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838815323,"transactionId":85035838815322,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035838815324,"transactionId":85035838815322,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838815326,"documentId":85035838815322,"documentAddressId":85035838815324,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838815327,"documentId":85035838815322,"documentAddressId":85035838815323,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":24.39,"rate":0.230000,"tax":5.61,"taxCalculated":5.61,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 07:23:13 GMT
+ - Fri, 10 Jun 2022 10:43:44 GMT
Location:
- - /api/v2/companies/242975/transactions/85025119543287
+ - /api/v2/companies/242975/transactions/85035838815322
ServerDuration:
- - '00:00:00.1183026'
+ - '00:00:00.0946651'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - d780071f-c3bc-47bd-ab15-ffa0d3098b86
+ - 83673ca2-5c96-4719-8b0a-857601329621
x-correlation-id:
- - d780071f-c3bc-47bd-ab15-ffa0d3098b86
+ - 83673ca2-5c96-4719-8b0a-857601329621
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[20.00-24.60-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[20.00-24.60-False].yaml
index 6007a788da..bf42322ae1 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[20.00-24.60-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_entire_order_voucher[20.00-24.60-False].yaml
@@ -5,7 +5,7 @@ interactions:
false, "itemCode": "SKU_A", "discounted": true, "description": "Test product"},
{"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": false,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "a222526e-1343-481a-8405-f664ef080f6b", "date": "2022-05-17", "customerCode":
+ "6fa3c245-9372-4e07-9579-09d0cc926ff1", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025119938187,"code":"a222526e-1343-481a-8405-f664ef080f6b","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025119938189,"destinationAddressId":85025119938188,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T07:23:14.976804Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025119938193,"transactionId":85025119938187,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025119938188,"originAddressId":85025119938189,"discountAmount":10.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":4.6,"taxableAmount":20.0,"taxCalculated":4.6,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85025119938198,"transactionLineId":85025119938193,"transactionId":85025119938187,"addressId":85025119938188,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":4.6000,"taxableAmount":20.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":4.6000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":20.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":20.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":4.6,"reportingTaxCalculated":4.6,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025119938196,"documentLineId":85025119938193,"documentAddressId":85025119938189,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025119938197,"documentLineId":85025119938193,"documentAddressId":85025119938188,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025119938194,"transactionId":85025119938187,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025119938188,"originAddressId":85025119938189,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85025119938202,"transactionLineId":85025119938194,"transactionId":85025119938187,"addressId":85025119938188,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":2.3000,"taxableAmount":10.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":2.3000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":10.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025119938200,"documentLineId":85025119938194,"documentAddressId":85025119938189,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025119938201,"documentLineId":85025119938194,"documentAddressId":85025119938188,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025119938188,"transactionId":85025119938187,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85025119938189,"transactionId":85025119938187,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025119938191,"documentId":85025119938187,"documentAddressId":85025119938189,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025119938192,"documentId":85025119938187,"documentAddressId":85025119938188,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035837754695,"code":"6fa3c245-9372-4e07-9579-09d0cc926ff1","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035837754697,"destinationAddressId":85035837754696,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:44.1450138Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035837754701,"transactionId":85035837754695,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035837754696,"originAddressId":85035837754697,"discountAmount":10.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":4.6,"taxableAmount":20.0,"taxCalculated":4.6,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85035837754706,"transactionLineId":85035837754701,"transactionId":85035837754695,"addressId":85035837754696,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":4.6000,"taxableAmount":20.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":4.6000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":20.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":20.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":4.6,"reportingTaxCalculated":4.6,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035837754704,"documentLineId":85035837754701,"documentAddressId":85035837754697,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035837754705,"documentLineId":85035837754701,"documentAddressId":85035837754696,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035837754702,"transactionId":85035837754695,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035837754696,"originAddressId":85035837754697,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":2.3,"taxableAmount":10.0,"taxCalculated":2.3,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85035837754710,"transactionLineId":85035837754702,"transactionId":85035837754695,"addressId":85035837754696,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":2.3000,"taxableAmount":10.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":2.3000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":10.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":10.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.3,"reportingTaxCalculated":2.3,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035837754708,"documentLineId":85035837754702,"documentAddressId":85035837754697,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035837754709,"documentLineId":85035837754702,"documentAddressId":85035837754696,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035837754696,"transactionId":85035837754695,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035837754697,"transactionId":85035837754695,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035837754699,"documentId":85035837754695,"documentAddressId":85035837754697,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035837754700,"documentId":85035837754695,"documentAddressId":85035837754696,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":30.00,"rate":0.230000,"tax":6.90,"taxCalculated":6.90,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 07:23:15 GMT
+ - Fri, 10 Jun 2022 10:43:44 GMT
Location:
- - /api/v2/companies/242975/transactions/85025119938187
+ - /api/v2/companies/242975/transactions/85035837754695
ServerDuration:
- - '00:00:00.1189926'
+ - '00:00:00.0905375'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 1166e2e3-203c-48ff-9fb7-c776da45ab05
+ - ab1e61f4-69e2-4736-bbd8-0cd893e6b570
x-correlation-id:
- - 1166e2e3-203c-48ff-9fb7-c776da45ab05
+ - ab1e61f4-69e2-4736-bbd8-0cd893e6b570
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[24.39-30.00-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[24.39-30.00-True].yaml
index 56998c311f..c1ce94d309 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[24.39-30.00-True].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[24.39-30.00-True].yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
{"quantity": 1, "amount": "0.000", "taxCode": "FR000000", "taxIncluded": true,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "b7e092ee-6bb7-48ab-8031-853eb702c909", "date": "2022-05-17", "customerCode":
+ "7297d269-6a33-45d5-bf51-cd913d1839b4", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025118455378,"code":"b7e092ee-6bb7-48ab-8031-853eb702c909","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":24.39,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025118455380,"destinationAddressId":85025118455379,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T07:25:00.5971153Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025118455384,"transactionId":85025118455378,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025118455379,"originAddressId":85025118455380,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025118455389,"transactionLineId":85025118455384,"transactionId":85025118455378,"addressId":85025118455379,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025118455387,"documentLineId":85025118455384,"documentAddressId":85025118455380,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025118455388,"documentLineId":85025118455384,"documentAddressId":85025118455379,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025118455385,"transactionId":85025118455378,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025118455379,"originAddressId":85025118455380,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025118455393,"transactionLineId":85025118455385,"transactionId":85025118455378,"addressId":85025118455379,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025118455391,"documentLineId":85025118455385,"documentAddressId":85025118455380,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025118455392,"documentLineId":85025118455385,"documentAddressId":85025118455379,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025118455379,"transactionId":85025118455378,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85025118455380,"transactionId":85025118455378,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025118455382,"documentId":85025118455378,"documentAddressId":85025118455380,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025118455383,"documentId":85025118455378,"documentAddressId":85025118455379,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838623108,"code":"7297d269-6a33-45d5-bf51-cd913d1839b4","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":24.39,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838623110,"destinationAddressId":85035838623109,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:41.6740636Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838623114,"transactionId":85035838623108,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838623109,"originAddressId":85035838623110,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838623119,"transactionLineId":85035838623114,"transactionId":85035838623108,"addressId":85035838623109,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838623117,"documentLineId":85035838623114,"documentAddressId":85035838623110,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838623118,"documentLineId":85035838623114,"documentAddressId":85035838623109,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838623115,"transactionId":85035838623108,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838623109,"originAddressId":85035838623110,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838623123,"transactionLineId":85035838623115,"transactionId":85035838623108,"addressId":85035838623109,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838623121,"documentLineId":85035838623115,"documentAddressId":85035838623110,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838623122,"documentLineId":85035838623115,"documentAddressId":85035838623109,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838623109,"transactionId":85035838623108,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035838623110,"transactionId":85035838623108,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838623112,"documentId":85035838623108,"documentAddressId":85035838623110,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838623113,"documentId":85035838623108,"documentAddressId":85035838623109,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":24.39,"rate":0.230000,"tax":5.61,"taxCalculated":5.61,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 07:25:00 GMT
+ - Fri, 10 Jun 2022 10:43:41 GMT
Location:
- - /api/v2/companies/242975/transactions/85025118455378
+ - /api/v2/companies/242975/transactions/85035838623108
ServerDuration:
- - '00:00:00.0959429'
+ - '00:00:00.1060941'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - b16a49db-18d7-41f2-9225-8c75ef0570b1
+ - 68527f8e-fdbc-4986-abff-482207f6fc65
x-correlation-id:
- - b16a49db-18d7-41f2-9225-8c75ef0570b1
+ - 68527f8e-fdbc-4986-abff-482207f6fc65
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[30.00-36.90-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[30.00-36.90-False].yaml
index ce79eb6f1c..3a927a441a 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[30.00-36.90-False].yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_shipping_voucher[30.00-36.90-False].yaml
@@ -5,7 +5,7 @@ interactions:
false, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
{"quantity": 1, "amount": "0.000", "taxCode": "FR000000", "taxIncluded": false,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "a9c8f708-9d06-4312-8b5f-577acbf27406", "date": "2022-05-17", "customerCode":
+ "1a420224-64ab-4fff-92ba-144a6b003664", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025119350025,"code":"a9c8f708-9d06-4312-8b5f-577acbf27406","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":30.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025119350027,"destinationAddressId":85025119350026,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T07:25:02.1545113Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025119350031,"transactionId":85025119350025,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025119350026,"originAddressId":85025119350027,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85025119350036,"transactionLineId":85025119350031,"transactionId":85025119350025,"addressId":85025119350026,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025119350034,"documentLineId":85025119350031,"documentAddressId":85025119350027,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025119350035,"documentLineId":85025119350031,"documentAddressId":85025119350026,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025119350032,"transactionId":85025119350025,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025119350026,"originAddressId":85025119350027,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85025119350040,"transactionLineId":85025119350032,"transactionId":85025119350025,"addressId":85025119350026,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025119350038,"documentLineId":85025119350032,"documentAddressId":85025119350027,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025119350039,"documentLineId":85025119350032,"documentAddressId":85025119350026,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025119350026,"transactionId":85025119350025,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85025119350027,"transactionId":85025119350025,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025119350029,"documentId":85025119350025,"documentAddressId":85025119350027,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025119350030,"documentId":85025119350025,"documentAddressId":85025119350026,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838815145,"code":"1a420224-64ab-4fff-92ba-144a6b003664","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":30.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838815147,"destinationAddressId":85035838815146,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:43.7794206Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838815151,"transactionId":85035838815145,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838815146,"originAddressId":85035838815147,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85035838815156,"transactionLineId":85035838815151,"transactionId":85035838815145,"addressId":85035838815146,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838815154,"documentLineId":85035838815151,"documentAddressId":85035838815147,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838815155,"documentLineId":85035838815151,"documentAddressId":85035838815146,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838815152,"transactionId":85035838815145,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838815146,"originAddressId":85035838815147,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":false,"details":[{"id":85035838815160,"transactionLineId":85035838815152,"transactionId":85035838815145,"addressId":85035838815146,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838815158,"documentLineId":85035838815152,"documentAddressId":85035838815147,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838815159,"documentLineId":85035838815152,"documentAddressId":85035838815146,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838815146,"transactionId":85035838815145,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035838815147,"transactionId":85035838815145,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838815149,"documentId":85035838815145,"documentAddressId":85035838815147,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838815150,"documentId":85035838815145,"documentAddressId":85035838815146,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":30.00,"rate":0.230000,"tax":6.90,"taxCalculated":6.90,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 07:25:02 GMT
+ - Fri, 10 Jun 2022 10:43:43 GMT
Location:
- - /api/v2/companies/242975/transactions/85025119350025
+ - /api/v2/companies/242975/transactions/85035838815145
ServerDuration:
- - '00:00:00.0977534'
+ - '00:00:00.1012249'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ac814507-423f-4703-968a-755bcc7e026c
+ - 72ee6a52-9aaa-4c99-93c4-0fb1141870b0
x-correlation-id:
- - ac814507-423f-4703-968a-755bcc7e026c
+ - 72ee6a52-9aaa-4c99-93c4-0fb1141870b0
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_with_discount.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_with_discount.yaml
index 3352f8a6cf..17b88b9a4d 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_with_discount.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_total_with_discount.yaml
@@ -2,12 +2,13 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "154fab46-ff5b-4814-910f-7938cf9d4f56", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "7dcfa8b4-5eda-4ffc-8874-33054bb79cf0", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
"region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '778'
+ - '838'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019772820299,"code":"154fab46-ff5b-4814-910f-7938cf9d4f56","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019772820301,"destinationAddressId":85019772820300,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:08.6246311Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019772820305,"transactionId":85019772820299,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019772820300,"originAddressId":85019772820301,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019772820310,"transactionLineId":85019772820305,"transactionId":85019772820299,"addressId":85019772820300,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019772820308,"documentLineId":85019772820305,"documentAddressId":85019772820301,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019772820309,"documentLineId":85019772820305,"documentAddressId":85019772820300,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019772820306,"transactionId":85019772820299,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019772820300,"originAddressId":85019772820301,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019772820314,"transactionLineId":85019772820306,"transactionId":85019772820299,"addressId":85019772820300,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019772820312,"documentLineId":85019772820306,"documentAddressId":85019772820301,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019772820313,"documentLineId":85019772820306,"documentAddressId":85019772820300,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019772820300,"transactionId":85019772820299,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85019772820301,"transactionId":85019772820299,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019772820303,"documentId":85019772820299,"documentAddressId":85019772820301,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019772820304,"documentId":85019772820299,"documentAddressId":85019772820300,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838727268,"code":"7dcfa8b4-5eda-4ffc-8874-33054bb79cf0","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838727270,"destinationAddressId":85035838727269,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:44.1289168Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838727274,"transactionId":85035838727268,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838727269,"originAddressId":85035838727270,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838727279,"transactionLineId":85035838727274,"transactionId":85035838727268,"addressId":85035838727269,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838727277,"documentLineId":85035838727274,"documentAddressId":85035838727270,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838727278,"documentLineId":85035838727274,"documentAddressId":85035838727269,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838727275,"transactionId":85035838727268,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838727269,"originAddressId":85035838727270,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838727283,"transactionLineId":85035838727275,"transactionId":85035838727268,"addressId":85035838727269,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838727281,"documentLineId":85035838727275,"documentAddressId":85035838727270,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838727282,"documentLineId":85035838727275,"documentAddressId":85035838727269,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838727269,"transactionId":85035838727268,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035838727270,"transactionId":85035838727268,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838727272,"documentId":85035838727268,"documentAddressId":85035838727270,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838727273,"documentId":85035838727268,"documentAddressId":85035838727269,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":32.52,"rate":0.230000,"tax":7.48,"taxCalculated":7.48,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:44 GMT
Location:
- - /api/v2/companies/242975/transactions/85019772820299
+ - /api/v2/companies/242975/transactions/85035838727268
ServerDuration:
- - '00:00:00.0860094'
+ - '00:00:00.0945078'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - dfe2f365-9dda-4dc0-8e7c-86dbba9a7dd8
+ - d6d8d7fe-e3bf-4a8d-b578-2fc481b7af1e
x-correlation-id:
- - dfe2f365-9dda-4dc0-8e7c-86dbba9a7dd8
+ - d6d8d7fe-e3bf-4a8d-b578-2fc481b7af1e
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit.yaml
index 517e25cd40..6d8944cd49 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit.yaml
@@ -2,13 +2,14 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "b106a505-4485-49c2-b3c2-8f5c4e58fa47", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "845deb93-f65a-4cbd-a64f-cf285621d2f6", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
Accept:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '777'
+ - '837'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019772623767,"code":"b106a505-4485-49c2-b3c2-8f5c4e58fa47","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019772623769,"destinationAddressId":85019772623768,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:11.2700895Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019772623773,"transactionId":85019772623767,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019772623768,"originAddressId":85019772623769,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019772623778,"transactionLineId":85019772623773,"transactionId":85019772623767,"addressId":85019772623768,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019772623776,"documentLineId":85019772623773,"documentAddressId":85019772623769,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019772623777,"documentLineId":85019772623773,"documentAddressId":85019772623768,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019772623774,"transactionId":85019772623767,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019772623768,"originAddressId":85019772623769,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019772623782,"transactionLineId":85019772623774,"transactionId":85019772623767,"addressId":85019772623768,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019772623780,"documentLineId":85019772623774,"documentAddressId":85019772623769,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019772623781,"documentLineId":85019772623774,"documentAddressId":85019772623768,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019772623768,"transactionId":85019772623767,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019772623769,"transactionId":85019772623767,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019772623771,"documentId":85019772623767,"documentAddressId":85019772623769,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019772623772,"documentId":85019772623767,"documentAddressId":85019772623768,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035839405665,"code":"845deb93-f65a-4cbd-a64f-cf285621d2f6","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035839405667,"destinationAddressId":85035839405666,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:50.1991803Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035839405671,"transactionId":85035839405665,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035839405666,"originAddressId":85035839405667,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035839405676,"transactionLineId":85035839405671,"transactionId":85035839405665,"addressId":85035839405666,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035839405674,"documentLineId":85035839405671,"documentAddressId":85035839405667,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035839405675,"documentLineId":85035839405671,"documentAddressId":85035839405666,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035839405672,"transactionId":85035839405665,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035839405666,"originAddressId":85035839405667,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035839405680,"transactionLineId":85035839405672,"transactionId":85035839405665,"addressId":85035839405666,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035839405678,"documentLineId":85035839405672,"documentAddressId":85035839405667,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035839405679,"documentLineId":85035839405672,"documentAddressId":85035839405666,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035839405666,"transactionId":85035839405665,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035839405667,"transactionId":85035839405665,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035839405669,"documentId":85035839405665,"documentAddressId":85035839405667,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035839405670,"documentId":85035839405665,"documentAddressId":85035839405666,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":32.52,"rate":0.230000,"tax":7.48,"taxCalculated":7.48,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 10:43:50 GMT
Location:
- - /api/v2/companies/242975/transactions/85019772623767
+ - /api/v2/companies/242975/transactions/85035839405665
ServerDuration:
- - '00:00:00.1150948'
+ - '00:00:00.0870078'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - a05d318b-2cbc-44ed-bc6f-3f28f4b73c87
+ - 253502a3-5859-4e28-924b-8baac3e26453
x-correlation-id:
- - a05d318b-2cbc-44ed-bc6f-3f28f4b73c87
+ - 253502a3-5859-4e28-924b-8baac3e26453
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_in_JPY.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_in_JPY.yaml
index 3df4be2be4..2a0a7bda72 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_in_JPY.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_in_JPY.yaml
@@ -2,13 +2,14 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "3600.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product"}, {"quantity": 1, "amount":
- "700.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "d5faa175-8c6b-4dca-b865-df8add272b3f", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ true, "itemCode": "123", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "700.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "a9efb179-903a-4a19-afd7-ac926469eb58", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
"JPY", "email": "[email protected]"}}'
headers:
Accept:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '778'
+ - '838'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019771444100,"code":"d5faa175-8c6b-4dca-b865-df8add272b3f","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":3496.83,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":803.0,"totalTaxable":3495.94,"totalTaxCalculated":803.0,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019771444102,"destinationAddressId":85019771444101,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:12.3343678Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019771444106,"transactionId":85019771444100,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019771444101,"originAddressId":85019771444102,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"123","lineAmount":2926.8300,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":673.0,"taxableAmount":2926.83,"taxCalculated":673.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019771444111,"transactionLineId":85019771444106,"transactionId":85019771444100,"addressId":85019771444101,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":673.1700,"taxableAmount":2926.8300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":673.1700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":2926.8300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2926.83,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":673.17,"reportingTaxCalculated":673.17,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019771444109,"documentLineId":85019771444106,"documentAddressId":85019771444102,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019771444110,"documentLineId":85019771444106,"documentAddressId":85019771444101,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019771444107,"transactionId":85019771444100,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019771444101,"originAddressId":85019771444102,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":570.0000,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019771444115,"transactionLineId":85019771444107,"transactionId":85019771444100,"addressId":85019771444101,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":130.8900,"taxableAmount":569.1100,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":130.8900,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":569.1100,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":569.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":130.89,"reportingTaxCalculated":130.89,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019771444113,"documentLineId":85019771444107,"documentAddressId":85019771444102,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019771444114,"documentLineId":85019771444107,"documentAddressId":85019771444101,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019771444101,"transactionId":85019771444100,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019771444102,"transactionId":85019771444100,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019771444104,"documentId":85019771444100,"documentAddressId":85019771444102,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019771444105,"documentId":85019771444100,"documentAddressId":85019771444101,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838914700,"code":"a9efb179-903a-4a19-afd7-ac926469eb58","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":3496.11,"totalExempt":0.17,"totalDiscount":0.0,"totalTax":803.0,"totalTaxable":3495.94,"totalTaxCalculated":803.0,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838914702,"destinationAddressId":85035838914701,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:53.1337289Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838914706,"transactionId":85035838914700,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838914701,"originAddressId":85035838914702,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"123","lineAmount":2927.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":673.0,"taxableAmount":2926.83,"taxCalculated":673.0,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838914711,"transactionLineId":85035838914706,"transactionId":85035838914700,"addressId":85035838914701,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":673.1700,"taxableAmount":2926.8300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":673.1700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":2926.8300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2926.83,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":673.17,"reportingTaxCalculated":673.17,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838914709,"documentLineId":85035838914706,"documentAddressId":85035838914702,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838914710,"documentLineId":85035838914706,"documentAddressId":85035838914701,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838914707,"transactionId":85035838914700,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838914701,"originAddressId":85035838914702,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":569.1100,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838914715,"transactionLineId":85035838914707,"transactionId":85035838914700,"addressId":85035838914701,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":130.8900,"taxableAmount":569.1100,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":130.8900,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":569.1100,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":569.11,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":130.89,"reportingTaxCalculated":130.89,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838914713,"documentLineId":85035838914707,"documentAddressId":85035838914702,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838914714,"documentLineId":85035838914707,"documentAddressId":85035838914701,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838914701,"transactionId":85035838914700,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035838914702,"transactionId":85035838914700,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838914704,"documentId":85035838914700,"documentAddressId":85035838914702,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838914705,"documentId":85035838914700,"documentAddressId":85035838914701,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":3495.94,"rate":0.230000,"tax":804.06,"taxCalculated":804.06,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- - /api/v2/companies/242975/transactions/85019771444100
+ - /api/v2/companies/242975/transactions/85035838914700
ServerDuration:
- - '00:00:00.0905975'
+ - '00:00:00.0894539'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 25e0b9a7-81f7-4115-8756-eeed6db07fbb
+ - aab08461-63ba-475e-9ab2-535bf2d22c1f
x-correlation-id:
- - 25e0b9a7-81f7-4115-8756-eeed6db07fbb
+ - aab08461-63ba-475e-9ab2-535bf2d22c1f
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_with_discount.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_with_discount.yaml
index 093adf96e2..5765de62d5 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_with_discount.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_unit_with_discount.yaml
@@ -2,13 +2,14 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "43812205-dc72-4119-b2e4-376b4f3b0042", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "73210581-d348-4f6d-9725-f176e14d9623", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
Accept:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '777'
+ - '837'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019773219456,"code":"43812205-dc72-4119-b2e4-376b4f3b0042","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019773219458,"destinationAddressId":85019773219457,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:10.7701579Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019773219462,"transactionId":85019773219456,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019773219457,"originAddressId":85019773219458,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019773219467,"transactionLineId":85019773219462,"transactionId":85019773219456,"addressId":85019773219457,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019773219465,"documentLineId":85019773219462,"documentAddressId":85019773219458,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019773219466,"documentLineId":85019773219462,"documentAddressId":85019773219457,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019773219463,"transactionId":85019773219456,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019773219457,"originAddressId":85019773219458,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019773219471,"transactionLineId":85019773219463,"transactionId":85019773219456,"addressId":85019773219457,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019773219469,"documentLineId":85019773219463,"documentAddressId":85019773219458,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019773219470,"documentLineId":85019773219463,"documentAddressId":85019773219457,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019773219457,"transactionId":85019773219456,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019773219458,"transactionId":85019773219456,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019773219460,"documentId":85019773219456,"documentAddressId":85019773219458,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019773219461,"documentId":85019773219456,"documentAddressId":85019773219457,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035837472203,"code":"73210581-d348-4f6d-9725-f176e14d9623","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035837472205,"destinationAddressId":85035837472204,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:55.0231137Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035837472209,"transactionId":85035837472203,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035837472204,"originAddressId":85035837472205,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035837472214,"transactionLineId":85035837472209,"transactionId":85035837472203,"addressId":85035837472204,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035837472212,"documentLineId":85035837472209,"documentAddressId":85035837472205,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035837472213,"documentLineId":85035837472209,"documentAddressId":85035837472204,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035837472210,"transactionId":85035837472203,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035837472204,"originAddressId":85035837472205,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035837472218,"transactionLineId":85035837472210,"transactionId":85035837472203,"addressId":85035837472204,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035837472216,"documentLineId":85035837472210,"documentAddressId":85035837472205,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035837472217,"documentLineId":85035837472210,"documentAddressId":85035837472204,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035837472204,"transactionId":85035837472203,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035837472205,"transactionId":85035837472203,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035837472207,"documentId":85035837472203,"documentAddressId":85035837472205,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035837472208,"documentId":85035837472203,"documentAddressId":85035837472204,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":32.52,"rate":0.230000,"tax":7.48,"taxCalculated":7.48,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:55 GMT
Location:
- - /api/v2/companies/242975/transactions/85019773219456
+ - /api/v2/companies/242975/transactions/85035837472203
ServerDuration:
- - '00:00:00.0905312'
+ - '00:00:00.0875889'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 109fc657-2c3f-4258-a4bf-6ad02a6d672f
+ - 15f168af-b8c4-4d53-8825-3e4175b3e1ca
x-correlation-id:
- - 109fc657-2c3f-4258-a4bf-6ad02a6d672f
+ - 15f168af-b8c4-4d53-8825-3e4175b3e1ca
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_without_sku_total.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_without_sku_total.yaml
index 1380e3d1c2..e9faf7a69d 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_without_sku_total.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_line_without_sku_total.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "description": "Test product"},
- {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
- "itemCode": "Shipping", "description": null}], "code": "7d81b8ab-e3dc-427e-8af6-9cfe849be11e",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "UHJvZHVjdFZhcmlhbnQ6Mg", "discounted": false, "description":
+ "Test product"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000",
+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":
+ null}], "code": "c009f184-ab66-4ce0-9505-95e978e572a9", "date": "2022-06-10",
+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa
+ 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
+ "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '795'
+ - '855'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019774412332,"code":"7d81b8ab-e3dc-427e-8af6-9cfe849be11e","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019774412334,"destinationAddressId":85019774412333,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:08.0861457Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019774412338,"transactionId":85019774412332,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019774412333,"originAddressId":85019774412334,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019774412343,"transactionLineId":85019774412338,"transactionId":85019774412332,"addressId":85019774412333,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019774412341,"documentLineId":85019774412338,"documentAddressId":85019774412334,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019774412342,"documentLineId":85019774412338,"documentAddressId":85019774412333,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019774412339,"transactionId":85019774412332,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019774412333,"originAddressId":85019774412334,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019774412347,"transactionLineId":85019774412339,"transactionId":85019774412332,"addressId":85019774412333,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019774412345,"documentLineId":85019774412339,"documentAddressId":85019774412334,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019774412346,"documentLineId":85019774412339,"documentAddressId":85019774412333,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019774412333,"transactionId":85019774412332,"boundaryLevel":"Zip5","line1":"Olawska
- 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85019774412334,"transactionId":85019774412332,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019774412336,"documentId":85019774412332,"documentAddressId":85019774412334,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019774412337,"documentId":85019774412332,"documentAddressId":85019774412333,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838350027,"code":"c009f184-ab66-4ce0-9505-95e978e572a9","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838350029,"destinationAddressId":85035838350028,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:36.9659023Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838350033,"transactionId":85035838350027,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838350028,"originAddressId":85035838350029,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"UHJvZHVjdFZhcmlhbnQ6Mg","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838350038,"transactionLineId":85035838350033,"transactionId":85035838350027,"addressId":85035838350028,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838350036,"documentLineId":85035838350033,"documentAddressId":85035838350029,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838350037,"documentLineId":85035838350033,"documentAddressId":85035838350028,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838350034,"transactionId":85035838350027,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838350028,"originAddressId":85035838350029,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838350042,"transactionLineId":85035838350034,"transactionId":85035838350027,"addressId":85035838350028,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838350040,"documentLineId":85035838350034,"documentAddressId":85035838350029,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838350041,"documentLineId":85035838350034,"documentAddressId":85035838350028,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838350028,"transactionId":85035838350027,"boundaryLevel":"Zip5","line1":"Olawska
+ 10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102},{"id":85035838350029,"transactionId":85035838350027,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838350031,"documentId":85035838350027,"documentAddressId":85035838350029,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838350032,"documentId":85035838350027,"documentAddressId":85035838350028,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":32.52,"rate":0.230000,"tax":7.48,"taxCalculated":7.48,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:08 GMT
+ - Fri, 10 Jun 2022 10:43:36 GMT
Location:
- - /api/v2/companies/242975/transactions/85019774412332
+ - /api/v2/companies/242975/transactions/85035838350027
ServerDuration:
- - '00:00:00.0899085'
+ - '00:00:00.0957416'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 945d803a-71ae-4a76-8a45-21eca42b0486
+ - c87dbcd4-68d1-435f-b015-9f604de15c69
x-correlation-id:
- - 945d803a-71ae-4a76-8a45-21eca42b0486
+ - c87dbcd4-68d1-435f-b015-9f604de15c69
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping.yaml
index 79c36f4015..07b274e3eb 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping.yaml
@@ -2,13 +2,14 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "36.900", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "7e456343-0e33-41a5-bb87-ffa202341ce4", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "eb5c1423-ffdc-4cb1-961b-53342392d7c9", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
Accept:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '777'
+ - '837'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019769788795,"code":"7e456343-0e33-41a5-bb87-ffa202341ce4","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.77,"totalTaxable":38.13,"totalTaxCalculated":8.77,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019769788797,"destinationAddressId":85019769788796,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:12.3298577Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019769788801,"transactionId":85019769788795,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019769788796,"originAddressId":85019769788797,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019769788806,"transactionLineId":85019769788801,"transactionId":85019769788795,"addressId":85019769788796,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019769788804,"documentLineId":85019769788801,"documentAddressId":85019769788797,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019769788805,"documentLineId":85019769788801,"documentAddressId":85019769788796,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019769788802,"transactionId":85019769788795,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019769788796,"originAddressId":85019769788797,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019769788810,"transactionLineId":85019769788802,"transactionId":85019769788795,"addressId":85019769788796,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019769788808,"documentLineId":85019769788802,"documentAddressId":85019769788797,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019769788809,"documentLineId":85019769788802,"documentAddressId":85019769788796,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019769788796,"transactionId":85019769788795,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019769788797,"transactionId":85019769788795,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019769788799,"documentId":85019769788795,"documentAddressId":85019769788797,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019769788800,"documentId":85019769788795,"documentAddressId":85019769788796,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035836272003,"code":"eb5c1423-ffdc-4cb1-961b-53342392d7c9","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.77,"totalTaxable":38.13,"totalTaxCalculated":8.77,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035836272005,"destinationAddressId":85035836272004,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:49.4997862Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035836272009,"transactionId":85035836272003,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035836272004,"originAddressId":85035836272005,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035836272014,"transactionLineId":85035836272009,"transactionId":85035836272003,"addressId":85035836272004,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035836272012,"documentLineId":85035836272009,"documentAddressId":85035836272005,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035836272013,"documentLineId":85035836272009,"documentAddressId":85035836272004,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035836272010,"transactionId":85035836272003,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035836272004,"originAddressId":85035836272005,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035836272018,"transactionLineId":85035836272010,"transactionId":85035836272003,"addressId":85035836272004,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035836272016,"documentLineId":85035836272010,"documentAddressId":85035836272005,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035836272017,"documentLineId":85035836272010,"documentAddressId":85035836272004,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035836272004,"transactionId":85035836272003,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035836272005,"transactionId":85035836272003,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035836272007,"documentId":85035836272003,"documentAddressId":85035836272005,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035836272008,"documentId":85035836272003,"documentAddressId":85035836272004,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":38.13,"rate":0.230000,"tax":8.77,"taxCalculated":8.77,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:49 GMT
Location:
- - /api/v2/companies/242975/transactions/85019769788795
+ - /api/v2/companies/242975/transactions/85035836272003
ServerDuration:
- - '00:00:00.0866790'
+ - '00:00:00.0894306'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 3c46e8ab-67ca-4615-85be-857e9c01c6dd
+ - 3d4614b0-5678-4495-b6e6-5b0520a1c95d
x-correlation-id:
- - 3c46e8ab-67ca-4615-85be-857e9c01c6dd
+ - 3d4614b0-5678-4495-b6e6-5b0520a1c95d
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_entire_order_voucher.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_entire_order_voucher.yaml
index fa4e49263e..938614c333 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_entire_order_voucher.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_entire_order_voucher.yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "SKU_A", "discounted": true, "description": "Test product"},
{"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "b6625112-df5f-4032-bc2f-127384d39ee0", "date": "2022-05-17", "customerCode":
+ "1402c2b0-7157-44fb-9f92-222ff303a618", "date": "2022-06-10", "customerCode":
0, "discount": "10.000", "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025131417259,"code":"b6625112-df5f-4032-bc2f-127384d39ee0","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025131417261,"destinationAddressId":85025131417260,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T08:23:23.5827096Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025131417265,"transactionId":85025131417259,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025131417260,"originAddressId":85025131417261,"discountAmount":10.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":31.8700,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":5.03,"taxableAmount":21.87,"taxCalculated":5.03,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025131417270,"transactionLineId":85025131417265,"transactionId":85025131417259,"addressId":85025131417260,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.0300,"taxableAmount":21.8700,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.0300,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":21.8700,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.87,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.03,"reportingTaxCalculated":5.03,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025131417268,"documentLineId":85025131417265,"documentAddressId":85025131417261,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025131417269,"documentLineId":85025131417265,"documentAddressId":85025131417260,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025131417266,"transactionId":85025131417259,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025131417260,"originAddressId":85025131417261,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025131417274,"transactionLineId":85025131417266,"transactionId":85025131417259,"addressId":85025131417260,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025131417272,"documentLineId":85025131417266,"documentAddressId":85025131417261,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025131417273,"documentLineId":85025131417266,"documentAddressId":85025131417260,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025131417260,"transactionId":85025131417259,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85025131417261,"transactionId":85025131417259,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025131417263,"documentId":85025131417259,"documentAddressId":85025131417261,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025131417264,"documentId":85025131417259,"documentAddressId":85025131417260,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035836764100,"code":"1402c2b0-7157-44fb-9f92-222ff303a618","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":40.0,"totalExempt":0.0,"totalDiscount":10.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035836764102,"destinationAddressId":85035836764101,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:52.9372213Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035836764106,"transactionId":85035836764100,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035836764101,"originAddressId":85035836764102,"discountAmount":10.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":31.8700,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.03,"taxableAmount":21.87,"taxCalculated":5.03,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035836764111,"transactionLineId":85035836764106,"transactionId":85035836764100,"addressId":85035836764101,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.0300,"taxableAmount":21.8700,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.0300,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":21.8700,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":21.87,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.03,"reportingTaxCalculated":5.03,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035836764109,"documentLineId":85035836764106,"documentAddressId":85035836764102,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035836764110,"documentLineId":85035836764106,"documentAddressId":85035836764101,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035836764107,"transactionId":85035836764100,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035836764101,"originAddressId":85035836764102,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035836764115,"transactionLineId":85035836764107,"transactionId":85035836764100,"addressId":85035836764101,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035836764113,"documentLineId":85035836764107,"documentAddressId":85035836764102,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035836764114,"documentLineId":85035836764107,"documentAddressId":85035836764101,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035836764101,"transactionId":85035836764100,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035836764102,"transactionId":85035836764100,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035836764104,"documentId":85035836764100,"documentAddressId":85035836764102,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035836764105,"documentId":85035836764100,"documentAddressId":85035836764101,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":30.00,"rate":0.230000,"tax":6.90,"taxCalculated":6.90,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 08:23:23 GMT
+ - Fri, 10 Jun 2022 10:43:52 GMT
Location:
- - /api/v2/companies/242975/transactions/85025131417259
+ - /api/v2/companies/242975/transactions/85035836764100
ServerDuration:
- - '00:00:00.1135452'
+ - '00:00:00.0879002'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - cfc14005-58f0-4c74-a132-8f15635c89e4
+ - 06ffc84a-10e7-4410-9853-08715947f1c9
x-correlation-id:
- - cfc14005-58f0-4c74-a132-8f15635c89e4
+ - 06ffc84a-10e7-4410-9853-08715947f1c9
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_free_shipping_voucher.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_free_shipping_voucher.yaml
index 81705571d9..0e5837f4f8 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_free_shipping_voucher.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_free_shipping_voucher.yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
{"quantity": 1, "amount": "0.000", "taxCode": "FR000000", "taxIncluded": true,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "1156dc9b-f00f-4f62-bc0e-3c2db6f59e9e", "date": "2022-05-17", "customerCode":
+ "7ea9f2a6-d87c-4914-8d89-c6809f9c60ba", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025129569135,"code":"1156dc9b-f00f-4f62-bc0e-3c2db6f59e9e","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":30.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025129569137,"destinationAddressId":85025129569136,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T08:26:08.2848183Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025129569141,"transactionId":85025129569135,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025129569136,"originAddressId":85025129569137,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025129569146,"transactionLineId":85025129569141,"transactionId":85025129569135,"addressId":85025129569136,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025129569144,"documentLineId":85025129569141,"documentAddressId":85025129569137,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025129569145,"documentLineId":85025129569141,"documentAddressId":85025129569136,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025129569142,"transactionId":85025129569135,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025129569136,"originAddressId":85025129569137,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025129569150,"transactionLineId":85025129569142,"transactionId":85025129569135,"addressId":85025129569136,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025129569148,"documentLineId":85025129569142,"documentAddressId":85025129569137,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025129569149,"documentLineId":85025129569142,"documentAddressId":85025129569136,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025129569136,"transactionId":85025129569135,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85025129569137,"transactionId":85025129569135,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025129569139,"documentId":85025129569135,"documentAddressId":85025129569137,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025129569140,"documentId":85025129569135,"documentAddressId":85025129569136,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035839112388,"code":"7ea9f2a6-d87c-4914-8d89-c6809f9c60ba","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":30.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035839112390,"destinationAddressId":85035839112389,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:54.8108462Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035839112394,"transactionId":85035839112388,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035839112389,"originAddressId":85035839112390,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035839112399,"transactionLineId":85035839112394,"transactionId":85035839112388,"addressId":85035839112389,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035839112397,"documentLineId":85035839112394,"documentAddressId":85035839112390,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035839112398,"documentLineId":85035839112394,"documentAddressId":85035839112389,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035839112395,"transactionId":85035839112388,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035839112389,"originAddressId":85035839112390,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035839112403,"transactionLineId":85035839112395,"transactionId":85035839112388,"addressId":85035839112389,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035839112401,"documentLineId":85035839112395,"documentAddressId":85035839112390,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035839112402,"documentLineId":85035839112395,"documentAddressId":85035839112389,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035839112389,"transactionId":85035839112388,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035839112390,"transactionId":85035839112388,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035839112392,"documentId":85035839112388,"documentAddressId":85035839112390,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035839112393,"documentId":85035839112388,"documentAddressId":85035839112389,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":30.00,"rate":0.230000,"tax":6.90,"taxCalculated":6.90,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 08:26:08 GMT
+ - Fri, 10 Jun 2022 10:43:54 GMT
Location:
- - /api/v2/companies/242975/transactions/85025129569135
+ - /api/v2/companies/242975/transactions/85035839112388
ServerDuration:
- - '00:00:00.0967904'
+ - '00:00:00.0880876'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - b0595f94-8c25-45d2-918e-040c1209f715
+ - afd2ccfe-4060-4518-b117-3993f3f450d0
x-correlation-id:
- - b0595f94-8c25-45d2-918e-040c1209f715
+ - afd2ccfe-4060-4518-b117-3993f3f450d0
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_voucher_on_shipping.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_voucher_on_shipping.yaml
index ba525757d3..e09688c7ff 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_voucher_on_shipping.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_voucher_on_shipping.yaml
@@ -5,7 +5,7 @@ interactions:
true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
{"quantity": 1, "amount": "5.000", "taxCode": "FR000000", "taxIncluded": true,
"itemCode": "Shipping", "discounted": false, "description": null}], "code":
- "e3cf0e38-a6db-43a5-a716-fd1bf9524f67", "date": "2022-05-17", "customerCode":
+ "3d4b090b-0de9-4c77-8ccb-36e8163e0fea", "date": "2022-06-10", "customerCode":
0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
"shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
@@ -28,12 +28,12 @@ interactions:
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85025131932312,"code":"e3cf0e38-a6db-43a5-a716-fd1bf9524f67","companyId":242975,"date":"2022-05-17","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":34.07,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.83,"totalTaxable":34.07,"totalTaxCalculated":7.83,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85025131932314,"destinationAddressId":85025131932313,"exchangeRateEffectiveDate":"2022-05-17","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-17T08:29:58.0184339Z","modifiedUserId":283192,"taxDate":"2022-05-17","lines":[{"id":85025131932318,"transactionId":85025131932312,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85025131932313,"originAddressId":85025131932314,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025131932323,"transactionLineId":85025131932318,"transactionId":85025131932312,"addressId":85025131932313,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025131932321,"documentLineId":85025131932318,"documentAddressId":85025131932314,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025131932322,"documentLineId":85025131932318,"documentAddressId":85025131932313,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85025131932319,"transactionId":85025131932312,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025131932313,"originAddressId":85025131932314,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":4.0700,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-17","revAccount":"","sourcing":"Destination","tax":0.93,"taxableAmount":4.07,"taxCalculated":0.93,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-17","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025131932327,"transactionLineId":85025131932319,"transactionId":85025131932312,"addressId":85025131932313,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.9300,"taxableAmount":4.0700,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.9300,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":4.0700,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":4.07,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.93,"reportingTaxCalculated":0.93,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025131932325,"documentLineId":85025131932319,"documentAddressId":85025131932314,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025131932326,"documentLineId":85025131932319,"documentAddressId":85025131932313,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85025131932313,"transactionId":85025131932312,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85025131932314,"transactionId":85025131932312,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025131932316,"documentId":85025131932312,"documentAddressId":85025131932314,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025131932317,"documentId":85025131932312,"documentAddressId":85025131932313,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035839010955,"code":"3d4b090b-0de9-4c77-8ccb-36e8163e0fea","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":34.07,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.83,"totalTaxable":34.07,"totalTaxCalculated":7.83,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035839010957,"destinationAddressId":85035839010956,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:49.6377198Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035839010961,"transactionId":85035839010955,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035839010956,"originAddressId":85035839010957,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035839010966,"transactionLineId":85035839010961,"transactionId":85035839010955,"addressId":85035839010956,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035839010964,"documentLineId":85035839010961,"documentAddressId":85035839010957,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035839010965,"documentLineId":85035839010961,"documentAddressId":85035839010956,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035839010962,"transactionId":85035839010955,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035839010956,"originAddressId":85035839010957,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":4.0700,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":0.93,"taxableAmount":4.07,"taxCalculated":0.93,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035839010970,"transactionLineId":85035839010962,"transactionId":85035839010955,"addressId":85035839010956,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.9300,"taxableAmount":4.0700,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.9300,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":4.0700,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":4.07,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.93,"reportingTaxCalculated":0.93,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035839010968,"documentLineId":85035839010962,"documentAddressId":85035839010957,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035839010969,"documentLineId":85035839010962,"documentAddressId":85035839010956,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035839010956,"transactionId":85035839010955,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035839010957,"transactionId":85035839010955,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035839010959,"documentId":85035839010955,"documentAddressId":85035839010957,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035839010960,"documentId":85035839010955,"documentAddressId":85035839010956,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":34.07,"rate":0.230000,"tax":7.83,"taxCalculated":7.83,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -41,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Tue, 17 May 2022 08:29:58 GMT
+ - Fri, 10 Jun 2022 10:43:49 GMT
Location:
- - /api/v2/companies/242975/transactions/85025131932312
+ - /api/v2/companies/242975/transactions/85035839010955
ServerDuration:
- - '00:00:00.0951020'
+ - '00:00:00.0904151'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 69e18b7f-9900-4d00-a08e-9b294479b3e4
+ - b5d50e19-0fc1-48d1-a928-3567a5d35d76
x-correlation-id:
- - 69e18b7f-9900-4d00-a08e-9b294479b3e4
+ - b5d50e19-0fc1-48d1-a928-3567a5d35d76
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_zero_shipping_amount.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_zero_shipping_amount.yaml
index 0c1bba0177..6ff683a777 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_zero_shipping_amount.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_shipping_zero_shipping_amount.yaml
@@ -2,12 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "36.900", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}], "code": "2f6dfc35-3f0c-41ec-bc3f-514619d4d05c",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "0.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "9579efe8-58aa-49ba-910c-c6f21307aef0", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -18,18 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '651'
+ - '836'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019772525946,"code":"2f6dfc35-3f0c-41ec-bc3f-514619d4d05c","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":30.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019772525948,"destinationAddressId":85019772525947,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:10.1696475Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019772525952,"transactionId":85019772525946,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019772525947,"originAddressId":85019772525948,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019772525956,"transactionLineId":85019772525952,"transactionId":85019772525946,"addressId":85019772525947,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019772525954,"documentLineId":85019772525952,"documentAddressId":85019772525948,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019772525955,"documentLineId":85019772525952,"documentAddressId":85019772525947,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0}],"addresses":[{"id":85019772525947,"transactionId":85019772525946,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019772525948,"transactionId":85019772525946,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019772525950,"documentId":85019772525946,"documentAddressId":85019772525948,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019772525951,"documentId":85019772525946,"documentAddressId":85019772525947,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035837658792,"code":"9579efe8-58aa-49ba-910c-c6f21307aef0","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":30.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":6.9,"totalTaxable":30.0,"totalTaxCalculated":6.9,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035837658794,"destinationAddressId":85035837658793,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:53.1387518Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035837658798,"transactionId":85035837658792,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035837658793,"originAddressId":85035837658794,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035837658803,"transactionLineId":85035837658798,"transactionId":85035837658792,"addressId":85035837658793,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035837658801,"documentLineId":85035837658798,"documentAddressId":85035837658794,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035837658802,"documentLineId":85035837658798,"documentAddressId":85035837658793,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035837658799,"transactionId":85035837658792,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035837658793,"originAddressId":85035837658794,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"isSSTP":false,"itemCode":"Shipping","lineAmount":0.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035837658807,"transactionLineId":85035837658799,"transactionId":85035837658792,"addressId":85035837658793,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":0.0000,"taxableAmount":0.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":0.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":0.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035837658805,"documentLineId":85035837658799,"documentAddressId":85035837658794,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035837658806,"documentLineId":85035837658799,"documentAddressId":85035837658793,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035837658793,"transactionId":85035837658792,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035837658794,"transactionId":85035837658792,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035837658796,"documentId":85035837658792,"documentAddressId":85035837658794,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035837658797,"documentId":85035837658792,"documentAddressId":85035837658793,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":30.00,"rate":0.230000,"tax":6.90,"taxCalculated":6.90,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -37,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:10 GMT
+ - Fri, 10 Jun 2022 10:43:53 GMT
Location:
- - /api/v2/companies/242975/transactions/85019772525946
+ - /api/v2/companies/242975/transactions/85035837658792
ServerDuration:
- - '00:00:00.0837848'
+ - '00:00:00.0921383'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 09394d87-cca4-436c-bc9b-c071328d2308
+ - 5b47fb73-9a6c-4261-9a0c-c6420079a743
x-correlation-id:
- - 09394d87-cca4-436c-bc9b-c071328d2308
+ - 5b47fb73-9a6c-4261-9a0c-c6420079a743
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch.yaml
index 56acdf33e3..2708c3f626 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch.yaml
@@ -16,7 +16,7 @@ interactions:
uri: https://rest.avatax.com/api/v2/definitions/taxcodes
response:
body:
- string: "{\"@recordsetCount\":5153,\"value\":[{\"id\":0,\"companyId\":1,\"taxCode\":\"U0000000\",\"taxCodeTypeId\":\"U\",\"description\":\"Unknown
+ string: "{\"@recordsetCount\":5197,\"value\":[{\"id\":0,\"companyId\":1,\"taxCode\":\"U0000000\",\"taxCodeTypeId\":\"U\",\"description\":\"Unknown
tax code\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":true,\"createdDate\":\"2006-06-22T05:36:59.65Z\",\"createdUserId\":0,\"modifiedDate\":\"2014-04-29T21:12:22.487Z\",\"modifiedUserId\":0},{\"id\":623701,\"companyId\":1,\"taxCode\":\"PC020595\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
And Related Products / Hydration packs\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-29T06:18:56.22Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-29T06:18:56.22Z\",\"modifiedUserId\":0},{\"id\":626745,\"companyId\":1,\"taxCode\":\"PF030600\",\"taxCodeTypeId\":\"P\",\"description\":\"Firearms\",\"parentTaxCode\":\"PF030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-08-27T06:35:14.027Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-09-10T09:45:10.853Z\",\"modifiedUserId\":0},{\"id\":626746,\"companyId\":1,\"taxCode\":\"PF030900\",\"taxCodeTypeId\":\"P\",\"description\":\"Ammunition\",\"parentTaxCode\":\"PF030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-08-27T06:35:14.027Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-09-10T09:45:10.853Z\",\"modifiedUserId\":0},{\"id\":629680,\"companyId\":1,\"taxCode\":\"OD010501\",\"taxCodeTypeId\":\"O\",\"description\":\"Automobile
sales and lease / Manufacturer rebate / Rebate sent directly to purchaser\",\"parentTaxCode\":\"O0000000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-10-12T10:25:19.547Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-03-29T05:55:54.837Z\",\"modifiedUserId\":0},{\"id\":629681,\"companyId\":1,\"taxCode\":\"OF200100\",\"taxCodeTypeId\":\"O\",\"description\":\"Automobile
@@ -91,7 +91,7 @@ interactions:
Supplies - Pet Food with a prescription: Includes: Snacks / Treats\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-06-27T07:25:57.93Z\",\"modifiedUserId\":0},{\"id\":64497,\"companyId\":1,\"taxCode\":\"PP052000\",\"taxCodeTypeId\":\"P\",\"description\":\"Veterinary
Products, Pet\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-05-10T05:23:18.7Z\",\"modifiedUserId\":0},{\"id\":64498,\"companyId\":1,\"taxCode\":\"PP052103\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
/ Disposable / One-Time Use Medical Supplies\",\"parentTaxCode\":\"PP052100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-04-26T04:53:49.583Z\",\"modifiedUserId\":0},{\"id\":64499,\"companyId\":1,\"taxCode\":\"PP052107\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
- - Eye drops, with a prescription\",\"parentTaxCode\":\"PP052100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-06-27T07:25:57.977Z\",\"modifiedUserId\":0},{\"id\":64500,\"companyId\":1,\"taxCode\":\"PP052111\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ / Eye drops / Sold on prescription\",\"parentTaxCode\":\"PP052100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":64500,\"companyId\":1,\"taxCode\":\"PP052111\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
- Tape - adhesive\",\"parentTaxCode\":\"PP052100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-06-27T07:25:57.977Z\",\"modifiedUserId\":0},{\"id\":64501,\"companyId\":1,\"taxCode\":\"PP052151\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
- Drug testing kits for home use\",\"parentTaxCode\":\"PP052150\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-06-27T07:25:57.993Z\",\"modifiedUserId\":0},{\"id\":64502,\"companyId\":1,\"taxCode\":\"PP052201\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
/ Skin Graft Products\",\"parentTaxCode\":\"PP052200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2018-03-28T05:30:51.653Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-04-26T04:53:49.583Z\",\"modifiedUserId\":0},{\"id\":64503,\"companyId\":1,\"taxCode\":\"PP052251\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
@@ -599,7 +599,7 @@ interactions:
Dye Service\",\"parentTaxCode\":\"SB040000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-06-26T05:05:28.9Z\",\"modifiedUserId\":0},{\"id\":28527,\"companyId\":1,\"taxCode\":\"PH400938\",\"taxCodeTypeId\":\"P\",\"description\":\"Hair
Removal Products\",\"parentTaxCode\":\"1140\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.647Z\",\"modifiedUserId\":0},{\"id\":28528,\"companyId\":1,\"taxCode\":\"PH405354\",\"taxCodeTypeId\":\"P\",\"description\":\"Bulbs
- replacement light\",\"parentTaxCode\":\"1210\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.65Z\",\"modifiedUserId\":0},{\"id\":28529,\"companyId\":1,\"taxCode\":\"SW077250\",\"taxCodeTypeId\":\"S\",\"description\":\"Window
- Cleaning Services\",\"parentTaxCode\":\"SW070000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-05-10T05:23:18.747Z\",\"modifiedUserId\":0},{\"id\":28530,\"companyId\":1,\"taxCode\":\"PH402898\",\"taxCodeTypeId\":\"P\",\"description\":\"Face
+ Cleaning Services / Residential\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":28530,\"companyId\":1,\"taxCode\":\"PH402898\",\"taxCodeTypeId\":\"P\",\"description\":\"Face
Mask / Cloth or Reusable / Sold at retail\",\"parentTaxCode\":\"0040\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-01-27T10:00:28.873Z\",\"modifiedUserId\":0},{\"id\":28531,\"companyId\":1,\"taxCode\":\"PH403010\",\"taxCodeTypeId\":\"P\",\"description\":\"Hospital
Furniture\",\"parentTaxCode\":\"0110\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.643Z\",\"modifiedUserId\":0},{\"id\":28532,\"companyId\":1,\"taxCode\":\"PC039328\",\"taxCodeTypeId\":\"P\",\"description\":\"Costumes
- Masks Only\",\"parentTaxCode\":\"PC030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.163Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.58Z\",\"modifiedUserId\":0},{\"id\":28533,\"companyId\":1,\"taxCode\":\"SE076498\",\"taxCodeTypeId\":\"S\",\"description\":\"Security
@@ -728,7 +728,7 @@ interactions:
Salads\",\"parentTaxCode\":\"PF160000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.763Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-03-23T03:08:59.507Z\",\"modifiedUserId\":0},{\"id\":28988,\"companyId\":1,\"taxCode\":\"PF160047\",\"taxCodeTypeId\":\"P\",\"description\":\"Prepared
Beverage / Seller Prepared / Hot or Iced Coffees, Teas, or Cocoas / Intended
for Immediate Consumption\",\"parentTaxCode\":\"PF160000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.763Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-03-23T03:08:59.49Z\",\"modifiedUserId\":0},{\"id\":28989,\"companyId\":1,\"taxCode\":\"PH400652\",\"taxCodeTypeId\":\"P\",\"description\":\"Contact
- Lens Cleaner\",\"parentTaxCode\":\"0390\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.763Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-10-29T05:18:32.733Z\",\"modifiedUserId\":0},{\"id\":28990,\"companyId\":1,\"taxCode\":\"PF052322\",\"taxCodeTypeId\":\"P\",\"description\":\"Snack
+ Lens Cleaner\",\"parentTaxCode\":\"0390\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.763Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":28990,\"companyId\":1,\"taxCode\":\"PF052322\",\"taxCodeTypeId\":\"P\",\"description\":\"Snack
items - Candy\",\"parentTaxCode\":\"PF050300\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.777Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.58Z\",\"modifiedUserId\":0},{\"id\":28991,\"companyId\":1,\"taxCode\":\"PA021078\",\"taxCodeTypeId\":\"P\",\"description\":\"Food
Producing Plants (Vegetable / Herb / Fruit)\",\"parentTaxCode\":\"PA020200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.777Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.59Z\",\"modifiedUserId\":0},{\"id\":28992,\"companyId\":1,\"taxCode\":\"PF052250\",\"taxCodeTypeId\":\"P\",\"description\":\"Beverage
/ Water / Nutrition Label / Naturally Carbonated / Flavored\",\"parentTaxCode\":\"PF050200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.777Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.577Z\",\"modifiedUserId\":0},{\"id\":28993,\"companyId\":1,\"taxCode\":\"PC031114\",\"taxCodeTypeId\":\"P\",\"description\":\"Receiving
@@ -795,7 +795,7 @@ interactions:
With 70-100% Juice Content (Kids Fuel Variety) / Disney Garden Foodles / Taylor
Farms Veggies With Dips\",\"parentTaxCode\":\"PF050000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.58Z\",\"modifiedUserId\":0},{\"id\":29048,\"companyId\":1,\"taxCode\":\"PI011658\",\"taxCodeTypeId\":\"P\",\"description\":\"Ice
Cubes Packaged Greater Than 10 lbs\",\"parentTaxCode\":\"PI010000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2020-09-25T12:03:45.503Z\",\"modifiedUserId\":0},{\"id\":29049,\"companyId\":1,\"taxCode\":\"PC031042\",\"taxCodeTypeId\":\"P\",\"description\":\"Bowling
- Shoes\",\"parentTaxCode\":\"PC030400\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.617Z\",\"modifiedUserId\":0},{\"id\":29050,\"companyId\":1,\"taxCode\":\"PC041138\",\"taxCodeTypeId\":\"P\",\"description\":\"Belt
+ Shoes / Business-to-Business\",\"parentTaxCode\":\"PC030400\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":29050,\"companyId\":1,\"taxCode\":\"PC041138\",\"taxCodeTypeId\":\"P\",\"description\":\"Belt
Buckles And Belt Tips Without The Belt\",\"parentTaxCode\":\"PC040200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.603Z\",\"modifiedUserId\":0},{\"id\":29051,\"companyId\":1,\"taxCode\":\"PF051370\",\"taxCodeTypeId\":\"P\",\"description\":\"Food
/ Candy / Does Not Contain Flour / With Alcohol\",\"parentTaxCode\":\"PF050300\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.613Z\",\"modifiedUserId\":0},{\"id\":29052,\"companyId\":1,\"taxCode\":\"PF051970\",\"taxCodeTypeId\":\"P\",\"description\":\"Beverage
/ Nutrition Label / Tea & Coffee / Sweetened / Carbonated / Ready to Drink
@@ -817,7 +817,7 @@ interactions:
to 4 oz\",\"parentTaxCode\":\"PF051100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.82Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-01-27T10:00:28.873Z\",\"modifiedUserId\":0},{\"id\":29066,\"companyId\":1,\"taxCode\":\"PF051546\",\"taxCodeTypeId\":\"P\",\"description\":\"Lunchables
w/ Candy /OR Lunchables Without Candy But With A Drink With 0-69% Juice Content\",\"parentTaxCode\":\"PF050000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.583Z\",\"modifiedUserId\":0},{\"id\":29067,\"companyId\":1,\"taxCode\":\"PI011666\",\"taxCodeTypeId\":\"P\",\"description\":\"Ice
Blocks / Bails Packaged Greater Than 10 lbs\",\"parentTaxCode\":\"PI010000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-09-28T10:15:55.857Z\",\"modifiedUserId\":0},{\"id\":29068,\"companyId\":1,\"taxCode\":\"PC041042\",\"taxCodeTypeId\":\"P\",\"description\":\"Bowling
- Shoes\",\"parentTaxCode\":\"PC040400\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.613Z\",\"modifiedUserId\":0},{\"id\":29069,\"companyId\":1,\"taxCode\":\"PC031210\",\"taxCodeTypeId\":\"P\",\"description\":\"Gloves:
+ Shoes / Business-to-Consumer\",\"parentTaxCode\":\"PC040400\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":29069,\"companyId\":1,\"taxCode\":\"PC031210\",\"taxCodeTypeId\":\"P\",\"description\":\"Gloves:
\ Work / Chore / Garden / Jersey\",\"parentTaxCode\":\"PC030100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.66Z\",\"modifiedUserId\":0},{\"id\":29070,\"companyId\":1,\"taxCode\":\"PF051378\",\"taxCodeTypeId\":\"P\",\"description\":\"Food
/ Dried Fruit / Sweetened\",\"parentTaxCode\":\"PF050300\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.617Z\",\"modifiedUserId\":0},{\"id\":29071,\"companyId\":1,\"taxCode\":\"PF051978\",\"taxCodeTypeId\":\"P\",\"description\":\"Beverage
/ Supplement Label / Tea / Sweetened & Unsweetened / Non Carbonated / Ready
@@ -827,8 +827,8 @@ interactions:
State Flag\",\"parentTaxCode\":\"PF040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.6Z\",\"modifiedUserId\":0},{\"id\":29074,\"companyId\":1,\"taxCode\":\"PF220744\",\"taxCodeTypeId\":\"P\",\"description\":\"Fireworks
Excluding Sparklers and Novelties\",\"parentTaxCode\":\"PF220000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.657Z\",\"modifiedUserId\":0},{\"id\":29075,\"companyId\":1,\"taxCode\":\"PF199611\",\"taxCodeTypeId\":\"P\",\"description\":\"Processed
Logs And Starters (DuraFlame)\",\"parentTaxCode\":\"PF190200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-06-27T07:25:57.977Z\",\"modifiedUserId\":0},{\"id\":29076,\"companyId\":1,\"taxCode\":\"PM030812\",\"taxCodeTypeId\":\"P\",\"description\":\"Magazines
- Published 2 or 3 Times a Year\",\"parentTaxCode\":\"PM030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.643Z\",\"modifiedUserId\":0},{\"id\":29077,\"companyId\":1,\"taxCode\":\"PH400957\",\"taxCodeTypeId\":\"P\",\"description\":\"Lice
- Treatment: Products Must Be Used On The Body\",\"parentTaxCode\":\"1140\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-09-25T05:27:06.65Z\",\"modifiedUserId\":0},{\"id\":29078,\"companyId\":1,\"taxCode\":\"PR062482\",\"taxCodeTypeId\":\"P\",\"description\":\"Catering
+ Published 2 or 3 Times a Year\",\"parentTaxCode\":\"PM030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.643Z\",\"modifiedUserId\":0},{\"id\":29077,\"companyId\":1,\"taxCode\":\"PH400957\",\"taxCodeTypeId\":\"P\",\"description\":\"Hair
+ Care / Lice Treatment / Over-the-Counter\",\"parentTaxCode\":\"1140\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":29078,\"companyId\":1,\"taxCode\":\"PR062482\",\"taxCodeTypeId\":\"P\",\"description\":\"Catering
services - Equipment rental fees\",\"parentTaxCode\":\"PR060000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-08-28T05:04:32.593Z\",\"modifiedUserId\":0},{\"id\":29079,\"companyId\":1,\"taxCode\":\"PH403506\",\"taxCodeTypeId\":\"P\",\"description\":\"Kits
- feeding - sold to medical facility\",\"parentTaxCode\":\"0670\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-10-29T05:18:32.747Z\",\"modifiedUserId\":0},{\"id\":29080,\"companyId\":1,\"taxCode\":\"PF055195\",\"taxCodeTypeId\":\"P\",\"description\":\"Metamucil
Powder / Pills (Does not include Metamucil Wafers)\",\"parentTaxCode\":\"PF050700\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.833Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-10-27T05:36:10.493Z\",\"modifiedUserId\":0},{\"id\":29081,\"companyId\":1,\"taxCode\":\"SB046002\",\"taxCodeTypeId\":\"S\",\"description\":\"Miscellaneous
@@ -947,7 +947,7 @@ interactions:
State Flag\",\"parentTaxCode\":\"PF040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.617Z\",\"modifiedUserId\":0},{\"id\":29170,\"companyId\":1,\"taxCode\":\"PS160749\",\"taxCodeTypeId\":\"P\",\"description\":\"Cigars
- Premium - Costs More Than $2 Per Cigar\",\"parentTaxCode\":\"PS160000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-08-28T05:04:32.55Z\",\"modifiedUserId\":0},{\"id\":29171,\"companyId\":1,\"taxCode\":\"PA020003\",\"taxCodeTypeId\":\"P\",\"description\":\"Fertilizer:
Food Producing Plants / Plant Food For Food Producing Plants / Root Tone\",\"parentTaxCode\":\"PA020200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.607Z\",\"modifiedUserId\":0},{\"id\":29172,\"companyId\":1,\"taxCode\":\"PB100819\",\"taxCodeTypeId\":\"P\",\"description\":\"Books
- consisting exclusively of coupons (aka \u201CEntertainment Books\u201D)\",\"parentTaxCode\":\"PB100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-01-12T04:58:17.083Z\",\"modifiedUserId\":0},{\"id\":29173,\"companyId\":1,\"taxCode\":\"PH401021\",\"taxCodeTypeId\":\"P\",\"description\":\"Non-Medicated
+ / Coupon or Discount Book\",\"parentTaxCode\":\"PB100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":29173,\"companyId\":1,\"taxCode\":\"PH401021\",\"taxCodeTypeId\":\"P\",\"description\":\"Non-Medicated
Cosmetic Feminine Hygiene Items / Feminine Wipes\",\"parentTaxCode\":\"1140\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.657Z\",\"modifiedUserId\":0},{\"id\":29174,\"companyId\":1,\"taxCode\":\"PH403098\",\"taxCodeTypeId\":\"P\",\"description\":\"Porcine
(pig) Tissue - Cosmetic Surgery - sold to medical facility\",\"parentTaxCode\":\"0130\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-06-26T05:05:28.87Z\",\"modifiedUserId\":0},{\"id\":29175,\"companyId\":1,\"taxCode\":\"PH404124\",\"taxCodeTypeId\":\"P\",\"description\":\"Glucose
Tablets: Nutrition Label / SNAP Eligible\",\"parentTaxCode\":\"0780\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-10-31T05:21:49.917Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-06-26T05:05:28.87Z\",\"modifiedUserId\":0},{\"id\":29176,\"companyId\":1,\"taxCode\":\"PB308786\",\"taxCodeTypeId\":\"P\",\"description\":\"Batteries
@@ -1461,7 +1461,8 @@ interactions:
(Includes Capes and Robes / Dress Up / Toy Cowboy Hats / Santa and Witches
Hats w/o Hair)\",\"parentTaxCode\":\"PC040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.057Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.577Z\",\"modifiedUserId\":0},{\"id\":28383,\"companyId\":1,\"taxCode\":\"SI046674\",\"taxCodeTypeId\":\"S\",\"description\":\"Interior
Design Services\",\"parentTaxCode\":\"SI040000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.057Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-12-10T06:55:50.117Z\",\"modifiedUserId\":0},{\"id\":28384,\"companyId\":1,\"taxCode\":\"PH403658\",\"taxCodeTypeId\":\"P\",\"description\":\"ECG/EKG
- Accessories - Sold to Medical Facility\",\"parentTaxCode\":\"0750\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.057Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-08-28T05:04:32.587Z\",\"modifiedUserId\":0},{\"id\":28385,\"companyId\":1,\"taxCode\":\"PH403898\",\"taxCodeTypeId\":\"P\",\"description\":\"Thermometer\",\"parentTaxCode\":\"0670\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.057Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-10-29T05:18:32.747Z\",\"modifiedUserId\":0},{\"id\":28386,\"companyId\":1,\"taxCode\":\"PH403698\",\"taxCodeTypeId\":\"P\",\"description\":\"Breast
+ Accessories - Sold to Medical Facility\",\"parentTaxCode\":\"0750\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.057Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-08-28T05:04:32.587Z\",\"modifiedUserId\":0},{\"id\":28385,\"companyId\":1,\"taxCode\":\"PH403898\",\"taxCodeTypeId\":\"P\",\"description\":\"Thermometer
+ / Reusable / Home Use\",\"parentTaxCode\":\"0670\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.057Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":28386,\"companyId\":1,\"taxCode\":\"PH403698\",\"taxCodeTypeId\":\"P\",\"description\":\"Breast
pump for home use without a prescription\",\"parentTaxCode\":\"0760\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2020-08-26T10:59:42.337Z\",\"modifiedUserId\":0},{\"id\":28387,\"companyId\":1,\"taxCode\":\"PH403940\",\"taxCodeTypeId\":\"P\",\"description\":\"Ambulatory:
\ Quad Canes\",\"parentTaxCode\":\"PH050300\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-07-26T05:58:03.853Z\",\"modifiedUserId\":0},{\"id\":28388,\"companyId\":1,\"taxCode\":\"PH404346\",\"taxCodeTypeId\":\"P\",\"description\":\"Medical
Supplies - General: Gloves - surgical, exam and chemical - sold to medical
@@ -1480,7 +1481,7 @@ interactions:
Testing Services\",\"parentTaxCode\":\"SH020000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-08-28T05:04:32.587Z\",\"modifiedUserId\":0},{\"id\":28401,\"companyId\":1,\"taxCode\":\"PA028802\",\"taxCodeTypeId\":\"P\",\"description\":\"Cut
Flowers\",\"parentTaxCode\":\"PA020000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.577Z\",\"modifiedUserId\":0},{\"id\":28402,\"companyId\":1,\"taxCode\":\"PC077426\",\"taxCodeTypeId\":\"P\",\"description\":\"Cabling\",\"parentTaxCode\":\"PC070000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.583Z\",\"modifiedUserId\":0},{\"id\":28403,\"companyId\":1,\"taxCode\":\"PH403666\",\"taxCodeTypeId\":\"P\",\"description\":\"ECG/EKGs
- Sold to Medical Facility\",\"parentTaxCode\":\"0750\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-08-28T05:04:32.607Z\",\"modifiedUserId\":0},{\"id\":28404,\"companyId\":1,\"taxCode\":\"PH403906\",\"taxCodeTypeId\":\"P\",\"description\":\"Thermometer
- probe/sheath\",\"parentTaxCode\":\"0670\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-10-29T05:18:32.747Z\",\"modifiedUserId\":0},{\"id\":31629,\"companyId\":1,\"taxCode\":\"DV029398\",\"taxCodeTypeId\":\"D\",\"description\":\"Digital
+ probe / sheath\",\"parentTaxCode\":\"0670\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-09-28T05:40:25.07Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":31629,\"companyId\":1,\"taxCode\":\"DV029398\",\"taxCodeTypeId\":\"D\",\"description\":\"Digital
audio visual works sold to users other than the end user\",\"parentTaxCode\":\"DV020000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.463Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-11-27T06:44:49.463Z\",\"modifiedUserId\":0},{\"id\":31630,\"companyId\":1,\"taxCode\":\"DA051013\",\"taxCodeTypeId\":\"D\",\"description\":\"Digital
audio works sold to users other than the end user\",\"parentTaxCode\":\"DA050000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.463Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-11-27T06:44:49.463Z\",\"modifiedUserId\":0},{\"id\":31631,\"companyId\":1,\"taxCode\":\"DB031016\",\"taxCodeTypeId\":\"D\",\"description\":\"Digital
books sold to users other than the end user\",\"parentTaxCode\":\"DB030000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.463Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-11-27T06:44:49.463Z\",\"modifiedUserId\":0},{\"id\":31632,\"companyId\":1,\"taxCode\":\"PH400656\",\"taxCodeTypeId\":\"P\",\"description\":\"Medicinal
@@ -1499,7 +1500,7 @@ interactions:
Audio Works\",\"parentTaxCode\":\"D0000000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":false,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-11-27T06:44:49.49Z\",\"modifiedUserId\":0},{\"id\":31645,\"companyId\":1,\"taxCode\":\"DB030000\",\"taxCodeTypeId\":\"D\",\"description\":\"Digital
Books\",\"parentTaxCode\":\"D0000000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":false,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-11-27T06:44:49.49Z\",\"modifiedUserId\":0},{\"id\":31646,\"companyId\":1,\"taxCode\":\"PH400009\",\"taxCodeTypeId\":\"P\",\"description\":\"Miscellaneous
Medical Durable Items - Items Used Directly on the Body\",\"parentTaxCode\":\"0760\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2019-06-26T05:05:28.917Z\",\"modifiedUserId\":0},{\"id\":31647,\"companyId\":1,\"taxCode\":\"PH400044\",\"taxCodeTypeId\":\"P\",\"description\":\"Thermometer
- - Disposable\",\"parentTaxCode\":\"0760\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.653Z\",\"modifiedUserId\":0},{\"id\":31648,\"companyId\":1,\"taxCode\":\"PF012394\",\"taxCodeTypeId\":\"P\",\"description\":\"Fabric
+ / Disposable / Home Use\",\"parentTaxCode\":\"0760\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":31648,\"companyId\":1,\"taxCode\":\"PF012394\",\"taxCodeTypeId\":\"P\",\"description\":\"Fabric
Non-Commercial - Fabric (non-clothes use)\",\"parentTaxCode\":\"PF010200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2018-02-23T05:42:36.657Z\",\"modifiedUserId\":0},{\"id\":31649,\"companyId\":1,\"taxCode\":\"SC155874\",\"taxCodeTypeId\":\"S\",\"description\":\"Carpentry
Services - Residential Real Property (capital improvement)\",\"parentTaxCode\":\"SC150000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2020-07-28T04:40:17.627Z\",\"modifiedUserId\":0},{\"id\":31650,\"companyId\":1,\"taxCode\":\"PD078666\",\"taxCodeTypeId\":\"P\",\"description\":\"Telecommunications
Provider / Dark Fiber lease\",\"parentTaxCode\":\"PD070000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-11-27T06:44:49.49Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-01-11T04:20:06.46Z\",\"modifiedUserId\":0},{\"id\":31651,\"companyId\":1,\"taxCode\":\"PR097018\",\"taxCodeTypeId\":\"P\",\"description\":\"Safe
@@ -1774,7 +1775,20 @@ interactions:
and food ingredients - Meal Replacement bars w/ a Nutrition Information label
that contain flour\",\"parentTaxCode\":\"PF050600\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":false,\"createdDate\":\"2016-08-26T02:51:20.553Z\",\"createdUserId\":0,\"modifiedDate\":\"2016-08-26T02:51:20.553Z\",\"modifiedUserId\":0},{\"id\":45611,\"companyId\":1,\"taxCode\":\"PF050678\",\"taxCodeTypeId\":\"P\",\"description\":\"Food
and food ingredients - Meal Replacement beverages w/ a Nutrition Information
- label and contain milk and milk byproduct\",\"parentTaxCode\":\"PF050600\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":false,\"createdDate\":\"2016-08-26T02:51:20.553Z\",\"createdUserId\":0,\"modifiedDate\":\"2016-08-26T02:51:20.553Z\",\"modifiedUserId\":0},{\"id\":614293,\"companyId\":1,\"taxCode\":\"PE060000\",\"taxCodeTypeId\":\"P\",\"description\":\"Engraved
+ label and contain milk and milk byproduct\",\"parentTaxCode\":\"PF050600\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":false,\"isSSTCertified\":false,\"createdDate\":\"2016-08-26T02:51:20.553Z\",\"createdUserId\":0,\"modifiedDate\":\"2016-08-26T02:51:20.553Z\",\"modifiedUserId\":0},{\"id\":5640528,\"companyId\":1,\"taxCode\":\"PB100110\",\"taxCodeTypeId\":\"P\",\"description\":\"Childrens
+ Books and Physical Media Containing Similar Content\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640529,\"companyId\":1,\"taxCode\":\"PH101170\",\"taxCodeTypeId\":\"P\",\"description\":\"Portable
+ power banks\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640530,\"companyId\":1,\"taxCode\":\"PP051150\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Portable Kennels\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640531,\"companyId\":1,\"taxCode\":\"PP051151\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Dry Pet Food - 15lbs or less\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640532,\"companyId\":1,\"taxCode\":\"PP051152\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Wet Pet Food - Cans or Pouches\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640533,\"companyId\":1,\"taxCode\":\"PP051153\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Leashes, Collars, and Muzzles\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640534,\"companyId\":1,\"taxCode\":\"PP051154\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Collapsible or Travel-Sized Food/Water Bowls\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640535,\"companyId\":1,\"taxCode\":\"PP051155\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Cat Litter - 25lbs or less\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640536,\"companyId\":1,\"taxCode\":\"PP051156\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Cat Litter Pans\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640537,\"companyId\":1,\"taxCode\":\"PP051157\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Pet Waste Disposal Bags\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640538,\"companyId\":1,\"taxCode\":\"PP051158\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Pet Pads\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640539,\"companyId\":1,\"taxCode\":\"PP051159\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Hamster or Rabbit Substrate\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":5640540,\"companyId\":1,\"taxCode\":\"PP051160\",\"taxCodeTypeId\":\"P\",\"description\":\"Pet
+ Supplies - Non-commercial - Pet Beds\",\"parentTaxCode\":\"PP050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-12T06:17:42.597Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-12T06:17:42.597Z\",\"modifiedUserId\":0},{\"id\":614293,\"companyId\":1,\"taxCode\":\"PE060000\",\"taxCodeTypeId\":\"P\",\"description\":\"Engraved
Product /\_Engraving service bundled with the sale of tangible personal property\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-01-27T10:00:28.89Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-01-27T10:00:28.89Z\",\"modifiedUserId\":0},{\"id\":614294,\"companyId\":1,\"taxCode\":\"PF050688\",\"taxCodeTypeId\":\"P\",\"description\":\"Beverage
/ Supplement Label / Non Carbonated / Energy Shots & Drinks / Liquid / Ready
to Drink (RTD) / Sold in Containers Less Than 4 oz\",\"parentTaxCode\":\"PF051100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-01-27T10:00:28.89Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-01-27T10:00:28.89Z\",\"modifiedUserId\":0},{\"id\":614295,\"companyId\":1,\"taxCode\":\"PF051981\",\"taxCodeTypeId\":\"P\",\"description\":\"Beverage
@@ -1850,7 +1864,7 @@ interactions:
& related products (B2B) - Protective Footwear\",\"parentTaxCode\":\"PC030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.593Z\",\"modifiedUserId\":0},{\"id\":44670,\"companyId\":1,\"taxCode\":\"PC040157\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
& related products (B2C) - Safety Apparel Not Suitable for Everyday Wear\",\"parentTaxCode\":\"PC040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.59Z\",\"modifiedUserId\":0},{\"id\":44671,\"companyId\":1,\"taxCode\":\"PC040158\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
& related products (B2C) - Protective Footwear\",\"parentTaxCode\":\"PC040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.59Z\",\"modifiedUserId\":0},{\"id\":44672,\"companyId\":1,\"taxCode\":\"PD010000\",\"taxCodeTypeId\":\"P\",\"description\":\"Materials
- Used in Direct Mail Services\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.603Z\",\"modifiedUserId\":0},{\"id\":44673,\"companyId\":1,\"taxCode\":\"PF050124\",\"taxCodeTypeId\":\"P\",\"description\":\"Food
+ Used in Direct Mail Services\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":44673,\"companyId\":1,\"taxCode\":\"PF050124\",\"taxCodeTypeId\":\"P\",\"description\":\"Food
and Food ingredients - fruit snacks (1st ingredient is NOT fruit or fruit
puree), no flour\",\"parentTaxCode\":\"PF050000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2017-10-27T04:28:51.59Z\",\"modifiedUserId\":0},{\"id\":44674,\"companyId\":1,\"taxCode\":\"OA020600\",\"taxCodeTypeId\":\"O\",\"description\":\"Admissions
/ Green fees / Municipally owned golf course\",\"parentTaxCode\":\"OA020000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2016-06-29T01:48:27.06Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-04-26T04:53:49.583Z\",\"modifiedUserId\":0},{\"id\":44675,\"companyId\":1,\"taxCode\":\"OA020700\",\"taxCodeTypeId\":\"O\",\"description\":\"Admissions
@@ -1988,7 +2002,7 @@ interactions:
/ Repair services for solar equipment / Residential / Labor only\",\"parentTaxCode\":\"S0000000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.1Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.1Z\",\"modifiedUserId\":0},{\"id\":623391,\"companyId\":1,\"taxCode\":\"OF300000\",\"taxCodeTypeId\":\"O\",\"description\":\"Solar
/ Homeowner Transfer Fee\",\"parentTaxCode\":\"O0000000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.123Z\",\"modifiedUserId\":0},{\"id\":623392,\"companyId\":1,\"taxCode\":\"PC040608\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
And Related Products / Business to Customer / Swimming Mask\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.123Z\",\"modifiedUserId\":0},{\"id\":623393,\"companyId\":1,\"taxCode\":\"PO200100\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
- gear and supplies / Inflatable water tubes and floats\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.123Z\",\"modifiedUserId\":0},{\"id\":623394,\"companyId\":1,\"taxCode\":\"PO200104\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
+ gear and supplies / Inflatable water tubes and floats capable of being towed\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-06-10T01:39:59.67Z\",\"modifiedUserId\":0},{\"id\":623394,\"companyId\":1,\"taxCode\":\"PO200104\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
gear and supplies / Paddleboard\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.123Z\",\"modifiedUserId\":0},{\"id\":623395,\"companyId\":1,\"taxCode\":\"PO200108\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
gear and supplies / Camping lantern\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.123Z\",\"modifiedUserId\":0},{\"id\":623396,\"companyId\":1,\"taxCode\":\"PO200112\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
gear and supplies / Portable hammocks\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2021-06-25T07:23:42.123Z\",\"createdUserId\":0,\"modifiedDate\":\"2021-06-25T07:23:42.123Z\",\"modifiedUserId\":0},{\"id\":623397,\"companyId\":1,\"taxCode\":\"PO200116\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
@@ -5436,8 +5450,8 @@ interactions:
paid for by Medicaid\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.373Z\",\"modifiedUserId\":0},{\"id\":25014,\"companyId\":1,\"taxCode\":\"PH050151\",\"taxCodeTypeId\":\"P\",\"description\":\"Health
Care Products - Oxygen delivery equipment for home use with a prescription
reimbursed by Medicaid\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.373Z\",\"modifiedUserId\":0},{\"id\":25015,\"companyId\":1,\"taxCode\":\"PH050152\",\"taxCodeTypeId\":\"P\",\"description\":\"Drugs
- for human use to hospitals\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.347Z\",\"modifiedUserId\":0},{\"id\":25016,\"companyId\":1,\"taxCode\":\"PH050153\",\"taxCodeTypeId\":\"P\",\"description\":\"Drugs
- for human use to other medical facilities\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.37Z\",\"modifiedUserId\":0},{\"id\":25017,\"companyId\":1,\"taxCode\":\"PH050154\",\"taxCodeTypeId\":\"P\",\"description\":\"Health
+ / For Human Use / Sold to Hospital\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":25016,\"companyId\":1,\"taxCode\":\"PH050153\",\"taxCodeTypeId\":\"P\",\"description\":\"Drugs
+ / For Human Use / Sold to Medical Facility\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":25017,\"companyId\":1,\"taxCode\":\"PH050154\",\"taxCodeTypeId\":\"P\",\"description\":\"Health
Care Products - Prescription drugs for human use to hospitals\",\"parentTaxCode\":\"PH050100\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.373Z\",\"modifiedUserId\":0},{\"id\":25018,\"companyId\":1,\"taxCode\":\"PH050155\",\"taxCodeTypeId\":\"P\",\"description\":\"Health
Care Products - Prescription drugs for human use to other medical facilities\",\"parentTaxCode\":\"PH050200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.373Z\",\"modifiedUserId\":0},{\"id\":25019,\"companyId\":1,\"taxCode\":\"PH050246\",\"taxCodeTypeId\":\"P\",\"description\":\"Durable
medical equipment, not for home use, without a prescription\",\"parentTaxCode\":\"PH050200\",\"isPhysical\":true,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2013-01-31T06:11:43.677Z\",\"createdUserId\":0,\"modifiedDate\":\"2013-10-31T05:22:04.373Z\",\"modifiedUserId\":0},{\"id\":25020,\"companyId\":1,\"taxCode\":\"PH050247\",\"taxCodeTypeId\":\"P\",\"description\":\"Health
@@ -5706,14 +5720,49 @@ interactions:
services/material relating to real property (existing construction, residential,
capital improvement)\",\"parentTaxCode\":\"SC150000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2020-07-28T04:40:17.643Z\",\"createdUserId\":0,\"modifiedDate\":\"2020-07-28T04:40:17.643Z\",\"modifiedUserId\":0},{\"id\":105179,\"companyId\":1,\"taxCode\":\"SC150605\",\"taxCodeTypeId\":\"S\",\"description\":\"Construction
services/material relating to real property (existing construction, residential,
- no capital improvement) \",\"parentTaxCode\":\"SC150000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2020-07-28T04:40:17.643Z\",\"createdUserId\":0,\"modifiedDate\":\"2020-07-28T04:40:17.643Z\",\"modifiedUserId\":0},{\"id\":638873,\"companyId\":1,\"taxCode\":\"PF190216\",\"taxCodeTypeId\":\"P\",\"description\":\"Heating
+ no capital improvement) \",\"parentTaxCode\":\"SC150000\",\"isPhysical\":false,\"goodsServiceCode\":0,\"entityUseCode\":\"\",\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2020-07-28T04:40:17.643Z\",\"createdUserId\":0,\"modifiedDate\":\"2020-07-28T04:40:17.643Z\",\"modifiedUserId\":0},{\"id\":5641114,\"companyId\":1,\"taxCode\":\"PC030317\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
+ and related products (Business to Business) \u2013 Protective coveralls\",\"parentTaxCode\":\"PC030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641115,\"companyId\":1,\"taxCode\":\"PC040317\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
+ and related products (Business to Consumer) \u2013 Protective coveralls\",\"parentTaxCode\":\"PC040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641116,\"companyId\":1,\"taxCode\":\"PH101180\",\"taxCodeTypeId\":\"P\",\"description\":\"Emergency
+ equipment \u2013 Solar powered\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641117,\"companyId\":1,\"taxCode\":\"PH101210\",\"taxCodeTypeId\":\"P\",\"description\":\"Emergency
+ candles\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641118,\"companyId\":1,\"taxCode\":\"PO200130\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
+ gear and supplies / Residential pool supplies and replacement parts\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641119,\"companyId\":1,\"taxCode\":\"PS050305\",\"taxCodeTypeId\":\"P\",\"description\":\"School
+ Related Products (B2B) \u2013 Learning aids to include books, cards, puzzles,
+ games, and toys to assist in reading, math, and other skills\",\"parentTaxCode\":\"PS050000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641120,\"companyId\":1,\"taxCode\":\"PT118801\",\"taxCodeTypeId\":\"P\",\"description\":\"Power
+ tools\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641121,\"companyId\":1,\"taxCode\":\"PT118804\",\"taxCodeTypeId\":\"P\",\"description\":\"Duffle
+ bags and tote bags designed for carrying tools\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641122,\"companyId\":1,\"taxCode\":\"PT118807\",\"taxCodeTypeId\":\"P\",\"description\":\"Electrical
+ voltage and testing equipment\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641123,\"companyId\":1,\"taxCode\":\"PT118810\",\"taxCodeTypeId\":\"P\",\"description\":\"Plumbing
+ inspection equipment\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641124,\"companyId\":1,\"taxCode\":\"PB100210\",\"taxCodeTypeId\":\"P\",\"description\":\"Code
+ books and textbooks for the construction industry\",\"parentTaxCode\":\"PB100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641125,\"companyId\":1,\"taxCode\":\"PC030610\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
+ and related products (Business to Business) \u2013 Infant and toddler clothing
+ and footwear \u2013 Ages 5 years or less\",\"parentTaxCode\":\"PC030000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641126,\"companyId\":1,\"taxCode\":\"PC040610\",\"taxCodeTypeId\":\"P\",\"description\":\"Clothing
+ and related products (Business to Consumer) \u2013 Infant and toddler clothing
+ and footwear \u2013 Ages 5 years or less\",\"parentTaxCode\":\"PC040000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641127,\"companyId\":1,\"taxCode\":\"PE070229\",\"taxCodeTypeId\":\"P\",\"description\":\"Energy
+ Efficient Equipment - Non-Commercial (residential) \u2013 Water Heaters\",\"parentTaxCode\":\"PE070000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641128,\"companyId\":1,\"taxCode\":\"PH050734\",\"taxCodeTypeId\":\"P\",\"description\":\"Health
+ Care Products / COVID-19 Test Kit / No Rx Required / No Rx\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641129,\"companyId\":1,\"taxCode\":\"PH101190\",\"taxCodeTypeId\":\"P\",\"description\":\"Emergency
+ or rescue stairs\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641130,\"companyId\":1,\"taxCode\":\"PH101220\",\"taxCodeTypeId\":\"P\",\"description\":\"Matches\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641131,\"companyId\":1,\"taxCode\":\"PO200131\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
+ gear and supplies / Residential pool and spa chemicals purchased by individuals\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641132,\"companyId\":1,\"taxCode\":\"PS060305\",\"taxCodeTypeId\":\"P\",\"description\":\"School
+ Related Products (B2C) \u2013 Learning aids to include books, cards, puzzles,
+ games, and toys to assist in reading, math, and other skills\",\"parentTaxCode\":\"PS060000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641133,\"companyId\":1,\"taxCode\":\"PT118802\",\"taxCodeTypeId\":\"P\",\"description\":\"Battery
+ packs for power tools\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641134,\"companyId\":1,\"taxCode\":\"PT118805\",\"taxCodeTypeId\":\"P\",\"description\":\"Shop
+ lights\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641135,\"companyId\":1,\"taxCode\":\"PT118808\",\"taxCodeTypeId\":\"P\",\"description\":\"Drain
+ opening tools\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641136,\"companyId\":1,\"taxCode\":\"PT118811\",\"taxCodeTypeId\":\"P\",\"description\":\"Toolboxes
+ designed for vehicle installation\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.2Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.2Z\",\"modifiedUserId\":0},{\"id\":5641137,\"companyId\":1,\"taxCode\":\"PH101111\",\"taxCodeTypeId\":\"P\",\"description\":\"Power
+ Generator \u2013 Parts and products for repair and maintenance of portable
+ generators\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":5641138,\"companyId\":1,\"taxCode\":\"PH101200\",\"taxCodeTypeId\":\"P\",\"description\":\"Fans
+ \u2013 Battery or alternatively powered\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":5641139,\"companyId\":1,\"taxCode\":\"PH101300\",\"taxCodeTypeId\":\"P\",\"description\":\"Doors,
+ garage doors, and windows labeled impact-resistant or has impact-resistant
+ rating\",\"parentTaxCode\":\"PH100000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":5641140,\"companyId\":1,\"taxCode\":\"PT118800\",\"taxCodeTypeId\":\"P\",\"description\":\"Hand
+ tools\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":5641141,\"companyId\":1,\"taxCode\":\"PT118803\",\"taxCodeTypeId\":\"P\",\"description\":\"Toolboxes\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":5641142,\"companyId\":1,\"taxCode\":\"PT118806\",\"taxCodeTypeId\":\"P\",\"description\":\"LED
+ flashlights\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":5641143,\"companyId\":1,\"taxCode\":\"PT118809\",\"taxCodeTypeId\":\"P\",\"description\":\"Pipe
+ cutting tools \u2013 handheld\",\"parentTaxCode\":\"PT118906\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-05-26T06:16:43.213Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-05-26T06:16:43.213Z\",\"modifiedUserId\":0},{\"id\":638873,\"companyId\":1,\"taxCode\":\"PF190216\",\"taxCodeTypeId\":\"P\",\"description\":\"Heating
Fuel / Propane / Commercial use\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-03-29T05:55:54.853Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-03-29T05:55:54.853Z\",\"modifiedUserId\":0},{\"id\":638874,\"companyId\":1,\"taxCode\":\"PF190217\",\"taxCodeTypeId\":\"P\",\"description\":\"Heating
- Fuel / Propane / Residential use\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-03-29T05:55:54.853Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-03-29T05:55:54.853Z\",\"modifiedUserId\":0}]}"
+ Fuel / Propane / Residential use\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-03-29T05:55:54.853Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-03-29T05:55:54.853Z\",\"modifiedUserId\":0},{\"id\":5641809,\"companyId\":1,\"taxCode\":\"PO200132\",\"taxCodeTypeId\":\"P\",\"description\":\"Outdoor
+ gear and supplies / Inflatable tubes, floats, chairs and pool toys\",\"parentTaxCode\":\"P0000000\",\"isPhysical\":true,\"goodsServiceCode\":0,\"isActive\":true,\"isSSTCertified\":true,\"createdDate\":\"2022-06-10T01:39:59.67Z\",\"createdUserId\":0,\"modifiedDate\":\"2022-06-10T01:39:59.67Z\",\"modifiedUserId\":0}]}"
headers:
Connection:
- keep-alive
Content-Length:
- - '1909488'
+ - '1925313'
Content-Type:
- application/json; charset=utf-8
DatabaseCalls:
@@ -5721,9 +5770,9 @@ interactions:
DatabaseDuration:
- 00:00:00
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 12:09:22 GMT
ServerDuration:
- - '00:00:00.0019503'
+ - '00:00:00.0017157'
ServiceDuration:
- 00:00:00
X-Content-Type-Options:
@@ -5735,9 +5784,9 @@ interactions:
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - da3a2450-cab3-44be-8a03-bed2c54596b4
+ - c2f0017b-78b3-43b1-8b1d-7c0a6c8e94ab
x-correlation-id:
- - da3a2450-cab3-44be-8a03-bed2c54596b4
+ - c2f0017b-78b3-43b1-8b1d-7c0a6c8e94ab
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch_wrong_response.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch_wrong_response.yaml
index c5ac21e277..1bf73c4f4b 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch_wrong_response.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_cached_tax_codes_or_fetch_wrong_response.yaml
@@ -28,13 +28,13 @@ interactions:
Content-Type:
- application/json
Date:
- - Thu, 05 May 2022 09:28:14 GMT
+ - Fri, 10 Jun 2022 10:43:56 GMT
X-Content-Type-Options:
- nosniff
x-avalara-uid:
- - d12a5812-2f8d-4508-95a5-76c96b208313
+ - fe1d9b8d-8c27-424c-b9a0-2801d1e4bf73
x-correlation-id:
- - d12a5812-2f8d-4508-95a5-76c96b208313
+ - fe1d9b8d-8c27-424c-b9a0-2801d1e4bf73
status:
code: 401
message: Unauthorized
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate.yaml
index 60db992b54..2fb671ba84 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "6e4ba128-ff9a-42ac-8d50-d6a47af66d17",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "ca969ac4-4902-49ee-851b-4d1fff0bb9ee", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"6e4ba128-ff9a-42ac-8d50-d6a47af66d17","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:11.802632Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"ca969ac4-4902-49ee-851b-4d1fff0bb9ee","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:56.2338909Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 10:43:56 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0176183'
+ - '00:00:00.0156357'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 93f01f67-c30b-4145-87c9-7498360bc96f
+ - 7632b2d9-ee29-401f-98c7-6f55d4c57f83
x-correlation-id:
- - 93f01f67-c30b-4145-87c9-7498360bc96f
+ - 7632b2d9-ee29-401f-98c7-6f55d4c57f83
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate_for_product_type_with_non_taxable_product.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate_for_product_type_with_non_taxable_product.yaml
index 4ff51f4d44..2e6b4e6b84 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate_for_product_type_with_non_taxable_product.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_line_tax_rate_for_product_type_with_non_taxable_product.yaml
@@ -2,15 +2,16 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.00", "taxCode": "NT", "taxIncluded": true, "itemCode": "Product
- variant #1", "description": "Test product with two variants", "ref1": "Product
- variant #1"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
- true, "itemCode": "Shipping", "description": null}], "code": "b15a6e72-5dc0-4e47-b26c-e5a123c0d8e2",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.00", "taxCode": "NT", "taxIncluded":
+ true, "itemCode": "Product variant #1", "discounted": false, "description":
+ "Test product with two variants", "ref1": "Product variant #1"}, {"quantity":
+ 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
+ "Shipping", "discounted": false, "description": null}], "code": "d1ce15f7-fb95-4769-be91-93c53faa78d0",
+ "date": "2022-06-10", "customerCode": 0, "discount": null, "addresses": {"shipFrom":
+ {"line1": "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country":
+ "PL", "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2":
+ "", "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
"commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
headers:
Accept:
@@ -22,19 +23,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '972'
+ - '1053'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"b15a6e72-5dc0-4e47-b26c-e5a123c0d8e2","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":44.39,"totalExempt":10.0,"totalDiscount":0.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:12.0019902Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"d1ce15f7-fb95-4769-be91-93c53faa78d0","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":44.39,"totalExempt":10.0,"totalDiscount":0.0,"totalTax":5.61,"totalTaxable":24.39,"totalTaxCalculated":5.61,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:57.7607277Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","description":"Test
product with two variants","discountAmount":0.0,"exemptAmount":10.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Product
- variant #1","lineAmount":10.0,"quantity":1.0,"ref1":"Product variant #1","ref2":"","reportingDate":"2022-05-05","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"NT","taxCodeId":13662,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":10.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":10.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":10.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ variant #1","lineAmount":10.0,"quantity":1.0,"ref1":"Product variant #1","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"NT","taxCodeId":13662,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":10.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":10.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"3","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":false,"itemCode":"Shipping","lineAmount":10.0000,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":0.0,"taxableAmount":0.0,"taxCalculated":0.0,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":10.0,"rate":0.230000,"tax":0.0,"taxableAmount":0.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":0.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":0.0,"reportingNonTaxableUnits":10.0,"reportingExemptUnits":0.0,"reportingTax":0.0,"reportingTaxCalculated":0.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -45,23 +46,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:57 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0200914'
+ - '00:00:00.0178779'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 17aff3b5-cb58-419c-8203-7505d1be3b4c
+ - 5a32db4f-9e1f-48a6-a10b-48774dede921
x-correlation-id:
- - 17aff3b5-cb58-419c-8203-7505d1be3b4c
+ - 5a32db4f-9e1f-48a6-a10b-48774dede921
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_shipping_tax_rate.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_shipping_tax_rate.yaml
index 026e263df5..2b5e56b362 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_shipping_tax_rate.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_checkout_shipping_tax_rate.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "30.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "86d31fbe-2283-4731-bea4-ef0a1f8c8356",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "bb23e72f-bf91-435e-95df-2599cd69f8ec", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"86d31fbe-2283-4731-bea4-ef0a1f8c8356","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:13.4661926Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"bb23e72f-bf91-435e-95df-2599cd69f8ec","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":32.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":7.48,"totalTaxable":32.52,"totalTaxCalculated":7.48,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:57.8809997Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":24.3900,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":5.61,"taxableAmount":24.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":5.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:13 GMT
+ - Fri, 10 Jun 2022 10:43:57 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0156140'
+ - '00:00:00.0150728'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 20361122-3a95-405e-9c8c-ddbe93502e84
+ - 469d33e3-b565-4bca-8b05-58e310d589a5
x-correlation-id:
- - 20361122-3a95-405e-9c8c-ddbe93502e84
+ - 469d33e3-b565-4bca-8b05-58e310d589a5
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_line_tax_rate.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_line_tax_rate.yaml
index be703c522d..19a3622a18 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_line_tax_rate.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_line_tax_rate.yaml
@@ -2,13 +2,14 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "36.900", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "0cef6f0f-6393-4d87-a83f-6011e10d1af3", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "4bddb2c9-2bdc-4742-8ca8-f772ed2722a0", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
Accept:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '777'
+ - '837'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019774412952,"code":"0cef6f0f-6393-4d87-a83f-6011e10d1af3","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.77,"totalTaxable":38.13,"totalTaxCalculated":8.77,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019774412954,"destinationAddressId":85019774412953,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:12.9305721Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019774412958,"transactionId":85019774412952,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019774412953,"originAddressId":85019774412954,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019774412963,"transactionLineId":85019774412958,"transactionId":85019774412952,"addressId":85019774412953,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019774412961,"documentLineId":85019774412958,"documentAddressId":85019774412954,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019774412962,"documentLineId":85019774412958,"documentAddressId":85019774412953,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019774412959,"transactionId":85019774412952,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019774412953,"originAddressId":85019774412954,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019774412967,"transactionLineId":85019774412959,"transactionId":85019774412952,"addressId":85019774412953,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019774412965,"documentLineId":85019774412959,"documentAddressId":85019774412954,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019774412966,"documentLineId":85019774412959,"documentAddressId":85019774412953,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019774412953,"transactionId":85019774412952,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019774412954,"transactionId":85019774412952,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019774412956,"documentId":85019774412952,"documentAddressId":85019774412954,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019774412957,"documentId":85019774412952,"documentAddressId":85019774412953,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838624760,"code":"4bddb2c9-2bdc-4742-8ca8-f772ed2722a0","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.77,"totalTaxable":38.13,"totalTaxCalculated":8.77,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838624762,"destinationAddressId":85035838624761,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:58.7212471Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838624766,"transactionId":85035838624760,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838624761,"originAddressId":85035838624762,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838624771,"transactionLineId":85035838624766,"transactionId":85035838624760,"addressId":85035838624761,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838624769,"documentLineId":85035838624766,"documentAddressId":85035838624762,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838624770,"documentLineId":85035838624766,"documentAddressId":85035838624761,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838624767,"transactionId":85035838624760,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838624761,"originAddressId":85035838624762,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838624775,"transactionLineId":85035838624767,"transactionId":85035838624760,"addressId":85035838624761,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838624773,"documentLineId":85035838624767,"documentAddressId":85035838624762,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838624774,"documentLineId":85035838624767,"documentAddressId":85035838624761,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838624761,"transactionId":85035838624760,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035838624762,"transactionId":85035838624760,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838624764,"documentId":85035838624760,"documentAddressId":85035838624762,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838624765,"documentId":85035838624760,"documentAddressId":85035838624761,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":38.13,"rate":0.230000,"tax":8.77,"taxCalculated":8.77,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:58 GMT
Location:
- - /api/v2/companies/242975/transactions/85019774412952
+ - /api/v2/companies/242975/transactions/85035838624760
ServerDuration:
- - '00:00:00.0942450'
+ - '00:00:00.1022819'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - aa8f0e04-6805-4d6b-b1c7-0a0d948b20d4
+ - 62a0983a-6776-4094-8589-ef62a3ad3f5c
x-correlation-id:
- - aa8f0e04-6805-4d6b-b1c7-0a0d948b20d4
+ - 62a0983a-6776-4094-8589-ef62a3ad3f5c
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_shipping_tax_rate.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_shipping_tax_rate.yaml
index a3f3eb8c60..4385f255fc 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_shipping_tax_rate.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_get_order_shipping_tax_rate.yaml
@@ -2,13 +2,14 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "36.900", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_A", "description": "Test product"}, {"quantity": 1, "amount":
- "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode": "Shipping",
- "description": null}], "code": "dcb39e02-8606-4aa5-a5d3-9146a46a0ada", "date":
- "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1": "Teczowa
- 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode":
- "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW",
- "region": "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ true, "itemCode": "SKU_A", "discounted": false, "description": "Test product"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true,
+ "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "c34aa8ee-5f2e-4ec6-b97a-624a76232065", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
"USD", "email": "[email protected]"}}'
headers:
Accept:
@@ -20,19 +21,19 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '777'
+ - '837'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019770867315,"code":"dcb39e02-8606-4aa5-a5d3-9146a46a0ada","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.77,"totalTaxable":38.13,"totalTaxCalculated":8.77,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019770867317,"destinationAddressId":85019770867316,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:28:14.1753485Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019770867321,"transactionId":85019770867315,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019770867316,"originAddressId":85019770867317,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019770867326,"transactionLineId":85019770867321,"transactionId":85019770867315,"addressId":85019770867316,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019770867324,"documentLineId":85019770867321,"documentAddressId":85019770867317,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019770867325,"documentLineId":85019770867321,"documentAddressId":85019770867316,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019770867322,"transactionId":85019770867315,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019770867316,"originAddressId":85019770867317,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019770867330,"transactionLineId":85019770867322,"transactionId":85019770867315,"addressId":85019770867316,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019770867328,"documentLineId":85019770867322,"documentAddressId":85019770867317,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019770867329,"documentLineId":85019770867322,"documentAddressId":85019770867316,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85019770867316,"transactionId":85019770867315,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85019770867317,"transactionId":85019770867315,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019770867319,"documentId":85019770867315,"documentAddressId":85019770867317,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019770867320,"documentId":85019770867315,"documentAddressId":85019770867316,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035838915774,"code":"c34aa8ee-5f2e-4ec6-b97a-624a76232065","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":38.13,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":8.77,"totalTaxable":38.13,"totalTaxCalculated":8.77,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035838915776,"destinationAddressId":85035838915775,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T10:43:59.4625106Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035838915780,"transactionId":85035838915774,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035838915775,"originAddressId":85035838915776,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_A","lineAmount":30.0000,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":6.9,"taxableAmount":30.0,"taxCalculated":6.9,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838915785,"transactionLineId":85035838915780,"transactionId":85035838915774,"addressId":85035838915775,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":6.9000,"taxableAmount":30.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":6.9000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":30.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":30.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":6.9,"reportingTaxCalculated":6.9,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838915783,"documentLineId":85035838915780,"documentAddressId":85035838915776,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838915784,"documentLineId":85035838915780,"documentAddressId":85035838915775,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035838915781,"transactionId":85035838915774,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035838915775,"originAddressId":85035838915776,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035838915789,"transactionLineId":85035838915781,"transactionId":85035838915774,"addressId":85035838915775,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035838915787,"documentLineId":85035838915781,"documentAddressId":85035838915776,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035838915788,"documentLineId":85035838915781,"documentAddressId":85035838915775,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":85035838915775,"transactionId":85035838915774,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85035838915776,"transactionId":85035838915774,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035838915778,"documentId":85035838915774,"documentAddressId":85035838915776,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035838915779,"documentId":85035838915774,"documentAddressId":85035838915775,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":38.13,"rate":0.230000,"tax":8.77,"taxCalculated":8.77,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:14 GMT
+ - Fri, 10 Jun 2022 10:43:59 GMT
Location:
- - /api/v2/companies/242975/transactions/85019770867315
+ - /api/v2/companies/242975/transactions/85035838915774
ServerDuration:
- - '00:00:00.0886262'
+ - '00:00:00.0940537'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - abd3ad65-e646-4e22-9a24-d713d974c224
+ - d834ba5a-eda1-402a-a81b-dcc262701ba7
x-correlation-id:
- - abd3ad65-e646-4e22-9a24-d713d974c224
+ - d834ba5a-eda1-402a-a81b-dcc262701ba7
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_plugin_uses_configuration_from_db.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_plugin_uses_configuration_from_db.yaml
index 37f0ded49d..68af17111f 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_plugin_uses_configuration_from_db.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_plugin_uses_configuration_from_db.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "15abf53d-3b5f-4cd3-93bd-873e65094478",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "c746f185-276e-4942-b1a3-d81dd6109354", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"15abf53d-3b5f-4cd3-93bd-873e65094478","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:13.4674876Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"c746f185-276e-4942-b1a3-d81dd6109354","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:59.8386977Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:13 GMT
+ - Fri, 10 Jun 2022 10:43:59 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0178958'
+ - '00:00:00.0145349'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 54e46637-fb1f-49ea-9633-e320633f3f99
+ - 305bd8ab-8f7f-4239-82e6-1f1c859d50cd
x-correlation-id:
- - 54e46637-fb1f-49ea-9633-e320633f3f99
+ - 305bd8ab-8f7f-4239-82e6-1f1c859d50cd
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
@@ -69,14 +72,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "15abf53d-3b5f-4cd3-93bd-873e65094478",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "c746f185-276e-4942-b1a3-d81dd6109354", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -87,7 +91,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
@@ -106,13 +110,13 @@ interactions:
Content-Type:
- application/json
Date:
- - Thu, 05 May 2022 09:28:14 GMT
+ - Fri, 10 Jun 2022 10:44:00 GMT
X-Content-Type-Options:
- nosniff
x-avalara-uid:
- - 44a49a33-45a9-43f7-99e2-082aad628792
+ - 3568b7c4-5f37-4ce1-a541-bb0a866de53e
x-correlation-id:
- - 44a49a33-45a9-43f7-99e2-082aad628792
+ - 3568b7c4-5f37-4ce1-a541-bb0a866de53e
status:
code: 401
message: Unauthorized
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation.yaml
index 0d8ab936e3..7c0ae72395 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "85232bdc-3c3b-4a86-9412-ff89d89e4599",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "f461bc08-afbb-4c1a-a890-24f0ae1e7ee3", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"85232bdc-3c3b-4a86-9412-ff89d89e4599","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:12.2262655Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"f461bc08-afbb-4c1a-a890-24f0ae1e7ee3","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:56.9679415Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:12 GMT
+ - Fri, 10 Jun 2022 10:43:56 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0180357'
+ - '00:00:00.0157211'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 13eb2fa8-b12a-4e97-af0c-96bc36f9b66f
+ - 6b5419a1-314c-4301-b234-d10a8dfd58ab
x-correlation-id:
- - 13eb2fa8-b12a-4e97-af0c-96bc36f9b66f
+ - 6b5419a1-314c-4301-b234-d10a8dfd58ab
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_no_lines_data.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_no_lines_data.yaml
index d4c34252a7..5a8df8d1aa 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_no_lines_data.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_no_lines_data.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "643fb4ea-bbaf-40d6-ae45-51de41d17ff0",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-105"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "5bb7a21a-d534-4f34-9997-05f244bbb04f", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",
+ "region": "", "country": "PL", "postalCode": "53-105"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,16 +21,16 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '786'
+ - '846'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":0,"code":"643fb4ea-bbaf-40d6-ae45-51de41d17ff0","companyId":242975,"date":"2022-05-05","paymentDate":"2022-05-05","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-05-05T09:28:13.1819866Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
- product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-05-05","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-05-05","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ string: '{"id":0,"code":"5bb7a21a-d534-4f34-9997-05f244bbb04f","companyId":242975,"date":"2022-06-10","paymentDate":"2022-06-10","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":20.33,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":4.67,"totalTaxable":20.33,"totalTaxCalculated":4.67,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"email":"[email protected]","modifiedDate":"2022-06-10T10:43:58.7072533Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test
+ product","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":12.2000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2022-06-10","tax":2.8,"taxableAmount":12.2,"taxCalculated":2.8,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":2.8,"taxableAmount":12.2,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxCalculated":2.8,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":12.2,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":2.8,"reportingTaxCalculated":2.8,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"FR000000","taxCodeId":4779,"taxDate":"2022-06-10","taxIncluded":true,"details":[{"id":0,"transactionLineId":0,"transactionId":0,"country":"PL","region":"PL","exemptAmount":0.0,"jurisCode":"PL","jurisName":"POLAND","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0,"rate":0.230000,"tax":1.87,"taxableAmount":8.13,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard
Rate","taxAuthorityTypeId":45,"taxCalculated":1.87,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230FPL","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska
10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa
7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102,"latitude":"","longitude":""}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
@@ -40,23 +41,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:28:13 GMT
+ - Fri, 10 Jun 2022 10:43:58 GMT
Location:
- /api/v2/companies/242975/transactions/0
ServerDuration:
- - '00:00:00.0188988'
+ - '00:00:00.0158009'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 7a38ed33-9ebc-48b1-90ca-d44ecba7b26e
+ - 13ca5f24-906e-49d1-898a-7401ab873696
x-correlation-id:
- - 7a38ed33-9ebc-48b1-90ca-d44ecba7b26e
+ - 13ca5f24-906e-49d1-898a-7401ab873696
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_wrong_data.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_wrong_data.yaml
index 8ecff4ab62..6fbe3e4f49 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_wrong_data.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_preprocess_order_creation_wrong_data.yaml
@@ -2,14 +2,15 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",
"lines": [{"quantity": 3, "amount": "15.00", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "123", "description": "Test product", "ref1": "123"}, {"quantity":
- 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded": true, "itemCode":
- "Shipping", "description": null}], "code": "a9ae43fe-ac38-4dff-9f23-3e156a9a5a4b",
- "date": "2022-05-05", "customerCode": 0, "addresses": {"shipFrom": {"line1":
- "Teczowa 7", "line2": null, "city": "Wroclaw", "region": "", "country": "PL",
- "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa 7", "line2": "",
- "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}},
- "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
+ true, "itemCode": "123", "discounted": false, "description": "Test product",
+ "ref1": "123"}, {"quantity": 1, "amount": "10.000", "taxCode": "FR000000", "taxIncluded":
+ true, "itemCode": "Shipping", "discounted": false, "description": null}], "code":
+ "75071540-ceff-4abd-9bd3-f317858d5071", "date": "2022-06-10", "customerCode":
+ 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":
+ null, "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},
+ "shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
+ "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -20,7 +21,7 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '785'
+ - '845'
User-Agent:
- python-requests/2.27.1
method: POST
@@ -39,13 +40,13 @@ interactions:
Content-Type:
- application/json
Date:
- - Thu, 05 May 2022 09:28:11 GMT
+ - Fri, 10 Jun 2022 12:09:21 GMT
X-Content-Type-Options:
- nosniff
x-avalara-uid:
- - 30070cb6-2283-402c-8f90-5b0c847b951c
+ - ba50d016-7003-411c-b2ec-75466f242d47
x-correlation-id:
- - 30070cb6-2283-402c-8f90-5b0c847b951c
+ - ba50d016-7003-411c-b2ec-75466f242d47
status:
code: 401
message: Unauthorized
diff --git a/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_creates_order_event.yaml b/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_creates_order_event.yaml
index 4e58ceb988..7eae8ecf50 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_creates_order_event.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_creates_order_event.yaml
@@ -2,16 +2,16 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_AA", "description": "Test product"}, {"quantity": 2,
- "amount": "49.200", "taxCode": "O9999999", "taxIncluded": true, "itemCode":
- "SKU_B", "description": "Test product 2"}, {"quantity": 1, "amount": "10.000",
- "taxCode": "", "taxIncluded": true, "itemCode": "Shipping", "description": null}],
- "code": "7ac3ba4e-eb7a-4e18-b85f-a1249a19fd7e", "date": "2022-05-05", "customerCode":
- 0, "addresses": {"shipFrom": {"line1": "T\u0119czowa 7", "line2": null, "city":
- "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}, "shipTo":
- {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region": "",
- "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
- "USD", "email": "[email protected]"}}'
+ true, "itemCode": "SKU_AA", "discounted": false, "description": "Test product"},
+ {"quantity": 2, "amount": "49.200", "taxCode": "O9999999", "taxIncluded": true,
+ "itemCode": "SKU_B", "discounted": false, "description": "Test product 2"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "", "taxIncluded": true, "itemCode":
+ "Shipping", "discounted": false, "description": null}], "code": "951a5dc3-e063-4620-9eb1-2bb2d510f8e4",
+ "date": "2022-06-10", "customerCode": 0, "discount": null, "addresses": {"shipFrom":
+ {"line1": "T\u0119czowa 7", "line2": null, "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa
+ 7", "line2": "", "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode":
+ "53-601"}}, "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -22,20 +22,20 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '915'
+ - '996'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019769406728,"code":"7ac3ba4e-eb7a-4e18-b85f-a1249a19fd7e","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":72.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":16.68,"totalTaxable":72.52,"totalTaxCalculated":16.68,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019769406729,"destinationAddressId":85019769406729,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:19:17.0252096Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019769406733,"transactionId":85019769406728,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019769406729,"originAddressId":85019769406729,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_AA","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019769406739,"transactionLineId":85019769406733,"transactionId":85019769406728,"addressId":85019769406729,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019769406737,"documentLineId":85019769406733,"documentAddressId":85019769406729,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019769406738,"documentLineId":85019769406733,"documentAddressId":85019769406729,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019769406734,"transactionId":85019769406728,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product 2","destinationAddressId":85019769406729,"originAddressId":85019769406729,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_B","lineAmount":40.0000,"quantity":2.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":9.2,"taxableAmount":40.0,"taxCalculated":9.2,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019769406743,"transactionLineId":85019769406734,"transactionId":85019769406728,"addressId":85019769406729,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":9.2000,"taxableAmount":40.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":9.2000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":40.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":40.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":9.2,"reportingTaxCalculated":9.2,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019769406741,"documentLineId":85019769406734,"documentAddressId":85019769406729,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019769406742,"documentLineId":85019769406734,"documentAddressId":85019769406729,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019769406735,"transactionId":85019769406728,"lineNumber":"3","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019769406729,"originAddressId":85019769406729,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"P0000000","taxCodeId":4316,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019769406747,"transactionLineId":85019769406735,"transactionId":85019769406728,"addressId":85019769406729,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019769406745,"documentLineId":85019769406735,"documentAddressId":85019769406729,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019769406746,"documentLineId":85019769406735,"documentAddressId":85019769406729,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0}],"addresses":[{"id":85019769406729,"transactionId":85019769406728,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019769406731,"documentId":85019769406728,"documentAddressId":85019769406729,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019769406732,"documentId":85019769406728,"documentAddressId":85019769406729,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035870039793,"code":"951a5dc3-e063-4620-9eb1-2bb2d510f8e4","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":72.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":16.68,"totalTaxable":72.52,"totalTaxCalculated":16.68,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035870039794,"destinationAddressId":85035870039794,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T12:48:58.5136715Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035870039798,"transactionId":85035870039793,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035870039794,"originAddressId":85035870039794,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_AA","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035870039804,"transactionLineId":85035870039798,"transactionId":85035870039793,"addressId":85035870039794,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035870039802,"documentLineId":85035870039798,"documentAddressId":85035870039794,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035870039803,"documentLineId":85035870039798,"documentAddressId":85035870039794,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035870039799,"transactionId":85035870039793,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product 2","destinationAddressId":85035870039794,"originAddressId":85035870039794,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_B","lineAmount":40.0000,"quantity":2.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":9.2,"taxableAmount":40.0,"taxCalculated":9.2,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035870039808,"transactionLineId":85035870039799,"transactionId":85035870039793,"addressId":85035870039794,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":9.2000,"taxableAmount":40.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":9.2000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":40.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":40.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":9.2,"reportingTaxCalculated":9.2,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035870039806,"documentLineId":85035870039799,"documentAddressId":85035870039794,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035870039807,"documentLineId":85035870039799,"documentAddressId":85035870039794,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035870039800,"transactionId":85035870039793,"lineNumber":"3","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035870039794,"originAddressId":85035870039794,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"P0000000","taxCodeId":4316,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035870039812,"transactionLineId":85035870039800,"transactionId":85035870039793,"addressId":85035870039794,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035870039810,"documentLineId":85035870039800,"documentAddressId":85035870039794,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035870039811,"documentLineId":85035870039800,"documentAddressId":85035870039794,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0}],"addresses":[{"id":85035870039794,"transactionId":85035870039793,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035870039796,"documentId":85035870039793,"documentAddressId":85035870039794,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035870039797,"documentId":85035870039793,"documentAddressId":85035870039794,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":72.52,"rate":0.230000,"tax":16.68,"taxCalculated":16.68,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -43,23 +43,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:19:17 GMT
+ - Fri, 10 Jun 2022 12:48:58 GMT
Location:
- - /api/v2/companies/242975/transactions/85019769406728
+ - /api/v2/companies/242975/transactions/85035870039793
ServerDuration:
- - '00:00:00.1062347'
+ - '00:00:00.1056308'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - ad670152-a2b6-418c-b789-37df800dd00c
+ - aaf8eff1-add2-46a3-a6dd-2da47070b259
x-correlation-id:
- - ad670152-a2b6-418c-b789-37df800dd00c
+ - aaf8eff1-add2-46a3-a6dd-2da47070b259
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_sends_request.yaml b/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_sends_request.yaml
index 52f62eab52..76b1d18624 100644
--- a/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_sends_request.yaml
+++ b/saleor/plugins/avatax/tests/cassettes/test_tasks/test_api_post_request_task_sends_request.yaml
@@ -2,16 +2,16 @@ interactions:
- request:
body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesInvoice",
"lines": [{"quantity": 3, "amount": "30.000", "taxCode": "O9999999", "taxIncluded":
- true, "itemCode": "SKU_AA", "description": "Test product"}, {"quantity": 2,
- "amount": "49.200", "taxCode": "O9999999", "taxIncluded": true, "itemCode":
- "SKU_B", "description": "Test product 2"}, {"quantity": 1, "amount": "10.000",
- "taxCode": "", "taxIncluded": true, "itemCode": "Shipping", "description": null}],
- "code": "113d8198-d7d3-4977-9fc5-709f2d4cfc44", "date": "2022-05-05", "customerCode":
- 0, "addresses": {"shipFrom": {"line1": "T\u0119czowa 7", "line2": null, "city":
- "WROC\u0141AW", "region": "", "country": "PL", "postalCode": "53-601"}, "shipTo":
- {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region": "",
- "country": "PL", "postalCode": "53-601"}}, "commit": false, "currencyCode":
- "USD", "email": "[email protected]"}}'
+ true, "itemCode": "SKU_AA", "discounted": false, "description": "Test product"},
+ {"quantity": 2, "amount": "49.200", "taxCode": "O9999999", "taxIncluded": true,
+ "itemCode": "SKU_B", "discounted": false, "description": "Test product 2"},
+ {"quantity": 1, "amount": "10.000", "taxCode": "", "taxIncluded": true, "itemCode":
+ "Shipping", "discounted": false, "description": null}], "code": "4db0852f-0614-4949-9a8b-1b4f4a60da72",
+ "date": "2022-06-10", "customerCode": 0, "discount": null, "addresses": {"shipFrom":
+ {"line1": "T\u0119czowa 7", "line2": null, "city": "WROC\u0141AW", "region":
+ "", "country": "PL", "postalCode": "53-601"}, "shipTo": {"line1": "T\u0119czowa
+ 7", "line2": "", "city": "WROC\u0141AW", "region": "", "country": "PL", "postalCode":
+ "53-601"}}, "commit": false, "currencyCode": "USD", "email": "[email protected]"}}'
headers:
Accept:
- '*/*'
@@ -22,20 +22,20 @@ interactions:
Connection:
- keep-alive
Content-Length:
- - '915'
+ - '996'
User-Agent:
- python-requests/2.27.1
method: POST
uri: https://rest.avatax.com/api/v2/transactions/createoradjust
response:
body:
- string: '{"id":85019768425423,"code":"113d8198-d7d3-4977-9fc5-709f2d4cfc44","companyId":242975,"date":"2022-05-05","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":72.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":16.68,"totalTaxable":72.52,"totalTaxCalculated":16.68,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.4.1.0","originAddressId":85019768425424,"destinationAddressId":85019768425424,"exchangeRateEffectiveDate":"2022-05-05","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-05-05T09:19:17.0199428Z","modifiedUserId":283192,"taxDate":"2022-05-05","lines":[{"id":85019768425428,"transactionId":85019768425423,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product","destinationAddressId":85019768425424,"originAddressId":85019768425424,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_AA","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019768425434,"transactionLineId":85019768425428,"transactionId":85019768425423,"addressId":85019768425424,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019768425432,"documentLineId":85019768425428,"documentAddressId":85019768425424,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019768425433,"documentLineId":85019768425428,"documentAddressId":85019768425424,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019768425429,"transactionId":85019768425423,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
- product 2","destinationAddressId":85019768425424,"originAddressId":85019768425424,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_B","lineAmount":40.0000,"quantity":2.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":9.2,"taxableAmount":40.0,"taxCalculated":9.2,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019768425438,"transactionLineId":85019768425429,"transactionId":85019768425423,"addressId":85019768425424,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":9.2000,"taxableAmount":40.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":9.2000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":40.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":40.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":9.2,"reportingTaxCalculated":9.2,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019768425436,"documentLineId":85019768425429,"documentAddressId":85019768425424,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019768425437,"documentLineId":85019768425429,"documentAddressId":85019768425424,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85019768425430,"transactionId":85019768425423,"lineNumber":"3","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85019768425424,"originAddressId":85019768425424,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-05-05","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"P0000000","taxCodeId":4316,"taxDate":"2022-05-05","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85019768425442,"transactionLineId":85019768425430,"transactionId":85019768425423,"addressId":85019768425424,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
- Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85019768425440,"documentLineId":85019768425430,"documentAddressId":85019768425424,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85019768425441,"documentLineId":85019768425430,"documentAddressId":85019768425424,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0}],"addresses":[{"id":85019768425424,"transactionId":85019768425423,"boundaryLevel":"Zip5","line1":"Teczowa
- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85019768425426,"documentId":85019768425423,"documentAddressId":85019768425424,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85019768425427,"documentId":85019768425423,"documentAddressId":85019768425424,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
+ string: '{"id":85035867971065,"code":"4db0852f-0614-4949-9a8b-1b4f4a60da72","companyId":242975,"date":"2022-06-10","status":"Saved","type":"SalesInvoice","batchCode":"","currencyCode":"USD","exchangeRateCurrencyCode":"USD","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","taxOverrideType":"None","taxOverrideAmount":0.0,"taxOverrideReason":"","totalAmount":72.52,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":16.68,"totalTaxable":72.52,"totalTaxCalculated":16.68,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"22.5.2.0","originAddressId":85035867971066,"destinationAddressId":85035867971066,"exchangeRateEffectiveDate":"2022-06-10","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2022-06-10T12:48:58.5062391Z","modifiedUserId":283192,"taxDate":"2022-06-10","lines":[{"id":85035867971070,"transactionId":85035867971065,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product","destinationAddressId":85035867971066,"originAddressId":85035867971066,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_AA","lineAmount":24.3900,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":5.61,"taxableAmount":24.39,"taxCalculated":5.61,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035867971076,"transactionLineId":85035867971070,"transactionId":85035867971065,"addressId":85035867971066,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":5.6100,"taxableAmount":24.3900,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":5.6100,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":24.3900,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":24.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":5.61,"reportingTaxCalculated":5.61,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035867971074,"documentLineId":85035867971070,"documentAddressId":85035867971066,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035867971075,"documentLineId":85035867971070,"documentAddressId":85035867971066,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035867971071,"transactionId":85035867971065,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test
+ product 2","destinationAddressId":85035867971066,"originAddressId":85035867971066,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"SKU_B","lineAmount":40.0000,"quantity":2.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":9.2,"taxableAmount":40.0,"taxCalculated":9.2,"taxCode":"O9999999","taxCodeId":5340,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035867971080,"transactionLineId":85035867971071,"transactionId":85035867971065,"addressId":85035867971066,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":9.2000,"taxableAmount":40.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":9.2000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":40.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":40.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":9.2,"reportingTaxCalculated":9.2,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035867971078,"documentLineId":85035867971071,"documentAddressId":85035867971066,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035867971079,"documentLineId":85035867971071,"documentAddressId":85035867971066,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0},{"id":85035867971072,"transactionId":85035867971065,"lineNumber":"3","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85035867971066,"originAddressId":85035867971066,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":8.1300,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2022-06-10","revAccount":"","sourcing":"Destination","tax":1.87,"taxableAmount":8.13,"taxCalculated":1.87,"taxCode":"P0000000","taxCodeId":4316,"taxDate":"2022-06-10","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85035867971084,"transactionLineId":85035867971072,"transactionId":85035867971065,"addressId":85035867971066,"country":"PL","region":"PL","countyFIPS":"","stateFIPS":"","exemptAmount":0.0000,"exemptReasonId":4,"inState":true,"jurisCode":"PL","jurisName":"POLAND","jurisdictionId":200102,"signatureCode":"","stateAssignedNo":"","jurisType":"CNT","jurisdictionType":"Country","nonTaxableAmount":0.0000,"nonTaxableRuleId":0,"nonTaxableType":"RateRule","rate":0.230000,"rateRuleId":410972,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":1.8700,"taxableAmount":8.1300,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard
+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":1.8700,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":8.1300,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":8.13,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":1.87,"reportingTaxCalculated":1.87,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85035867971082,"documentLineId":85035867971072,"documentAddressId":85035867971066,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85035867971083,"documentLineId":85035867971072,"documentAddressId":85035867971066,"locationTypeCode":"ShipTo"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230CPL","vatNumberTypeId":0}],"addresses":[{"id":85035867971066,"transactionId":85035867971065,"boundaryLevel":"Zip5","line1":"Teczowa
+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85035867971068,"documentId":85035867971065,"documentAddressId":85035867971066,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85035867971069,"documentId":85035867971065,"documentAddressId":85035867971066,"locationTypeCode":"ShipTo"}],"summary":[{"country":"PL","region":"PL","jurisType":"Country","jurisCode":"PL","jurisName":"POLAND","taxAuthorityType":45,"stateAssignedNo":"","taxType":"Output","taxSubType":"O","taxName":"Standard
Rate","rateType":"Standard","taxable":72.52,"rate":0.230000,"tax":16.68,"taxCalculated":16.68,"nonTaxable":0.00,"exemption":0.00}]}'
headers:
Connection:
@@ -43,23 +43,25 @@ interactions:
Content-Type:
- application/json; charset=utf-8
Date:
- - Thu, 05 May 2022 09:19:17 GMT
+ - Fri, 10 Jun 2022 12:48:58 GMT
Location:
- - /api/v2/companies/242975/transactions/85019768425423
+ - /api/v2/companies/242975/transactions/85035867971065
ServerDuration:
- - '00:00:00.0892518'
+ - '00:00:00.0976491'
Transfer-Encoding:
- chunked
X-Content-Type-Options:
- nosniff
+ cache-control:
+ - private, no-cache, no-store
referrer-policy:
- same-origin
strict-transport-security:
- max-age=31536000; includeSubdomains
x-avalara-uid:
- - 4dba8c3d-8335-416e-814f-43199b99f76a
+ - 7ad77efb-4b88-4c50-beea-45cec8e3e5c7
x-correlation-id:
- - 4dba8c3d-8335-416e-814f-43199b99f76a
+ - 7ad77efb-4b88-4c50-beea-45cec8e3e5c7
x-frame-options:
- sameorigin
x-permitted-cross-domain-policies:
diff --git a/saleor/plugins/avatax/tests/test_avatax.py b/saleor/plugins/avatax/tests/test_avatax.py
index a05c822a57..ac9da8289c 100644
--- a/saleor/plugins/avatax/tests/test_avatax.py
+++ b/saleor/plugins/avatax/tests/test_avatax.py
@@ -957,9 +957,9 @@ def test_calculate_order_shipping_order_not_valid(
"with_discount, expected_net, expected_gross, voucher_amount, taxes_in_prices",
[
(True, "22.32", "26.99", "0.0", True),
- (True, "21.99", "26.59", "5.0", False),
- (False, "41.99", "51.19", "0.0", False),
- (False, "32.07", "38.99", "3.0", True),
+ (True, "21.99", "26.46", "5.0", False),
+ (False, "41.99", "51.05", "0.0", False),
+ (False, "32.04", "38.99", "3.0", True),
],
)
@override_settings(PLUGINS=["saleor.plugins.avatax.plugin.AvataxPlugin"])
@@ -1025,9 +1025,9 @@ def test_calculate_checkout_total_uses_default_calculation(
"with_discount, expected_net, expected_gross, voucher_amount, taxes_in_prices",
[
(True, "22.32", "26.99", "0.0", True),
- (True, "21.99", "26.59", "5.0", False),
- (False, "41.99", "51.19", "0.0", False),
- (False, "32.07", "38.99", "3.0", True),
+ (True, "21.99", "26.46", "5.0", False),
+ (False, "41.99", "51.05", "0.0", False),
+ (False, "32.04", "38.99", "3.0", True),
],
)
@override_settings(PLUGINS=["saleor.plugins.avatax.plugin.AvataxPlugin"])