CASH-2442 ZipPlus4 changes

CASH-2442 pass address line 1/2 to the tax endpoint so zipPlus4 can be requested for tax purposes
This commit is contained in:
CarlNation 2026-03-05 10:19:38 -05:00
parent 969f2a3812
commit e1bd79ef8e
3 changed files with 16 additions and 0 deletions

View file

@ -317,6 +317,10 @@ export default {
serviceLocationZipCode: serviceLocationZipCode:
store.getters.order.serviceLocation.zipCode, store.getters.order.serviceLocation.zipCode,
pricedLineItems: pricedLineItemsToTax, pricedLineItems: pricedLineItemsToTax,
serviceLocationAddressLine1:
store.getters.order.serviceLocation?.address,
serviceLocationAddressLine2:
store.getters.order.serviceLocation?.address2,
}, },
"payment-method", "payment-method",
false false

View file

@ -322,6 +322,8 @@ export default {
serviceLocationState: store.getters.order.serviceLocation.state, serviceLocationState: store.getters.order.serviceLocation.state,
serviceLocationZipCode: store.getters.order.serviceLocation.zipCode, serviceLocationZipCode: store.getters.order.serviceLocation.zipCode,
pricedLineItems: lineItemsForCart, pricedLineItems: lineItemsForCart,
serviceLocationAddressLine1: store.getters.order.serviceLocation?.address,
serviceLocationAddressLine2: store.getters.order.serviceLocation?.address2,
}, },
"payment-method", "payment-method",
false false
@ -526,6 +528,10 @@ export default {
serviceLocationState: this.$store.getters.order.serviceLocation.state, serviceLocationState: this.$store.getters.order.serviceLocation.state,
serviceLocationZipCode: this.$store.getters.order.serviceLocation.zipCode, serviceLocationZipCode: this.$store.getters.order.serviceLocation.zipCode,
pricedLineItems: this.lineItems, pricedLineItems: this.lineItems,
serviceLocationAddressLine1:
this.$store.getters.order.serviceLocation?.address,
serviceLocationAddressLine2:
this.$store.getters.order.serviceLocation?.address2,
}, },
"payment-method", "payment-method",
false false
@ -650,6 +656,8 @@ export default {
serviceLocationState: store.getters.order.serviceLocation.state, serviceLocationState: store.getters.order.serviceLocation.state,
serviceLocationZipCode: store.getters.order.serviceLocation.zipCode, serviceLocationZipCode: store.getters.order.serviceLocation.zipCode,
pricedLineItems: this.lineItems, pricedLineItems: this.lineItems,
serviceLocationAddressLine1: store.getters.order.serviceLocation?.address,
serviceLocationAddressLine2: store.getters.order.serviceLocation?.address2,
}, },
"payment-method", "payment-method",
false false

View file

@ -3115,6 +3115,8 @@ export const actions = {
serviceLocationState, serviceLocationState,
serviceLocationZipCode, serviceLocationZipCode,
pricedLineItems, pricedLineItems,
serviceLocationAddressLine1,
serviceLocationAddressLine2,
}, },
pageNameToLog, pageNameToLog,
} }
@ -3148,6 +3150,8 @@ export const actions = {
appointmentType: appointmentType, appointmentType: appointmentType,
pricedLineItems: lineItemsWithOnlyPriceInfo, pricedLineItems: lineItemsWithOnlyPriceInfo,
serviceLocation: { serviceLocation: {
addressLine1: appointmentType == "Mobile" ? serviceLocationAddressLine1 : null,
addressLine2: appointmentType == "Mobile" ? serviceLocationAddressLine2 : null,
city: appointmentType == "Mobile" ? serviceLocationCity : null, city: appointmentType == "Mobile" ? serviceLocationCity : null,
state: appointmentType == "Mobile" ? serviceLocationState : null, state: appointmentType == "Mobile" ? serviceLocationState : null,
zipCode: appointmentType == "Mobile" ? serviceLocationZipCode : null, zipCode: appointmentType == "Mobile" ? serviceLocationZipCode : null,