@mitumba/sdk 5.28.0 → 5.29.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.
package/dist/index.d.mts CHANGED
@@ -3024,11 +3024,16 @@ interface CreateCheckoutInput {
3024
3024
  address_id: string;
3025
3025
  /** One per buyer intent, 8 to 128 characters. A retry with the same key returns the same checkout. */
3026
3026
  idempotency_key: string;
3027
- /** Exactly one per shop in the cart: the delivery quote picked for that shop. */
3027
+ /** Exactly one per shop being ordered from: the delivery quote picked for that shop. */
3028
3028
  deliveries: Array<{
3029
3029
  store_id: string;
3030
3030
  quote_id: string;
3031
3031
  }>;
3032
+ /**
3033
+ * The cart lines to order, by listing id (1 to 200). Every other line stays in the cart, and
3034
+ * `deliveries` covers only the shops of these lines. Omitted: the whole cart.
3035
+ */
3036
+ listing_ids?: string[];
3032
3037
  }
3033
3038
  type CheckoutState = 'awaiting_payment' | 'paid' | 'expired' | 'cancelled';
3034
3039
  /** One shop's order within a checkout. */
@@ -3076,7 +3081,7 @@ type CancelCheckoutResponse = GetCheckoutResponse;
3076
3081
  type CancelCheckoutRefusalCode = 'checkout_payment_in_progress' | 'checkout_not_cancellable' | 'not_found';
3077
3082
  /** Why a checkout was refused: the error body, keyed by `error`. */
3078
3083
  type CheckoutRefusal = {
3079
- error: 'invalid_input' | 'empty_cart' | 'cannot_buy_own' | 'invalid_deliveries';
3084
+ error: 'invalid_input' | 'empty_cart' | 'cannot_buy_own' | 'invalid_deliveries' | 'invalid_selection';
3080
3085
  } | {
3081
3086
  error: 'address_not_found';
3082
3087
  } | {
package/dist/index.d.ts CHANGED
@@ -3024,11 +3024,16 @@ interface CreateCheckoutInput {
3024
3024
  address_id: string;
3025
3025
  /** One per buyer intent, 8 to 128 characters. A retry with the same key returns the same checkout. */
3026
3026
  idempotency_key: string;
3027
- /** Exactly one per shop in the cart: the delivery quote picked for that shop. */
3027
+ /** Exactly one per shop being ordered from: the delivery quote picked for that shop. */
3028
3028
  deliveries: Array<{
3029
3029
  store_id: string;
3030
3030
  quote_id: string;
3031
3031
  }>;
3032
+ /**
3033
+ * The cart lines to order, by listing id (1 to 200). Every other line stays in the cart, and
3034
+ * `deliveries` covers only the shops of these lines. Omitted: the whole cart.
3035
+ */
3036
+ listing_ids?: string[];
3032
3037
  }
3033
3038
  type CheckoutState = 'awaiting_payment' | 'paid' | 'expired' | 'cancelled';
3034
3039
  /** One shop's order within a checkout. */
@@ -3076,7 +3081,7 @@ type CancelCheckoutResponse = GetCheckoutResponse;
3076
3081
  type CancelCheckoutRefusalCode = 'checkout_payment_in_progress' | 'checkout_not_cancellable' | 'not_found';
3077
3082
  /** Why a checkout was refused: the error body, keyed by `error`. */
3078
3083
  type CheckoutRefusal = {
3079
- error: 'invalid_input' | 'empty_cart' | 'cannot_buy_own' | 'invalid_deliveries';
3084
+ error: 'invalid_input' | 'empty_cart' | 'cannot_buy_own' | 'invalid_deliveries' | 'invalid_selection';
3080
3085
  } | {
3081
3086
  error: 'address_not_found';
3082
3087
  } | {
package/dist/index.js CHANGED
@@ -2485,6 +2485,7 @@ var REFUSAL_CODES = /* @__PURE__ */ new Set([
2485
2485
  "empty_cart",
2486
2486
  "cannot_buy_own",
2487
2487
  "invalid_deliveries",
2488
+ "invalid_selection",
2488
2489
  "address_not_found",
2489
2490
  "idempotency_conflict",
2490
2491
  "listing_unavailable",