@proxy-checkout/server-js 0.0.8-prx-124.128.1 → 0.0.8-prx-124.129.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.
@@ -101,8 +101,8 @@ export interface ProxySessionCartResult {
101
101
  readonly currency: string;
102
102
  }
103
103
  export interface RecordProviderBindingInput extends ProxyCheckoutServerRequestOptions {
104
- /** Checkout commercial mode required to safely infer the deprecated binding into an acquisition. */
105
- readonly commercialMode: "one_time" | "subscription";
104
+ /** Required for Stripe so Proxy can safely infer the deprecated binding into an acquisition. */
105
+ readonly commercialMode?: "one_time" | "subscription";
106
106
  readonly providerCheckoutSessionId: string;
107
107
  readonly psp: string;
108
108
  }
@@ -101,8 +101,8 @@ export interface ProxySessionCartResult {
101
101
  readonly currency: string;
102
102
  }
103
103
  export interface RecordProviderBindingInput extends ProxyCheckoutServerRequestOptions {
104
- /** Checkout commercial mode required to safely infer the deprecated binding into an acquisition. */
105
- readonly commercialMode: "one_time" | "subscription";
104
+ /** Required for Stripe so Proxy can safely infer the deprecated binding into an acquisition. */
105
+ readonly commercialMode?: "one_time" | "subscription";
106
106
  readonly providerCheckoutSessionId: string;
107
107
  readonly psp: string;
108
108
  }
@@ -142,7 +142,7 @@ class ProxySessionsResource {
142
142
  */
143
143
  async recordProviderBinding(proxySessionId, input) {
144
144
  const response = await this.httpClient.request("POST", `/proxy_sessions/${encodeURIComponent(proxySessionId)}/provider_bindings`, {
145
- commercial_mode: input.commercialMode,
145
+ ...(input.commercialMode === undefined ? {} : { commercial_mode: input.commercialMode }),
146
146
  provider_checkout_session_id: input.providerCheckoutSessionId,
147
147
  psp: input.psp,
148
148
  }, { requestId: input.requestId });
@@ -1,3 +1,3 @@
1
1
  export declare const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
2
- export declare const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.128.1";
3
- export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.8-prx-124.128.1";
2
+ export declare const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.129.1";
3
+ export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.8-prx-124.129.1";
@@ -1,3 +1,3 @@
1
1
  export declare const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
2
- export declare const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.128.1";
3
- export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.8-prx-124.128.1";
2
+ export declare const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.129.1";
3
+ export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.8-prx-124.129.1";
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.proxyCheckoutServerSdkUserAgent = exports.proxyCheckoutServerSdkVersion = exports.proxyCheckoutServerSdkName = void 0;
4
4
  exports.proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
5
- exports.proxyCheckoutServerSdkVersion = "0.0.8-prx-124.128.1";
5
+ exports.proxyCheckoutServerSdkVersion = "0.0.8-prx-124.129.1";
6
6
  exports.proxyCheckoutServerSdkUserAgent = `${exports.proxyCheckoutServerSdkName}/${exports.proxyCheckoutServerSdkVersion}`;
@@ -101,8 +101,8 @@ export interface ProxySessionCartResult {
101
101
  readonly currency: string;
102
102
  }
103
103
  export interface RecordProviderBindingInput extends ProxyCheckoutServerRequestOptions {
104
- /** Checkout commercial mode required to safely infer the deprecated binding into an acquisition. */
105
- readonly commercialMode: "one_time" | "subscription";
104
+ /** Required for Stripe so Proxy can safely infer the deprecated binding into an acquisition. */
105
+ readonly commercialMode?: "one_time" | "subscription";
106
106
  readonly providerCheckoutSessionId: string;
107
107
  readonly psp: string;
108
108
  }
@@ -139,7 +139,7 @@ export class ProxySessionsResource {
139
139
  */
140
140
  async recordProviderBinding(proxySessionId, input) {
141
141
  const response = await this.httpClient.request("POST", `/proxy_sessions/${encodeURIComponent(proxySessionId)}/provider_bindings`, {
142
- commercial_mode: input.commercialMode,
142
+ ...(input.commercialMode === undefined ? {} : { commercial_mode: input.commercialMode }),
143
143
  provider_checkout_session_id: input.providerCheckoutSessionId,
144
144
  psp: input.psp,
145
145
  }, { requestId: input.requestId });
@@ -1,3 +1,3 @@
1
1
  export declare const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
2
- export declare const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.128.1";
3
- export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.8-prx-124.128.1";
2
+ export declare const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.129.1";
3
+ export declare const proxyCheckoutServerSdkUserAgent = "@proxy-checkout/server-js/0.0.8-prx-124.129.1";
@@ -1,3 +1,3 @@
1
1
  export const proxyCheckoutServerSdkName = "@proxy-checkout/server-js";
2
- export const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.128.1";
2
+ export const proxyCheckoutServerSdkVersion = "0.0.8-prx-124.129.1";
3
3
  export const proxyCheckoutServerSdkUserAgent = `${proxyCheckoutServerSdkName}/${proxyCheckoutServerSdkVersion}`;
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "types": "./dist/esm/index.d.ts",
10
- "version": "0.0.8-prx-124.128.1",
10
+ "version": "0.0.8-prx-124.129.1",
11
11
  "devDependencies": {
12
12
  "@types/node": "^24.12.4",
13
13
  "@vitest/coverage-v8": "4.1.7",