Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refresh the Avalara cassettes for JPY related tests (#12832)
Filip Owczarekb6b0655c2364
diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[3493-4297-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[3493-4297-3.0-True].yamlnew file mode 100644index 0000000000..1f0c24e71f--- /dev/null+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[3493-4297-3.0-True].yaml@@ -0,0 +1,74 @@+interactions:+- request:+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",+ "lines": [{"quantity": 3, "amount": "3600", "taxCode": "PS081282", "taxIncluded":+ true, "itemCode": "123", "discounted": true, "description": "Test product",+ "ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000",+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":+ null}], "code": "d0ec001d-ebf9-4d08-af96-f0bcdb280b65", "date": "2023-05-16",+ "customerCode": 0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa+ 7", "line2": "", "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:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate, br+ Authorization:+ - Basic Og==+ Connection:+ - keep-alive+ Content-Length:+ - '832'+ User-Agent:+ - python-requests/2.30.0+ method: POST+ uri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjust+ response:+ body:+ string: '{"id":0,"code":"d0ec001d-ebf9-4d08-af96-f0bcdb280b65","companyId":7799660,"date":"2023-05-16","paymentDate":"2023-05-16","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":3495.61,"totalExempt":-0.39,"totalDiscount":3.0,"totalTax":804.0,"totalTaxable":3493.0,"totalTaxCalculated":804.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-05-16","exchangeRate":1.0,"modifiedDate":"2023-05-16T10:23:58.9729696Z","modifiedUserId":6479978,"taxDate":"2023-05-16","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test+ product","discountAmount":3.0,"exemptAmount":-0.39,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":2927.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-05-16","tax":673.0,"taxableAmount":2924.0,"taxCalculated":673.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-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":673.0,"taxableAmount":2924.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":673.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2924.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":673.0,"reportingTaxCalculated":673.0,"avtUserBIN":"","liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","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.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-05-16","tax":131.0,"taxableAmount":569.0,"taxCalculated":131.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-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":131.0,"taxableAmount":569.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":131.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":569.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":131.0,"reportingTaxCalculated":131.0,"liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","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":3493.0,"rate":0.230000,"tax":804.0,"taxCalculated":804.0,"nonTaxable":0.0,"exemption":0.0}]}'+ headers:+ Connection:+ - keep-alive+ Content-Type:+ - application/json; charset=utf-8+ Date:+ - Tue, 16 May 2023 10:23:58 GMT+ Location:+ - /api/v2/companies/7799660/transactions/0+ ServerDuration:+ - '00:00:00.0234855'+ Transfer-Encoding:+ - chunked+ X-Content-Type-Options:+ - nosniff+ api-supported-versions:+ - '2.0'+ cache-control:+ - private, no-cache, no-store+ referrer-policy:+ - same-origin+ strict-transport-security:+ - max-age=31536000; includeSubdomains+ x-avalara-uid:+ - 015d0099-6751-453a-96a9-dd1fe2582a8a+ x-correlation-id:+ - 015d0099-6751-453a-96a9-dd1fe2582a8a+ x-frame-options:+ - sameorigin+ x-permitted-cross-domain-policies:+ - none+ x-xss-protection:+ - 1; mode=block+ status:+ code: 201+ message: Created+version: 1diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[3495-4297-3.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[3495-4297-3.0-True].yamldeleted file mode 100644index 970842e052..0000000000--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[3495-4297-3.0-True].yaml+++ /dev/null@@ -1,74 +0,0 @@-interactions:-- request:- body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",- "lines": [{"quantity": 3, "amount": "3600", "taxCode": "PS081282", "taxIncluded":- true, "itemCode": "123", "discounted": true, "description": "Test product",- "ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000",- "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":- null}], "code": "8650f1ed-c286-46a5-a509-2e87c72c890d", "date": "2023-03-02",- "customerCode": 0, "discount": "3.0", "addresses": {"shipFrom": {"line1": "Teczowa- 7", "line2": "", "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:- - '*/*'- Accept-Encoding:- - gzip, deflate, br- Authorization:- - Basic Og==- Connection:- - keep-alive- Content-Length:- - '832'- User-Agent:- - python-requests/2.28.1- method: POST- uri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjust- response:- body:- string: '{"id":0,"code":"8650f1ed-c286-46a5-a509-2e87c72c890d","companyId":7799660,"date":"2023-03-02","paymentDate":"2023-03-02","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":3497.11,"totalExempt":0.61,"totalDiscount":3.0,"totalTax":802.0,"totalTaxable":3493.5,"totalTaxCalculated":802.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-03-02","exchangeRate":1.0,"modifiedDate":"2023-03-02T13:54:43.1768477Z","modifiedUserId":6479978,"taxDate":"2023-03-02","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test- product","discountAmount":3.0,"exemptAmount":0.61,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":2928.0000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-03-02","tax":672.0,"taxableAmount":2924.39,"taxCalculated":672.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-03-02","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":672.61,"taxableAmount":2924.39,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard- Rate","taxAuthorityTypeId":45,"taxCalculated":672.61,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2924.39,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":672.61,"reportingTaxCalculated":672.61,"avtUserBIN":"","liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","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":"2023-03-02","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-03-02","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-230D","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":3493.50,"rate":0.230000,"tax":803.50,"taxCalculated":803.50,"nonTaxable":0.0,"exemption":0.0}]}'- headers:- Connection:- - keep-alive- Content-Type:- - application/json; charset=utf-8- Date:- - Thu, 02 Mar 2023 13:54:43 GMT- Location:- - /api/v2/companies/7799660/transactions/0- ServerDuration:- - '00:00:00.0206453'- Transfer-Encoding:- - chunked- X-Content-Type-Options:- - nosniff- api-supported-versions:- - '2.0'- cache-control:- - private, no-cache, no-store- referrer-policy:- - same-origin- strict-transport-security:- - max-age=31536000; includeSubdomains- x-avalara-uid:- - f1e83bef-1e4b-465b-a0d1-33bf547ee99d- x-correlation-id:- - f1e83bef-1e4b-465b-a0d1-33bf547ee99d- x-frame-options:- - sameorigin- x-permitted-cross-domain-policies:- - none- x-xss-protection:- - 1; mode=block- status:- code: 201- message: Created-version: 1diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[4300-5289-0.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[4300-5289-0.0-False].yamlindex d8055cba44..3eb2433072 100644--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[4300-5289-0.0-False].yaml+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY[4300-5289-0.0-False].yaml@@ -5,7 +5,7 @@ interactions:false, "itemCode": "123", "discounted": true, "description": "Test product","ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000","taxIncluded": false, "itemCode": "Shipping", "discounted": false, "description":- null}], "code": "a6a85cf3-b846-48a0-b38c-de4f42b74efd", "date": "2023-02-28",+ null}], "code": "90547cb5-669b-4194-8569-ce91e1342f7a", "date": "2023-05-16","customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa7", "line2": "", "city": "Wroclaw", "region": "", "country": "PL", "postalCode":"53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",@@ -23,15 +23,15 @@ interactions:Content-Length:- '833'User-Agent:- - python-requests/2.28.1+ - python-requests/2.30.0method: POSTuri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjustresponse:body:- string: '{"id":0,"code":"a6a85cf3-b846-48a0-b38c-de4f42b74efd","companyId":7799660,"date":"2023-02-28","paymentDate":"2023-02-28","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":4300.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":989.0,"totalTaxable":4300.0,"totalTaxCalculated":989.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-02-28","exchangeRate":1.0,"modifiedDate":"2023-02-28T14:21:35.3606313Z","modifiedUserId":6479978,"taxDate":"2023-02-28","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":3600.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-02-28","tax":828.0,"taxableAmount":3600.0,"taxCalculated":828.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-02-28","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":828.0,"taxableAmount":3600.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard- Rate","taxAuthorityTypeId":45,"taxCalculated":828.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":3600.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":828.0,"reportingTaxCalculated":828.0,"avtUserBIN":"","liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":700.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-02-28","tax":161.0,"taxableAmount":700.0,"taxCalculated":161.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-02-28","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":161.0,"taxableAmount":700.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard- Rate","taxAuthorityTypeId":45,"taxCalculated":161.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":700.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":161.0,"reportingTaxCalculated":161.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska+ string: '{"id":0,"code":"90547cb5-669b-4194-8569-ce91e1342f7a","companyId":7799660,"date":"2023-05-16","paymentDate":"2023-05-16","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":4300.0,"totalExempt":0.0,"totalDiscount":0.0,"totalTax":989.0,"totalTaxable":4300.0,"totalTaxCalculated":989.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-05-16","exchangeRate":1.0,"modifiedDate":"2023-05-16T10:23:57.7434346Z","modifiedUserId":6479978,"taxDate":"2023-05-16","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":3600.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-05-16","tax":828.0,"taxableAmount":3600.0,"taxCalculated":828.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-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":828.0,"taxableAmount":3600.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":828.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":3600.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":828.0,"reportingTaxCalculated":828.0,"avtUserBIN":"","liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":700.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-05-16","tax":161.0,"taxableAmount":700.0,"taxCalculated":161.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-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":161.0,"taxableAmount":700.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":161.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":700.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":161.0,"reportingTaxCalculated":161.0,"liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa7","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":"StandardRate","rateType":"Standard","taxable":4300.0,"rate":0.230000,"tax":989.0,"taxCalculated":989.0,"nonTaxable":0.0,"exemption":0.0}]}'@@ -41,11 +41,11 @@ interactions:Content-Type:- application/json; charset=utf-8Date:- - Tue, 28 Feb 2023 14:21:35 GMT+ - Tue, 16 May 2023 10:23:57 GMTLocation:- /api/v2/companies/7799660/transactions/0ServerDuration:- - '00:00:00.0232804'+ - '00:00:00.0223799'Transfer-Encoding:- chunkedX-Content-Type-Options:@@ -59,9 +59,9 @@ interactions:strict-transport-security:- max-age=31536000; includeSubdomainsx-avalara-uid:- - d380393b-8cf3-4f63-9029-a338567295bd+ - 0f06c40c-1abc-4909-9d46-99098d74f6edx-correlation-id:- - d380393b-8cf3-4f63-9029-a338567295bd+ - 0f06c40c-1abc-4909-9d46-99098d74f6edx-frame-options:- sameoriginx-permitted-cross-domain-policies:diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[3484-4285-0.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[3484-4285-0.0-True].yamlnew file mode 100644index 0000000000..9055c01504--- /dev/null+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[3484-4285-0.0-True].yaml@@ -0,0 +1,74 @@+interactions:+- request:+ body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",+ "lines": [{"quantity": 3, "amount": "3585", "taxCode": "PS081282", "taxIncluded":+ true, "itemCode": "123", "discounted": true, "description": "Test product",+ "ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000",+ "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":+ null}], "code": "c3ed75f4-7fc9-448b-9fd4-653867fa0c4f", "date": "2023-05-16",+ "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa+ 7", "line2": "", "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:+ - '*/*'+ Accept-Encoding:+ - gzip, deflate, br+ Authorization:+ - Basic Og==+ Connection:+ - keep-alive+ Content-Length:+ - '831'+ User-Agent:+ - python-requests/2.30.0+ method: POST+ uri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjust+ response:+ body:+ string: '{"id":0,"code":"c3ed75f4-7fc9-448b-9fd4-653867fa0c4f","companyId":7799660,"date":"2023-05-16","paymentDate":"2023-05-16","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":3484.37,"totalExempt":0.37,"totalDiscount":0.0,"totalTax":801.0,"totalTaxable":3484.0,"totalTaxCalculated":801.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-05-16","exchangeRate":1.0,"modifiedDate":"2023-05-16T10:29:49.6753672Z","modifiedUserId":6479978,"taxDate":"2023-05-16","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test+ product","discountAmount":0.0,"exemptAmount":0.37,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":2915.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-05-16","tax":670.0,"taxableAmount":2915.0,"taxCalculated":670.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-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":670.0,"taxableAmount":2915.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":670.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2915.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":670.0,"reportingTaxCalculated":670.0,"avtUserBIN":"","liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","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.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-05-16","tax":131.0,"taxableAmount":569.0,"taxCalculated":131.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-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":131.0,"taxableAmount":569.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":131.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":569.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":131.0,"reportingTaxCalculated":131.0,"liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","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":3484.0,"rate":0.230000,"tax":801.0,"taxCalculated":801.0,"nonTaxable":0.0,"exemption":0.0}]}'+ headers:+ Connection:+ - keep-alive+ Content-Type:+ - application/json; charset=utf-8+ Date:+ - Tue, 16 May 2023 10:29:49 GMT+ Location:+ - /api/v2/companies/7799660/transactions/0+ ServerDuration:+ - '00:00:00.0218843'+ Transfer-Encoding:+ - chunked+ X-Content-Type-Options:+ - nosniff+ api-supported-versions:+ - '2.0'+ cache-control:+ - private, no-cache, no-store+ referrer-policy:+ - same-origin+ strict-transport-security:+ - max-age=31536000; includeSubdomains+ x-avalara-uid:+ - 666ab3ba-23d7-447f-aa8a-786d4481f31d+ x-correlation-id:+ - 666ab3ba-23d7-447f-aa8a-786d4481f31d+ x-frame-options:+ - sameorigin+ x-permitted-cross-domain-policies:+ - none+ x-xss-protection:+ - 1; mode=block+ status:+ code: 201+ message: Created+version: 1diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[3485-4285-0.0-True].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[3485-4285-0.0-True].yamldeleted file mode 100644index 4ce67b8c5d..0000000000--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[3485-4285-0.0-True].yaml+++ /dev/null@@ -1,74 +0,0 @@-interactions:-- request:- body: '{"createTransactionModel": {"companyCode": "DEFAULT", "type": "SalesOrder",- "lines": [{"quantity": 3, "amount": "3585", "taxCode": "PS081282", "taxIncluded":- true, "itemCode": "123", "discounted": true, "description": "Test product",- "ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000",- "taxIncluded": true, "itemCode": "Shipping", "discounted": false, "description":- null}], "code": "78f1921e-e305-46e8-8363-8f0103b55b01", "date": "2023-03-02",- "customerCode": 0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa- 7", "line2": "", "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:- - '*/*'- Accept-Encoding:- - gzip, deflate, br- Authorization:- - Basic Og==- Connection:- - keep-alive- Content-Length:- - '831'- User-Agent:- - python-requests/2.28.1- method: POST- uri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjust- response:- body:- string: '{"id":0,"code":"78f1921e-e305-46e8-8363-8f0103b55b01","companyId":7799660,"date":"2023-03-02","paymentDate":"2023-03-02","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":3484.11,"totalExempt":0.37,"totalDiscount":0.0,"totalTax":800.0,"totalTaxable":3483.74,"totalTaxCalculated":800.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-03-02","exchangeRate":1.0,"modifiedDate":"2023-03-02T13:54:32.7163085Z","modifiedUserId":6479978,"taxDate":"2023-03-02","lines":[{"id":0,"transactionId":0,"lineNumber":"1","customerUsageType":"","entityUseCode":"","description":"Test- product","discountAmount":0.0,"exemptAmount":0.37,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"123","lineAmount":2915.0000,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-03-02","tax":670.0,"taxableAmount":2914.63,"taxCalculated":670.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-03-02","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":670.37,"taxableAmount":2914.63,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard- Rate","taxAuthorityTypeId":45,"taxCalculated":670.37,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2914.63,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":670.37,"reportingTaxCalculated":670.37,"avtUserBIN":"","liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","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":"2023-03-02","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-03-02","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-230D","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":3483.74,"rate":0.230000,"tax":801.26,"taxCalculated":801.26,"nonTaxable":0.0,"exemption":0.0}]}'- headers:- Connection:- - keep-alive- Content-Type:- - application/json; charset=utf-8- Date:- - Thu, 02 Mar 2023 13:54:32 GMT- Location:- - /api/v2/companies/7799660/transactions/0- ServerDuration:- - '00:00:00.0220406'- Transfer-Encoding:- - chunked- X-Content-Type-Options:- - nosniff- api-supported-versions:- - '2.0'- cache-control:- - private, no-cache, no-store- referrer-policy:- - same-origin- strict-transport-security:- - max-age=31536000; includeSubdomains- x-avalara-uid:- - 7e77a622-661f-44f2-8e36-8535bdf6e5f1- x-correlation-id:- - 7e77a622-661f-44f2-8e36-8535bdf6e5f1- x-frame-options:- - sameorigin- x-permitted-cross-domain-policies:- - none- x-xss-protection:- - 1; mode=block- status:- code: 201- message: Created-version: 1diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[4280-5264-5.0-False].yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[4280-5264-5.0-False].yamlindex 8eb1fc482c..95f7b08dc4 100644--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[4280-5264-5.0-False].yaml+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_checkout_total_for_JPY_with_sale[4280-5264-5.0-False].yaml@@ -5,7 +5,7 @@ interactions:false, "itemCode": "123", "discounted": true, "description": "Test product","ref1": "123"}, {"quantity": 1, "amount": "700.000", "taxCode": "FR000000","taxIncluded": false, "itemCode": "Shipping", "discounted": false, "description":- null}], "code": "7927798f-9104-411c-8739-a9628e2e86e8", "date": "2023-02-28",+ null}], "code": "2d91f3c0-bb3d-48ae-924b-a77c373e6510", "date": "2023-05-16","customerCode": 0, "discount": "5.0", "addresses": {"shipFrom": {"line1": "Teczowa7", "line2": "", "city": "Wroclaw", "region": "", "country": "PL", "postalCode":"53-601"}, "shipTo": {"line1": "O\u0142awska 10", "line2": "", "city": "WROC\u0141AW",@@ -23,29 +23,29 @@ interactions:Content-Length:- '834'User-Agent:- - python-requests/2.28.1+ - python-requests/2.30.0method: POSTuri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjustresponse:body:- string: '{"id":0,"code":"7927798f-9104-411c-8739-a9628e2e86e8","companyId":7799660,"date":"2023-02-28","paymentDate":"2023-02-28","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":4285.0,"totalExempt":0.0,"totalDiscount":5.0,"totalTax":984.0,"totalTaxable":4280.0,"totalTaxCalculated":984.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-02-28","exchangeRate":1.0,"modifiedDate":"2023-02-28T14:21:34.008221Z","modifiedUserId":6479978,"taxDate":"2023-02-28","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":3585.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-02-28","tax":823.0,"taxableAmount":3580.0,"taxCalculated":823.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-02-28","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":823.4,"taxableAmount":3580.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard- Rate","taxAuthorityTypeId":45,"taxCalculated":823.4,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":3580.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":823.4,"reportingTaxCalculated":823.4,"avtUserBIN":"","liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":700.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-02-28","tax":161.0,"taxableAmount":700.0,"taxCalculated":161.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-02-28","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":161.0,"taxableAmount":700.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard- Rate","taxAuthorityTypeId":45,"taxCalculated":161.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":700.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":161.0,"reportingTaxCalculated":161.0,"liabilityType":"Seller"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska+ string: '{"id":0,"code":"2d91f3c0-bb3d-48ae-924b-a77c373e6510","companyId":7799660,"date":"2023-05-16","paymentDate":"2023-05-16","status":"Temporary","type":"SalesOrder","batchCode":"","currencyCode":"JPY","exchangeRateCurrencyCode":"JPY","customerUsageType":"","entityUseCode":"","customerVendorCode":"0","customerCode":"0","exemptNo":"","reconciled":false,"locationCode":"","reportingLocationCode":"","purchaseOrderNo":"","referenceCode":"","salespersonCode":"","totalAmount":4285.0,"totalExempt":0.0,"totalDiscount":5.0,"totalTax":984.0,"totalTaxable":4280.0,"totalTaxCalculated":984.0,"adjustmentReason":"NotAdjusted","locked":false,"version":1,"exchangeRateEffectiveDate":"2023-05-16","exchangeRate":1.0,"modifiedDate":"2023-05-16T10:29:51.1730535Z","modifiedUserId":6479978,"taxDate":"2023-05-16","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":3585.0,"quantity":3.0,"ref1":"123","ref2":"","reportingDate":"2023-05-16","tax":823.0,"taxableAmount":3580.0,"taxCalculated":823.0,"taxCode":"PS081282","taxCodeId":38007,"taxDate":"2023-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":823.0,"taxableAmount":3580.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":823.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":3580.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":823.0,"reportingTaxCalculated":823.0,"avtUserBIN":"","liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLSL230C","vatNumberTypeId":0},{"id":0,"transactionId":0,"lineNumber":"2","customerUsageType":"","entityUseCode":"","discountAmount":0.0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"itemCode":"Shipping","lineAmount":700.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-05-16","tax":161.0,"taxableAmount":700.0,"taxCalculated":161.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-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":161.0,"taxableAmount":700.0,"taxType":"Output","taxSubTypeId":"O","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxCalculated":161.0,"rateType":"Standard","rateTypeCode":"S","unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":700.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":161.0,"reportingTaxCalculated":161.0,"liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","vatNumberTypeId":0}],"addresses":[{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Olawska10","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-105","country":"PL","taxRegionId":205102,"latitude":"","longitude":""},{"id":0,"transactionId":0,"boundaryLevel":"Zip5","line1":"Teczowa7","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":4280.0,"rate":0.230000,"tax":984.4,"taxCalculated":984.4,"nonTaxable":0.0,"exemption":0.0}]}'+ Rate","rateType":"Standard","taxable":4280.0,"rate":0.230000,"tax":984.0,"taxCalculated":984.0,"nonTaxable":0.0,"exemption":0.0}]}'headers:Connection:- keep-aliveContent-Type:- application/json; charset=utf-8Date:- - Tue, 28 Feb 2023 14:21:34 GMT+ - Tue, 16 May 2023 10:29:51 GMTLocation:- /api/v2/companies/7799660/transactions/0ServerDuration:- - '00:00:00.0200013'+ - '00:00:00.0211933'Transfer-Encoding:- chunkedX-Content-Type-Options:@@ -59,9 +59,9 @@ interactions:strict-transport-security:- max-age=31536000; includeSubdomainsx-avalara-uid:- - 224d80bc-8881-4adc-9da3-903a210dc903+ - 3d04b38c-97fc-493b-89e5-532f4692a733x-correlation-id:- - 224d80bc-8881-4adc-9da3-903a210dc903+ - 3d04b38c-97fc-493b-89e5-532f4692a733x-frame-options:- sameoriginx-permitted-cross-domain-policies:diff --git a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_total_for_JPY.yaml b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_total_for_JPY.yamlindex c268bdab0b..2b31fdabc9 100644--- a/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_total_for_JPY.yaml+++ b/saleor/plugins/avatax/tests/cassettes/test_avatax/test_calculate_order_total_for_JPY.yaml@@ -5,7 +5,7 @@ interactions:true, "itemCode": "123", "discounted": false, "description": "Test product"},{"quantity": 1, "amount": "700.000", "taxCode": "FR000000", "taxIncluded": true,"itemCode": "Shipping", "discounted": false, "description": null}], "code":- "acd43357-0b7e-4f75-8e50-4847acce9dfd", "date": "2023-03-06", "customerCode":+ "41d475a4-780c-4ff1-9991-8a297810fbc3", "date": "2023-05-16", "customerCode":0, "discount": null, "addresses": {"shipFrom": {"line1": "Teczowa 7", "line2":"", "city": "Wroclaw", "region": "", "country": "PL", "postalCode": "53-601"},"shipTo": {"line1": "T\u0119czowa 7", "line2": "", "city": "WROC\u0141AW", "region":@@ -23,29 +23,29 @@ interactions:Content-Length:- '836'User-Agent:- - python-requests/2.28.2+ - python-requests/2.30.0method: POSTuri: https://sandbox-rest.avatax.com/api/v2/transactions/createoradjustresponse:body:- string: '{"id":85020701818896,"code":"acd43357-0b7e-4f75-8e50-4847acce9dfd","companyId":7799660,"date":"2023-03-06","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":"23.2.3.0","originAddressId":85020701818898,"destinationAddressId":85020701818897,"exchangeRateEffectiveDate":"2023-03-06","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2023-03-06T10:49:16.1930736Z","modifiedUserId":6479978,"taxDate":"2023-03-06","lines":[{"id":85020701818902,"transactionId":85020701818896,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test- product","destinationAddressId":85020701818897,"originAddressId":85020701818898,"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":"2023-03-06","revAccount":"","sourcing":"Destination","tax":673.0,"taxableAmount":2926.83,"taxCalculated":673.0,"taxCode":"O9999999","taxCodeId":9111,"taxDate":"2023-03-06","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85020701818923,"transactionLineId":85020701818902,"transactionId":85020701818896,"addressId":85020701818897,"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":411502,"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":85020701818905,"documentLineId":85020701818902,"documentAddressId":85020701818898,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85020701818906,"documentLineId":85020701818902,"documentAddressId":85020701818897,"locationTypeCode":"ShipTo"}],"parameters":[{"name":"Transport","value":"None"},{"name":"IsMarketplace","value":"False"},{"name":"IsTriangulation","value":"false"},{"name":"IsGoodsSecondHand","value":"false"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230C","vatNumberTypeId":0},{"id":85020701818903,"transactionId":85020701818896,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85020701818897,"originAddressId":85020701818898,"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":"2023-03-06","revAccount":"","sourcing":"Destination","tax":130.0,"taxableAmount":569.11,"taxCalculated":130.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-03-06","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85020701818943,"transactionLineId":85020701818903,"transactionId":85020701818896,"addressId":85020701818897,"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":411502,"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":85020701818925,"documentLineId":85020701818903,"documentAddressId":85020701818898,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85020701818926,"documentLineId":85020701818903,"documentAddressId":85020701818897,"locationTypeCode":"ShipTo"}],"parameters":[{"name":"Transport","value":"None"},{"name":"IsMarketplace","value":"False"},{"name":"IsTriangulation","value":"false"},{"name":"IsGoodsSecondHand","value":"false"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","vatNumberTypeId":0}],"addresses":[{"id":85020701818897,"transactionId":85020701818896,"boundaryLevel":"Zip5","line1":"Teczowa- 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85020701818898,"transactionId":85020701818896,"boundaryLevel":"Zip5","line1":"Teczowa- 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85020701818900,"documentId":85020701818896,"documentAddressId":85020701818898,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85020701818901,"documentId":85020701818896,"documentAddressId":85020701818897,"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}]}'+ string: '{"id":85025662353223,"code":"41d475a4-780c-4ff1-9991-8a297810fbc3","companyId":7799660,"date":"2023-05-16","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.17,"totalExempt":0.17,"totalDiscount":0.0,"totalTax":804.0,"totalTaxable":3496.0,"totalTaxCalculated":804.0,"adjustmentReason":"NotAdjusted","adjustmentDescription":"","locked":false,"region":"","country":"PL","version":1,"softwareVersion":"23.4.0.0","originAddressId":85025662353225,"destinationAddressId":85025662353224,"exchangeRateEffectiveDate":"2023-05-16","exchangeRate":1.0,"description":"","email":"[email protected]","businessIdentificationNo":"","modifiedDate":"2023-05-16T08:41:14.0494372Z","modifiedUserId":6479978,"taxDate":"2023-05-16","lines":[{"id":85025662353229,"transactionId":85025662353223,"lineNumber":"1","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"Test+ product","destinationAddressId":85025662353224,"originAddressId":85025662353225,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.17,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"123","lineAmount":2927.0,"quantity":3.0,"ref1":"","ref2":"","reportingDate":"2023-05-16","revAccount":"","sourcing":"Destination","tax":673.0,"taxableAmount":2927.0,"taxCalculated":673.0,"taxCode":"O9999999","taxCodeId":9111,"taxDate":"2023-05-16","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025662353249,"transactionLineId":85025662353229,"transactionId":85025662353223,"addressId":85025662353224,"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":411502,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":673.0000,"taxableAmount":2927.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":673.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":2927.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":2927.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":673.0,"reportingTaxCalculated":673.0,"liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025662353232,"documentLineId":85025662353229,"documentAddressId":85025662353225,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025662353233,"documentLineId":85025662353229,"documentAddressId":85025662353224,"locationTypeCode":"ShipTo"}],"parameters":[{"name":"Transport","value":"None"},{"name":"IsMarketplace","value":"False"},{"name":"IsTriangulation","value":"false"},{"name":"IsGoodsSecondHand","value":"false"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230C","vatNumberTypeId":0},{"id":85025662353230,"transactionId":85025662353223,"lineNumber":"2","boundaryOverrideId":0,"customerUsageType":"","entityUseCode":"","description":"","destinationAddressId":85025662353224,"originAddressId":85025662353225,"discountAmount":0.0,"discountTypeId":0,"exemptAmount":0.0,"exemptCertId":0,"exemptNo":"","isItemTaxable":true,"isSSTP":false,"itemCode":"Shipping","lineAmount":569.0,"quantity":1.0,"ref1":"","ref2":"","reportingDate":"2023-05-16","revAccount":"","sourcing":"Destination","tax":131.0,"taxableAmount":569.0,"taxCalculated":131.0,"taxCode":"FR000000","taxCodeId":8550,"taxDate":"2023-05-16","taxEngine":"","taxOverrideType":"None","businessIdentificationNo":"","taxOverrideAmount":0.0,"taxOverrideReason":"","taxIncluded":true,"details":[{"id":85025662353268,"transactionLineId":85025662353230,"transactionId":85025662353223,"addressId":85025662353224,"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":411502,"rateSourceId":0,"serCode":"","sourcing":"Destination","tax":131.0000,"taxableAmount":569.0000,"taxType":"Output","taxSubTypeId":"O","taxTypeGroupId":"InputAndOutput","taxName":"Standard+ Rate","taxAuthorityTypeId":45,"taxRegionId":205102,"taxCalculated":131.0000,"taxOverride":0.0000,"rateType":"Standard","rateTypeCode":"S","taxableUnits":569.0000,"nonTaxableUnits":0.0000,"exemptUnits":0.0000,"unitOfBasis":"PerCurrencyUnit","isNonPassThru":false,"isFee":false,"reportingTaxableUnits":569.0,"reportingNonTaxableUnits":0.0,"reportingExemptUnits":0.0,"reportingTax":131.0,"reportingTaxCalculated":131.0,"liabilityType":"Seller","chargedTo":"Buyer"}],"nonPassthroughDetails":[],"lineLocationTypes":[{"documentLineLocationTypeId":85025662353251,"documentLineId":85025662353230,"documentAddressId":85025662353225,"locationTypeCode":"ShipFrom"},{"documentLineLocationTypeId":85025662353252,"documentLineId":85025662353230,"documentAddressId":85025662353224,"locationTypeCode":"ShipTo"}],"parameters":[{"name":"Transport","value":"None"},{"name":"IsMarketplace","value":"False"},{"name":"IsTriangulation","value":"false"},{"name":"IsGoodsSecondHand","value":"false"}],"hsCode":"","costInsuranceFreight":0.0,"vatCode":"PLS-230D","vatNumberTypeId":0}],"addresses":[{"id":85025662353224,"transactionId":85025662353223,"boundaryLevel":"Zip5","line1":"Teczowa+ 7","line2":"","line3":"","city":"WROCLAW","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102},{"id":85025662353225,"transactionId":85025662353223,"boundaryLevel":"Zip5","line1":"Teczowa+ 7","line2":"","line3":"","city":"Wroclaw","region":"","postalCode":"53-601","country":"PL","taxRegionId":205102}],"locationTypes":[{"documentLocationTypeId":85025662353227,"documentId":85025662353223,"documentAddressId":85025662353225,"locationTypeCode":"ShipFrom"},{"documentLocationTypeId":85025662353228,"documentId":85025662353223,"documentAddressId":85025662353224,"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":3496.00,"rate":0.230000,"tax":804.00,"taxCalculated":804.00,"nonTaxable":0.00,"exemption":0.00}]}'headers:Connection:- keep-aliveContent-Type:- application/json; charset=utf-8Date:- - Mon, 06 Mar 2023 10:49:16 GMT+ - Tue, 16 May 2023 08:41:14 GMTLocation:- - /api/v2/companies/7799660/transactions/85020701818896+ - /api/v2/companies/7799660/transactions/85025662353223ServerDuration:- - '00:00:00.0447832'+ - '00:00:00.0646499'Transfer-Encoding:- chunkedX-Content-Type-Options:@@ -59,9 +59,9 @@ interactions:strict-transport-security:- max-age=31536000; includeSubdomainsx-avalara-uid:- - 6edeb815-87c2-4530-bda8-fee6389b8812+ - c45e0d81-50e7-40c3-aece-f3f5e6d7cbd6x-correlation-id:- - 6edeb815-87c2-4530-bda8-fee6389b8812+ - c45e0d81-50e7-40c3-aece-f3f5e6d7cbd6x-frame-options:- sameoriginx-permitted-cross-domain-policies:diff --git a/saleor/plugins/avatax/tests/test_avatax.py b/saleor/plugins/avatax/tests/test_avatax.pyindex 51680afc44..83a555b8d7 100644--- a/saleor/plugins/avatax/tests/test_avatax.py+++ b/saleor/plugins/avatax/tests/test_avatax.py@@ -1378,7 +1378,7 @@ def test_calculate_checkout_total_with_sale(("expected_net, expected_gross, voucher_amount, " "prices_entered_with_tax"),[("4300", "5289", "0.0", False),- ("3495", "4297", "3.0", True),+ ("3493", "4297", "3.0", True),],)@override_settings(PLUGINS=["saleor.plugins.avatax.plugin.AvataxPlugin"])@@ -1450,7 +1450,7 @@ def test_calculate_checkout_total_for_JPY(@pytest.mark.parametrize(("expected_net, expected_gross, voucher_amount, prices_entered_with_tax"),[- ("3485", "4285", "0.0", True),+ ("3484", "4285", "0.0", True),("4280", "5264", "5.0", False),],)@@ -2224,7 +2224,7 @@ def test_calculate_order_total_for_JPY(# thenprice = quantize_price(price, price.currency)- assert price == TaxedMoney(net=Money("3497", "JPY"), gross=Money("4300", "JPY"))+ assert price == TaxedMoney(net=Money("3496", "JPY"), gross=Money("4300", "JPY"))@pytest.mark.vcr