Skip to content

Commit

Permalink
Merge pull request #158 from helloextend/Orders-API-Hotfix
Browse files Browse the repository at this point in the history
Update provinceCode to province
  • Loading branch information
JesusCGuerrero authored Aug 19, 2024
2 parents 0592536 + 647124a commit a177691
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion cartridges/int_extend/cartridge/scripts/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function getCustomer(customer, address) {
city: address.getCity(),
countryCode: address.getCountryCode().toString(),
postalCode: address.getPostalCode(),
provinceCode: address.getStateCode()
province: address.getStateCode()
};

customerObj.shippingAddress = shippingAddress;
Expand Down
4 changes: 2 additions & 2 deletions cartridges/int_extend/cartridge/scripts/extendHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function getCustomer(order) {
city: address.getCity(),
countryCode: address.getCountryCode().toString(),
postalCode: address.getPostalCode(),
provinceCode: address.getStateCode()
province: address.getStateCode()
}
};

Expand All @@ -281,7 +281,7 @@ function getShippingAddress(pLi) {
city: address.getCity(),
countryCode: address.getCountryCode().toString(),
postalCode: address.getPostalCode(),
provinceCode: address.getStateCode()
province: address.getStateCode()
};

return JSON.stringify(shippingAddress);
Expand Down
6 changes: 3 additions & 3 deletions cartridges/int_extend/cartridge/scripts/services/restMocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var contractsResponseMock = JSON.stringify({
city: 'San Francisco',
countryCode: 'USA',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
}
},
product: {
Expand Down Expand Up @@ -163,15 +163,15 @@ var refundsResponseMock = JSON.stringify({
city: 'San Francisco',
countryCode: 'US',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
},
shippingAddress: {
address1: '535 Mission Street',
address2: '11th Floor',
city: 'San Francisco',
countryCode: 'US',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
}
},
product: {
Expand Down
2 changes: 1 addition & 1 deletion cartridges/int_extend_sfra/cartridge/scripts/extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function getCustomer(customer, address) {
city: address.getCity(),
countryCode: address.getCountryCode().toString(),
postalCode: address.getPostalCode(),
provinceCode: address.getStateCode()
province: address.getStateCode()
};

customerObj.shippingAddress = shippingAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function getCustomer(order) {
city: address.getCity(),
countryCode: address.getCountryCode().toString(),
postalCode: address.getPostalCode(),
provinceCode: address.getStateCode()
province: address.getStateCode()
}
};

Expand All @@ -88,7 +88,7 @@ function getShippingAddress(pLi) {
city: address.getCity(),
countryCode: address.getCountryCode().toString(),
postalCode: address.getPostalCode(),
provinceCode: address.getStateCode()
province: address.getStateCode()
};

return JSON.stringify(shippingAddress);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ var contractsResponseMock = JSON.stringify({
city: 'San Francisco',
countryCode: 'USA',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
}
},
product: {
Expand Down Expand Up @@ -171,15 +171,15 @@ var refundsResponseMock = JSON.stringify({
city: 'San Francisco',
countryCode: 'US',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
},
shippingAddress: {
address1: '535 Mission Street',
address2: '11th Floor',
city: 'San Francisco',
countryCode: 'US',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
}
},
product: {
Expand Down
12 changes: 6 additions & 6 deletions test/mocks/dw/object/CustomObjectMgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var objects = {
city: 'Nevercity',
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
}
},
LIUUID: '24851-25134'
Expand Down Expand Up @@ -59,7 +59,7 @@ var objects = {
city: 'Nevercity',
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
}
},
LIUUID: '24751-25634'
Expand Down Expand Up @@ -88,7 +88,7 @@ var objects = {
city: 'Nevercity',
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
}
},
LIUUID: '24751-25634'
Expand All @@ -115,7 +115,7 @@ var objects = {
city: 'Nevercity',
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
}
}
}
Expand Down Expand Up @@ -144,7 +144,7 @@ var objects = {
city: 'Nevercity',
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
}
}
}
Expand Down Expand Up @@ -173,7 +173,7 @@ var objects = {
'city': 'Nevercity',
'countryCode': "US",
'postalCode': "94526",
'provinceCode': "CA"
'province': "CA"
}
})
},
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/restServices/responseDataMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var createContractResponseSuccessMock = {
"city": "Nevercity",
"countryCode": "US",
"postalCode": "94526",
"provinceCode": "CA"
"province": "CA"
}
},
"product": {
Expand Down
6 changes: 3 additions & 3 deletions test/mocks/restServices/restMocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var contractsResponseMock = JSON.stringify({
city: 'San Francisco',
countryCode: 'USA',
postalCode: '94526',
provinceCode: 'CA'
province: 'CA'
}
},
product: {
Expand Down Expand Up @@ -163,15 +163,15 @@ var refundsResponseMock = JSON.stringify({
city: "San Francisco",
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
},
shippingAddress: {
address1: "535 Mission Street",
address2: "11th Floor",
city: "San Francisco",
countryCode: "US",
postalCode: "94526",
provinceCode: "CA"
province: "CA"
}
},
product: {
Expand Down

0 comments on commit a177691

Please sign in to comment.