@foxy.io/sdk 1.14.0 → 1.15.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/FoxySDKCustomer.js +1 -1
- package/dist/cjs/backend/API.js +47 -21
- package/dist/cjs/core/Rumour/Rumour.js +11 -0
- package/dist/esm/backend/API.js +47 -21
- package/dist/esm/core/Rumour/Rumour.js +11 -0
- package/dist/types/backend/Graph/cart.d.ts +5 -0
- package/dist/types/backend/Graph/charge_past_due.d.ts +5 -0
- package/dist/types/backend/Graph/countries.d.ts +15 -15
- package/dist/types/backend/Graph/hosted_payment_gateways_helper.d.ts +6 -0
- package/dist/types/backend/Graph/payment_gateway.d.ts +8 -0
- package/dist/types/backend/Graph/payment_gateways_helper.d.ts +6 -0
- package/dist/types/backend/Graph/store.d.ts +14 -5
- package/dist/types/backend/Graph/store_transaction_folder.d.ts +28 -0
- package/dist/types/backend/Graph/store_transaction_folders.d.ts +10 -0
- package/dist/types/backend/Graph/subscription.d.ts +5 -0
- package/dist/types/backend/Graph/tax.d.ts +2 -2
- package/dist/types/backend/Graph/transaction.d.ts +15 -10
- package/dist/types/backend/Graph/webhook.d.ts +3 -1
- package/dist/types/backend/Rels.d.ts +3 -0
- package/dist/types/customer/Graph/item.d.ts +5 -0
- package/dist/types/customer/Graph/item_option.d.ts +31 -0
- package/dist/types/customer/Graph/item_options.d.ts +10 -0
- package/dist/types/customer/Graph/subscription.d.ts +2 -0
- package/dist/types/customer/Graph/transaction_template.d.ts +1 -1
- package/dist/types/customer/Rels.d.ts +4 -0
- package/package.json +1 -1
|
@@ -46,6 +46,8 @@ export interface Subscription extends Graph {
|
|
|
46
46
|
is_active: boolean;
|
|
47
47
|
/** If this subscription is using a third party subscription system such as PayPal Express, their identifier will be set here. */
|
|
48
48
|
third_party_id: string;
|
|
49
|
+
/** The type of payment method used for this subscription. Can be `null` if payment method info is unavailable via this API. */
|
|
50
|
+
payment_type: 'plastic' | 'paypal' | 'ach' | 'amazon' | null;
|
|
49
51
|
/** The date this resource was created. */
|
|
50
52
|
date_created: string | null;
|
|
51
53
|
/** The date this resource was last modified. */
|
|
@@ -74,7 +74,7 @@ export interface TransactionTemplate extends Graph {
|
|
|
74
74
|
/** If this cart has any shippable subscription items which will process in the future, this will be the total amount of shipping costs for those items. */
|
|
75
75
|
total_future_shipping: string;
|
|
76
76
|
/** Total order amount of this cart including all items, taxes, shipping costs and discounts. */
|
|
77
|
-
total_order:
|
|
77
|
+
total_order: number;
|
|
78
78
|
/** The 3 character ISO code for the currency. */
|
|
79
79
|
currency_code: string;
|
|
80
80
|
/** The currency symbol, such as $, £, €, etc. */
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
export * from './Graph/attribute';
|
|
2
2
|
export * from './Graph/attributes';
|
|
3
|
+
export * from './Graph/custom_field';
|
|
4
|
+
export * from './Graph/custom_fields';
|
|
3
5
|
export * from './Graph/customer_address';
|
|
4
6
|
export * from './Graph/customer_addresses';
|
|
5
7
|
export * from './Graph/customer_portal_settings';
|
|
6
8
|
export * from './Graph/default_billing_address';
|
|
7
9
|
export * from './Graph/default_payment_method';
|
|
8
10
|
export * from './Graph/default_shipping_address';
|
|
11
|
+
export * from './Graph/item_option';
|
|
12
|
+
export * from './Graph/item_options';
|
|
9
13
|
export * from './Graph/item';
|
|
10
14
|
export * from './Graph/items';
|
|
11
15
|
export * from './Graph/last_transaction';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foxy.io/sdk",
|
|
3
3
|
"type": "commonjs",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.15.0-beta.2",
|
|
5
5
|
"description": "Universal SDK for a full server-side and a limited in-browser access to Foxy hAPI.",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|