@checkoutpage/sdk 0.1.30 → 0.1.31
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 +273 -57
- package/dist/index.d.ts +273 -57
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -723,7 +723,7 @@ interface components {
|
|
|
723
723
|
* ]
|
|
724
724
|
*/
|
|
725
725
|
fees?: components["schemas"]["PageFeeInput"][] | null;
|
|
726
|
-
/** @description Custom checkout fields to create.
|
|
726
|
+
/** @description Custom checkout fields to create. When provided, at least one field must be an `email` element with `type` `email` and `required` `true`. When omitted, the page gets Name and Email address fields, plus a required billing Address on checkout and event pages. Forms get Name and Email address only. */
|
|
727
727
|
fields?: components["schemas"]["FieldInput"][] | null;
|
|
728
728
|
/**
|
|
729
729
|
* @description Ordered funnel configuration for this page. Supports intermediate checkout steps, one-click upsells, and confirmation behavior.
|
|
@@ -1200,7 +1200,7 @@ interface components {
|
|
|
1200
1200
|
* ]
|
|
1201
1201
|
*/
|
|
1202
1202
|
fees?: components["schemas"]["PageFeeInput"][] | null;
|
|
1203
|
-
/** @description Custom checkout fields to create.
|
|
1203
|
+
/** @description Custom checkout fields to create. When provided, at least one field must be an `email` element with `type` `email` and `required` `true`. When omitted, the page gets Name and Email address fields, plus a required billing Address on checkout and event pages. Forms get Name and Email address only. */
|
|
1204
1204
|
fields?: components["schemas"]["FieldInput"][] | null;
|
|
1205
1205
|
/**
|
|
1206
1206
|
* @description Ordered funnel configuration for this page. Supports intermediate checkout steps, one-click upsells, and confirmation behavior.
|
|
@@ -1517,7 +1517,7 @@ interface components {
|
|
|
1517
1517
|
* @example <p>Welcome to our <strong>premium</strong> course!</p>
|
|
1518
1518
|
*/
|
|
1519
1519
|
description?: string | null;
|
|
1520
|
-
/** @description Custom checkout fields to create.
|
|
1520
|
+
/** @description Custom checkout fields to create. When provided, at least one field must be an `email` element with `type` `email` and `required` `true`. When omitted, the page gets Name and Email address fields, plus a required billing Address on checkout and event pages. Forms get Name and Email address only. */
|
|
1521
1521
|
fields?: components["schemas"]["FieldInput"][] | null;
|
|
1522
1522
|
/**
|
|
1523
1523
|
* @description Array of file IDs for downloadable files. All file IDs must exist and belong to your account.
|
|
@@ -2161,6 +2161,10 @@ interface components {
|
|
|
2161
2161
|
allowDynamicDescription?: boolean | null;
|
|
2162
2162
|
/** @description Whether the compare-at price can be overridden via URL query parameters. */
|
|
2163
2163
|
allowDynamicDiscountedFromPrice?: boolean | null;
|
|
2164
|
+
/** @description Whether a price's label can be set dynamically via URL parameters. */
|
|
2165
|
+
allowDynamicLabel?: boolean | null;
|
|
2166
|
+
/** @description Whether a price can be preselected (and revealed if hidden) via URL parameters. */
|
|
2167
|
+
allowDynamicPreselectedPrice?: boolean | null;
|
|
2164
2168
|
/** @description Whether the price can be overridden via URL query parameters. */
|
|
2165
2169
|
allowDynamicPrice?: boolean | null;
|
|
2166
2170
|
/** @description Whether the redirect URL can be overridden via URL query parameters. */
|
|
@@ -3000,7 +3004,7 @@ interface components {
|
|
|
3000
3004
|
*/
|
|
3001
3005
|
placeholder?: string | null;
|
|
3002
3006
|
/**
|
|
3003
|
-
* @description External reference ID for integration purposes.
|
|
3007
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
3004
3008
|
* @example custom_field_1
|
|
3005
3009
|
*/
|
|
3006
3010
|
reference?: string | null;
|
|
@@ -4293,7 +4297,7 @@ interface components {
|
|
|
4293
4297
|
/** @description Trial period in days. */
|
|
4294
4298
|
trialPeriodDays?: number | null;
|
|
4295
4299
|
} | null;
|
|
4296
|
-
/** @description Merchant-facing internal id (e.g.
|
|
4300
|
+
/** @description Merchant-facing internal id (e.g. price_one_time_fixed_5000). */
|
|
4297
4301
|
reference?: string | null;
|
|
4298
4302
|
/** @description One-time setup fee in cents. */
|
|
4299
4303
|
setupFee?: number | null;
|
|
@@ -4396,7 +4400,7 @@ interface components {
|
|
|
4396
4400
|
/** @description Trial period in days for subscriptions. */
|
|
4397
4401
|
trialPeriodDays?: number | null;
|
|
4398
4402
|
} | null;
|
|
4399
|
-
/** @description Merchant-facing internal id (
|
|
4403
|
+
/** @description Merchant-facing internal id (SKU-like). Derived from the price data when omitted, e.g. price_one_time_fixed_5000. A price resent by id keeps its stored reference. */
|
|
4400
4404
|
reference?: string | null;
|
|
4401
4405
|
/** @description One-time setup fee in cents. */
|
|
4402
4406
|
setupFee?: number | null;
|
|
@@ -4806,7 +4810,7 @@ interface components {
|
|
|
4806
4810
|
/** @description Price ids this variant group is scoped to. */
|
|
4807
4811
|
priceIds?: string[] | null;
|
|
4808
4812
|
/**
|
|
4809
|
-
* @description External reference ID.
|
|
4813
|
+
* @description External reference ID. Generated from the variant name when omitted.
|
|
4810
4814
|
* @example fd3136f8-da1f-4a4c-b381-32a097b60c38
|
|
4811
4815
|
*/
|
|
4812
4816
|
reference?: string | null;
|
|
@@ -5284,7 +5288,7 @@ interface components {
|
|
|
5284
5288
|
/** @description Price ids this variant group is scoped to. Required when the product has multiple prices. */
|
|
5285
5289
|
priceIds?: (components["schemas"]["UniqueIdentifier"] & unknown)[] | null;
|
|
5286
5290
|
/**
|
|
5287
|
-
* @description External reference ID.
|
|
5291
|
+
* @description External reference ID. Generated from the variant name when omitted.
|
|
5288
5292
|
* @example fd3136f8-da1f-4a4c-b381-32a097b60c38
|
|
5289
5293
|
*/
|
|
5290
5294
|
reference?: string | null;
|
|
@@ -5741,7 +5745,7 @@ interface components {
|
|
|
5741
5745
|
/** @description Trial period in days for subscriptions. */
|
|
5742
5746
|
trialPeriodDays?: number | null;
|
|
5743
5747
|
} | null;
|
|
5744
|
-
/** @description Merchant-facing internal id (
|
|
5748
|
+
/** @description Merchant-facing internal id (SKU-like). Derived from the price data when omitted, e.g. price_one_time_fixed_5000. A price resent by id keeps its stored reference. */
|
|
5745
5749
|
reference?: string | null;
|
|
5746
5750
|
/** @description One-time setup fee in cents. */
|
|
5747
5751
|
setupFee?: number | null;
|
|
@@ -7380,13 +7384,14 @@ interface components {
|
|
|
7380
7384
|
* ]
|
|
7381
7385
|
*/
|
|
7382
7386
|
fees?: components["schemas"]["PageFeeInput"][] | null;
|
|
7387
|
+
/** @description Ordered funnel configuration for this page. Supports intermediate checkout steps, one-click upsells, and confirmation behavior. Field references inside upsell/confirmation redirect steps resolve by `fieldId` (get current field IDs from the page detail response) — the create-time `fieldKey` string is rejected. */
|
|
7383
7388
|
funnelSteps?: components["schemas"]["UpdateFunnelStepInput"][] | null;
|
|
7384
7389
|
/**
|
|
7385
7390
|
* @description Allow Google to index this page for search results. Defaults to `true`.
|
|
7386
7391
|
* @example true
|
|
7387
7392
|
*/
|
|
7388
7393
|
googleIndex?: boolean | null;
|
|
7389
|
-
/** @description Array of images for the page gallery. All referenced file IDs must exist and belong to your account. */
|
|
7394
|
+
/** @description Array of images for the page gallery. All referenced file IDs must exist and belong to your account. Pass null to clear the gallery. */
|
|
7390
7395
|
imageIds?: (components["schemas"]["UniqueIdentifier"] & unknown)[] | null;
|
|
7391
7396
|
invoiceSettings?: components["schemas"]["PageInvoiceSettingsInput"];
|
|
7392
7397
|
/**
|
|
@@ -7394,14 +7399,14 @@ interface components {
|
|
|
7394
7399
|
* @description Deprecated — superseded by `productData.limitSubscriptions.enabled`. Accepted and applied to the page's product.
|
|
7395
7400
|
*/
|
|
7396
7401
|
limitSubscriptions?: {
|
|
7397
|
-
enabled?: boolean;
|
|
7402
|
+
enabled?: boolean | null;
|
|
7398
7403
|
} | null;
|
|
7399
7404
|
/**
|
|
7400
7405
|
* @deprecated
|
|
7401
7406
|
* @description Deprecated — superseded by `productData.limitSubscriptions.limitSubscriptionsStripe.enabled`. Accepted and applied to the page's product.
|
|
7402
7407
|
*/
|
|
7403
7408
|
limitSubscriptionsStripe?: {
|
|
7404
|
-
enabled?: boolean;
|
|
7409
|
+
enabled?: boolean | null;
|
|
7405
7410
|
} | null;
|
|
7406
7411
|
/**
|
|
7407
7412
|
* @description Locale code.
|
|
@@ -7494,15 +7499,66 @@ interface components {
|
|
|
7494
7499
|
* @example false
|
|
7495
7500
|
*/
|
|
7496
7501
|
redirectUrlInsideEmbed?: boolean | null;
|
|
7502
|
+
/**
|
|
7503
|
+
* @description Additional path parameters appended to the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. To reference a field value, use `fieldId` (the persisted field ID, from the page detail response) instead of the create-time `fieldKey`. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url)
|
|
7504
|
+
* @example [
|
|
7505
|
+
* {
|
|
7506
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
7507
|
+
* "key": "fields"
|
|
7508
|
+
* },
|
|
7509
|
+
* {
|
|
7510
|
+
* "identifier": "orderId",
|
|
7511
|
+
* "key": "orderId"
|
|
7512
|
+
* }
|
|
7513
|
+
* ]
|
|
7514
|
+
*/
|
|
7497
7515
|
redirectUrlPath?: {
|
|
7498
|
-
|
|
7516
|
+
/**
|
|
7517
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
7518
|
+
* @example 507f1f77bcf86cd799439011
|
|
7519
|
+
*/
|
|
7520
|
+
fieldId?: string | null;
|
|
7521
|
+
/**
|
|
7522
|
+
* @description Static value or token identifier for this path segment. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
7523
|
+
* @example orderId
|
|
7524
|
+
*/
|
|
7499
7525
|
identifier?: string | null;
|
|
7526
|
+
/**
|
|
7527
|
+
* @description What this path segment resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
7528
|
+
* @example fields
|
|
7529
|
+
*/
|
|
7500
7530
|
key?: string | null;
|
|
7501
7531
|
}[] | null;
|
|
7532
|
+
/**
|
|
7533
|
+
* @description Query parameters for the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. To reference a field value, use `fieldId` instead of the create-time `fieldKey`. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url)
|
|
7534
|
+
* @example [
|
|
7535
|
+
* {
|
|
7536
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
7537
|
+
* "key": "fields",
|
|
7538
|
+
* "parameter": "name"
|
|
7539
|
+
* }
|
|
7540
|
+
* ]
|
|
7541
|
+
*/
|
|
7502
7542
|
redirectUrlQuery?: {
|
|
7503
|
-
|
|
7543
|
+
/**
|
|
7544
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
7545
|
+
* @example 507f1f77bcf86cd799439011
|
|
7546
|
+
*/
|
|
7547
|
+
fieldId?: string | null;
|
|
7548
|
+
/**
|
|
7549
|
+
* @description Static value or token identifier for this query parameter. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
7550
|
+
* @example orderId
|
|
7551
|
+
*/
|
|
7504
7552
|
identifier?: string | null;
|
|
7553
|
+
/**
|
|
7554
|
+
* @description What this query value resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
7555
|
+
* @example fields
|
|
7556
|
+
*/
|
|
7505
7557
|
key?: string | null;
|
|
7558
|
+
/**
|
|
7559
|
+
* @description The query string parameter name to set on the redirect URL.
|
|
7560
|
+
* @example email
|
|
7561
|
+
*/
|
|
7506
7562
|
parameter?: string | null;
|
|
7507
7563
|
}[] | null;
|
|
7508
7564
|
/**
|
|
@@ -7552,23 +7608,23 @@ interface components {
|
|
|
7552
7608
|
*/
|
|
7553
7609
|
slug?: string | null;
|
|
7554
7610
|
/**
|
|
7555
|
-
* @description
|
|
7611
|
+
* @description Publication status of the page.
|
|
7556
7612
|
* @example published
|
|
7557
7613
|
* @enum {string|null}
|
|
7558
7614
|
*/
|
|
7559
7615
|
status?: "published" | "draft" | "archived" | null;
|
|
7560
7616
|
/**
|
|
7561
|
-
* @description Tax configuration for this page.
|
|
7617
|
+
* @description Tax configuration for this page. Defaults to Stripe Tax when omitted.
|
|
7562
7618
|
* @example {
|
|
7563
7619
|
* "enabled": true,
|
|
7564
|
-
* "mode": "
|
|
7620
|
+
* "mode": "stripe"
|
|
7565
7621
|
* }
|
|
7566
7622
|
*/
|
|
7567
7623
|
tax?: {
|
|
7568
|
-
/** @description
|
|
7624
|
+
/** @description Whether to collect tax. When `true`, `mode` must be `fixed` or `stripe`. When `false`, `mode` must be `none` or omitted. */
|
|
7569
7625
|
enabled: boolean;
|
|
7570
7626
|
/**
|
|
7571
|
-
* @description
|
|
7627
|
+
* @description Tax collection mode. `stripe` — Stripe Tax calculates tax automatically based on the customer's address; requires address fields on the page and Stripe Tax configured in the account. `fixed` — a fixed tax rate is applied; configure the rate ID on `productData.fixedTaxRateIds` or rely on the account default rate. Call `list_tax_rates` first to find an existing rate. If no suitable rate exists, use `create_tax_rate` to create one first. `none` — no tax is collected. Defaults to `stripe` when `enabled` is `true`.
|
|
7572
7628
|
* @enum {string}
|
|
7573
7629
|
*/
|
|
7574
7630
|
mode?: "none" | "fixed" | "stripe";
|
|
@@ -7675,7 +7731,7 @@ interface components {
|
|
|
7675
7731
|
* @example <p>Welcome to our <strong>premium</strong> course!</p>
|
|
7676
7732
|
*/
|
|
7677
7733
|
description?: string | null;
|
|
7678
|
-
/** @description Event-specific details like type, dates, location,
|
|
7734
|
+
/** @description Event-specific details like type, dates, location. Ticket-specific discounts (`discounts[].ticketTypeIds`) must reference existing ticket types by `{ id }` — update cannot create new ticket types to key against, so the create-time `{ key }` form is rejected. */
|
|
7679
7735
|
eventDetails?: {
|
|
7680
7736
|
/** @description Total event capacity. Omit for unlimited. */
|
|
7681
7737
|
capacity?: number | null;
|
|
@@ -7809,6 +7865,7 @@ interface components {
|
|
|
7809
7865
|
* ]
|
|
7810
7866
|
*/
|
|
7811
7867
|
fees?: components["schemas"]["PageFeeInput"][] | null;
|
|
7868
|
+
/** @description Ordered funnel configuration for this page. Supports intermediate checkout steps, one-click upsells, and confirmation behavior. Field references inside upsell/confirmation redirect steps resolve by `fieldId` (get current field IDs from the page detail response) — the create-time `fieldKey` string is rejected. */
|
|
7812
7869
|
funnelSteps?: components["schemas"]["UpdateFunnelStepInput"][] | null;
|
|
7813
7870
|
/**
|
|
7814
7871
|
* @description Allow Google to index this page for search results. Defaults to `true`.
|
|
@@ -7904,15 +7961,66 @@ interface components {
|
|
|
7904
7961
|
* @example false
|
|
7905
7962
|
*/
|
|
7906
7963
|
redirectUrlInsideEmbed?: boolean | null;
|
|
7964
|
+
/**
|
|
7965
|
+
* @description Additional path parameters appended to the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. To reference a field value, use `fieldId` (the persisted field ID, from the page detail response) instead of the create-time `fieldKey`. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url)
|
|
7966
|
+
* @example [
|
|
7967
|
+
* {
|
|
7968
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
7969
|
+
* "key": "fields"
|
|
7970
|
+
* },
|
|
7971
|
+
* {
|
|
7972
|
+
* "identifier": "orderId",
|
|
7973
|
+
* "key": "orderId"
|
|
7974
|
+
* }
|
|
7975
|
+
* ]
|
|
7976
|
+
*/
|
|
7907
7977
|
redirectUrlPath?: {
|
|
7908
|
-
|
|
7978
|
+
/**
|
|
7979
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
7980
|
+
* @example 507f1f77bcf86cd799439011
|
|
7981
|
+
*/
|
|
7982
|
+
fieldId?: string | null;
|
|
7983
|
+
/**
|
|
7984
|
+
* @description Static value or token identifier for this path segment. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
7985
|
+
* @example orderId
|
|
7986
|
+
*/
|
|
7909
7987
|
identifier?: string | null;
|
|
7988
|
+
/**
|
|
7989
|
+
* @description What this path segment resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
7990
|
+
* @example fields
|
|
7991
|
+
*/
|
|
7910
7992
|
key?: string | null;
|
|
7911
7993
|
}[] | null;
|
|
7994
|
+
/**
|
|
7995
|
+
* @description Query parameters for the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. To reference a field value, use `fieldId` instead of the create-time `fieldKey`. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url)
|
|
7996
|
+
* @example [
|
|
7997
|
+
* {
|
|
7998
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
7999
|
+
* "key": "fields",
|
|
8000
|
+
* "parameter": "name"
|
|
8001
|
+
* }
|
|
8002
|
+
* ]
|
|
8003
|
+
*/
|
|
7912
8004
|
redirectUrlQuery?: {
|
|
7913
|
-
|
|
8005
|
+
/**
|
|
8006
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
8007
|
+
* @example 507f1f77bcf86cd799439011
|
|
8008
|
+
*/
|
|
8009
|
+
fieldId?: string | null;
|
|
8010
|
+
/**
|
|
8011
|
+
* @description Static value or token identifier for this query parameter. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
8012
|
+
* @example orderId
|
|
8013
|
+
*/
|
|
7914
8014
|
identifier?: string | null;
|
|
8015
|
+
/**
|
|
8016
|
+
* @description What this query value resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
8017
|
+
* @example fields
|
|
8018
|
+
*/
|
|
7915
8019
|
key?: string | null;
|
|
8020
|
+
/**
|
|
8021
|
+
* @description The query string parameter name to set on the redirect URL.
|
|
8022
|
+
* @example email
|
|
8023
|
+
*/
|
|
7916
8024
|
parameter?: string | null;
|
|
7917
8025
|
}[] | null;
|
|
7918
8026
|
/**
|
|
@@ -8125,33 +8233,61 @@ interface components {
|
|
|
8125
8233
|
*/
|
|
8126
8234
|
redirectUrl?: string | null;
|
|
8127
8235
|
/**
|
|
8128
|
-
* @description Optional path values appended to `redirectUrl`.
|
|
8236
|
+
* @description Optional path values appended to `redirectUrl`. To reference a field value, use `fieldId` (the persisted field ID, from the page detail response) — the create-time `fieldKey` string is rejected.
|
|
8129
8237
|
* @example [
|
|
8130
8238
|
* {
|
|
8131
|
-
* "
|
|
8132
|
-
* "key": "
|
|
8239
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
8240
|
+
* "key": "fields"
|
|
8133
8241
|
* }
|
|
8134
8242
|
* ]
|
|
8135
8243
|
*/
|
|
8136
8244
|
redirectUrlPath?: {
|
|
8137
|
-
|
|
8245
|
+
/**
|
|
8246
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
8247
|
+
* @example 507f1f77bcf86cd799439011
|
|
8248
|
+
*/
|
|
8249
|
+
fieldId?: string | null;
|
|
8250
|
+
/**
|
|
8251
|
+
* @description Static value or token identifier for this path segment. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
8252
|
+
* @example orderId
|
|
8253
|
+
*/
|
|
8138
8254
|
identifier?: string | null;
|
|
8255
|
+
/**
|
|
8256
|
+
* @description What this path segment resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
8257
|
+
* @example fields
|
|
8258
|
+
*/
|
|
8139
8259
|
key?: string | null;
|
|
8140
8260
|
}[] | null;
|
|
8141
8261
|
/**
|
|
8142
|
-
* @description Optional query parameters appended to `redirectUrl`.
|
|
8262
|
+
* @description Optional query parameters appended to `redirectUrl`. To reference a field value, use `fieldId` instead of the create-time `fieldKey`.
|
|
8143
8263
|
* @example [
|
|
8144
8264
|
* {
|
|
8145
|
-
* "
|
|
8265
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
8146
8266
|
* "key": "fields",
|
|
8147
8267
|
* "parameter": "email"
|
|
8148
8268
|
* }
|
|
8149
8269
|
* ]
|
|
8150
8270
|
*/
|
|
8151
8271
|
redirectUrlQuery?: {
|
|
8152
|
-
|
|
8272
|
+
/**
|
|
8273
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
8274
|
+
* @example 507f1f77bcf86cd799439011
|
|
8275
|
+
*/
|
|
8276
|
+
fieldId?: string | null;
|
|
8277
|
+
/**
|
|
8278
|
+
* @description Static value or token identifier for this query parameter. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
8279
|
+
* @example orderId
|
|
8280
|
+
*/
|
|
8153
8281
|
identifier?: string | null;
|
|
8282
|
+
/**
|
|
8283
|
+
* @description What this query value resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
8284
|
+
* @example fields
|
|
8285
|
+
*/
|
|
8154
8286
|
key?: string | null;
|
|
8287
|
+
/**
|
|
8288
|
+
* @description The query string parameter name to set on the redirect URL.
|
|
8289
|
+
* @example email
|
|
8290
|
+
*/
|
|
8155
8291
|
parameter?: string | null;
|
|
8156
8292
|
}[] | null;
|
|
8157
8293
|
} | null;
|
|
@@ -8266,8 +8402,20 @@ interface components {
|
|
|
8266
8402
|
* ]
|
|
8267
8403
|
*/
|
|
8268
8404
|
path?: {
|
|
8269
|
-
|
|
8405
|
+
/**
|
|
8406
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
8407
|
+
* @example 507f1f77bcf86cd799439011
|
|
8408
|
+
*/
|
|
8409
|
+
fieldId?: string | null;
|
|
8410
|
+
/**
|
|
8411
|
+
* @description Static value or token identifier for this path segment. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
8412
|
+
* @example orderId
|
|
8413
|
+
*/
|
|
8270
8414
|
identifier?: string | null;
|
|
8415
|
+
/**
|
|
8416
|
+
* @description What this path segment resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
8417
|
+
* @example fields
|
|
8418
|
+
*/
|
|
8271
8419
|
key?: string | null;
|
|
8272
8420
|
}[] | null;
|
|
8273
8421
|
/**
|
|
@@ -8281,9 +8429,25 @@ interface components {
|
|
|
8281
8429
|
* ]
|
|
8282
8430
|
*/
|
|
8283
8431
|
query?: {
|
|
8284
|
-
|
|
8432
|
+
/**
|
|
8433
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
8434
|
+
* @example 507f1f77bcf86cd799439011
|
|
8435
|
+
*/
|
|
8436
|
+
fieldId?: string | null;
|
|
8437
|
+
/**
|
|
8438
|
+
* @description Static value or token identifier for this query parameter. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
8439
|
+
* @example orderId
|
|
8440
|
+
*/
|
|
8285
8441
|
identifier?: string | null;
|
|
8442
|
+
/**
|
|
8443
|
+
* @description What this query value resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
8444
|
+
* @example fields
|
|
8445
|
+
*/
|
|
8286
8446
|
key?: string | null;
|
|
8447
|
+
/**
|
|
8448
|
+
* @description The query string parameter name to set on the redirect URL.
|
|
8449
|
+
* @example email
|
|
8450
|
+
*/
|
|
8287
8451
|
parameter?: string | null;
|
|
8288
8452
|
}[] | null;
|
|
8289
8453
|
/**
|
|
@@ -8511,7 +8675,7 @@ interface components {
|
|
|
8511
8675
|
/** @description Trial period in days for subscriptions. */
|
|
8512
8676
|
trialPeriodDays?: number | null;
|
|
8513
8677
|
} | null;
|
|
8514
|
-
/** @description Merchant-facing internal id (
|
|
8678
|
+
/** @description Merchant-facing internal id (SKU-like). Derived from the price data when omitted, e.g. price_one_time_fixed_5000. A price resent by id keeps its stored reference. */
|
|
8515
8679
|
reference?: string | null;
|
|
8516
8680
|
/** @description One-time setup fee in cents. */
|
|
8517
8681
|
setupFee?: number | null;
|
|
@@ -8717,7 +8881,7 @@ interface components {
|
|
|
8717
8881
|
/** @description Price ids this variant group is scoped to. Required when the product has multiple prices. */
|
|
8718
8882
|
priceIds?: (components["schemas"]["UniqueIdentifier"] & unknown)[] | null;
|
|
8719
8883
|
/**
|
|
8720
|
-
* @description External reference ID.
|
|
8884
|
+
* @description External reference ID. Generated from the variant name when omitted.
|
|
8721
8885
|
* @example fd3136f8-da1f-4a4c-b381-32a097b60c38
|
|
8722
8886
|
*/
|
|
8723
8887
|
reference?: string | null;
|
|
@@ -10135,7 +10299,7 @@ interface operations {
|
|
|
10135
10299
|
*/
|
|
10136
10300
|
placeholder?: string | null;
|
|
10137
10301
|
/**
|
|
10138
|
-
* @description External reference ID for integration purposes.
|
|
10302
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
10139
10303
|
* @example custom_field_1
|
|
10140
10304
|
*/
|
|
10141
10305
|
reference?: string | null;
|
|
@@ -10361,8 +10525,10 @@ interface operations {
|
|
|
10361
10525
|
};
|
|
10362
10526
|
content: {
|
|
10363
10527
|
"application/json": {
|
|
10364
|
-
|
|
10365
|
-
|
|
10528
|
+
data: {
|
|
10529
|
+
message: string;
|
|
10530
|
+
success: boolean;
|
|
10531
|
+
};
|
|
10366
10532
|
};
|
|
10367
10533
|
};
|
|
10368
10534
|
};
|
|
@@ -10602,7 +10768,7 @@ interface operations {
|
|
|
10602
10768
|
*/
|
|
10603
10769
|
placeholder?: string | null;
|
|
10604
10770
|
/**
|
|
10605
|
-
* @description External reference ID for integration purposes.
|
|
10771
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
10606
10772
|
* @example custom_field_1
|
|
10607
10773
|
*/
|
|
10608
10774
|
reference?: string | null;
|
|
@@ -12022,7 +12188,7 @@ interface operations {
|
|
|
12022
12188
|
*/
|
|
12023
12189
|
placeholder?: string | null;
|
|
12024
12190
|
/**
|
|
12025
|
-
* @description External reference ID for integration purposes.
|
|
12191
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
12026
12192
|
* @example custom_field_1
|
|
12027
12193
|
*/
|
|
12028
12194
|
reference?: string | null;
|
|
@@ -12248,8 +12414,10 @@ interface operations {
|
|
|
12248
12414
|
};
|
|
12249
12415
|
content: {
|
|
12250
12416
|
"application/json": {
|
|
12251
|
-
|
|
12252
|
-
|
|
12417
|
+
data: {
|
|
12418
|
+
message: string;
|
|
12419
|
+
success: boolean;
|
|
12420
|
+
};
|
|
12253
12421
|
};
|
|
12254
12422
|
};
|
|
12255
12423
|
};
|
|
@@ -12489,7 +12657,7 @@ interface operations {
|
|
|
12489
12657
|
*/
|
|
12490
12658
|
placeholder?: string | null;
|
|
12491
12659
|
/**
|
|
12492
|
-
* @description External reference ID for integration purposes.
|
|
12660
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
12493
12661
|
* @example custom_field_1
|
|
12494
12662
|
*/
|
|
12495
12663
|
reference?: string | null;
|
|
@@ -14097,6 +14265,7 @@ interface operations {
|
|
|
14097
14265
|
enabled?: boolean | null;
|
|
14098
14266
|
} | null;
|
|
14099
14267
|
} | null;
|
|
14268
|
+
/** @description Ordered funnel configuration for this page. Supports intermediate checkout steps, one-click upsells, and confirmation behavior. Field references inside upsell/confirmation redirect steps resolve by `fieldId` (get current field IDs from the page detail response) — the create-time `fieldKey` string is rejected. */
|
|
14100
14269
|
funnelSteps?: components["schemas"]["UpdateFunnelStepInput"][] | null;
|
|
14101
14270
|
/**
|
|
14102
14271
|
* @description Allow Google to index this page for search results. Defaults to `true`.
|
|
@@ -14148,15 +14317,66 @@ interface operations {
|
|
|
14148
14317
|
* @example false
|
|
14149
14318
|
*/
|
|
14150
14319
|
redirectUrlInsideEmbed?: boolean | null;
|
|
14320
|
+
/**
|
|
14321
|
+
* @description Additional path parameters appended to the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. To reference a field value, use `fieldId` (the persisted field ID, from the page detail response) instead of the create-time `fieldKey`. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url)
|
|
14322
|
+
* @example [
|
|
14323
|
+
* {
|
|
14324
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
14325
|
+
* "key": "fields"
|
|
14326
|
+
* },
|
|
14327
|
+
* {
|
|
14328
|
+
* "identifier": "orderId",
|
|
14329
|
+
* "key": "orderId"
|
|
14330
|
+
* }
|
|
14331
|
+
* ]
|
|
14332
|
+
*/
|
|
14151
14333
|
redirectUrlPath?: {
|
|
14152
|
-
|
|
14334
|
+
/**
|
|
14335
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
14336
|
+
* @example 507f1f77bcf86cd799439011
|
|
14337
|
+
*/
|
|
14338
|
+
fieldId?: string | null;
|
|
14339
|
+
/**
|
|
14340
|
+
* @description Static value or token identifier for this path segment. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
14341
|
+
* @example orderId
|
|
14342
|
+
*/
|
|
14153
14343
|
identifier?: string | null;
|
|
14344
|
+
/**
|
|
14345
|
+
* @description What this path segment resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
14346
|
+
* @example fields
|
|
14347
|
+
*/
|
|
14154
14348
|
key?: string | null;
|
|
14155
14349
|
}[] | null;
|
|
14350
|
+
/**
|
|
14351
|
+
* @description Query parameters for the `redirectUrl`. Applies if `afterPaymentAction` is `redirect` and `redirectUrl` is set. To reference a field value, use `fieldId` instead of the create-time `fieldKey`. [Learn more](https://checkoutpage.com/docs/articles/add-field-and-variant-data-to-redirect-url)
|
|
14352
|
+
* @example [
|
|
14353
|
+
* {
|
|
14354
|
+
* "fieldId": "507f1f77bcf86cd799439011",
|
|
14355
|
+
* "key": "fields",
|
|
14356
|
+
* "parameter": "name"
|
|
14357
|
+
* }
|
|
14358
|
+
* ]
|
|
14359
|
+
*/
|
|
14156
14360
|
redirectUrlQuery?: {
|
|
14157
|
-
|
|
14361
|
+
/**
|
|
14362
|
+
* @description The persisted field's ID, as `fieldId`. Required when `key` is `fields`; on update, field references resolve by `fieldId` rather than the create-time `fieldKey` string, since update requests can't create new fields to key against. Get current field IDs from the page detail response. Rejected unless `key` is `fields`.
|
|
14363
|
+
* @example 507f1f77bcf86cd799439011
|
|
14364
|
+
*/
|
|
14365
|
+
fieldId?: string | null;
|
|
14366
|
+
/**
|
|
14367
|
+
* @description Static value or token identifier for this query parameter. Required unless `key` is `fields` — in that case use `fieldId` instead and omit this. Rejected when `key` is `fields`.
|
|
14368
|
+
* @example orderId
|
|
14369
|
+
*/
|
|
14158
14370
|
identifier?: string | null;
|
|
14371
|
+
/**
|
|
14372
|
+
* @description What this query value resolves to. Set to `fields` to reference a field value collected on the page (pair with `fieldId`); any other value is a static token name (pair with `identifier`).
|
|
14373
|
+
* @example fields
|
|
14374
|
+
*/
|
|
14159
14375
|
key?: string | null;
|
|
14376
|
+
/**
|
|
14377
|
+
* @description The query string parameter name to set on the redirect URL.
|
|
14378
|
+
* @example email
|
|
14379
|
+
*/
|
|
14160
14380
|
parameter?: string | null;
|
|
14161
14381
|
}[] | null;
|
|
14162
14382
|
/**
|
|
@@ -14175,7 +14395,7 @@ interface operations {
|
|
|
14175
14395
|
*/
|
|
14176
14396
|
slug?: string | null;
|
|
14177
14397
|
/**
|
|
14178
|
-
* @description
|
|
14398
|
+
* @description Publication status of the page.
|
|
14179
14399
|
* @example published
|
|
14180
14400
|
* @enum {string|null}
|
|
14181
14401
|
*/
|
|
@@ -14531,7 +14751,7 @@ interface operations {
|
|
|
14531
14751
|
*/
|
|
14532
14752
|
placeholder?: string | null;
|
|
14533
14753
|
/**
|
|
14534
|
-
* @description External reference ID for integration purposes.
|
|
14754
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
14535
14755
|
* @example custom_field_1
|
|
14536
14756
|
*/
|
|
14537
14757
|
reference?: string | null;
|
|
@@ -14757,8 +14977,10 @@ interface operations {
|
|
|
14757
14977
|
};
|
|
14758
14978
|
content: {
|
|
14759
14979
|
"application/json": {
|
|
14760
|
-
|
|
14761
|
-
|
|
14980
|
+
data: {
|
|
14981
|
+
message: string;
|
|
14982
|
+
success: boolean;
|
|
14983
|
+
};
|
|
14762
14984
|
};
|
|
14763
14985
|
};
|
|
14764
14986
|
};
|
|
@@ -14998,7 +15220,7 @@ interface operations {
|
|
|
14998
15220
|
*/
|
|
14999
15221
|
placeholder?: string | null;
|
|
15000
15222
|
/**
|
|
15001
|
-
* @description External reference ID for integration purposes.
|
|
15223
|
+
* @description External reference ID for integration purposes. Generated from the field type or label when omitted.
|
|
15002
15224
|
* @example custom_field_1
|
|
15003
15225
|
*/
|
|
15004
15226
|
reference?: string | null;
|
|
@@ -21641,9 +21863,7 @@ declare class CheckoutPageFieldsResource {
|
|
|
21641
21863
|
create(pageId: string, params: CreateCheckoutPageFieldParams): Promise<CheckoutPageFieldResponse>;
|
|
21642
21864
|
get(pageId: string, fieldId: string): Promise<CheckoutPageFieldResponse>;
|
|
21643
21865
|
update(pageId: string, fieldId: string, params: UpdateCheckoutPageFieldParams): Promise<CheckoutPageFieldResponse>;
|
|
21644
|
-
delete(pageId: string, fieldId: string): Promise<
|
|
21645
|
-
data: CheckoutPageFieldDeleteResponse;
|
|
21646
|
-
}>;
|
|
21866
|
+
delete(pageId: string, fieldId: string): Promise<CheckoutPageFieldDeleteResponse>;
|
|
21647
21867
|
}
|
|
21648
21868
|
declare class CheckoutPagesResource {
|
|
21649
21869
|
readonly fields: CheckoutPageFieldsResource;
|
|
@@ -21663,9 +21883,7 @@ declare class EventFieldsResource {
|
|
|
21663
21883
|
create(pageId: string, params: CreateEventFieldParams): Promise<EventFieldResponse>;
|
|
21664
21884
|
get(pageId: string, fieldId: string): Promise<EventFieldResponse>;
|
|
21665
21885
|
update(pageId: string, fieldId: string, params: UpdateEventFieldParams): Promise<EventFieldResponse>;
|
|
21666
|
-
delete(pageId: string, fieldId: string): Promise<
|
|
21667
|
-
data: EventFieldDeleteResponse;
|
|
21668
|
-
}>;
|
|
21886
|
+
delete(pageId: string, fieldId: string): Promise<EventFieldDeleteResponse>;
|
|
21669
21887
|
}
|
|
21670
21888
|
declare class EventTicketTypesResource {
|
|
21671
21889
|
private client;
|
|
@@ -21705,9 +21923,7 @@ declare class FormFieldsResource {
|
|
|
21705
21923
|
create(pageId: string, params: CreateFormFieldParams): Promise<FormFieldResponse>;
|
|
21706
21924
|
get(pageId: string, fieldId: string): Promise<FormFieldResponse>;
|
|
21707
21925
|
update(pageId: string, fieldId: string, params: UpdateFormFieldParams): Promise<FormFieldResponse>;
|
|
21708
|
-
delete(pageId: string, fieldId: string): Promise<
|
|
21709
|
-
data: FormFieldDeleteResponse;
|
|
21710
|
-
}>;
|
|
21926
|
+
delete(pageId: string, fieldId: string): Promise<FormFieldDeleteResponse>;
|
|
21711
21927
|
}
|
|
21712
21928
|
declare class FormsResource {
|
|
21713
21929
|
private client;
|