Skip to content

Commit

Permalink
feat(provider) INT-69 Added variant_id:variantId to order-mapper to s…
Browse files Browse the repository at this point in the history
…upport Vantiv MC/V/L3 request data
  • Loading branch information
mhuckaby committed Oct 6, 2017
1 parent 80d12f8 commit 6487c21
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/payment/v1/payment-mappers/order-mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default class OrderMapper {

return cart.items.map(itemData => omitNil({
code: itemData.id,
variant_id: itemData.variantId,
name: itemData.name,
price: itemData.integerAmount,
quantity: itemData.quantity,
Expand Down
1 change: 1 addition & 0 deletions test/mocks/payment-request-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const paymentRequestDataMock = {
quantity: 1,
sku: '123456789',
type: 'ItemPhysicalEntity',
variantId: 13,
},
],
},
Expand Down
1 change: 1 addition & 0 deletions test/payment/v1/payment-mappers/order-mapper.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ describe('OrderMapper', () => {
code: data.cart.items[0].id,
name: data.cart.items[0].name,
price: data.cart.items[0].integerAmount,
variant_id: data.cart.items[0].variantId,
quantity: data.cart.items[0].quantity,
sku: data.cart.items[0].sku,
},
Expand Down

0 comments on commit 6487c21

Please sign in to comment.