Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
#175: fix Klarna test mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-kovalenko-ct committed Oct 19, 2017
1 parent dc42546 commit 9b5c566
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 76 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
{
"type": "Cart",
"id": "0756a2bb-f1c6-4a96-bcbb-7624f12b9c1a",
"version": 12,
"customerEmail": "[email protected]",
"createdAt": "2017-05-29T08:16:08.351Z",
"lastModifiedAt": "2017-05-29T08:16:08.988Z",
"lineItems": [
{
"id": "0c7b259b-25eb-456e-a85e-9a482fba901a",
"productId": "aa5bf70f-ee70-4587-a7e6-765eeefab252",
"productId":"55555555-5555-5555-5555-555555555555",
"name": {
"en": "Necklace",
"de": "Halskette"
},
"productType": {
"typeId": "product-type",
"id": "9c632515-6d7a-4385-8438-671a822b1b82"
"typeId": "product-type"
},
"productSlug": {
"en": "necklace-123454323454667"
Expand All @@ -28,15 +24,13 @@
"value": {
"currencyCode": "EUR",
"centAmount": 12999
},
"id": "5c3bba8e-ffdf-4e33-9c6a-803e92bb34d7"
}
},
{
"value": {
"currencyCode": "CHF",
"centAmount": 11998
},
"id": "320b1711-a3af-4840-b9c6-e64e3fcfc6b1"
}
}
],
"images": [],
Expand All @@ -47,8 +41,7 @@
"value": {
"currencyCode": "EUR",
"centAmount": 12999
},
"id": "5c3bba8e-ffdf-4e33-9c6a-803e92bb34d7"
}
},
"quantity": 4,
"discountedPrice": {
Expand All @@ -59,8 +52,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -69,8 +61,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -90,8 +81,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -100,8 +90,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -121,8 +110,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -131,8 +119,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -155,8 +142,7 @@
{
"quantity": 4,
"state": {
"typeId": "state",
"id": "9ae7b755-6d83-4316-8c5c-87ec1ef88716"
"typeId": "state"
}
}
],
Expand All @@ -177,15 +163,13 @@
}
},
{
"id": "ea1a6c0f-260a-4040-b00c-e15375e833ce",
"productId": "fbe5f5a7-3ce5-4290-b094-9b79391d01f2",
"productId":"66666666-6666-6666-6666-666666666666",
"name": {
"en": "box",
"de": "Kasten"
},
"productType": {
"typeId": "product-type",
"id": "9c632515-6d7a-4385-8438-671a822b1b82"
"typeId": "product-type"
},
"productSlug": {
"en": "box-2345234523"
Expand All @@ -198,8 +182,7 @@
"value": {
"currencyCode": "EUR",
"centAmount": 0
},
"id": "cc9ffb9f-1433-4707-aaca-74d3365139af"
}
}
],
"images": [],
Expand All @@ -210,8 +193,7 @@
"value": {
"currencyCode": "EUR",
"centAmount": 0
},
"id": "cc9ffb9f-1433-4707-aaca-74d3365139af"
}
},
"quantity": 1,
"discountedPrice": {
Expand All @@ -222,8 +204,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -232,8 +213,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -253,8 +233,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -263,8 +242,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -287,8 +265,7 @@
{
"quantity": 1,
"state": {
"typeId": "state",
"id": "9ae7b755-6d83-4316-8c5c-87ec1ef88716"
"typeId": "state"
}
}
],
Expand All @@ -309,15 +286,13 @@
}
},
{
"id": "7bd2b824-218f-45c2-85ac-be30455d379d",
"productId": "64b7b5b6-1926-44c9-87ee-46d2f17c1538",
"productId":"77777777-7777-7777-7777-777777777777",
"name": {
"en": "Ring",
"de": "Ringe"
},
"productType": {
"typeId": "product-type",
"id": "9c632515-6d7a-4385-8438-671a822b1b82"
"typeId": "product-type"
},
"productSlug": {
"en": "ring-456786468866578"
Expand All @@ -330,15 +305,13 @@
"value": {
"currencyCode": "EUR",
"centAmount": 4923
},
"id": "8ee4277f-91f2-4ee7-b5bc-fa1988b56e14"
}
},
{
"value": {
"currencyCode": "CHF",
"centAmount": 4511
},
"id": "98590d9c-3716-4b5c-a75d-c9dc339660a0"
}
}
],
"images": [],
Expand All @@ -349,8 +322,7 @@
"value": {
"currencyCode": "EUR",
"centAmount": 4923
},
"id": "8ee4277f-91f2-4ee7-b5bc-fa1988b56e14"
}
},
"quantity": 3,
"discountedPrice": {
Expand All @@ -361,8 +333,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -371,8 +342,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -392,8 +362,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -402,8 +371,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -423,8 +391,7 @@
"includedDiscounts": [
{
"discount": {
"typeId": "cart-discount",
"id": "59ae8cb2-26e4-411e-96b5-a13265d334e2"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -433,8 +400,7 @@
},
{
"discount": {
"typeId": "cart-discount",
"id": "f710cf37-4817-40ed-ae1a-8dc09bf2c397"
"typeId": "cart-discount"
},
"discountedAmount": {
"currencyCode": "EUR",
Expand All @@ -457,8 +423,7 @@
{
"quantity": 3,
"state": {
"typeId": "state",
"id": "9ae7b755-6d83-4316-8c5c-87ec1ef88716"
"typeId": "state"
}
}
],
Expand Down Expand Up @@ -533,15 +498,13 @@
"discountCodes": [
{
"discountCode": {
"typeId": "discount-code",
"id": "fdcbc045-b7c2-4dae-9471-31d6b7f04c5d"
"typeId": "discount-code"
},
"state": "MatchesCart"
},
{
"discountCode": {
"typeId": "discount-code",
"id": "076aff82-e711-44a4-9e6e-c9270e953a65"
"typeId": "discount-code"
},
"state": "MatchesCart"
}
Expand All @@ -567,13 +530,11 @@
"subRates": []
},
"taxCategory": {
"typeId": "tax-category",
"id": "ce0fd21f-530e-4ae4-b5ac-d3e601b4b715"
"typeId": "tax-category"
},
"deliveries": [],
"shippingMethod": {
"typeId": "shipping-method",
"id": "c6de349f-edcd-444f-a33f-3b50be7fd34d"
"typeId": "shipping-method"
},
"taxedPrice": {
"totalNet": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"lastModifiedAt": "2017-05-23T15:49:09.238Z",
"lineItems": [
{
"productId":"33333333-3333-3333-3333-333333333333",
"name": {
"de": "Collier Swarovski",
"en": "Necklace Swarovski"
Expand Down Expand Up @@ -71,6 +72,7 @@
}
},
{
"productId":"44444444-4444-4444-4444-444444444444",
"name": {
"de": "Jedes Schmuckstück",
"en": "Every piece"
Expand Down Expand Up @@ -135,6 +137,7 @@
}
},
{
"productId":"88888888-8888-8888-8888-888888888888",
"name": {
"en": "Earrings",
"de": "Ohrringe"
Expand Down

0 comments on commit 9b5c566

Please sign in to comment.