@lookiero/checkout 0.2.34 → 0.2.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -20,8 +20,8 @@ const EXPECTED_BODY = MatchersV3.like(checkoutResponse);
|
|
|
20
20
|
describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutById API", () => {
|
|
21
21
|
it("returns a valid checkout for the given id", () => {
|
|
22
22
|
provider
|
|
23
|
-
.given("
|
|
24
|
-
.uponReceiving("
|
|
23
|
+
.given("a valid checkout for the given id")
|
|
24
|
+
.uponReceiving("checkout projection")
|
|
25
25
|
.withRequest({
|
|
26
26
|
method: "POST",
|
|
27
27
|
path: "/api/view-checkout-by-id",
|
package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js
CHANGED
|
@@ -2,7 +2,7 @@ import { toCheckoutProjection } from "./checkout";
|
|
|
2
2
|
const httpFirstAvailableCheckoutByCustomerIdView = ({ httpPost }) => async ({ customerId, signal }) => {
|
|
3
3
|
const response = await httpPost({
|
|
4
4
|
endpoint: "/view-first-available-checkout-by-customer-id",
|
|
5
|
-
body: {
|
|
5
|
+
body: { customerId },
|
|
6
6
|
signal,
|
|
7
7
|
});
|
|
8
8
|
return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lookiero/checkout",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"uuid": "^9.0.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@lookiero/aurora-next": "
|
|
42
|
+
"@lookiero/aurora-next": "3.0.184",
|
|
43
43
|
"react": "^18.0.0",
|
|
44
44
|
"react-dom": "^18.0.0",
|
|
45
45
|
"react-native": "^0.70.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@expo/webpack-config": "^0.17.2",
|
|
51
51
|
"@lookiero/aurora-fonts": "^1.0.6",
|
|
52
52
|
"@lookiero/aurora-iconfont": "^2.0.37",
|
|
53
|
-
"@lookiero/aurora-next": "
|
|
53
|
+
"@lookiero/aurora-next": "3.0.184",
|
|
54
54
|
"@pact-foundation/pact": "^10.1.4",
|
|
55
55
|
"@pact-foundation/pact-node": "^10.17.6",
|
|
56
56
|
"@testing-library/react": "^13.4.0",
|