@final-commerce/command-frame 0.8.1-online.1 → 0.9.0-preprod.1
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.
- package/dist/CommonTypes.d.ts +0 -14
- package/dist/actions/adjust-inventory/mock.js +20 -0
- package/dist/actions/adjust-inventory/types.d.ts +13 -0
- package/dist/actions/adjust-inventory/types.js +1 -0
- package/dist/actions/get-custom-stock-actions/action.d.ts +5 -0
- package/dist/actions/get-custom-stock-actions/action.js +7 -0
- package/dist/actions/get-custom-stock-actions/mock.d.ts +2 -0
- package/dist/actions/get-custom-stock-actions/mock.js +11 -0
- package/dist/actions/get-custom-stock-actions/types.d.ts +12 -0
- package/dist/actions/get-custom-stock-actions/types.js +2 -0
- package/dist/actions/get-outlets/action.js +2 -2
- package/dist/actions/get-outlets/mock.d.ts +0 -12
- package/dist/actions/get-outlets/mock.js +4 -28
- package/dist/actions/get-outlets/types.d.ts +1 -19
- package/dist/index.d.ts +4 -12
- package/dist/index.js +2 -9
- package/dist/projects/render/mocks.js +2 -10
- package/dist/projects/render/types.d.ts +2 -16
- package/dist/pubsub/topics/index.d.ts +17 -18
- package/dist/pubsub/topics/index.js +17 -18
- package/dist/pubsub/topics/types.d.ts +0 -8
- package/package.json +2 -2
- package/dist/actions/attach-checkout-contact/action.d.ts +0 -6
- package/dist/actions/attach-checkout-contact/action.js +0 -8
- package/dist/actions/attach-checkout-contact/mock.d.ts +0 -15
- package/dist/actions/attach-checkout-contact/mock.js +0 -22
- package/dist/actions/attach-checkout-contact/types.d.ts +0 -35
- package/dist/actions/attach-checkout-contact/types.js +0 -16
- package/dist/actions/resume-checkout/action.d.ts +0 -6
- package/dist/actions/resume-checkout/action.js +0 -8
- package/dist/actions/resume-checkout/mock.d.ts +0 -16
- package/dist/actions/resume-checkout/mock.js +0 -51
- package/dist/actions/resume-checkout/types.d.ts +0 -59
- package/dist/actions/resume-checkout/types.js +0 -13
- package/dist/actions/set-outlet/action.d.ts +0 -6
- package/dist/actions/set-outlet/action.js +0 -8
- package/dist/actions/set-outlet/mock.d.ts +0 -13
- package/dist/actions/set-outlet/mock.js +0 -24
- package/dist/actions/set-outlet/types.d.ts +0 -31
- package/dist/actions/set-outlet/types.js +0 -21
- package/dist/actions/start-checkout/action.d.ts +0 -6
- package/dist/actions/start-checkout/action.js +0 -8
- package/dist/actions/start-checkout/mock.d.ts +0 -16
- package/dist/actions/start-checkout/mock.js +0 -80
- package/dist/actions/start-checkout/types.d.ts +0 -90
- package/dist/actions/start-checkout/types.js +0 -10
- package/dist/pubsub/topics/checkout/checkout-started/types.d.ts +0 -26
- package/dist/pubsub/topics/checkout/checkout-started/types.js +0 -1
- package/dist/pubsub/topics/checkout/index.d.ts +0 -7
- package/dist/pubsub/topics/checkout/index.js +0 -28
- package/dist/pubsub/topics/checkout/payment-completed/types.d.ts +0 -31
- package/dist/pubsub/topics/checkout/payment-completed/types.js +0 -1
- package/dist/pubsub/topics/checkout/payment-failed/types.d.ts +0 -20
- package/dist/pubsub/topics/checkout/payment-failed/types.js +0 -1
- package/dist/pubsub/topics/checkout/types.d.ts +0 -12
- package/dist/pubsub/topics/checkout/types.js +0 -8
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { TopicEvent } from "../../../types";
|
|
2
|
-
/**
|
|
3
|
-
* Payload for payment-failed event
|
|
4
|
-
*
|
|
5
|
-
* ONE DECLINED ATTEMPT, NOT A DEAD CHECKOUT. The order and the mounted payment
|
|
6
|
-
* fields both survive, so the shopper can try another card without the page
|
|
7
|
-
* starting a new checkout.
|
|
8
|
-
*/
|
|
9
|
-
export interface PaymentFailedPayload {
|
|
10
|
-
orderId: string;
|
|
11
|
-
receiptId: string;
|
|
12
|
-
/** The provider's result code, e.g. `Refused`, or an error name. */
|
|
13
|
-
resultCode: string;
|
|
14
|
-
/** Present when the failure carried a message worth showing. */
|
|
15
|
-
message?: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Typed event for payment-failed
|
|
19
|
-
*/
|
|
20
|
-
export type PaymentFailedEvent = TopicEvent<PaymentFailedPayload>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checkout Topic Types
|
|
3
|
-
* Aggregated types for all online-checkout events
|
|
4
|
-
*/
|
|
5
|
-
export * from "./checkout-started/types";
|
|
6
|
-
export * from "./payment-completed/types";
|
|
7
|
-
export * from "./payment-failed/types";
|
|
8
|
-
import type { CheckoutStartedPayload } from "./checkout-started/types";
|
|
9
|
-
import type { PaymentCompletedPayload } from "./payment-completed/types";
|
|
10
|
-
import type { PaymentFailedPayload } from "./payment-failed/types";
|
|
11
|
-
export type CheckoutEventPayload = CheckoutStartedPayload | PaymentCompletedPayload | PaymentFailedPayload;
|
|
12
|
-
export type CheckoutEventType = "checkout-started" | "payment-completed" | "payment-failed";
|