@rechargeapps/storefront-client 0.8.1 → 0.10.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.
Files changed (43) hide show
  1. package/README.md +0 -16
  2. package/dist/cjs/api/auth.js +10 -5
  3. package/dist/cjs/api/auth.js.map +1 -1
  4. package/dist/cjs/api/bundle.js +1 -1
  5. package/dist/cjs/api/bundle.js.map +1 -1
  6. package/dist/cjs/api/cdn.js +21 -21
  7. package/dist/cjs/api/cdn.js.map +1 -1
  8. package/dist/cjs/api/charge.js +0 -5
  9. package/dist/cjs/api/charge.js.map +1 -1
  10. package/dist/cjs/api/{memberships.js → membership.js} +1 -1
  11. package/dist/cjs/api/membership.js.map +1 -0
  12. package/dist/cjs/api/plan.js +19 -0
  13. package/dist/cjs/api/plan.js.map +1 -0
  14. package/dist/cjs/index.js +16 -14
  15. package/dist/cjs/index.js.map +1 -1
  16. package/dist/cjs/utils/init.js +2 -1
  17. package/dist/cjs/utils/init.js.map +1 -1
  18. package/dist/cjs/utils/request.js +3 -3
  19. package/dist/cjs/utils/request.js.map +1 -1
  20. package/dist/esm/api/auth.js +10 -5
  21. package/dist/esm/api/auth.js.map +1 -1
  22. package/dist/esm/api/bundle.js +2 -2
  23. package/dist/esm/api/bundle.js.map +1 -1
  24. package/dist/esm/api/cdn.js +14 -14
  25. package/dist/esm/api/cdn.js.map +1 -1
  26. package/dist/esm/api/charge.js +1 -5
  27. package/dist/esm/api/charge.js.map +1 -1
  28. package/dist/esm/api/{memberships.js → membership.js} +1 -1
  29. package/dist/esm/api/membership.js.map +1 -0
  30. package/dist/esm/api/plan.js +14 -0
  31. package/dist/esm/api/plan.js.map +1 -0
  32. package/dist/esm/index.js +4 -3
  33. package/dist/esm/index.js.map +1 -1
  34. package/dist/esm/utils/init.js +3 -2
  35. package/dist/esm/utils/init.js.map +1 -1
  36. package/dist/esm/utils/request.js +4 -4
  37. package/dist/esm/utils/request.js.map +1 -1
  38. package/dist/index.d.ts +184 -85
  39. package/dist/umd/recharge-storefront-client.min.js +6 -6
  40. package/dist/umd/recharge-storefront-client.min.js.map +1 -1
  41. package/package.json +1 -1
  42. package/dist/cjs/api/memberships.js.map +0 -1
  43. package/dist/esm/api/memberships.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -335,6 +335,9 @@ interface Charge {
335
335
  /** The date time at which the Charge was most recently updated. */
336
336
  updated_at: IsoDateString;
337
337
  }
338
+ interface ChargeResponse {
339
+ charge: Charge;
340
+ }
338
341
  interface ChargeListResponse {
339
342
  next_cursor: null | string;
340
343
  previous_cursor: null | string;
@@ -503,6 +506,12 @@ interface Address {
503
506
  /** The date and time when the address was last updated. */
504
507
  updated_at: IsoDateString;
505
508
  }
509
+ interface SkipFutureChargeAddressResponse {
510
+ charge: Charge;
511
+ }
512
+ interface AddressResponse {
513
+ address: Address;
514
+ }
506
515
  interface AddressListResponse {
507
516
  next_cursor: null | string;
508
517
  previous_cursor: null | string;
@@ -519,7 +528,7 @@ interface AddressListParams extends ListParams<AddressSortBy> {
519
528
 
520
529
  interface Session {
521
530
  apiToken: string;
522
- customerId: string;
531
+ customerId?: string;
523
532
  }
524
533
 
525
534
  /** Returns all addresses from the store, or addresses for the customer given in the parameter. */
@@ -541,7 +550,7 @@ declare function mergeAddresses(session: Session, mergeRequest: MergeAddressesRe
541
550
  */
542
551
  declare function skipFutureCharge(session: Session, id: string | number, skipRequest: SkipFutureChargeAddressRequest): Promise<Charge>;
543
552
 
544
- declare function loginShopifyAppProxy(): Promise<Session | null>;
553
+ declare function loginShopifyAppProxy(): Promise<Session>;
545
554
  declare function loginShopifyApi(customerAccessToken: string, storefrontAccessToken: string): Promise<Session | null>;
546
555
 
547
556
  declare function getCharge(session: Session, id: number | string): Promise<Charge>;
@@ -563,8 +572,6 @@ declare function applyDiscount(session: Session, id: number | string, applyReque
563
572
  declare function removeDiscount(session: Session, id: number | string): Promise<Charge>;
564
573
  declare function skipCharge(session: Session, id: number | string): Promise<Charge>;
565
574
  declare function unskipCharge(session: Session, id: number | string): Promise<Charge>;
566
- /** The charge processing route can be used to process Charges that are in a queued or error status. */
567
- declare function processCharge(session: Session, id: number | string): Promise<Charge>;
568
575
 
569
576
  declare type Method = 'get' | 'post' | 'put' | 'delete';
570
577
  declare type Request = <T>(method: Method, url: string, options?: RequestOptions) => Promise<T>;
@@ -588,6 +595,11 @@ interface RequestOptionsHeaders {
588
595
  }
589
596
  declare type RequestOptions = GetRequestOptions & CRUDRequestOptions & RequestOptionsHeaders;
590
597
 
598
+ interface LoginResponse {
599
+ api_token: string;
600
+ customer_id?: string;
601
+ }
602
+
591
603
  interface BundleSelection {
592
604
  collectionId: string;
593
605
  externalProductId: string;
@@ -948,24 +960,56 @@ interface CDNBundleSettings {
948
960
  variants: CDNBundleVariant[];
949
961
  }
950
962
 
951
- declare type StorefrontEnvironment = 'stage' | 'prod';
952
- interface StorefrontOptions {
953
- storeIdentifier: string;
954
- /** This is only for internal use. Sets the environment where data is fetched from. */
955
- environment: StorefrontEnvironment;
963
+ interface Customer {
964
+ /** Unique numeric identifier for the Customer. */
965
+ id: number;
966
+ /** An object containing analytics data associated with the customer. */
967
+ analytics_data: AnalyticsData;
968
+ /** The date and time when the customer was created. */
969
+ created_at: IsoDateString;
970
+ /** The email address of the customer. */
971
+ email: string;
972
+ /** An object containing external ids for the customer record. */
973
+ external_customer_id: ExternalId;
974
+ /** Date when first charge was processed for the customer. */
975
+ first_charge_processed_at: IsoDateString;
976
+ /** The customer’s first name. */
977
+ first_name: string;
978
+ /** A boolean that indicates if the customer has a payment method that is in dunning (failed charge). */
979
+ has_payment_method_in_dunning: boolean;
980
+ /** Is the payment method valid or not. */
981
+ has_valid_payment_method: boolean;
982
+ /** The unique string identifier used in a customers portal link. */
983
+ hash: string;
984
+ /** The customer’s last name. */
985
+ last_name: string;
986
+ /** The number of active subscriptions on addresses associated with the customer. */
987
+ subscriptions_active_count: number;
988
+ /** The total number of subscriptions created on addresses associated with the customer. */
989
+ subscriptions_total_count: number;
990
+ /** The date and time when the customer was last updated. */
991
+ updated_at: IsoDateString;
992
+ }
993
+ declare type OptionalUpdateProps$2 = 'email' | 'first_name' | 'last_name' | 'external_customer_id';
994
+ declare type UpdateCustomerRequest = Partial<Pick<Customer, OptionalUpdateProps$2>>;
995
+ interface CustomerDeliveryScheduleParams {
996
+ delivery_count_future?: number;
997
+ future_internal?: number;
998
+ date_max?: IsoDateString;
999
+ }
1000
+ interface Delivery {
1001
+ date: IsoDateString;
1002
+ orders: Order[];
1003
+ }
1004
+ interface CustomerDeliveryScheduleResponse {
1005
+ customer: {
1006
+ id: number;
1007
+ email: string;
1008
+ first_name: string;
1009
+ last_name: string;
1010
+ };
1011
+ deliveries: Delivery[];
956
1012
  }
957
-
958
- declare function getProduct(externalProductId: string | number): Promise<CDNProduct>;
959
- declare function getStoreSettings(): Promise<CDNStoreSettings>;
960
- declare function getWidgetSettings(): Promise<CDNWidgetSettings>;
961
- declare function getProductsAndSettings(): Promise<CDNProductsAndSettings>;
962
- declare function getProducts(): Promise<CDNProductKeyObject[]>;
963
- declare function getProductAndSettings(externalProductId: string | number): Promise<CDNProductAndSettings>;
964
- declare function getBundleSettings(externalProductId: string | number): Promise<CDNBundleSettings | null | undefined>;
965
- declare function resetCache(): Promise<void>;
966
-
967
- declare function getBundleId(bundle: Bundle): Promise<string>;
968
- declare function validateBundle(bundle: Bundle): Promise<boolean>;
969
1013
 
970
1014
  declare type MembershipStatus = 'active' | 'inactive';
971
1015
  interface Membership {
@@ -981,6 +1025,9 @@ interface Membership {
981
1025
  subscription_cancelled_at: IsoDateString | null;
982
1026
  image?: string;
983
1027
  }
1028
+ interface MembershipResponse {
1029
+ membership: Membership;
1030
+ }
984
1031
  interface MembershipListResponse {
985
1032
  next_cursor: null | string;
986
1033
  previous_cursor: null | string;
@@ -1013,15 +1060,6 @@ interface CancelMembershipRequest {
1013
1060
  expires_at: IsoDateString;
1014
1061
  }
1015
1062
 
1016
- /** Retrieves membership information for passed in id */
1017
- declare function getMembership(session: Session, id: string | number): Promise<Membership>;
1018
- /** Retrieves a list of memberships */
1019
- declare function listMemberships(session: Session, query?: MembershipListParams): Promise<MembershipListResponse>;
1020
- /** Cancels a membership */
1021
- declare function cancelMembership(session: Session, id: string | number, cancelRequest: CancelMembershipRequest): Promise<Membership>;
1022
- /** Activates a membership */
1023
- declare function activateMembership(session: Session, id: string | number, activateRequest: ActivateMembershipRequest): Promise<Membership>;
1024
-
1025
1063
  interface Onetime {
1026
1064
  /** Unique numeric identifier for the Onetime purchase. */
1027
1065
  id: number;
@@ -1068,8 +1106,8 @@ interface CreateProps {
1068
1106
  add_to_next_charge?: boolean;
1069
1107
  }
1070
1108
  declare type CreateOnetimeRequest = SubType<Onetime, RequiredCreateProps$1, OptionalCreateProps$1> & CreateProps;
1071
- declare type OptionalUpdateProps$2 = 'address_id' | 'next_charge_scheduled_at' | 'properties' | 'quantity' | 'external_variant_id' | 'sku';
1072
- declare type UpdateOnetimeRequest = Partial<Pick<Onetime, OptionalUpdateProps$2>>;
1109
+ declare type OptionalUpdateProps$1 = 'address_id' | 'next_charge_scheduled_at' | 'properties' | 'quantity' | 'external_variant_id' | 'sku';
1110
+ declare type UpdateOnetimeRequest = Partial<Pick<Onetime, OptionalUpdateProps$1>>;
1073
1111
  interface OnetimesResponse {
1074
1112
  next_cursor: null | string;
1075
1113
  previous_cursor: null | string;
@@ -1078,14 +1116,85 @@ interface OnetimesResponse {
1078
1116
  declare type OnetimesSortBy = 'id-asc' | 'id-desc' | 'created_at-asc' | 'created_at-desc' | 'updated_at-asc' | 'updated_at-desc';
1079
1117
  declare type OnetimeListParams = ListParams<OnetimesSortBy>;
1080
1118
 
1081
- declare function getOnetime(session: Session, id: string | number): Promise<Onetime>;
1082
- declare function listOnetimes(session: Session, query?: OnetimeListParams): Promise<OnetimesResponse>;
1083
- declare function createOnetime(session: Session, createRequest: CreateOnetimeRequest): Promise<Onetime>;
1084
- declare function updateOnetime(session: Session, id: string | number, updateRequest: UpdateOnetimeRequest): Promise<Onetime>;
1085
- declare function deleteOnetime(session: Session, id: string | number): Promise<void>;
1119
+ /** @internal */
1120
+ declare type StorefrontEnvironment = 'stage' | 'prod';
1121
+ /** @internal */
1122
+ interface StorefrontOptions {
1123
+ storeIdentifier: string;
1124
+ /** Recharge storefront access token */
1125
+ storefrontAccessToken?: string;
1126
+ /** This is only for internal use. Sets the environment where data is fetched from. */
1127
+ environment: StorefrontEnvironment;
1128
+ }
1129
+ interface InitOptions {
1130
+ storeIdentifier?: string;
1131
+ /** Recharge storefront access token */
1132
+ storefrontAccessToken?: string;
1133
+ }
1086
1134
 
1087
- declare function getOrder(session: Session, id: string | number): Promise<Order>;
1088
- declare function listOrders(session: Session, query?: OrderListParams): Promise<OrdersResponse>;
1135
+ interface ChannelSettings {
1136
+ api: {
1137
+ display: boolean;
1138
+ };
1139
+ checkout_page: {
1140
+ display: boolean;
1141
+ };
1142
+ customer_portal: {
1143
+ display: boolean;
1144
+ };
1145
+ merchant_portal: {
1146
+ display: boolean;
1147
+ };
1148
+ }
1149
+ interface SubscriptionPreferences {
1150
+ charge_interval_frequency: number;
1151
+ cutoff_day_of_month: null | number;
1152
+ cutoff_day_of_week: null | number;
1153
+ expire_after_specific_number_of_charges: null | number;
1154
+ interval_unit: 'day' | 'week' | 'month';
1155
+ order_day_of_month: number;
1156
+ order_day_of_week: null | number;
1157
+ order_interval_frequency: number;
1158
+ }
1159
+ declare type PlanType = 'subscription' | 'prepaid' | 'onetime';
1160
+ interface Plan {
1161
+ /** Unique numeric identifier for the Plan. */
1162
+ id: number;
1163
+ /** An object containing the availability of the plan through various supported channels. */
1164
+ channel_settings: ChannelSettings;
1165
+ /** The time the plan was created. */
1166
+ created_at: IsoDateString;
1167
+ /** If deleted, the time the plan was deleted. */
1168
+ deleted_at: IsoDateString;
1169
+ /** The discount amount applied to the product price when purchased through this Plan. All Plans for a product must have the same discount amount. */
1170
+ discount_amount: string;
1171
+ /** Used in combination with discount amount to determine the discount applied on a product price when purchased through this Plan. */
1172
+ discount_type: 'percentage';
1173
+ /** An object containing the product id as it appears in external platforms. */
1174
+ external_product_id: ExternalId;
1175
+ /** The number indicating the order which the plan will be in a list of related plans. */
1176
+ sort_order: number;
1177
+ /** An object containing the various subscription preferences associated with this plan. */
1178
+ subscription_preferences: SubscriptionPreferences;
1179
+ /** The title of the plan. All Plans for a product must have the same title. */
1180
+ title: string;
1181
+ /** The type of the plan. Products with a prepaid plan cannot have plans of other types. */
1182
+ type: PlanType;
1183
+ /** The time the plan was last updated. */
1184
+ updated_at: IsoDateString;
1185
+ }
1186
+ interface PlansResponse {
1187
+ next_cursor: null | string;
1188
+ previous_cursor: null | string;
1189
+ plans: Plan[];
1190
+ }
1191
+ declare type PlanSortBy = 'id-asc' | 'id-desc' | 'updated_at-asc' | 'updated_at-desc';
1192
+ interface PlanListParams extends ListParams<PlanSortBy> {
1193
+ external_product_id?: string;
1194
+ updated_at_max?: IsoDateString;
1195
+ updated_at_min?: IsoDateString;
1196
+ type?: PlanType;
1197
+ }
1089
1198
 
1090
1199
  interface Subscription {
1091
1200
  /** Unique numeric identifier for the subscription. */
@@ -1183,8 +1292,8 @@ interface SubscriptionListParams extends ListParams<SubscriptionSortBy> {
1183
1292
  declare type RequiredCreateProps = 'address_id' | 'charge_interval_frequency' | 'external_variant_id' | 'next_charge_scheduled_at' | 'order_interval_frequency' | 'order_interval_unit' | 'quantity';
1184
1293
  declare type OptionalCreateProps = 'expire_after_specific_number_of_charges' | 'order_day_of_month' | 'order_day_of_week' | 'external_product_id' | 'product_title' | 'properties' | 'status';
1185
1294
  declare type CreateSubscriptionRequest = SubType<Subscription, RequiredCreateProps, OptionalCreateProps>;
1186
- declare type OptionalUpdateProps$1 = 'charge_interval_frequency' | 'expire_after_specific_number_of_charges' | 'order_day_of_month' | 'order_day_of_week' | 'order_interval_frequency' | 'order_interval_unit' | 'quantity' | 'external_product_id' | 'external_variant_id' | 'properties' | 'sku' | 'sku_override';
1187
- declare type UpdateSubscriptionRequest = Partial<Pick<Subscription, OptionalUpdateProps$1>>;
1295
+ declare type OptionalUpdateProps = 'charge_interval_frequency' | 'expire_after_specific_number_of_charges' | 'order_day_of_month' | 'order_day_of_week' | 'order_interval_frequency' | 'order_interval_unit' | 'quantity' | 'external_product_id' | 'external_variant_id' | 'properties' | 'sku' | 'sku_override';
1296
+ declare type UpdateSubscriptionRequest = Partial<Pick<Subscription, OptionalUpdateProps>>;
1188
1297
  interface UpdateSubscriptionParams {
1189
1298
  /** Controls whether the QUEUED charges linked to the subscription should be regenerated upon subscription update. By default the flag is set to false which will delay charge regeneration 5 seconds. This enables running multiple calls to perform changes and receive responses much faster since the API won’t wait for a charge regeneration to complete. Setting this parameter to true will cause charge regeneration to complete before returning a response. */
1190
1299
  commit?: boolean;
@@ -1195,6 +1304,39 @@ interface CancelSubscriptionRequest {
1195
1304
  send_email?: boolean;
1196
1305
  }
1197
1306
 
1307
+ declare function getCDNProduct(externalProductId: string | number): Promise<CDNProduct>;
1308
+ declare function getCDNStoreSettings(): Promise<CDNStoreSettings>;
1309
+ declare function getCDNWidgetSettings(): Promise<CDNWidgetSettings>;
1310
+ declare function getCDNProductsAndSettings(): Promise<CDNProductsAndSettings>;
1311
+ declare function getCDNProducts(): Promise<CDNProductKeyObject[]>;
1312
+ declare function getCDNProductAndSettings(externalProductId: string | number): Promise<CDNProductAndSettings>;
1313
+ declare function getCDNBundleSettings(externalProductId: string | number): Promise<CDNBundleSettings | null | undefined>;
1314
+ declare function resetCDNCache(): Promise<void>;
1315
+
1316
+ declare function getBundleId(bundle: Bundle): Promise<string>;
1317
+ declare function validateBundle(bundle: Bundle): Promise<boolean>;
1318
+
1319
+ /** Retrieves membership information for passed in id */
1320
+ declare function getMembership(session: Session, id: string | number): Promise<Membership>;
1321
+ /** Retrieves a list of memberships */
1322
+ declare function listMemberships(session: Session, query?: MembershipListParams): Promise<MembershipListResponse>;
1323
+ /** Cancels a membership */
1324
+ declare function cancelMembership(session: Session, id: string | number, cancelRequest: CancelMembershipRequest): Promise<Membership>;
1325
+ /** Activates a membership */
1326
+ declare function activateMembership(session: Session, id: string | number, activateRequest: ActivateMembershipRequest): Promise<Membership>;
1327
+
1328
+ declare function getOnetime(session: Session, id: string | number): Promise<Onetime>;
1329
+ declare function listOnetimes(session: Session, query?: OnetimeListParams): Promise<OnetimesResponse>;
1330
+ declare function createOnetime(session: Session, createRequest: CreateOnetimeRequest): Promise<Onetime>;
1331
+ declare function updateOnetime(session: Session, id: string | number, updateRequest: UpdateOnetimeRequest): Promise<Onetime>;
1332
+ declare function deleteOnetime(session: Session, id: string | number): Promise<void>;
1333
+
1334
+ declare function getOrder(session: Session, id: string | number): Promise<Order>;
1335
+ declare function listOrders(session: Session, query?: OrderListParams): Promise<OrdersResponse>;
1336
+
1337
+ declare function getPlan(session: Session, id: string | number): Promise<Plan>;
1338
+ declare function listPlans(session: Session, query?: PlanListParams): Promise<PlansResponse>;
1339
+
1198
1340
  declare function getSubscription(session: Session, id: string | number): Promise<Subscription>;
1199
1341
  declare function listSubscriptions(session: Session, query?: SubscriptionListParams): Promise<SubscriptionsResponse>;
1200
1342
  /**
@@ -1229,53 +1371,10 @@ declare function cancelSubscription(session: Session, id: string | number, cance
1229
1371
  */
1230
1372
  declare function activateSubscription(session: Session, id: string | number): Promise<Subscription>;
1231
1373
 
1232
- interface Customer {
1233
- /** Unique numeric identifier for the Customer. */
1234
- id: number;
1235
- /** An object containing analytics data associated with the customer. */
1236
- analytics_data: AnalyticsData;
1237
- /** The date and time when the customer was created. */
1238
- created_at: IsoDateString;
1239
- /** The email address of the customer. */
1240
- email: string;
1241
- /** An object containing external ids for the customer record. */
1242
- external_customer_id: ExternalId;
1243
- /** Date when first charge was processed for the customer. */
1244
- first_charge_processed_at: IsoDateString;
1245
- /** The customer’s first name. */
1246
- first_name: string;
1247
- /** A boolean that indicates if the customer has a payment method that is in dunning (failed charge). */
1248
- has_payment_method_in_dunning: boolean;
1249
- /** Is the payment method valid or not. */
1250
- has_valid_payment_method: boolean;
1251
- /** The unique string identifier used in a customers portal link. */
1252
- hash: string;
1253
- /** The customer’s last name. */
1254
- last_name: string;
1255
- /** The number of active subscriptions on addresses associated with the customer. */
1256
- subscriptions_active_count: number;
1257
- /** The total number of subscriptions created on addresses associated with the customer. */
1258
- subscriptions_total_count: number;
1259
- /** The date and time when the customer was last updated. */
1260
- updated_at: IsoDateString;
1261
- }
1262
- declare type OptionalUpdateProps = 'email' | 'first_name' | 'last_name' | 'external_customer_id';
1263
- declare type UpdateCustomerRequest = Partial<Pick<Customer, OptionalUpdateProps>>;
1264
- interface CustomerDeliveryScheduleParams {
1265
- delivery_count_future?: number;
1266
- future_internal?: number;
1267
- date_max?: IsoDateString;
1268
- }
1269
- interface Delivery {
1270
- date: IsoDateString;
1271
- orders: Order[];
1272
- }
1273
-
1274
1374
  declare function getCustomer(session: Session): Promise<Customer>;
1275
1375
  declare function updateCustomer(session: Session, updateRequest: UpdateCustomerRequest): Promise<Customer>;
1276
1376
  declare function getDeliverySchedule(session: Session, query?: CustomerDeliveryScheduleParams): Promise<Delivery[]>;
1277
1377
 
1278
- declare type InitOptions = Omit<Partial<StorefrontOptions>, 'environment'>;
1279
1378
  declare const api: {
1280
1379
  get<T>(url: string, requestOptions?: GetRequestOptions): Promise<T>;
1281
1380
  post<T_1>(url: string, requestOptions?: CRUDRequestOptions): Promise<T_1>;
@@ -1284,4 +1383,4 @@ declare const api: {
1284
1383
  };
1285
1384
  declare function initRecharge(opt?: InitOptions): void;
1286
1385
 
1287
- export { Bundle, BundleSelection, BundleTranslations, CDNBaseWidgetSettings, CDNBundleLayoutSettings, CDNBundleSettings, CDNBundleStep, CDNBundleStepOption, CDNBundleVariant, CDNBundleVariantOptionSource, CDNBundleVariantSelectionDefault, CDNPrices, CDNProduct, CDNProductAndSettings, CDNProductKeyObject, CDNProductOption, CDNProductOptionValue, CDNProductRaw, CDNProductResource, CDNProductsAndSettings, CDNProductsAndSettingsResource, CDNSellingPlan, CDNSellingPlanAllocations, CDNSellingPlanGroup, CDNStoreSettings, CDNSubscriptionOption, CDNVariant, CDNVariantOptionValue, CDNWidgetSettings, CDNWidgetSettingsRaw, CDNWidgetSettingsResource, CRUDRequestOptions, FirstOption, GetRequestOptions, InitOptions, IntervalUnit, Method, PriceAdjustmentsType, Request, RequestHeaders, RequestOptions, RequestOptionsHeaders, StorefrontEnvironment, StorefrontOptions, StorefrontPurchaseOption, Translations, WidgetIconColor, WidgetTemplateType, activateMembership, activateSubscription, api, applyDiscount, cancelMembership, cancelSubscription, createAddress, createOnetime, createSubscription, deleteAddress, deleteOnetime, getAddress, getBundleId, getBundleSettings, getCharge, getCustomer, getDeliverySchedule, getMembership, getOnetime, getOrder, getProduct, getProductAndSettings, getProducts, getProductsAndSettings, getStoreSettings, getSubscription, getWidgetSettings, initRecharge, listAddresses, listCharges, listMemberships, listOnetimes, listOrders, listSubscriptions, loginShopifyApi, loginShopifyAppProxy, mergeAddresses, processCharge, removeDiscount, resetCache, skipCharge, skipFutureCharge, unskipCharge, updateAddress, updateCustomer, updateOnetime, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, validateBundle };
1386
+ export { ActivateMembershipRequest, Address, AddressListParams, AddressListResponse, AddressResponse, AddressSortBy, AnalyticsData, ApplyDiscountRequest, AssociatedAddress, Bundle, BundleSelection, BundleTranslations, CDNBaseWidgetSettings, CDNBundleLayoutSettings, CDNBundleSettings, CDNBundleStep, CDNBundleStepOption, CDNBundleVariant, CDNBundleVariantOptionSource, CDNBundleVariantSelectionDefault, CDNPrices, CDNProduct, CDNProductAndSettings, CDNProductKeyObject, CDNProductOption, CDNProductOptionValue, CDNProductRaw, CDNProductResource, CDNProductsAndSettings, CDNProductsAndSettingsResource, CDNSellingPlan, CDNSellingPlanAllocations, CDNSellingPlanGroup, CDNStoreSettings, CDNSubscriptionOption, CDNVariant, CDNVariantOptionValue, CDNWidgetSettings, CDNWidgetSettingsRaw, CDNWidgetSettingsResource, CRUDRequestOptions, CancelMembershipRequest, CancelSubscriptionRequest, ChannelSettings, Charge, ChargeListParams, ChargeListResponse, ChargeResponse, ChargeSortBy, ChargeStatus, ColorString, CreateAddressRequest, CreateOnetimeRequest, CreateSubscriptionRequest, Customer, CustomerDeliveryScheduleParams, CustomerDeliveryScheduleResponse, Delivery, Discount, ExternalId, ExternalTransactionId, FirstOption, GetRequestOptions, HTMLString, InitOptions, IntervalUnit, IsoDateString, LineItem, ListParams, LoginResponse, Membership, MembershipListParams, MembershipListResponse, MembershipResponse, MembershipStatus, MembershipsSortBy, MergeAddressesRequest, Method, Onetime, OnetimeListParams, OnetimesResponse, OnetimesSortBy, Order, OrderListParams, OrderSortBy, OrderStatus, OrderType, OrdersResponse, Plan, PlanListParams, PlanSortBy, PlanType, PlansResponse, PriceAdjustmentsType, ProductImage, Property, Request, RequestHeaders, RequestOptions, RequestOptionsHeaders, Session, ShippingLine, SkipFutureChargeAddressRequest, SkipFutureChargeAddressResponse, StorefrontEnvironment, StorefrontOptions, StorefrontPurchaseOption, SubType, Subscription, SubscriptionListParams, SubscriptionPreferences, SubscriptionSortBy, SubscriptionsResponse, TaxLine, Translations, UpdateAddressRequest, UpdateCustomerRequest, UpdateOnetimeRequest, UpdateSubscriptionParams, UpdateSubscriptionRequest, WidgetIconColor, WidgetTemplateType, activateMembership, activateSubscription, api, applyDiscount, cancelMembership, cancelSubscription, createAddress, createOnetime, createSubscription, deleteAddress, deleteOnetime, getAddress, getBundleId, getCDNBundleSettings, getCDNProduct, getCDNProductAndSettings, getCDNProducts, getCDNProductsAndSettings, getCDNStoreSettings, getCDNWidgetSettings, getCharge, getCustomer, getDeliverySchedule, getMembership, getOnetime, getOrder, getPlan, getSubscription, initRecharge, listAddresses, listCharges, listMemberships, listOnetimes, listOrders, listPlans, listSubscriptions, loginShopifyApi, loginShopifyAppProxy, mergeAddresses, removeDiscount, resetCDNCache, skipCharge, skipFutureCharge, unskipCharge, updateAddress, updateCustomer, updateOnetime, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, validateBundle };