@rechargeapps/storefront-client 0.5.3 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/cjs/api/address.js +45 -0
- package/dist/cjs/api/address.js.map +1 -0
- package/dist/cjs/api/auth.js +5 -11
- package/dist/cjs/api/auth.js.map +1 -1
- package/dist/cjs/api/user.js +41 -0
- package/dist/cjs/api/user.js.map +1 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/request.js +3 -7
- package/dist/cjs/utils/request.js.map +1 -1
- package/dist/cjs/utils/session.js +34 -0
- package/dist/cjs/utils/session.js.map +1 -0
- package/dist/esm/api/address.js +35 -0
- package/dist/esm/api/address.js.map +1 -0
- package/dist/esm/api/auth.js +5 -7
- package/dist/esm/api/auth.js.map +1 -1
- package/dist/esm/api/user.js +35 -0
- package/dist/esm/api/user.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/request.js +3 -3
- package/dist/esm/utils/request.js.map +1 -1
- package/dist/esm/utils/session.js +24 -0
- package/dist/esm/utils/session.js.map +1 -0
- package/dist/index.d.ts +214 -23
- package/dist/umd/recharge-storefront-client.min.js +11 -11
- package/dist/umd/recharge-storefront-client.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
declare const login: () => Promise<boolean>;
|
|
2
|
-
declare const logout: () => void;
|
|
3
|
-
|
|
4
1
|
/** HEXA, RGBA, HSLA */
|
|
5
2
|
declare type ColorString = string;
|
|
6
3
|
/** HTML String */
|
|
@@ -111,6 +108,17 @@ interface Discount {
|
|
|
111
108
|
/** The type of the value of the Discount. */
|
|
112
109
|
value_type: 'percentage' | 'fixed_amount';
|
|
113
110
|
}
|
|
111
|
+
interface AnalyticsData {
|
|
112
|
+
utm_params: {
|
|
113
|
+
utm_campaign: string;
|
|
114
|
+
utm_content: string;
|
|
115
|
+
utm_data_source: string;
|
|
116
|
+
utm_source: string;
|
|
117
|
+
utm_medium: string;
|
|
118
|
+
utm_term: string;
|
|
119
|
+
utm_timestamp: string;
|
|
120
|
+
}[];
|
|
121
|
+
}
|
|
114
122
|
declare type SubType<T, TRequired extends keyof T = keyof T, TOptional extends keyof T = keyof T> = Required<Pick<T, TRequired>> & Partial<Pick<T, TOptional>>;
|
|
115
123
|
|
|
116
124
|
interface ShippingLine {
|
|
@@ -242,17 +250,6 @@ interface OrderListParams extends ListParams<OrderSortBy> {
|
|
|
242
250
|
updated_at_min?: IsoDateString;
|
|
243
251
|
}
|
|
244
252
|
|
|
245
|
-
interface ChargeAnalyticsData {
|
|
246
|
-
utm_params: {
|
|
247
|
-
utm_campaign: string;
|
|
248
|
-
utm_content: string;
|
|
249
|
-
utm_data_source: string;
|
|
250
|
-
utm_source: string;
|
|
251
|
-
utm_medium: string;
|
|
252
|
-
utm_term: string;
|
|
253
|
-
utm_timestamp: string;
|
|
254
|
-
}[];
|
|
255
|
-
}
|
|
256
253
|
declare type ChargeStatus = 'success' | 'error' | 'queued' | 'skipped' | 'refunded' | 'partially_refunded' | 'pending_manual_payment' | 'pending';
|
|
257
254
|
interface Charge {
|
|
258
255
|
/** The unique numeric identifier for the Charge. */
|
|
@@ -260,7 +257,7 @@ interface Charge {
|
|
|
260
257
|
/** The ID of the shipping Address tied to the Charge.*/
|
|
261
258
|
address_id: number;
|
|
262
259
|
/** An object containing analytics data associated with the Charge. */
|
|
263
|
-
analytics_data:
|
|
260
|
+
analytics_data: AnalyticsData;
|
|
264
261
|
/** All the billing information related to the charge. */
|
|
265
262
|
billing_address: AssociatedAddress;
|
|
266
263
|
/** Details of the access method used by the purchaser. */
|
|
@@ -398,6 +395,156 @@ interface ChargeListParams extends ListParams<ChargeSortBy> {
|
|
|
398
395
|
created_at_max?: IsoDateString;
|
|
399
396
|
}
|
|
400
397
|
|
|
398
|
+
interface CreateAddressRequest {
|
|
399
|
+
/** Unique numeric identifier for the customer associated with the address. */
|
|
400
|
+
customer_id: number;
|
|
401
|
+
/** The street associated with the Address. Minimum length is 1 character. */
|
|
402
|
+
address1: string;
|
|
403
|
+
/** Any additional information associated with the Address. */
|
|
404
|
+
address2?: string;
|
|
405
|
+
/** The city associated with the address. */
|
|
406
|
+
city: string;
|
|
407
|
+
/** The company associated with the address. */
|
|
408
|
+
company?: string;
|
|
409
|
+
/** 2-letter country code. */
|
|
410
|
+
country_code: string;
|
|
411
|
+
/** A list of discounts applied on the address. These discounts will apply to future recurring charges associated with this address. */
|
|
412
|
+
discounts?: {
|
|
413
|
+
id: number;
|
|
414
|
+
}[];
|
|
415
|
+
/** The customer’s first name associated with the address. */
|
|
416
|
+
first_name: string;
|
|
417
|
+
/** The customer’s last name associated with the address. */
|
|
418
|
+
last_name: string;
|
|
419
|
+
/** Replaces cart_attributes. Extra information that is added to the order. */
|
|
420
|
+
order_attributes?: Property[];
|
|
421
|
+
/** Notes to be added to all orders associated with the address. */
|
|
422
|
+
order_note?: string | null;
|
|
423
|
+
/** Payment method id for the Payment_method to be associated to this address. */
|
|
424
|
+
payment_method_id?: number;
|
|
425
|
+
/** The phone number associated with the address. Must be included in the request schema but can be an empty string. */
|
|
426
|
+
phone: string;
|
|
427
|
+
/** The currency on the subscription contract in Shopify. Only set if the currency is different from the store-level currency. Else, will be null. */
|
|
428
|
+
presentment_currency?: string | null;
|
|
429
|
+
/** The state or province associated with the address. */
|
|
430
|
+
province: string | null;
|
|
431
|
+
/** Used when shipping rates need to be overridden. If this parameter has value null, rates will be fetched when Charge is created or regenerated */
|
|
432
|
+
shipping_lines_override?: {
|
|
433
|
+
code: string;
|
|
434
|
+
price: string;
|
|
435
|
+
title: string;
|
|
436
|
+
}[] | null;
|
|
437
|
+
/** The zip or postal code associated with the address. */
|
|
438
|
+
zip: string;
|
|
439
|
+
}
|
|
440
|
+
declare type UpdateAddressRequest = Omit<Partial<CreateAddressRequest>, 'presentment_currency' | 'customer_id'>;
|
|
441
|
+
interface MergeAddressesRequest {
|
|
442
|
+
/** Indicates whether source addresses should be deleted. */
|
|
443
|
+
delete_source_addresses?: boolean;
|
|
444
|
+
/** Specifies the next charge date of the associated subscriptions on the target address. */
|
|
445
|
+
next_charge_date?: string;
|
|
446
|
+
/** The address all of the subscriptions should be moved to. */
|
|
447
|
+
target_address: Address | {
|
|
448
|
+
id: number;
|
|
449
|
+
};
|
|
450
|
+
/** The list of addresses that the subscriptions should move from. */
|
|
451
|
+
source_addresses: (Address | {
|
|
452
|
+
id: number;
|
|
453
|
+
})[];
|
|
454
|
+
}
|
|
455
|
+
interface SkipFutureChargeAddressRequest {
|
|
456
|
+
/**
|
|
457
|
+
* The date in the future of the Charge to be skipped.
|
|
458
|
+
* This date must be within the delivery schedules of the Customer.
|
|
459
|
+
*/
|
|
460
|
+
date: IsoDateString;
|
|
461
|
+
/** A list containing the Subscription IDs to be skipped. */
|
|
462
|
+
subscription_ids: string;
|
|
463
|
+
}
|
|
464
|
+
interface Address {
|
|
465
|
+
/** Unique numeric identifier for the Address. */
|
|
466
|
+
id: number;
|
|
467
|
+
/** The street associated with the Address. */
|
|
468
|
+
address1: string;
|
|
469
|
+
/** Any additional information associated with the Address. */
|
|
470
|
+
address2?: string;
|
|
471
|
+
/** The city associated with the address. */
|
|
472
|
+
city: string;
|
|
473
|
+
/** The company associated with the address. */
|
|
474
|
+
company: string;
|
|
475
|
+
/** 2-letter country code. */
|
|
476
|
+
country_code: string;
|
|
477
|
+
/** Unique numeric identifier for the customer associated with the address. */
|
|
478
|
+
customer_id: number;
|
|
479
|
+
/** A list of discounts applied on the address. These discounts will apply to future recurring charges associated with this address. */
|
|
480
|
+
discounts?: {
|
|
481
|
+
id: number;
|
|
482
|
+
}[];
|
|
483
|
+
/** The customer’s first name associated with the address. */
|
|
484
|
+
first_name: string;
|
|
485
|
+
/** The customer’s last name associated with the address. */
|
|
486
|
+
last_name: string;
|
|
487
|
+
/** Replaces cart_attributes. Extra information that is added to the order. */
|
|
488
|
+
order_attributes: Property[];
|
|
489
|
+
/** Notes to be added to all orders associated with the address. */
|
|
490
|
+
order_note: string | null;
|
|
491
|
+
/** Unique numeric identifier for the Payment Method associated to the Address. */
|
|
492
|
+
payment_method_id: number;
|
|
493
|
+
/** The phone number associated with the address. */
|
|
494
|
+
phone: string;
|
|
495
|
+
/** The currency on the subscription contract in Shopify. Only set if the currency is different from the store-level currency. Else, will be null. */
|
|
496
|
+
presentment_currency: string | null;
|
|
497
|
+
/** The state or province associated with the address. */
|
|
498
|
+
province: string | null;
|
|
499
|
+
/** Used when shipping rates need to be overridden. If this parameter has value null, rates will be fetched when Charge is created or regenerated */
|
|
500
|
+
shipping_lines_override: {
|
|
501
|
+
code: string;
|
|
502
|
+
price: string;
|
|
503
|
+
title: string;
|
|
504
|
+
}[] | null;
|
|
505
|
+
/** The zip or postal code associated with the address. */
|
|
506
|
+
zip?: string | null;
|
|
507
|
+
/** The date and time when the address was created. */
|
|
508
|
+
created_at: IsoDateString;
|
|
509
|
+
/** The date and time when the address was last updated. */
|
|
510
|
+
updated_at: IsoDateString;
|
|
511
|
+
}
|
|
512
|
+
interface AddressListResponse {
|
|
513
|
+
next_cursor: null | string;
|
|
514
|
+
previous_cursor: null | string;
|
|
515
|
+
addresses: Address[];
|
|
516
|
+
}
|
|
517
|
+
declare type AddressSortBy = 'id-asc' | 'id-desc' | 'updated_at-asc' | 'updated_at-desc';
|
|
518
|
+
interface AddressListParams extends ListParams<AddressSortBy> {
|
|
519
|
+
customer_id?: string;
|
|
520
|
+
discount_id?: string;
|
|
521
|
+
discount_code?: string;
|
|
522
|
+
created_at_min?: IsoDateString;
|
|
523
|
+
created_at_max?: IsoDateString;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/** Returns all addresses from the store, or addresses for the user given in the parameter. */
|
|
527
|
+
declare function listAddresses(query?: AddressListParams): Promise<AddressListResponse>;
|
|
528
|
+
/** Retrieves address for customer based on specified address id. */
|
|
529
|
+
declare function getAddress(id: number): Promise<Address>;
|
|
530
|
+
/** Create a new address for a customer. */
|
|
531
|
+
declare function createAddress(request: CreateAddressRequest): Promise<Address>;
|
|
532
|
+
/** Updates an existing address to match the specified parameters. */
|
|
533
|
+
declare function updateAddress(id: number, request: UpdateAddressRequest): Promise<Address>;
|
|
534
|
+
/** Deletes an address. Only Addresses with no active Subscriptions can be deleted. */
|
|
535
|
+
declare function deleteAddress(id: number): Promise<void>;
|
|
536
|
+
/**
|
|
537
|
+
* Merges up to 10 source addresses into 1 target address.
|
|
538
|
+
*/
|
|
539
|
+
declare function mergeAddresses(request: MergeAddressesRequest): Promise<Address>;
|
|
540
|
+
/**
|
|
541
|
+
* Skip a Charge in the future for one or multiple Subscriptions associated with the Address.
|
|
542
|
+
*/
|
|
543
|
+
declare function skipFutureCharge(id: number, request: SkipFutureChargeAddressRequest): Promise<Charge>;
|
|
544
|
+
|
|
545
|
+
declare const login: () => Promise<boolean>;
|
|
546
|
+
declare const logout: () => void;
|
|
547
|
+
|
|
401
548
|
declare function getCharge(id: number | string): Promise<Charge>;
|
|
402
549
|
/** Lists charges */
|
|
403
550
|
declare function listCharges(query?: ChargeListParams): Promise<ChargeListResponse>;
|
|
@@ -874,8 +1021,8 @@ interface CreateProps {
|
|
|
874
1021
|
add_to_next_charge?: boolean;
|
|
875
1022
|
}
|
|
876
1023
|
declare type CreateOnetimeRequest = SubType<Onetime, RequiredCreateProps$1, OptionalCreateProps$1> & CreateProps;
|
|
877
|
-
declare type OptionalUpdateProps$
|
|
878
|
-
declare type UpdateOnetimeRequest = Partial<Pick<Onetime, OptionalUpdateProps$
|
|
1024
|
+
declare type OptionalUpdateProps$2 = 'address_id' | 'next_charge_scheduled_at' | 'properties' | 'quantity' | 'external_variant_id' | 'sku';
|
|
1025
|
+
declare type UpdateOnetimeRequest = Partial<Pick<Onetime, OptionalUpdateProps$2>>;
|
|
879
1026
|
interface OnetimesResponse {
|
|
880
1027
|
next_cursor: null | string;
|
|
881
1028
|
previous_cursor: null | string;
|
|
@@ -901,9 +1048,7 @@ interface Subscription {
|
|
|
901
1048
|
/** Unique numeric identifier for the customer the subscription is tied to. */
|
|
902
1049
|
customer_id: number;
|
|
903
1050
|
/** An object used to contain analytics data such as utm parameters. */
|
|
904
|
-
analytics_data:
|
|
905
|
-
utm_params: Record<string, unknown>;
|
|
906
|
-
};
|
|
1051
|
+
analytics_data: AnalyticsData;
|
|
907
1052
|
/** Reason provided for cancellation. */
|
|
908
1053
|
cancellation_reason: string | null;
|
|
909
1054
|
/** Additional comment for cancellation. */
|
|
@@ -991,8 +1136,8 @@ interface SubscriptionListParams extends ListParams<SubscriptionSortBy> {
|
|
|
991
1136
|
declare type RequiredCreateProps = 'address_id' | 'charge_interval_frequency' | 'external_variant_id' | 'next_charge_scheduled_at' | 'order_interval_frequency' | 'order_interval_unit' | 'quantity';
|
|
992
1137
|
declare type OptionalCreateProps = 'expire_after_specific_number_of_charges' | 'order_day_of_month' | 'order_day_of_week' | 'external_product_id' | 'product_title' | 'properties' | 'status';
|
|
993
1138
|
declare type CreateSubscriptionRequest = SubType<Subscription, RequiredCreateProps, OptionalCreateProps>;
|
|
994
|
-
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';
|
|
995
|
-
declare type UpdateSubscriptionRequest = Partial<Pick<Subscription, OptionalUpdateProps>>;
|
|
1139
|
+
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';
|
|
1140
|
+
declare type UpdateSubscriptionRequest = Partial<Pick<Subscription, OptionalUpdateProps$1>>;
|
|
996
1141
|
interface UpdateSubscriptionParams {
|
|
997
1142
|
/** 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. */
|
|
998
1143
|
commit?: boolean;
|
|
@@ -1037,6 +1182,52 @@ declare const cancelSubscription: (id: string | number, data: CancelSubscription
|
|
|
1037
1182
|
*/
|
|
1038
1183
|
declare const activateSubscription: (id: string | number) => Promise<Subscription>;
|
|
1039
1184
|
|
|
1185
|
+
interface User {
|
|
1186
|
+
/** Unique numeric identifier for the Customer. */
|
|
1187
|
+
id: number;
|
|
1188
|
+
/** An object containing analytics data associated with the customer. */
|
|
1189
|
+
analytics_data: AnalyticsData;
|
|
1190
|
+
/** The date and time when the customer was created. */
|
|
1191
|
+
created_at: IsoDateString;
|
|
1192
|
+
/** The email address of the customer. */
|
|
1193
|
+
email: string;
|
|
1194
|
+
/** An object containing external ids for the customer record. */
|
|
1195
|
+
external_customer_id: ExternalId;
|
|
1196
|
+
/** Date when first charge was processed for the customer. */
|
|
1197
|
+
first_charge_processed_at: IsoDateString;
|
|
1198
|
+
/** The customer’s first name. */
|
|
1199
|
+
first_name: string;
|
|
1200
|
+
/** A boolean that indicates if the customer has a payment method that is in dunning (failed charge). */
|
|
1201
|
+
has_payment_method_in_dunning: boolean;
|
|
1202
|
+
/** Is the payment method valid or not. */
|
|
1203
|
+
has_valid_payment_method: boolean;
|
|
1204
|
+
/** The unique string identifier used in a customers portal link. */
|
|
1205
|
+
hash: string;
|
|
1206
|
+
/** The customer’s last name. */
|
|
1207
|
+
last_name: string;
|
|
1208
|
+
/** The number of active subscriptions on addresses associated with the customer. */
|
|
1209
|
+
subscriptions_active_count: number;
|
|
1210
|
+
/** The total number of subscriptions created on addresses associated with the customer. */
|
|
1211
|
+
subscriptions_total_count: number;
|
|
1212
|
+
/** The date and time when the customer was last updated. */
|
|
1213
|
+
updated_at: IsoDateString;
|
|
1214
|
+
}
|
|
1215
|
+
declare type OptionalUpdateProps = 'email' | 'first_name' | 'last_name' | 'external_customer_id';
|
|
1216
|
+
declare type UpdateUserRequest = Partial<Pick<User, OptionalUpdateProps>>;
|
|
1217
|
+
interface UserDeliveryScheduleParams {
|
|
1218
|
+
delivery_count_future?: number;
|
|
1219
|
+
future_internal?: number;
|
|
1220
|
+
date_max?: IsoDateString;
|
|
1221
|
+
}
|
|
1222
|
+
interface Delivery {
|
|
1223
|
+
date: IsoDateString;
|
|
1224
|
+
orders: Order[];
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
declare const getUser: () => Promise<User>;
|
|
1228
|
+
declare const updateUser: (data: UpdateUserRequest) => Promise<User>;
|
|
1229
|
+
declare const getDeliverySchedule: (query?: UserDeliveryScheduleParams) => Promise<Delivery[]>;
|
|
1230
|
+
|
|
1040
1231
|
declare type InitOptions = Omit<Partial<StorefrontOptions>, 'environment' | 'apiKey'>;
|
|
1041
1232
|
declare const api: {
|
|
1042
1233
|
get<T>(url: string, requestOptions?: GetRequestOptions): Promise<T>;
|
|
@@ -1046,4 +1237,4 @@ declare const api: {
|
|
|
1046
1237
|
};
|
|
1047
1238
|
declare function initRecharge(opt?: InitOptions): void;
|
|
1048
1239
|
|
|
1049
|
-
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, activateSubscription, api, applyDiscount, cancelSubscription, captureCharge, createOnetime, createSubscription, deleteOnetime, getBundleId, getBundleSettings, getCharge, getOnetime, getOrder, getProduct, getProductAndSettings, getProducts, getProductsAndSettings, getStoreSettings, getSubscription, getWidgetSettings, initRecharge, listCharges, listOnetimes, listOrders, listSubscriptions, login, logout, processCharge, refundCharge, removeDiscount, resetCache, skipCharge, unskipCharge, updateOnetime, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, validateBundle };
|
|
1240
|
+
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, activateSubscription, api, applyDiscount, cancelSubscription, captureCharge, createAddress, createOnetime, createSubscription, deleteAddress, deleteOnetime, getAddress, getBundleId, getBundleSettings, getCharge, getDeliverySchedule, getOnetime, getOrder, getProduct, getProductAndSettings, getProducts, getProductsAndSettings, getStoreSettings, getSubscription, getUser, getWidgetSettings, initRecharge, listAddresses, listCharges, listOnetimes, listOrders, listSubscriptions, login, logout, mergeAddresses, processCharge, refundCharge, removeDiscount, resetCache, skipCharge, skipFutureCharge, unskipCharge, updateAddress, updateOnetime, updateSubscription, updateSubscriptionAddress, updateSubscriptionChargeDate, updateUser, validateBundle };
|