@absolutejs/commerce 0.1.0-beta.0 → 0.1.1-beta.0

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.
@@ -45,6 +45,8 @@ export type CreateCouponInput = {
45
45
  };
46
46
  export type CheckoutSession = {
47
47
  id: string;
48
+ /** Session lifecycle status (e.g. 'complete' | 'open' | 'expired'). */
49
+ status: string | null;
48
50
  paymentStatus: string | null;
49
51
  amountTotalCents: number | null;
50
52
  currency: string | null;
@@ -69,6 +71,8 @@ export type WebhookEvent = {
69
71
  export type PaymentProvider = {
70
72
  createCheckout(input: CreateCheckoutInput): Promise<CheckoutResult>;
71
73
  createCoupon(input: CreateCouponInput): Promise<string>;
74
+ /** Fetch a session's current state (for return pages). */
75
+ retrieveCheckout(sessionId: string): Promise<CheckoutSession>;
72
76
  refundBySession(sessionId: string): Promise<void>;
73
77
  verifyWebhook(payload: string, signature: string): Promise<WebhookEvent>;
74
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/commerce",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.1-beta.0",
4
4
  "description": "Provider-agnostic commerce primitives (cart, orders, fulfillment, shipping) for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",