@rechargeapps/storefront-client 1.83.0 → 1.85.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.
@@ -181,7 +181,7 @@ async function rechargeAdminRequest(method, url, { id, query, data, headers } =
181
181
  ...storefrontAccessToken ? { "X-Recharge-Storefront-Access-Token": storefrontAccessToken } : {},
182
182
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
183
183
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
184
- "X-Recharge-Sdk-Version": "1.83.0",
184
+ "X-Recharge-Sdk-Version": "1.85.0",
185
185
  ...headers ? headers : {}
186
186
  };
187
187
  return request.request(method, `${rechargeBaseUrl}${url}`, { id, query, data, headers: reqHeaders });
@@ -15,7 +15,7 @@ async function loadFromOnlineStore(id, country_code) {
15
15
  const { appName, appVersion } = options.getOptions();
16
16
  const headers = {
17
17
  "X-Recharge-Sdk-Fn": "loadFromOnlineStore",
18
- "X-Recharge-Sdk-Version": "1.83.0",
18
+ "X-Recharge-Sdk-Version": "1.85.0",
19
19
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
20
20
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {}
21
21
  };
@@ -30,7 +30,16 @@ async function getTieredDiscount(session, id) {
30
30
  );
31
31
  return tiered_discount;
32
32
  }
33
+ function getTieredDiscountOffers(session, body) {
34
+ return request.rechargeApiRequest(
35
+ "post",
36
+ `/incentives/tiered_discounts/offers`,
37
+ { data: body },
38
+ request.getInternalSession(session, "getTieredDiscountOffers")
39
+ );
40
+ }
33
41
 
34
42
  exports.getTieredDiscount = getTieredDiscount;
43
+ exports.getTieredDiscountOffers = getTieredDiscountOffers;
35
44
  exports.listTieredDiscounts = listTieredDiscounts;
36
45
  //# sourceMappingURL=tieredDiscount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tieredDiscount.js","sources":["../../../src/api/tieredDiscount.ts"],"sourcesContent":["import { TieredDiscount, TieredDiscountsParams, TieredDiscountsResponse, Session } from '../types';\nimport { getInternalSession, rechargeApiRequest } from '../utils/request';\n\nexport function listTieredDiscounts(\n session: Session,\n options?: TieredDiscountsParams\n): Promise<TieredDiscountsResponse> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n return rechargeApiRequest<TieredDiscountsResponse>(\n 'get',\n `/incentives/tiered_discounts`,\n {\n query: options,\n },\n getInternalSession(session, 'listTieredDiscounts')\n );\n}\n\nexport async function getTieredDiscount(session: Session, id: string | number): Promise<TieredDiscount> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n if (id === undefined || id === '') {\n throw new Error('ID is required');\n }\n const { tiered_discount } = await rechargeApiRequest<{ tiered_discount: TieredDiscount }>(\n 'get',\n `/incentives/tiered_discounts/${id}`,\n {},\n getInternalSession(session, 'getTieredDiscount')\n );\n return tiered_discount;\n}\n"],"names":["rechargeApiRequest","getInternalSession"],"mappings":";;;;AAGgB,SAAA,mBAAA,CACd,SACA,OACkC,EAAA;AAClC,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAO,OAAAA,0BAAA;AAAA,IACL,KAAA;AAAA,IACA,CAAA,4BAAA,CAAA;AAAA,IACA;AAAA,MACE,KAAO,EAAA,OAAA;AAAA,KACT;AAAA,IACAC,0BAAA,CAAmB,SAAS,qBAAqB,CAAA;AAAA,GACnD,CAAA;AACF,CAAA;AAEsB,eAAA,iBAAA,CAAkB,SAAkB,EAA8C,EAAA;AACtG,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAI,IAAA,EAAA,KAAO,KAAa,CAAA,IAAA,EAAA,KAAO,EAAI,EAAA;AACjC,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAM,MAAA,EAAE,eAAgB,EAAA,GAAI,MAAMD,0BAAA;AAAA,IAChC,KAAA;AAAA,IACA,gCAAgC,EAAE,CAAA,CAAA;AAAA,IAClC,EAAC;AAAA,IACDC,0BAAA,CAAmB,SAAS,mBAAmB,CAAA;AAAA,GACjD,CAAA;AACA,EAAO,OAAA,eAAA,CAAA;AACT;;;;;"}
1
+ {"version":3,"file":"tieredDiscount.js","sources":["../../../src/api/tieredDiscount.ts"],"sourcesContent":["import {\n TieredDiscount,\n TieredDiscountsParams,\n TieredDiscountsResponse,\n TieredDiscountOffersRequest,\n TieredDiscountOffersResponse,\n Session,\n} from '../types';\nimport { getInternalSession, rechargeApiRequest } from '../utils/request';\n\nexport function listTieredDiscounts(\n session: Session,\n options?: TieredDiscountsParams\n): Promise<TieredDiscountsResponse> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n return rechargeApiRequest<TieredDiscountsResponse>(\n 'get',\n `/incentives/tiered_discounts`,\n {\n query: options,\n },\n getInternalSession(session, 'listTieredDiscounts')\n );\n}\n\nexport async function getTieredDiscount(session: Session, id: string | number): Promise<TieredDiscount> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n if (id === undefined || id === '') {\n throw new Error('ID is required');\n }\n const { tiered_discount } = await rechargeApiRequest<{ tiered_discount: TieredDiscount }>(\n 'get',\n `/incentives/tiered_discounts/${id}`,\n {},\n getInternalSession(session, 'getTieredDiscount')\n );\n return tiered_discount;\n}\n\nexport function getTieredDiscountOffers(\n session: Session,\n body: TieredDiscountOffersRequest\n): Promise<TieredDiscountOffersResponse> {\n return rechargeApiRequest<TieredDiscountOffersResponse>(\n 'post',\n `/incentives/tiered_discounts/offers`,\n { data: body },\n getInternalSession(session, 'getTieredDiscountOffers')\n );\n}\n"],"names":["rechargeApiRequest","getInternalSession"],"mappings":";;;;AAUgB,SAAA,mBAAA,CACd,SACA,OACkC,EAAA;AAClC,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAO,OAAAA,0BAAA;AAAA,IACL,KAAA;AAAA,IACA,CAAA,4BAAA,CAAA;AAAA,IACA;AAAA,MACE,KAAO,EAAA,OAAA;AAAA,KACT;AAAA,IACAC,0BAAA,CAAmB,SAAS,qBAAqB,CAAA;AAAA,GACnD,CAAA;AACF,CAAA;AAEsB,eAAA,iBAAA,CAAkB,SAAkB,EAA8C,EAAA;AACtG,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAI,IAAA,EAAA,KAAO,KAAa,CAAA,IAAA,EAAA,KAAO,EAAI,EAAA;AACjC,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAM,MAAA,EAAE,eAAgB,EAAA,GAAI,MAAMD,0BAAA;AAAA,IAChC,KAAA;AAAA,IACA,gCAAgC,EAAE,CAAA,CAAA;AAAA,IAClC,EAAC;AAAA,IACDC,0BAAA,CAAmB,SAAS,mBAAmB,CAAA;AAAA,GACjD,CAAA;AACA,EAAO,OAAA,eAAA,CAAA;AACT,CAAA;AAEgB,SAAA,uBAAA,CACd,SACA,IACuC,EAAA;AACvC,EAAO,OAAAD,0BAAA;AAAA,IACL,MAAA;AAAA,IACA,CAAA,mCAAA,CAAA;AAAA,IACA,EAAE,MAAM,IAAK,EAAA;AAAA,IACbC,0BAAA,CAAmB,SAAS,yBAAyB,CAAA;AAAA,GACvD,CAAA;AACF;;;;;;"}
package/dist/cjs/index.js CHANGED
@@ -134,6 +134,7 @@ exports.updateSubscriptionAddress = subscription.updateSubscriptionAddress;
134
134
  exports.updateSubscriptionChargeDate = subscription.updateSubscriptionChargeDate;
135
135
  exports.updateSubscriptions = subscription.updateSubscriptions;
136
136
  exports.getTieredDiscount = tieredDiscount.getTieredDiscount;
137
+ exports.getTieredDiscountOffers = tieredDiscount.getTieredDiscountOffers;
137
138
  exports.listTieredDiscounts = tieredDiscount.listTieredDiscounts;
138
139
  exports.api = init.api;
139
140
  exports.initRecharge = init.initRecharge;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -49,7 +49,7 @@ async function rechargeApiRequest(method, url, { id, query, data, headers } = {}
49
49
  "X-Recharge-Sdk-Fn": session.internalFnCall,
50
50
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
51
51
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
52
- "X-Recharge-Sdk-Version": "1.83.0",
52
+ "X-Recharge-Sdk-Version": "1.85.0",
53
53
  "X-Request-Id": session.internalRequestId,
54
54
  ...session.tmp_fn_identifier ? { "X-Recharge-Sdk-Fn-Identifier": session.tmp_fn_identifier } : {},
55
55
  ...headers ? headers : {}
@@ -179,7 +179,7 @@ async function rechargeAdminRequest(method, url, { id, query, data, headers } =
179
179
  ...storefrontAccessToken ? { "X-Recharge-Storefront-Access-Token": storefrontAccessToken } : {},
180
180
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
181
181
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
182
- "X-Recharge-Sdk-Version": "1.83.0",
182
+ "X-Recharge-Sdk-Version": "1.85.0",
183
183
  ...headers ? headers : {}
184
184
  };
185
185
  return request(method, `${rechargeBaseUrl}${url}`, { id, query, data, headers: reqHeaders });
@@ -13,7 +13,7 @@ async function loadFromOnlineStore(id, country_code) {
13
13
  const { appName, appVersion } = getOptions();
14
14
  const headers = {
15
15
  "X-Recharge-Sdk-Fn": "loadFromOnlineStore",
16
- "X-Recharge-Sdk-Version": "1.83.0",
16
+ "X-Recharge-Sdk-Version": "1.85.0",
17
17
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
18
18
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {}
19
19
  };
@@ -28,6 +28,14 @@ async function getTieredDiscount(session, id) {
28
28
  );
29
29
  return tiered_discount;
30
30
  }
31
+ function getTieredDiscountOffers(session, body) {
32
+ return rechargeApiRequest(
33
+ "post",
34
+ `/incentives/tiered_discounts/offers`,
35
+ { data: body },
36
+ getInternalSession(session, "getTieredDiscountOffers")
37
+ );
38
+ }
31
39
 
32
- export { getTieredDiscount, listTieredDiscounts };
40
+ export { getTieredDiscount, getTieredDiscountOffers, listTieredDiscounts };
33
41
  //# sourceMappingURL=tieredDiscount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tieredDiscount.js","sources":["../../../src/api/tieredDiscount.ts"],"sourcesContent":["import { TieredDiscount, TieredDiscountsParams, TieredDiscountsResponse, Session } from '../types';\nimport { getInternalSession, rechargeApiRequest } from '../utils/request';\n\nexport function listTieredDiscounts(\n session: Session,\n options?: TieredDiscountsParams\n): Promise<TieredDiscountsResponse> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n return rechargeApiRequest<TieredDiscountsResponse>(\n 'get',\n `/incentives/tiered_discounts`,\n {\n query: options,\n },\n getInternalSession(session, 'listTieredDiscounts')\n );\n}\n\nexport async function getTieredDiscount(session: Session, id: string | number): Promise<TieredDiscount> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n if (id === undefined || id === '') {\n throw new Error('ID is required');\n }\n const { tiered_discount } = await rechargeApiRequest<{ tiered_discount: TieredDiscount }>(\n 'get',\n `/incentives/tiered_discounts/${id}`,\n {},\n getInternalSession(session, 'getTieredDiscount')\n );\n return tiered_discount;\n}\n"],"names":[],"mappings":";;AAGgB,SAAA,mBAAA,CACd,SACA,OACkC,EAAA;AAClC,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAO,OAAA,kBAAA;AAAA,IACL,KAAA;AAAA,IACA,CAAA,4BAAA,CAAA;AAAA,IACA;AAAA,MACE,KAAO,EAAA,OAAA;AAAA,KACT;AAAA,IACA,kBAAA,CAAmB,SAAS,qBAAqB,CAAA;AAAA,GACnD,CAAA;AACF,CAAA;AAEsB,eAAA,iBAAA,CAAkB,SAAkB,EAA8C,EAAA;AACtG,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAI,IAAA,EAAA,KAAO,KAAa,CAAA,IAAA,EAAA,KAAO,EAAI,EAAA;AACjC,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAM,MAAA,EAAE,eAAgB,EAAA,GAAI,MAAM,kBAAA;AAAA,IAChC,KAAA;AAAA,IACA,gCAAgC,EAAE,CAAA,CAAA;AAAA,IAClC,EAAC;AAAA,IACD,kBAAA,CAAmB,SAAS,mBAAmB,CAAA;AAAA,GACjD,CAAA;AACA,EAAO,OAAA,eAAA,CAAA;AACT;;;;"}
1
+ {"version":3,"file":"tieredDiscount.js","sources":["../../../src/api/tieredDiscount.ts"],"sourcesContent":["import {\n TieredDiscount,\n TieredDiscountsParams,\n TieredDiscountsResponse,\n TieredDiscountOffersRequest,\n TieredDiscountOffersResponse,\n Session,\n} from '../types';\nimport { getInternalSession, rechargeApiRequest } from '../utils/request';\n\nexport function listTieredDiscounts(\n session: Session,\n options?: TieredDiscountsParams\n): Promise<TieredDiscountsResponse> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n return rechargeApiRequest<TieredDiscountsResponse>(\n 'get',\n `/incentives/tiered_discounts`,\n {\n query: options,\n },\n getInternalSession(session, 'listTieredDiscounts')\n );\n}\n\nexport async function getTieredDiscount(session: Session, id: string | number): Promise<TieredDiscount> {\n if (!session.customerId) {\n throw new Error('Not logged in.');\n }\n if (id === undefined || id === '') {\n throw new Error('ID is required');\n }\n const { tiered_discount } = await rechargeApiRequest<{ tiered_discount: TieredDiscount }>(\n 'get',\n `/incentives/tiered_discounts/${id}`,\n {},\n getInternalSession(session, 'getTieredDiscount')\n );\n return tiered_discount;\n}\n\nexport function getTieredDiscountOffers(\n session: Session,\n body: TieredDiscountOffersRequest\n): Promise<TieredDiscountOffersResponse> {\n return rechargeApiRequest<TieredDiscountOffersResponse>(\n 'post',\n `/incentives/tiered_discounts/offers`,\n { data: body },\n getInternalSession(session, 'getTieredDiscountOffers')\n );\n}\n"],"names":[],"mappings":";;AAUgB,SAAA,mBAAA,CACd,SACA,OACkC,EAAA;AAClC,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAO,OAAA,kBAAA;AAAA,IACL,KAAA;AAAA,IACA,CAAA,4BAAA,CAAA;AAAA,IACA;AAAA,MACE,KAAO,EAAA,OAAA;AAAA,KACT;AAAA,IACA,kBAAA,CAAmB,SAAS,qBAAqB,CAAA;AAAA,GACnD,CAAA;AACF,CAAA;AAEsB,eAAA,iBAAA,CAAkB,SAAkB,EAA8C,EAAA;AACtG,EAAI,IAAA,CAAC,QAAQ,UAAY,EAAA;AACvB,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAI,IAAA,EAAA,KAAO,KAAa,CAAA,IAAA,EAAA,KAAO,EAAI,EAAA;AACjC,IAAM,MAAA,IAAI,MAAM,gBAAgB,CAAA,CAAA;AAAA,GAClC;AACA,EAAM,MAAA,EAAE,eAAgB,EAAA,GAAI,MAAM,kBAAA;AAAA,IAChC,KAAA;AAAA,IACA,gCAAgC,EAAE,CAAA,CAAA;AAAA,IAClC,EAAC;AAAA,IACD,kBAAA,CAAmB,SAAS,mBAAmB,CAAA;AAAA,GACjD,CAAA;AACA,EAAO,OAAA,eAAA,CAAA;AACT,CAAA;AAEgB,SAAA,uBAAA,CACd,SACA,IACuC,EAAA;AACvC,EAAO,OAAA,kBAAA;AAAA,IACL,MAAA;AAAA,IACA,CAAA,mCAAA,CAAA;AAAA,IACA,EAAE,MAAM,IAAK,EAAA;AAAA,IACb,kBAAA,CAAmB,SAAS,yBAAyB,CAAA;AAAA,GACvD,CAAA;AACF;;;;"}
package/dist/esm/index.js CHANGED
@@ -19,6 +19,6 @@ export { getPlan, listPlans } from './api/plan.js';
19
19
  export { productSearch } from './api/product.js';
20
20
  export { getShippingCountries, getStoreSettings } from './api/store.js';
21
21
  export { activateSubscription, cancelSubscription, createSubscription, createSubscriptions, deleteSubscriptions, getSubscription, listSubscriptions, skipGiftSubscriptionCharge, skipSubscriptionCharge, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, updateSubscriptions } from './api/subscription.js';
22
- export { getTieredDiscount, listTieredDiscounts } from './api/tieredDiscount.js';
22
+ export { getTieredDiscount, getTieredDiscountOffers, listTieredDiscounts } from './api/tieredDiscount.js';
23
23
  export { api, initRecharge } from './utils/init.js';
24
24
  //# sourceMappingURL=index.js.map
@@ -47,7 +47,7 @@ async function rechargeApiRequest(method, url, { id, query, data, headers } = {}
47
47
  "X-Recharge-Sdk-Fn": session.internalFnCall,
48
48
  ...appName ? { "X-Recharge-Sdk-App-Name": appName } : {},
49
49
  ...appVersion ? { "X-Recharge-Sdk-App-Version": appVersion } : {},
50
- "X-Recharge-Sdk-Version": "1.83.0",
50
+ "X-Recharge-Sdk-Version": "1.85.0",
51
51
  "X-Request-Id": session.internalRequestId,
52
52
  ...session.tmp_fn_identifier ? { "X-Recharge-Sdk-Fn-Identifier": session.tmp_fn_identifier } : {},
53
53
  ...headers ? headers : {}
package/dist/index.d.ts CHANGED
@@ -891,6 +891,52 @@ interface Incentives {
891
891
  /** Tiered discount configurations for the current context. */
892
892
  tiered_discounts: TieredDiscount[];
893
893
  }
894
+ /** A line item in the request body for evaluating tiered discount offers. */
895
+ interface TieredDiscountOfferLineItem {
896
+ external_product_id: string;
897
+ quantity: number;
898
+ total_price: string;
899
+ purchase_type: 'subscription' | 'onetime';
900
+ }
901
+ /** Request body for `POST /incentives/tiered_discounts/offers`. */
902
+ interface TieredDiscountOffersRequest {
903
+ tiered_discount_context: EligibleChargeType;
904
+ charge_id?: number;
905
+ line_items?: TieredDiscountOfferLineItem[];
906
+ presentment_currency?: string;
907
+ }
908
+ /** The target entity (product or collection) a tiered discount offer applies to. */
909
+ interface TieredDiscountOfferTarget {
910
+ type: 'product' | 'collection';
911
+ external_product_id?: string | null;
912
+ collection_id?: string | null;
913
+ collection_title?: string | null;
914
+ }
915
+ /** A single tier within a tiered discount offer response. */
916
+ interface TieredDiscountOfferTier {
917
+ lookup_key: string;
918
+ is_current: boolean;
919
+ discount_type: 'percentage' | 'fixed_amount';
920
+ discount_value: string;
921
+ threshold_type: 'quantity' | 'price';
922
+ threshold_value: string;
923
+ threshold_value_needed: string;
924
+ }
925
+ /** A single tiered discount offer candidate returned by the offers endpoint. */
926
+ interface TieredDiscountOffer {
927
+ tiered_discount_id: number;
928
+ tiered_discount_name: string | null;
929
+ target: TieredDiscountOfferTarget;
930
+ applies_to_external_product_ids: string[];
931
+ tiers: TieredDiscountOfferTier[];
932
+ }
933
+ /** Response from `POST /incentives/tiered_discounts/offers`. */
934
+ interface TieredDiscountOffersResponse {
935
+ charge_id: number | null;
936
+ currency: string;
937
+ presentment_currency: string;
938
+ offers: TieredDiscountOffer[];
939
+ }
894
940
  /** Paginated list response for tiered discounts. */
895
941
  interface TieredDiscountsResponse {
896
942
  /** Cursor for the next page, or `null` if none. */
@@ -987,7 +1033,7 @@ type VariantSelectorStepSetting = StepSettingsCommon & {
987
1033
  };
988
1034
  type StepSettings = StepSettingsCommon & {
989
1035
  data?: Record<string, unknown>;
990
- type: Omit<StepSettingsTypes, 'variantSelector'>;
1036
+ type: Exclude<StepSettingsTypes, 'variantSelector'>;
991
1037
  };
992
1038
  interface MultiStepSettings {
993
1039
  optionImages: string;
@@ -1492,6 +1538,7 @@ interface SubscriptionBase {
1492
1538
  bundle_product?: BundleProduct | null;
1493
1539
  customer_entitlements?: CustomerEntitlement[] | null;
1494
1540
  addons?: Addon[] | null;
1541
+ expires_at?: IsoDateString | null;
1495
1542
  };
1496
1543
  /** The id of the parent subscription. When present, this subscription will be created as a child and linked to the parent. */
1497
1544
  addon_parent_subscription_id?: number;
@@ -1523,7 +1570,7 @@ interface SubscriptionsResponse {
1523
1570
  previous_cursor: null | string;
1524
1571
  subscriptions: Subscription[];
1525
1572
  }
1526
- type SubscriptionIncludes = 'address' | 'customer' | 'metafields' | 'bundle_product' | 'bundle_selections' | 'charge_activities' | 'customer_entitlements' | 'addons';
1573
+ type SubscriptionIncludes = 'address' | 'customer' | 'metafields' | 'bundle_product' | 'bundle_selections' | 'charge_activities' | 'customer_entitlements' | 'addons' | 'expires_at';
1527
1574
  interface GetSubscriptionOptions {
1528
1575
  include?: SubscriptionIncludes[];
1529
1576
  }
@@ -3791,8 +3838,6 @@ interface CustomerPortalSettings {
3791
3838
  enable_paid_memberships_ui: boolean;
3792
3839
  /** Whether quantity upsell UI is enabled in Affinity or not. */
3793
3840
  enable_quantity_upsell_ui_affinity: boolean;
3794
- /** Whether quantity upsell UI is enabled in landing pages or not. */
3795
- enable_quantity_upsell_landing_page_ui: boolean;
3796
3841
  /** Whether the store is using SCIm migrate payments. */
3797
3842
  enable_scim_migrate_payment_methods: boolean;
3798
3843
  /** Whether the store is using Shopify Markets or not. */
@@ -4218,6 +4263,7 @@ declare function deleteSubscriptions(session: Session, addressId: string | numbe
4218
4263
 
4219
4264
  declare function listTieredDiscounts(session: Session, options?: TieredDiscountsParams): Promise<TieredDiscountsResponse>;
4220
4265
  declare function getTieredDiscount(session: Session, id: string | number): Promise<TieredDiscount>;
4266
+ declare function getTieredDiscountOffers(session: Session, body: TieredDiscountOffersRequest): Promise<TieredDiscountOffersResponse>;
4221
4267
 
4222
4268
  /**
4223
4269
  * @internal
@@ -4231,4 +4277,4 @@ declare const api: {
4231
4277
  };
4232
4278
  declare function initRecharge(opt?: InitOptions): void;
4233
4279
 
4234
- export { type ActivateMembershipRequest, type AddToCartCallbackSettings, type Addon, type AddonProduct, type AddonSettings, type AddonType, type AddonsSection, type Address, type AddressIncludes, type AddressListParams, type AddressListResponse, type AddressResponse, type AddressSortBy, type AnalyticsData, type Announcement, type ApplyCreditOptions, type AssociatedAddress, type BaseCardDetails, type BaseProduct, type BaseProductVariant, type BaseVariant, type BasicSubscriptionParams, type BooleanLike, type BooleanNumbers, type BooleanString, type BooleanStringNumbers, type BulkSubscriptionParams, type BundleAppProxy, type BundleData, type BundleDataBaseProduct, type BundleDataCollection, type BundleDataSellingPlan, type BundleDataSellingPlanGroup, type BundleDataVariant, type BundleFilterGroup, type BundlePriceRule, type BundleProduct, type BundleProductGlobalStyles, type BundleProductLayoutSettings, type BundlePurchaseItem, type BundlePurchaseItemParams, type BundleSelection, type BundleSelectionAppProxy, type BundleSelectionItem, type BundleSelectionItemRequiredCreateProps, type BundleSelectionListParams, type BundleSelectionsResponse, type BundleSelectionsSortBy, type BundleSettings, type BundleTemplateSettings, type BundleTemplateType, type BundleTranslations, type BundleVariant, type BundleVariantOptionSource, type BundleVariantRange, type BundleVariantSelectionDefault, type CDNBaseWidgetSettings, type CDNBundleSettings, type CDNBundleVariant, type CDNBundleVariantOptionSource, type CDNPlan, type CDNProduct, type CDNProductAndSettings, type CDNProductKeyObject, type CDNProductQuery_2020_12, type CDNProductQuery_2022_06, type CDNProductRaw, type CDNProductResource, type CDNProductResponseType, type CDNProductType, type CDNProductVariant_2022_06, type CDNProduct_2022_06, type CDNProductsAndSettings, type CDNProductsAndSettingsResource, type CDNStoreSettings, type CDNSubscriptionOption, type CDNVariant, type CDNVersion, type CDNWidgetSettings, type CDNWidgetSettingsRaw, type CDNWidgetSettingsResource, type CRUDRequestOptions, type CancelMembershipRequest, type CancelSubscriptionRequest, type CardDetailsFirstNameLastName, type CardDetailsFullName, type ChangeMembershipRequest, type ChannelSettings, type Charge, type ChargeIncludes, type ChargeListParams, type ChargeListResponse, type ChargeResponse, type ChargeSortBy, type ChargeStatus, type Collection, type CollectionBinding, type CollectionListParams, type CollectionTypes, type CollectionsResponse, type CollectionsSortBy, type ColorString, type CreateAddressRequest, type CreateBundleSelectionRequest, type CreateMetafieldRequest, type CreateOnetimeRequest, type CreatePaymentMethodRequest, type CreateRecipientAddress, type CreateSubscriptionRequest, type CreateSubscriptionsParams, type CreateSubscriptionsRequest, type CreditAccount, type CreditAccountIncludes, type CreditAccountListParams, type CreditAccountType, type CreditAccountsResponse, type CreditAccountsSortBy, type CreditSummaryIncludes, type CrossSellsSection, type CrossSellsSettings, type CurrencyPriceSet, type Customer, type CustomerCreditSummary, type CustomerDeliveryScheduleParams, type CustomerDeliveryScheduleResponse, type CustomerIncludeGiftPurchase, type CustomerIncludes, type CustomerNotification, type CustomerNotificationOptions, type CustomerNotificationTemplate, type CustomerNotificationType, type CustomerPortalAccessOptions, type CustomerPortalAccessResponse, type CustomerPortalSettings, type CustomerSurveyOfferParams, type CustomerSurveyOfferResponse, type CustomerSurveyOffersResponse, type CustomerSurveyReason, type CustomerSurveyReasonsResponse, type DefaultProduct, type DefaultSelection, type DefaultVariant, type DelayOption, type DeleteSubscriptionsParams, type DeleteSubscriptionsRequest, type Delivery, type DeliveryLineItem, type DeliveryOrder, type DeliveryPaymentMethod, type Discount, type DiscountApplicationMethod, type DiscountType, type DynamicBundleItemAppProxy, type DynamicBundlePropertiesAppProxy, type EligibleChargeType, type EligibleLineItemType, type ExternalAttributeSchema, type ExternalId, type ExternalProductStatus, type ExternalTransactionId, type FilterInputType, type FilterMatchMode, type FilterSource, type FirstOption, type GetAddressOptions, type GetChargeOptions, type GetCreditSummaryOptions, type GetCustomerOptions, type GetMembershipProgramOptions, type GetPaymentMethodOptions, type GetRequestOptions, type GetSubscriptionOptions, type GiftPurchase, type GiftPurchasesParams, type GiftPurchasesResponse, type HTMLString, type Incentives, type InitOptions, type InternalSession, type IntervalUnit, type InventoryPolicy, type IsoDateString, type LineItem, type ListParams, type LoginResponse, type Membership, type MembershipBenefit, type MembershipIncludes, type MembershipListParams, type MembershipListResponse, type MembershipProgram, type MembershipProgramIncludes, type MembershipProgramListParams, type MembershipProgramListResponse, type MembershipProgramResponse, type MembershipProgramSortBy, type MembershipProgramStatus, type MembershipResponse, type MembershipStatus, type MembershipsSortBy, type MergeAddressesRequest, type Metafield, type MetafieldOptionalCreateProps, type MetafieldOwnerResource, type MetafieldRequiredCreateProps, type Method, type Modifier, type MultiStepSettings, type OfferAttributes, type OnePageSettings, type Onetime, type OnetimeIncludes, type OnetimeListParams, type OnetimeOptionalCreateProps, type OnetimeRequiredCreateProps, type OnetimeSubscription, type OnetimesResponse, type OnetimesSortBy, type OnlineStoreOptions, type Options, type Order, type OrderIncludes, type OrderListParams, type OrderSortBy, type OrderStatus, type OrderType, type OrdersResponse, type PasswordlessCodeResponse, type PasswordlessOptions, type PasswordlessValidateResponse, type PaymentDetails, type PaymentErrorCallback, type PaymentFieldEventCallback, type PaymentFormConfig, type PaymentFormController, type PaymentFormEventHandlers, type PaymentMethod, type PaymentMethodFormOptions, type PaymentMethodIncludes, type PaymentMethodListParams, type PaymentMethodOptionalCreateProps, type PaymentMethodRequiredCreateProps, type PaymentMethodSortBy, type PaymentMethodStatus, type PaymentMethodTokenCallback, type PaymentMethodsResponse, type PaymentType, type Plan, type PlanListParams, type PlanSortBy, type PlanType, type PlansResponse, type PriceRange, type PriceRule, type PriceSet, type ProcessorName, type Product, type ProductImage, type ProductInclude, type ProductListResponse, type ProductOption, type ProductSearchParams_2020_12, type ProductSearchParams_2022_06, type ProductSearchResponse_2020_12, type ProductSearchResponse_2022_06, type ProductSearchType, type ProductSource, type ProductValueOption, type ProductVariant_2020_12, type ProductVariant_2022_06, type Product_2020_12, type Product_2022_06, type Property, type PublicBundleData, type PublishStatus, type PunchCardProgress, type PunchCardProgressData, type QuantityRange, type RecurringSubscription, type ReferralInfo, type ReferralUrl, type Request, type RequestHeaders, type RequestOptions, type SellingPlan, type SellingPlanAllocation, type SellingPlanGroup, type Session, type ShippingCountriesOptions, type ShippingCountriesResponse, type ShippingCountry, type ShippingLine, type ShippingProvince, type ShopifyStorefrontOptions, type ShopifyUpdatePaymentInfoOptions, type SkipChargeParams, type SkipFutureChargeAddressRequest, type SkipFutureChargeAddressResponse, type SortBy, type SortField, type SortKeys, type StepSettings, type StepSettingsCommon, type StepSettingsTypes, type StoreSettings, type StorefrontEnvironment, type StorefrontOptions, type StorefrontPurchaseOption, type SubType, type Subscription, type SubscriptionBase, type SubscriptionCancelled, type SubscriptionIncludes, type SubscriptionListParams, type SubscriptionOption, type SubscriptionOptionalCreateProps, type SubscriptionPreferences, type SubscriptionRequiredCreateProps, type SubscriptionSortBy, type SubscriptionStatus, type Subscription_2021_01, type SubscriptionsResponse, type TaxLine, type Tier, type TieredDiscount, type TieredDiscountStatus, type TieredDiscountsParams, type TieredDiscountsResponse, type Translations, type UpdateAddressParams, type UpdateAddressRequest, type UpdateBundlePurchaseItem, type UpdateBundleSelectionRequest, type UpdateCustomerRequest, type UpdateMetafieldRequest, type UpdateOnetimeRequest, type UpdatePaymentMethodRequest, type UpdateSubscriptionChargeDateParams, type UpdateSubscriptionParams, type UpdateSubscriptionRequest, type UpdateSubscriptionsParams, type UpdateSubscriptionsRequest, type Variant, type VariantSelector, type VariantSelectorStepSetting, type WidgetIconColor, type WidgetTemplateType, type WidgetVisibility, activateMembership, activateSubscription, api, applyDiscountToAddress, applyDiscountToCharge, cancelMembership, cancelSubscription, changeMembership, claimOfferCustomerSurvey, createAddress, createBundleSelection, createMetafield, createOnetime, createPaymentMethod, createSubscription, createSubscriptions, delayOrder, deleteAddress, deleteBundleSelection, deleteMetafield, deleteOnetime, deleteSubscriptions, getActiveChurnLandingPageURL, getAddress, getBundleId, getBundleSelection, getBundleSelectionId, getCDNBundleSettings, getCDNProduct, getCDNProductAndSettings, getCDNProducts, getCDNProductsAndSettings, getCDNStoreSettings, getCDNWidgetSettings, getCharge, getCollection, getCreditSummary, getCustomer, getCustomerPortalAccess, getCustomerSurveyOffers, getCustomerSurveyReasons, getDeliverySchedule, getDynamicBundleItems, getFailedPaymentMethodRecoveryLandingPageURL, getGiftPurchase, getGiftRedemptionLandingPageURL, getMembership, getMembershipProgram, getOnetime, getOrder, getPaymentMethod, getPlan, getShippingCountries, getStoreSettings, getSubscription, getTieredDiscount, initFrictionlessPaymentV1, initRecharge, type intervalUnit, listAddresses, listBundleSelections, listCharges, listCollectionProducts, listCollections, listCreditAccounts, listGiftPurchases, listMembershipPrograms, listMemberships, listOnetimes, listOrders, listPaymentMethods, listPlans, listSubscriptions, listTieredDiscounts, loadBundleData, loginCustomerPortal, loginShopifyApi, loginShopifyAppProxy, loginWithShopifyCustomerAccount, loginWithShopifyStorefront, type membershipIncludes, mergeAddresses, processCharge, productSearch, removeDiscountsFromAddress, removeDiscountsFromCharge, rescheduleCharge, resetCDNCache, sendCustomerNotification, sendPasswordlessCode, sendPasswordlessCodeAppProxy, setApplyCreditsToNextCharge, skipCharge, skipFutureCharge, skipGiftSubscriptionCharge, skipSubscriptionCharge, unskipCharge, updateAddress, updateBundle, updateBundleSelection, updateCustomer, updateMetafield, updateOnetime, updatePaymentMethod, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, updateSubscriptions, validateBundle, validateBundleSelection, validateDynamicBundle, validatePasswordlessCode, validatePasswordlessCodeAppProxy };
4280
+ export { type ActivateMembershipRequest, type AddToCartCallbackSettings, type Addon, type AddonProduct, type AddonSettings, type AddonType, type AddonsSection, type Address, type AddressIncludes, type AddressListParams, type AddressListResponse, type AddressResponse, type AddressSortBy, type AnalyticsData, type Announcement, type ApplyCreditOptions, type AssociatedAddress, type BaseCardDetails, type BaseProduct, type BaseProductVariant, type BaseVariant, type BasicSubscriptionParams, type BooleanLike, type BooleanNumbers, type BooleanString, type BooleanStringNumbers, type BulkSubscriptionParams, type BundleAppProxy, type BundleData, type BundleDataBaseProduct, type BundleDataCollection, type BundleDataSellingPlan, type BundleDataSellingPlanGroup, type BundleDataVariant, type BundleFilterGroup, type BundlePriceRule, type BundleProduct, type BundleProductGlobalStyles, type BundleProductLayoutSettings, type BundlePurchaseItem, type BundlePurchaseItemParams, type BundleSelection, type BundleSelectionAppProxy, type BundleSelectionItem, type BundleSelectionItemRequiredCreateProps, type BundleSelectionListParams, type BundleSelectionsResponse, type BundleSelectionsSortBy, type BundleSettings, type BundleTemplateSettings, type BundleTemplateType, type BundleTranslations, type BundleVariant, type BundleVariantOptionSource, type BundleVariantRange, type BundleVariantSelectionDefault, type CDNBaseWidgetSettings, type CDNBundleSettings, type CDNBundleVariant, type CDNBundleVariantOptionSource, type CDNPlan, type CDNProduct, type CDNProductAndSettings, type CDNProductKeyObject, type CDNProductQuery_2020_12, type CDNProductQuery_2022_06, type CDNProductRaw, type CDNProductResource, type CDNProductResponseType, type CDNProductType, type CDNProductVariant_2022_06, type CDNProduct_2022_06, type CDNProductsAndSettings, type CDNProductsAndSettingsResource, type CDNStoreSettings, type CDNSubscriptionOption, type CDNVariant, type CDNVersion, type CDNWidgetSettings, type CDNWidgetSettingsRaw, type CDNWidgetSettingsResource, type CRUDRequestOptions, type CancelMembershipRequest, type CancelSubscriptionRequest, type CardDetailsFirstNameLastName, type CardDetailsFullName, type ChangeMembershipRequest, type ChannelSettings, type Charge, type ChargeIncludes, type ChargeListParams, type ChargeListResponse, type ChargeResponse, type ChargeSortBy, type ChargeStatus, type Collection, type CollectionBinding, type CollectionListParams, type CollectionTypes, type CollectionsResponse, type CollectionsSortBy, type ColorString, type CreateAddressRequest, type CreateBundleSelectionRequest, type CreateMetafieldRequest, type CreateOnetimeRequest, type CreatePaymentMethodRequest, type CreateRecipientAddress, type CreateSubscriptionRequest, type CreateSubscriptionsParams, type CreateSubscriptionsRequest, type CreditAccount, type CreditAccountIncludes, type CreditAccountListParams, type CreditAccountType, type CreditAccountsResponse, type CreditAccountsSortBy, type CreditSummaryIncludes, type CrossSellsSection, type CrossSellsSettings, type CurrencyPriceSet, type Customer, type CustomerCreditSummary, type CustomerDeliveryScheduleParams, type CustomerDeliveryScheduleResponse, type CustomerIncludeGiftPurchase, type CustomerIncludes, type CustomerNotification, type CustomerNotificationOptions, type CustomerNotificationTemplate, type CustomerNotificationType, type CustomerPortalAccessOptions, type CustomerPortalAccessResponse, type CustomerPortalSettings, type CustomerSurveyOfferParams, type CustomerSurveyOfferResponse, type CustomerSurveyOffersResponse, type CustomerSurveyReason, type CustomerSurveyReasonsResponse, type DefaultProduct, type DefaultSelection, type DefaultVariant, type DelayOption, type DeleteSubscriptionsParams, type DeleteSubscriptionsRequest, type Delivery, type DeliveryLineItem, type DeliveryOrder, type DeliveryPaymentMethod, type Discount, type DiscountApplicationMethod, type DiscountType, type DynamicBundleItemAppProxy, type DynamicBundlePropertiesAppProxy, type EligibleChargeType, type EligibleLineItemType, type ExternalAttributeSchema, type ExternalId, type ExternalProductStatus, type ExternalTransactionId, type FilterInputType, type FilterMatchMode, type FilterSource, type FirstOption, type GetAddressOptions, type GetChargeOptions, type GetCreditSummaryOptions, type GetCustomerOptions, type GetMembershipProgramOptions, type GetPaymentMethodOptions, type GetRequestOptions, type GetSubscriptionOptions, type GiftPurchase, type GiftPurchasesParams, type GiftPurchasesResponse, type HTMLString, type Incentives, type InitOptions, type InternalSession, type IntervalUnit, type InventoryPolicy, type IsoDateString, type LineItem, type ListParams, type LoginResponse, type Membership, type MembershipBenefit, type MembershipIncludes, type MembershipListParams, type MembershipListResponse, type MembershipProgram, type MembershipProgramIncludes, type MembershipProgramListParams, type MembershipProgramListResponse, type MembershipProgramResponse, type MembershipProgramSortBy, type MembershipProgramStatus, type MembershipResponse, type MembershipStatus, type MembershipsSortBy, type MergeAddressesRequest, type Metafield, type MetafieldOptionalCreateProps, type MetafieldOwnerResource, type MetafieldRequiredCreateProps, type Method, type Modifier, type MultiStepSettings, type OfferAttributes, type OnePageSettings, type Onetime, type OnetimeIncludes, type OnetimeListParams, type OnetimeOptionalCreateProps, type OnetimeRequiredCreateProps, type OnetimeSubscription, type OnetimesResponse, type OnetimesSortBy, type OnlineStoreOptions, type Options, type Order, type OrderIncludes, type OrderListParams, type OrderSortBy, type OrderStatus, type OrderType, type OrdersResponse, type PasswordlessCodeResponse, type PasswordlessOptions, type PasswordlessValidateResponse, type PaymentDetails, type PaymentErrorCallback, type PaymentFieldEventCallback, type PaymentFormConfig, type PaymentFormController, type PaymentFormEventHandlers, type PaymentMethod, type PaymentMethodFormOptions, type PaymentMethodIncludes, type PaymentMethodListParams, type PaymentMethodOptionalCreateProps, type PaymentMethodRequiredCreateProps, type PaymentMethodSortBy, type PaymentMethodStatus, type PaymentMethodTokenCallback, type PaymentMethodsResponse, type PaymentType, type Plan, type PlanListParams, type PlanSortBy, type PlanType, type PlansResponse, type PriceRange, type PriceRule, type PriceSet, type ProcessorName, type Product, type ProductImage, type ProductInclude, type ProductListResponse, type ProductOption, type ProductSearchParams_2020_12, type ProductSearchParams_2022_06, type ProductSearchResponse_2020_12, type ProductSearchResponse_2022_06, type ProductSearchType, type ProductSource, type ProductValueOption, type ProductVariant_2020_12, type ProductVariant_2022_06, type Product_2020_12, type Product_2022_06, type Property, type PublicBundleData, type PublishStatus, type PunchCardProgress, type PunchCardProgressData, type QuantityRange, type RecurringSubscription, type ReferralInfo, type ReferralUrl, type Request, type RequestHeaders, type RequestOptions, type SellingPlan, type SellingPlanAllocation, type SellingPlanGroup, type Session, type ShippingCountriesOptions, type ShippingCountriesResponse, type ShippingCountry, type ShippingLine, type ShippingProvince, type ShopifyStorefrontOptions, type ShopifyUpdatePaymentInfoOptions, type SkipChargeParams, type SkipFutureChargeAddressRequest, type SkipFutureChargeAddressResponse, type SortBy, type SortField, type SortKeys, type StepSettings, type StepSettingsCommon, type StepSettingsTypes, type StoreSettings, type StorefrontEnvironment, type StorefrontOptions, type StorefrontPurchaseOption, type SubType, type Subscription, type SubscriptionBase, type SubscriptionCancelled, type SubscriptionIncludes, type SubscriptionListParams, type SubscriptionOption, type SubscriptionOptionalCreateProps, type SubscriptionPreferences, type SubscriptionRequiredCreateProps, type SubscriptionSortBy, type SubscriptionStatus, type Subscription_2021_01, type SubscriptionsResponse, type TaxLine, type Tier, type TieredDiscount, type TieredDiscountOffer, type TieredDiscountOfferLineItem, type TieredDiscountOfferTarget, type TieredDiscountOfferTier, type TieredDiscountOffersRequest, type TieredDiscountOffersResponse, type TieredDiscountStatus, type TieredDiscountsParams, type TieredDiscountsResponse, type Translations, type UpdateAddressParams, type UpdateAddressRequest, type UpdateBundlePurchaseItem, type UpdateBundleSelectionRequest, type UpdateCustomerRequest, type UpdateMetafieldRequest, type UpdateOnetimeRequest, type UpdatePaymentMethodRequest, type UpdateSubscriptionChargeDateParams, type UpdateSubscriptionParams, type UpdateSubscriptionRequest, type UpdateSubscriptionsParams, type UpdateSubscriptionsRequest, type Variant, type VariantSelector, type VariantSelectorStepSetting, type WidgetIconColor, type WidgetTemplateType, type WidgetVisibility, activateMembership, activateSubscription, api, applyDiscountToAddress, applyDiscountToCharge, cancelMembership, cancelSubscription, changeMembership, claimOfferCustomerSurvey, createAddress, createBundleSelection, createMetafield, createOnetime, createPaymentMethod, createSubscription, createSubscriptions, delayOrder, deleteAddress, deleteBundleSelection, deleteMetafield, deleteOnetime, deleteSubscriptions, getActiveChurnLandingPageURL, getAddress, getBundleId, getBundleSelection, getBundleSelectionId, getCDNBundleSettings, getCDNProduct, getCDNProductAndSettings, getCDNProducts, getCDNProductsAndSettings, getCDNStoreSettings, getCDNWidgetSettings, getCharge, getCollection, getCreditSummary, getCustomer, getCustomerPortalAccess, getCustomerSurveyOffers, getCustomerSurveyReasons, getDeliverySchedule, getDynamicBundleItems, getFailedPaymentMethodRecoveryLandingPageURL, getGiftPurchase, getGiftRedemptionLandingPageURL, getMembership, getMembershipProgram, getOnetime, getOrder, getPaymentMethod, getPlan, getShippingCountries, getStoreSettings, getSubscription, getTieredDiscount, getTieredDiscountOffers, initFrictionlessPaymentV1, initRecharge, type intervalUnit, listAddresses, listBundleSelections, listCharges, listCollectionProducts, listCollections, listCreditAccounts, listGiftPurchases, listMembershipPrograms, listMemberships, listOnetimes, listOrders, listPaymentMethods, listPlans, listSubscriptions, listTieredDiscounts, loadBundleData, loginCustomerPortal, loginShopifyApi, loginShopifyAppProxy, loginWithShopifyCustomerAccount, loginWithShopifyStorefront, type membershipIncludes, mergeAddresses, processCharge, productSearch, removeDiscountsFromAddress, removeDiscountsFromCharge, rescheduleCharge, resetCDNCache, sendCustomerNotification, sendPasswordlessCode, sendPasswordlessCodeAppProxy, setApplyCreditsToNextCharge, skipCharge, skipFutureCharge, skipGiftSubscriptionCharge, skipSubscriptionCharge, unskipCharge, updateAddress, updateBundle, updateBundleSelection, updateCustomer, updateMetafield, updateOnetime, updatePaymentMethod, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, updateSubscriptions, validateBundle, validateBundleSelection, validateDynamicBundle, validatePasswordlessCode, validatePasswordlessCodeAppProxy };