@augno/sdk 0.16.1 → 0.18.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.
- package/CHANGELOG.md +7 -2
- package/README.md +1 -1
- package/client.js +1 -1
- package/client.mjs +1 -1
- package/package.json +1 -1
- package/resources/catalog/item-categories/actions.d.mts +8 -2
- package/resources/catalog/item-categories/actions.d.mts.map +1 -1
- package/resources/catalog/item-categories/actions.d.ts +8 -2
- package/resources/catalog/item-categories/actions.d.ts.map +1 -1
- package/resources/catalog/item-categories/actions.js +7 -2
- package/resources/catalog/item-categories/actions.js.map +1 -1
- package/resources/catalog/item-categories/actions.mjs +7 -2
- package/resources/catalog/item-categories/actions.mjs.map +1 -1
- package/resources/catalog/materials/actions.d.mts +7 -2
- package/resources/catalog/materials/actions.d.mts.map +1 -1
- package/resources/catalog/materials/actions.d.ts +7 -2
- package/resources/catalog/materials/actions.d.ts.map +1 -1
- package/resources/catalog/materials/actions.js +7 -2
- package/resources/catalog/materials/actions.js.map +1 -1
- package/resources/catalog/materials/actions.mjs +7 -2
- package/resources/catalog/materials/actions.mjs.map +1 -1
- package/resources/catalog/parts/actions.d.mts +7 -2
- package/resources/catalog/parts/actions.d.mts.map +1 -1
- package/resources/catalog/parts/actions.d.ts +7 -2
- package/resources/catalog/parts/actions.d.ts.map +1 -1
- package/resources/catalog/parts/actions.js +7 -2
- package/resources/catalog/parts/actions.js.map +1 -1
- package/resources/catalog/parts/actions.mjs +7 -2
- package/resources/catalog/parts/actions.mjs.map +1 -1
- package/resources/catalog/product-lines/actions.d.mts +8 -2
- package/resources/catalog/product-lines/actions.d.mts.map +1 -1
- package/resources/catalog/product-lines/actions.d.ts +8 -2
- package/resources/catalog/product-lines/actions.d.ts.map +1 -1
- package/resources/catalog/product-lines/actions.js +7 -2
- package/resources/catalog/product-lines/actions.js.map +1 -1
- package/resources/catalog/product-lines/actions.mjs +7 -2
- package/resources/catalog/product-lines/actions.mjs.map +1 -1
- package/resources/catalog/products/actions.d.mts +7 -2
- package/resources/catalog/products/actions.d.mts.map +1 -1
- package/resources/catalog/products/actions.d.ts +7 -2
- package/resources/catalog/products/actions.d.ts.map +1 -1
- package/resources/catalog/products/actions.js +7 -2
- package/resources/catalog/products/actions.js.map +1 -1
- package/resources/catalog/products/actions.mjs +7 -2
- package/resources/catalog/products/actions.mjs.map +1 -1
- package/resources/catalog/properties/actions.d.mts +8 -3
- package/resources/catalog/properties/actions.d.mts.map +1 -1
- package/resources/catalog/properties/actions.d.ts +8 -3
- package/resources/catalog/properties/actions.d.ts.map +1 -1
- package/resources/catalog/properties/actions.js +7 -2
- package/resources/catalog/properties/actions.js.map +1 -1
- package/resources/catalog/properties/actions.mjs +7 -2
- package/resources/catalog/properties/actions.mjs.map +1 -1
- package/resources/catalog/unit-groups/actions.d.mts +7 -2
- package/resources/catalog/unit-groups/actions.d.mts.map +1 -1
- package/resources/catalog/unit-groups/actions.d.ts +7 -2
- package/resources/catalog/unit-groups/actions.d.ts.map +1 -1
- package/resources/catalog/unit-groups/actions.js +7 -2
- package/resources/catalog/unit-groups/actions.js.map +1 -1
- package/resources/catalog/unit-groups/actions.mjs +7 -2
- package/resources/catalog/unit-groups/actions.mjs.map +1 -1
- package/resources/catalog/units/actions.d.mts +8 -2
- package/resources/catalog/units/actions.d.mts.map +1 -1
- package/resources/catalog/units/actions.d.ts +8 -2
- package/resources/catalog/units/actions.d.ts.map +1 -1
- package/resources/catalog/units/actions.js +7 -2
- package/resources/catalog/units/actions.js.map +1 -1
- package/resources/catalog/units/actions.mjs +7 -2
- package/resources/catalog/units/actions.mjs.map +1 -1
- package/resources/core/analytics.d.mts +195 -1
- package/resources/core/analytics.d.mts.map +1 -1
- package/resources/core/analytics.d.ts +195 -1
- package/resources/core/analytics.d.ts.map +1 -1
- package/resources/core/analytics.js +11 -0
- package/resources/core/analytics.js.map +1 -1
- package/resources/core/analytics.mjs +11 -0
- package/resources/core/analytics.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +4 -4
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +4 -4
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/core.d.mts +6 -6
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +6 -6
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/index.d.mts +2 -2
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +2 -2
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/jobs.d.mts +102 -60
- package/resources/core/jobs.d.mts.map +1 -1
- package/resources/core/jobs.d.ts +102 -60
- package/resources/core/jobs.d.ts.map +1 -1
- package/resources/core/jobs.js +12 -6
- package/resources/core/jobs.js.map +1 -1
- package/resources/core/jobs.mjs +12 -6
- package/resources/core/jobs.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +5 -5
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +5 -5
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +39 -0
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +39 -0
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/messaging/blocks.d.mts +8 -0
- package/resources/messaging/blocks.d.mts.map +1 -1
- package/resources/messaging/blocks.d.ts +8 -0
- package/resources/messaging/blocks.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.d.mts +3 -3
- package/resources/messaging/conversations/conversations.d.mts.map +1 -1
- package/resources/messaging/conversations/conversations.d.ts +3 -3
- package/resources/messaging/conversations/conversations.d.ts.map +1 -1
- package/resources/messaging/conversations/conversations.js.map +1 -1
- package/resources/messaging/conversations/conversations.mjs.map +1 -1
- package/resources/messaging/conversations/links.d.mts +2 -2
- package/resources/messaging/conversations/links.d.mts.map +1 -1
- package/resources/messaging/conversations/links.d.ts +2 -2
- package/resources/messaging/conversations/links.d.ts.map +1 -1
- package/resources/messaging/conversations/messages.d.mts +2 -2
- package/resources/messaging/conversations/messages.d.mts.map +1 -1
- package/resources/messaging/conversations/messages.d.ts +2 -2
- package/resources/messaging/conversations/messages.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.d.mts +2 -2
- package/resources/messaging/notifications/notifications.d.mts.map +1 -1
- package/resources/messaging/notifications/notifications.d.ts +2 -2
- package/resources/messaging/notifications/notifications.d.ts.map +1 -1
- package/resources/messaging/notifications/notifications.js.map +1 -1
- package/resources/messaging/notifications/notifications.mjs.map +1 -1
- package/resources/operations/carriers/carriers.d.mts +5 -5
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +5 -5
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +5 -5
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +5 -5
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/locations/actions.d.mts +7 -2
- package/resources/operations/locations/actions.d.mts.map +1 -1
- package/resources/operations/locations/actions.d.ts +7 -2
- package/resources/operations/locations/actions.d.ts.map +1 -1
- package/resources/operations/locations/actions.js +7 -2
- package/resources/operations/locations/actions.js.map +1 -1
- package/resources/operations/locations/actions.mjs +7 -2
- package/resources/operations/locations/actions.mjs.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.mts +5 -3
- package/resources/operations/production-schedules/production-schedules.d.mts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.d.ts +5 -3
- package/resources/operations/production-schedules/production-schedules.d.ts.map +1 -1
- package/resources/operations/production-schedules/production-schedules.js +5 -3
- package/resources/operations/production-schedules/production-schedules.js.map +1 -1
- package/resources/operations/production-schedules/production-schedules.mjs +5 -3
- package/resources/operations/production-schedules/production-schedules.mjs.map +1 -1
- package/resources/operations/shipments/actions.d.mts +3 -3
- package/resources/operations/shipments/actions.d.mts.map +1 -1
- package/resources/operations/shipments/actions.d.ts +3 -3
- package/resources/operations/shipments/actions.d.ts.map +1 -1
- package/resources/operations/shipping-terms.d.mts +5 -5
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +5 -5
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/sales/account-prices/account-prices.d.mts +999 -0
- package/resources/sales/account-prices/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices/account-prices.d.ts +999 -0
- package/resources/sales/account-prices/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices/account-prices.js +143 -0
- package/resources/sales/account-prices/account-prices.js.map +1 -0
- package/resources/sales/account-prices/account-prices.mjs +138 -0
- package/resources/sales/account-prices/account-prices.mjs.map +1 -0
- package/resources/sales/account-prices/actions.d.mts +58 -0
- package/resources/sales/account-prices/actions.d.mts.map +1 -0
- package/resources/sales/account-prices/actions.d.ts +58 -0
- package/resources/sales/account-prices/actions.d.ts.map +1 -0
- package/resources/sales/account-prices/actions.js +44 -0
- package/resources/sales/account-prices/actions.js.map +1 -0
- package/resources/sales/account-prices/actions.mjs +40 -0
- package/resources/sales/account-prices/actions.mjs.map +1 -0
- package/resources/sales/account-prices/index.d.mts +3 -0
- package/resources/sales/account-prices/index.d.mts.map +1 -0
- package/resources/sales/account-prices/index.d.ts +3 -0
- package/resources/sales/account-prices/index.d.ts.map +1 -0
- package/resources/sales/account-prices/index.js +9 -0
- package/resources/sales/account-prices/index.js.map +1 -0
- package/resources/sales/account-prices/index.mjs +4 -0
- package/resources/sales/account-prices/index.mjs.map +1 -0
- package/resources/sales/account-prices.d.mts +2 -0
- package/resources/sales/account-prices.d.mts.map +1 -0
- package/resources/sales/account-prices.d.ts +2 -0
- package/resources/sales/account-prices.d.ts.map +1 -0
- package/resources/sales/account-prices.js +6 -0
- package/resources/sales/account-prices.js.map +1 -0
- package/resources/sales/account-prices.mjs +3 -0
- package/resources/sales/account-prices.mjs.map +1 -0
- package/resources/sales/customers/actions.d.mts +2 -2
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +2 -2
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +6 -564
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +6 -564
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/index.d.mts +6 -3
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -3
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +15 -9
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +3 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/order-discounts/actions.d.mts +85 -0
- package/resources/sales/order-discounts/actions.d.mts.map +1 -0
- package/resources/sales/order-discounts/actions.d.ts +85 -0
- package/resources/sales/order-discounts/actions.d.ts.map +1 -0
- package/resources/sales/order-discounts/actions.js +35 -0
- package/resources/sales/order-discounts/actions.js.map +1 -0
- package/resources/sales/order-discounts/actions.mjs +31 -0
- package/resources/sales/order-discounts/actions.mjs.map +1 -0
- package/resources/sales/order-discounts/index.d.mts +3 -0
- package/resources/sales/order-discounts/index.d.mts.map +1 -0
- package/resources/sales/order-discounts/index.d.ts +3 -0
- package/resources/sales/order-discounts/index.d.ts.map +1 -0
- package/resources/sales/order-discounts/index.js +9 -0
- package/resources/sales/order-discounts/index.js.map +1 -0
- package/resources/sales/order-discounts/index.mjs +4 -0
- package/resources/sales/order-discounts/index.mjs.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.mts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.d.ts +365 -0
- package/resources/sales/order-discounts/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts/order-discounts.js +125 -0
- package/resources/sales/order-discounts/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts/order-discounts.mjs +120 -0
- package/resources/sales/order-discounts/order-discounts.mjs.map +1 -0
- package/resources/sales/order-discounts.d.mts +2 -0
- package/resources/sales/order-discounts.d.mts.map +1 -0
- package/resources/sales/order-discounts.d.ts +2 -0
- package/resources/sales/order-discounts.d.ts.map +1 -0
- package/resources/sales/order-discounts.js +6 -0
- package/resources/sales/order-discounts.js.map +1 -0
- package/resources/sales/order-discounts.mjs +3 -0
- package/resources/sales/order-discounts.mjs.map +1 -0
- package/resources/sales/priorities.d.mts +4 -44
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +4 -44
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders/index.d.mts +1 -1
- package/resources/sales/sales-orders/index.d.mts.map +1 -1
- package/resources/sales/sales-orders/index.d.ts +1 -1
- package/resources/sales/sales-orders/index.d.ts.map +1 -1
- package/resources/sales/sales-orders/index.js.map +1 -1
- package/resources/sales/sales-orders/index.mjs.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.mts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.mts.map +1 -1
- package/resources/sales/sales-orders/lines/lines.d.ts +2 -2
- package/resources/sales/sales-orders/lines/lines.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.mts +10 -69
- package/resources/sales/sales-orders/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.d.ts +10 -69
- package/resources/sales/sales-orders/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +18 -6
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +18 -6
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +12 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +12 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales/volume-discounts.d.mts +684 -0
- package/resources/sales/volume-discounts.d.mts.map +1 -0
- package/resources/sales/volume-discounts.d.ts +684 -0
- package/resources/sales/volume-discounts.d.ts.map +1 -0
- package/resources/sales/volume-discounts.js +152 -0
- package/resources/sales/volume-discounts.js.map +1 -0
- package/resources/sales/volume-discounts.mjs +148 -0
- package/resources/sales/volume-discounts.mjs.map +1 -0
- package/src/client.ts +1 -1
- package/src/resources/catalog/item-categories/actions.ts +15 -3
- package/src/resources/catalog/materials/actions.ts +14 -3
- package/src/resources/catalog/parts/actions.ts +14 -3
- package/src/resources/catalog/product-lines/actions.ts +15 -3
- package/src/resources/catalog/products/actions.ts +14 -3
- package/src/resources/catalog/properties/actions.ts +15 -4
- package/src/resources/catalog/unit-groups/actions.ts +14 -3
- package/src/resources/catalog/units/actions.ts +15 -3
- package/src/resources/core/analytics.ts +231 -0
- package/src/resources/core/audit-events.ts +16 -0
- package/src/resources/core/core.ts +30 -2
- package/src/resources/core/index.ts +7 -1
- package/src/resources/core/jobs.ts +422 -67
- package/src/resources/finance/payment-terms.ts +8 -5
- package/src/resources/identity/account-users/account-users.ts +44 -0
- package/src/resources/messaging/blocks.ts +9 -0
- package/src/resources/messaging/conversations/conversations.ts +12 -0
- package/src/resources/messaging/conversations/links.ts +8 -0
- package/src/resources/messaging/conversations/messages.ts +8 -0
- package/src/resources/messaging/notifications/notifications.ts +8 -0
- package/src/resources/operations/carriers/carriers.ts +5 -5
- package/src/resources/operations/carriers/service-levels.ts +5 -5
- package/src/resources/operations/locations/actions.ts +14 -3
- package/src/resources/operations/production-schedules/production-schedules.ts +5 -3
- package/src/resources/operations/shipments/actions.ts +3 -3
- package/src/resources/operations/shipping-terms.ts +8 -5
- package/src/resources/sales/account-prices/account-prices.ts +1191 -0
- package/src/resources/sales/account-prices/actions.ts +74 -0
- package/src/resources/sales/account-prices/index.ts +27 -0
- package/src/resources/sales/account-prices.ts +3 -0
- package/src/resources/sales/customers/actions.ts +6 -2
- package/src/resources/sales/customers/customers.ts +5 -658
- package/src/resources/sales/customers/index.ts +0 -11
- package/src/resources/sales/index.ts +50 -13
- package/src/resources/sales/order-discounts/actions.ts +102 -0
- package/src/resources/sales/order-discounts/index.ts +13 -0
- package/src/resources/sales/order-discounts/order-discounts.ts +442 -0
- package/src/resources/sales/order-discounts.ts +3 -0
- package/src/resources/sales/priorities.ts +3 -51
- package/src/resources/sales/sales-orders/index.ts +0 -1
- package/src/resources/sales/sales-orders/lines/lines.ts +2 -2
- package/src/resources/sales/sales-orders/sales-orders.ts +9 -79
- package/src/resources/sales/sales.ts +113 -26
- package/src/resources/sales/volume-discounts.ts +813 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as CoreAPI from '../../core/core';
|
|
5
|
-
import * as BlocksAPI from '../../messaging/blocks';
|
|
6
|
-
import * as AccountGroupsAPI from '../account-groups';
|
|
7
5
|
import * as AddressesAPI from '../addresses';
|
|
8
|
-
import * as PrioritiesAPI from '../priorities';
|
|
9
|
-
import * as APIKeysAPI from '../../auth/api-keys/api-keys';
|
|
10
|
-
import * as ItemsAPI from '../../catalog/items/items';
|
|
11
6
|
import * as ProductLinesAPI from '../../catalog/product-lines/product-lines';
|
|
7
|
+
import * as AccountPricesAPI from '../account-prices/account-prices';
|
|
12
8
|
import * as ActionsAPI from './actions';
|
|
13
9
|
import { ActionMergeParams, Actions, MergeCustomersRequest } from './actions';
|
|
14
10
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -34,7 +30,7 @@ export class Customers extends APIResource {
|
|
|
34
30
|
list(
|
|
35
31
|
query: CustomerListParams | null | undefined = {},
|
|
36
32
|
options?: RequestOptions,
|
|
37
|
-
): APIPromise<ListCustomer> {
|
|
33
|
+
): APIPromise<AccountPricesAPI.ListCustomer> {
|
|
38
34
|
return this._client.get('/v1/sales/customers', { query, ...options });
|
|
39
35
|
}
|
|
40
36
|
|
|
@@ -54,7 +50,7 @@ export class Customers extends APIResource {
|
|
|
54
50
|
id: string,
|
|
55
51
|
query: CustomerRetrieveParams | null | undefined = {},
|
|
56
52
|
options?: RequestOptions,
|
|
57
|
-
): APIPromise<Customer> {
|
|
53
|
+
): APIPromise<AccountPricesAPI.Customer> {
|
|
58
54
|
return this._client.get(path`/v1/sales/customers/${id}`, { query, ...options });
|
|
59
55
|
}
|
|
60
56
|
|
|
@@ -110,7 +106,7 @@ export class Customers extends APIResource {
|
|
|
110
106
|
* });
|
|
111
107
|
* ```
|
|
112
108
|
*/
|
|
113
|
-
create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
|
|
109
|
+
create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<AccountPricesAPI.Customer> {
|
|
114
110
|
const { include, ...body } = params;
|
|
115
111
|
return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
|
|
116
112
|
}
|
|
@@ -156,7 +152,7 @@ export class Customers extends APIResource {
|
|
|
156
152
|
id: string,
|
|
157
153
|
params: CustomerUpdateParams | null | undefined = {},
|
|
158
154
|
options?: RequestOptions,
|
|
159
|
-
): APIPromise<Customer> {
|
|
155
|
+
): APIPromise<AccountPricesAPI.Customer> {
|
|
160
156
|
const { include, ...body } = params ?? {};
|
|
161
157
|
return this._client.patch(path`/v1/sales/customers/${id}`, { query: { include }, body, ...options });
|
|
162
158
|
}
|
|
@@ -209,85 +205,6 @@ export class Customers extends APIResource {
|
|
|
209
205
|
}
|
|
210
206
|
}
|
|
211
207
|
|
|
212
|
-
/**
|
|
213
|
-
* A shipping carrier configured for fulfilling orders.
|
|
214
|
-
*
|
|
215
|
-
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
216
|
-
* through Shippo for live rating and label purchase; other carriers represent
|
|
217
|
-
* self-managed shipping methods such as will call or local delivery.
|
|
218
|
-
*/
|
|
219
|
-
export interface Carrier {
|
|
220
|
-
/**
|
|
221
|
-
* Carrier ID.
|
|
222
|
-
*/
|
|
223
|
-
id: string;
|
|
224
|
-
|
|
225
|
-
/**
|
|
226
|
-
* Your account number with this carrier.
|
|
227
|
-
*
|
|
228
|
-
* UPS and USPS carrier accounts are connected to Shippo using this number; FedEx
|
|
229
|
-
* carriers authorize through OAuth instead, so their account number is not used to
|
|
230
|
-
* connect them.
|
|
231
|
-
*/
|
|
232
|
-
account_number: string | null;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Well-known carrier identifier, set only for recognized carriers and absent for
|
|
236
|
-
* custom ones.
|
|
237
|
-
*
|
|
238
|
-
* - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
|
|
239
|
-
* rating and labels).
|
|
240
|
-
* - `will_call`: customer picks the order up; no carrier shipment.
|
|
241
|
-
* - `delivery`: delivered by your own vehicles/drivers.
|
|
242
|
-
* - `ltl`, `ltl1`: less-than-truckload freight carriers.
|
|
243
|
-
* - `freight_collect`: freight billed to and arranged by the receiver.
|
|
244
|
-
*/
|
|
245
|
-
code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Creation timestamp.
|
|
249
|
-
*/
|
|
250
|
-
created_at: string;
|
|
251
|
-
|
|
252
|
-
/**
|
|
253
|
-
* Whether customers can see and select this carrier at checkout in the customer
|
|
254
|
-
* portal.
|
|
255
|
-
*/
|
|
256
|
-
customer_portal_visibility: 'visible' | 'hidden';
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Soft-delete timestamp.
|
|
260
|
-
*/
|
|
261
|
-
deleted_at: string | null;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Human-readable name for the carrier, unique among the carriers visible to your
|
|
265
|
-
* account.
|
|
266
|
-
*/
|
|
267
|
-
name: string;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Resource type identifier.
|
|
271
|
-
*/
|
|
272
|
-
object: 'carrier';
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Owner describes the provenance of a resource.
|
|
276
|
-
*/
|
|
277
|
-
owner: APIKeysAPI.Owner | null;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* A single page of resources, together with the metadata needed to page through
|
|
281
|
-
* the rest of the result set.
|
|
282
|
-
*/
|
|
283
|
-
service_levels: ListServiceLevel | null;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Last updated timestamp.
|
|
287
|
-
*/
|
|
288
|
-
updated_at: string;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
208
|
/**
|
|
292
209
|
* Request to create a customer.
|
|
293
210
|
*/
|
|
@@ -460,295 +377,6 @@ export interface CreateCustomerRequest {
|
|
|
460
377
|
url?: string;
|
|
461
378
|
}
|
|
462
379
|
|
|
463
|
-
/**
|
|
464
|
-
* A business you sell to, with its contact details, default fulfillment settings,
|
|
465
|
-
* and order policies.
|
|
466
|
-
*/
|
|
467
|
-
export interface Customer {
|
|
468
|
-
/**
|
|
469
|
-
* Customer ID.
|
|
470
|
-
*/
|
|
471
|
-
id: string;
|
|
472
|
-
|
|
473
|
-
/**
|
|
474
|
-
* A saved address that can be used for billing and shipping on sales orders,
|
|
475
|
-
* invoices, and shipments.
|
|
476
|
-
*/
|
|
477
|
-
bill_to_address: APIKeysAPI.Address | null;
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* A single page of resources, together with the metadata needed to page through
|
|
481
|
-
* the rest of the result set.
|
|
482
|
-
*/
|
|
483
|
-
child_accounts: ListCustomer | null;
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* How sales commission applies to this customer's orders.
|
|
487
|
-
*
|
|
488
|
-
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
489
|
-
* - `commission_applied`: sales commission is calculated on this customer's
|
|
490
|
-
* orders.
|
|
491
|
-
*
|
|
492
|
-
* The customer counts as exempt if this field, its `type` group, or any of its
|
|
493
|
-
* `price_groups` is `commission_exempt`. Exempt customers never have a sales rep
|
|
494
|
-
* assigned automatically when an order is created without one.
|
|
495
|
-
*/
|
|
496
|
-
commission_policy: 'commission_applied' | 'commission_exempt';
|
|
497
|
-
|
|
498
|
-
/**
|
|
499
|
-
* Customer contact information.
|
|
500
|
-
*/
|
|
501
|
-
contact_info: CustomerContactInfo | null;
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* Creation timestamp.
|
|
505
|
-
*/
|
|
506
|
-
created_at: string;
|
|
507
|
-
|
|
508
|
-
/**
|
|
509
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
510
|
-
*
|
|
511
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
512
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
513
|
-
* money, weights, and durations.
|
|
514
|
-
*/
|
|
515
|
-
credit_limit: ItemsAPI.Quantity | null;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* Values used to fill in a new sales order for this customer when the order does
|
|
519
|
-
* not supply its own.
|
|
520
|
-
*/
|
|
521
|
-
defaults: CustomerDefaults | null;
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
525
|
-
* documents with this customer.
|
|
526
|
-
*/
|
|
527
|
-
edi_status: 'enabled' | 'disabled';
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Customer freight and carrier settings.
|
|
531
|
-
*/
|
|
532
|
-
freight_preferences: CustomerFreightPreferences | null;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* The customer's business name, as shown throughout the app and on documents.
|
|
536
|
-
*/
|
|
537
|
-
name: string;
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Free-form note about the customer.
|
|
541
|
-
*/
|
|
542
|
-
note: string | null;
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Customer notification settings.
|
|
546
|
-
*/
|
|
547
|
-
notification_preferences: CustomerNotificationPreferences | null;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* Human-readable customer number used to identify the account, distinct from the
|
|
551
|
-
* `id`.
|
|
552
|
-
*
|
|
553
|
-
* Unique within your account.
|
|
554
|
-
*/
|
|
555
|
-
number: string;
|
|
556
|
-
|
|
557
|
-
/**
|
|
558
|
-
* Resource type identifier.
|
|
559
|
-
*/
|
|
560
|
-
object: 'customer';
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* A business you sell to, with its contact details, default fulfillment settings,
|
|
564
|
-
* and order policies.
|
|
565
|
-
*/
|
|
566
|
-
parent_account: Customer | null;
|
|
567
|
-
|
|
568
|
-
/**
|
|
569
|
-
* A single page of resources, together with the metadata needed to page through
|
|
570
|
-
* the rest of the result set.
|
|
571
|
-
*/
|
|
572
|
-
price_groups: AccountGroupsAPI.ListAccountGroup | null;
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* The customer's position in the account hierarchy.
|
|
576
|
-
*
|
|
577
|
-
* - `standalone`: no parent or child accounts.
|
|
578
|
-
* - `parent`: has one or more child accounts (see `child_accounts`).
|
|
579
|
-
* - `child`: belongs to a parent account (see `parent_account`).
|
|
580
|
-
*/
|
|
581
|
-
relationship_type: 'standalone' | 'parent' | 'child';
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* A saved address that can be used for billing and shipping on sales orders,
|
|
585
|
-
* invoices, and shipments.
|
|
586
|
-
*/
|
|
587
|
-
ship_to_address: APIKeysAPI.Address | null;
|
|
588
|
-
|
|
589
|
-
/**
|
|
590
|
-
* The customer's account standing.
|
|
591
|
-
*
|
|
592
|
-
* - `normal`: standard account with no restrictions.
|
|
593
|
-
* - `preferred`: account flagged for prioritized handling.
|
|
594
|
-
* - `hold_shipment`: the customer's shipments should be held, typically over a
|
|
595
|
-
* credit problem, while orders can still be placed.
|
|
596
|
-
* - `hold_all`: all activity for the customer should be held.
|
|
597
|
-
*
|
|
598
|
-
* The hold statuses are advisory: Augno flags the customer's orders as being on
|
|
599
|
-
* credit hold, but requests to create orders or shipments for the customer are not
|
|
600
|
-
* rejected.
|
|
601
|
-
*/
|
|
602
|
-
status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* A named grouping of customer accounts, used for pricing rules or to categorize
|
|
606
|
-
* accounts.
|
|
607
|
-
*
|
|
608
|
-
* A customer carries at most one group of type `type_group` as its customer type,
|
|
609
|
-
* plus any number of groups of type `pricing_group`. Membership of either kind can
|
|
610
|
-
* scope a volume discount to the customer and open up product lines for it to
|
|
611
|
-
* order from.
|
|
612
|
-
*/
|
|
613
|
-
type: AccountGroupsAPI.AccountGroup | null;
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Last updated timestamp.
|
|
617
|
-
*/
|
|
618
|
-
updated_at: string;
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/**
|
|
622
|
-
* Customer contact information.
|
|
623
|
-
*/
|
|
624
|
-
export interface CustomerContactInfo {
|
|
625
|
-
/**
|
|
626
|
-
* Email address.
|
|
627
|
-
*/
|
|
628
|
-
email: string | null;
|
|
629
|
-
|
|
630
|
-
/**
|
|
631
|
-
* Resource type identifier.
|
|
632
|
-
*/
|
|
633
|
-
object: 'customer_contact_info';
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Phone number.
|
|
637
|
-
*/
|
|
638
|
-
phone: string | null;
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Website URL.
|
|
642
|
-
*/
|
|
643
|
-
url: string | null;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Values used to fill in a new sales order for this customer when the order does
|
|
648
|
-
* not supply its own.
|
|
649
|
-
*/
|
|
650
|
-
export interface CustomerDefaults {
|
|
651
|
-
/**
|
|
652
|
-
* Calendar days between an order being issued and it being due to ship.
|
|
653
|
-
*
|
|
654
|
-
* Sets each order's `ship_by_date` when it is issued. With none set here the
|
|
655
|
-
* customer inherits its account group's lead time, then the account default.
|
|
656
|
-
*/
|
|
657
|
-
lead_time_days: number | null;
|
|
658
|
-
|
|
659
|
-
/**
|
|
660
|
-
* Resource type identifier.
|
|
661
|
-
*/
|
|
662
|
-
object: 'customer_defaults';
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
666
|
-
* customers, sales orders, purchase orders, and invoices.
|
|
667
|
-
*/
|
|
668
|
-
payment_term: PaymentTerm | null;
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Priority level used to order work on sales orders, purchase orders, and picks.
|
|
672
|
-
*
|
|
673
|
-
* The levels are platform-provided and the same for every account, so they cannot
|
|
674
|
-
* be created, renamed, or removed. A customer can carry a default priority that
|
|
675
|
-
* pre-fills new orders for them.
|
|
676
|
-
*/
|
|
677
|
-
priority: PrioritiesAPI.Priority | null;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* A user's membership in an account, carrying the account-specific status, role,
|
|
681
|
-
* and department.
|
|
682
|
-
*
|
|
683
|
-
* Profile fields (name, email, username, image URL) live on the `user`
|
|
684
|
-
* sub-resource, which is shared across every account the user belongs to.
|
|
685
|
-
*/
|
|
686
|
-
sales_rep: BlocksAPI.AccountUser | null;
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* A named freight pricing rule that decides what a buyer pays for shipping.
|
|
690
|
-
*
|
|
691
|
-
* A customer's default shipping term is evaluated whenever freight is quoted for
|
|
692
|
-
* one of their orders. Freight exemptions on the customer, its type group, or any
|
|
693
|
-
* of its price groups are checked first and zero the freight charge before the
|
|
694
|
-
* shipping term is considered.
|
|
695
|
-
*/
|
|
696
|
-
shipping_term: ShippingTerm | null;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Customer freight and carrier settings.
|
|
701
|
-
*/
|
|
702
|
-
export interface CustomerFreightPreferences {
|
|
703
|
-
/**
|
|
704
|
-
* Carrier billing account number charged when `billing_type` is `third_party`.
|
|
705
|
-
*/
|
|
706
|
-
billing_account: string | null;
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Who pays the carrier for shipments.
|
|
710
|
-
*
|
|
711
|
-
* - `sender`: the shipper (you) pays the carrier.
|
|
712
|
-
* - `third_party`: a third party is billed, using `billing_account`.
|
|
713
|
-
*/
|
|
714
|
-
billing_type: 'sender' | 'third_party' | null;
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* A shipping carrier configured for fulfilling orders.
|
|
718
|
-
*
|
|
719
|
-
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
720
|
-
* through Shippo for live rating and label purchase; other carriers represent
|
|
721
|
-
* self-managed shipping methods such as will call or local delivery.
|
|
722
|
-
*/
|
|
723
|
-
carrier: Carrier | null;
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* Resource type identifier.
|
|
727
|
-
*/
|
|
728
|
-
object: 'customer_freight_preferences';
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* A shipping speed or method offered by a carrier, such as ground or overnight.
|
|
732
|
-
*
|
|
733
|
-
* Carriers connected through Shippo have their service levels synced from the
|
|
734
|
-
* carrier itself; any carrier can also have service levels you create by hand.
|
|
735
|
-
*/
|
|
736
|
-
service_level: ServiceLevel | null;
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* Freight policy applied to this customer's orders.
|
|
740
|
-
*
|
|
741
|
-
* - `free_freight`: the customer is not billed for freight.
|
|
742
|
-
* - `billed_freight`: freight is billed to the customer.
|
|
743
|
-
*
|
|
744
|
-
* Freight is waived when this field, the customer's `type` group, any of its
|
|
745
|
-
* `price_groups`, or any product line the ordered products belong to is
|
|
746
|
-
* `free_freight`, so a shipment can come back freight-exempt even while this field
|
|
747
|
-
* is `billed_freight`.
|
|
748
|
-
*/
|
|
749
|
-
status: 'free_freight' | 'billed_freight';
|
|
750
|
-
}
|
|
751
|
-
|
|
752
380
|
/**
|
|
753
381
|
* The ship-by lead time a new order for this customer would be committed to.
|
|
754
382
|
*/
|
|
@@ -789,276 +417,6 @@ export interface CustomerLeadTime {
|
|
|
789
417
|
source: 'customer' | 'account_group' | 'account' | 'manual';
|
|
790
418
|
}
|
|
791
419
|
|
|
792
|
-
/**
|
|
793
|
-
* Customer notification settings.
|
|
794
|
-
*/
|
|
795
|
-
export interface CustomerNotificationPreferences {
|
|
796
|
-
/**
|
|
797
|
-
* Whether anyone is set up to receive invoice emails for this customer.
|
|
798
|
-
*
|
|
799
|
-
* Derived from the customer's notification recipients: true when at least one of
|
|
800
|
-
* them is configured for invoice notifications.
|
|
801
|
-
*/
|
|
802
|
-
accepts_invoice_emails: boolean;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Resource type identifier.
|
|
806
|
-
*/
|
|
807
|
-
object: 'customer_notification_preferences';
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* A single page of resources, together with the metadata needed to page through
|
|
812
|
-
* the rest of the result set.
|
|
813
|
-
*/
|
|
814
|
-
export interface ListCustomer {
|
|
815
|
-
/**
|
|
816
|
-
* Resources in this page.
|
|
817
|
-
*/
|
|
818
|
-
data: Array<Customer>;
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Resource type identifier.
|
|
822
|
-
*/
|
|
823
|
-
object: 'list';
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* PageInfo describes where the current page sits within a paginated result set and
|
|
827
|
-
* how to move to the adjacent pages.
|
|
828
|
-
*
|
|
829
|
-
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
830
|
-
* For a top-level list endpoint the URL repeats the original request's query
|
|
831
|
-
* string with only the cursor swapped, so following it preserves the same filters,
|
|
832
|
-
* search term, and page size.
|
|
833
|
-
*/
|
|
834
|
-
page_info: APIKeysAPI.PageInfo;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
/**
|
|
838
|
-
* A single page of resources, together with the metadata needed to page through
|
|
839
|
-
* the rest of the result set.
|
|
840
|
-
*/
|
|
841
|
-
export interface ListServiceLevel {
|
|
842
|
-
/**
|
|
843
|
-
* Resources in this page.
|
|
844
|
-
*/
|
|
845
|
-
data: Array<ServiceLevel>;
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Resource type identifier.
|
|
849
|
-
*/
|
|
850
|
-
object: 'list';
|
|
851
|
-
|
|
852
|
-
/**
|
|
853
|
-
* PageInfo describes where the current page sits within a paginated result set and
|
|
854
|
-
* how to move to the adjacent pages.
|
|
855
|
-
*
|
|
856
|
-
* Page a list by following the URLs below rather than assembling cursors yourself.
|
|
857
|
-
* For a top-level list endpoint the URL repeats the original request's query
|
|
858
|
-
* string with only the cursor swapped, so following it preserves the same filters,
|
|
859
|
-
* search term, and page size.
|
|
860
|
-
*/
|
|
861
|
-
page_info: APIKeysAPI.PageInfo;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
/**
|
|
865
|
-
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
866
|
-
* customers, sales orders, purchase orders, and invoices.
|
|
867
|
-
*/
|
|
868
|
-
export interface PaymentTerm {
|
|
869
|
-
/**
|
|
870
|
-
* Payment term ID.
|
|
871
|
-
*/
|
|
872
|
-
id: string;
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* Creation timestamp.
|
|
876
|
-
*/
|
|
877
|
-
created_at: string;
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* Display name (e.g. `Net 30`), unique among the payment terms visible to your
|
|
881
|
-
* account.
|
|
882
|
-
*/
|
|
883
|
-
name: string;
|
|
884
|
-
|
|
885
|
-
/**
|
|
886
|
-
* Resource type identifier.
|
|
887
|
-
*/
|
|
888
|
-
object: 'payment_term';
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* Owner describes the provenance of a resource.
|
|
892
|
-
*/
|
|
893
|
-
owner: APIKeysAPI.Owner | null;
|
|
894
|
-
|
|
895
|
-
/**
|
|
896
|
-
* Whether this payment term is still in active use.
|
|
897
|
-
*
|
|
898
|
-
* Payment terms created through the API are always `active`, and no endpoint
|
|
899
|
-
* changes a term's status. List Payment Terms returns inactive terms alongside
|
|
900
|
-
* active ones, so filter them out yourself if you only want the ones still on
|
|
901
|
-
* offer.
|
|
902
|
-
*/
|
|
903
|
-
status: 'active' | 'inactive';
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Last-updated timestamp.
|
|
907
|
-
*/
|
|
908
|
-
updated_at: string;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
* A shipping speed or method offered by a carrier, such as ground or overnight.
|
|
913
|
-
*
|
|
914
|
-
* Carriers connected through Shippo have their service levels synced from the
|
|
915
|
-
* carrier itself; any carrier can also have service levels you create by hand.
|
|
916
|
-
*/
|
|
917
|
-
export interface ServiceLevel {
|
|
918
|
-
/**
|
|
919
|
-
* Service level ID.
|
|
920
|
-
*/
|
|
921
|
-
id: string;
|
|
922
|
-
|
|
923
|
-
/**
|
|
924
|
-
* Creation timestamp.
|
|
925
|
-
*/
|
|
926
|
-
created_at: string;
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* Whether customers can see and select this service level at checkout in the
|
|
930
|
-
* customer portal.
|
|
931
|
-
*/
|
|
932
|
-
customer_portal_visibility: 'visible' | 'hidden';
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* Business days this service typically takes in transit, used to work an order's
|
|
936
|
-
* ship-by date back from a promised delivery date.
|
|
937
|
-
*
|
|
938
|
-
* A fallback for lanes the carrier has not quoted. Null means transit is unknown
|
|
939
|
-
* for this service rather than instant, so a ship-by date falls back to the
|
|
940
|
-
* promised delivery date itself.
|
|
941
|
-
*/
|
|
942
|
-
default_transit_days: number | null;
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* Whether this is the carrier's default service level, pre-selected when the
|
|
946
|
-
* carrier is chosen.
|
|
947
|
-
*
|
|
948
|
-
* Each carrier has at most one default; setting a new default clears the previous
|
|
949
|
-
* one. A default service level cannot be deleted until another service level takes
|
|
950
|
-
* its place or the flag is cleared.
|
|
951
|
-
*/
|
|
952
|
-
is_default: boolean;
|
|
953
|
-
|
|
954
|
-
/**
|
|
955
|
-
* Human-readable name for the service level, shown to customers at checkout when
|
|
956
|
-
* the service level is visible.
|
|
957
|
-
*/
|
|
958
|
-
name: string;
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Resource type identifier.
|
|
962
|
-
*/
|
|
963
|
-
object: 'service_level';
|
|
964
|
-
|
|
965
|
-
/**
|
|
966
|
-
* Owner describes the provenance of a resource.
|
|
967
|
-
*/
|
|
968
|
-
owner: APIKeysAPI.Owner | null;
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* Carrier-specific code identifying this service level (e.g. `fedex_ground`,
|
|
972
|
-
* `ups_next_day_air`).
|
|
973
|
-
*
|
|
974
|
-
* For service levels synced from a connected carrier this is the carrier's own
|
|
975
|
-
* token, which is what rate shopping and label purchase are keyed on; for service
|
|
976
|
-
* levels you create yourself it is the `code` you supplied.
|
|
977
|
-
*/
|
|
978
|
-
service_level_token: string;
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* Last updated timestamp.
|
|
982
|
-
*/
|
|
983
|
-
updated_at: string;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
/**
|
|
987
|
-
* A named freight pricing rule that decides what a buyer pays for shipping.
|
|
988
|
-
*
|
|
989
|
-
* A customer's default shipping term is evaluated whenever freight is quoted for
|
|
990
|
-
* one of their orders. Freight exemptions on the customer, its type group, or any
|
|
991
|
-
* of its price groups are checked first and zero the freight charge before the
|
|
992
|
-
* shipping term is considered.
|
|
993
|
-
*/
|
|
994
|
-
export interface ShippingTerm {
|
|
995
|
-
/**
|
|
996
|
-
* Shipping term ID.
|
|
997
|
-
*/
|
|
998
|
-
id: string;
|
|
999
|
-
|
|
1000
|
-
/**
|
|
1001
|
-
* When this shipping term was created.
|
|
1002
|
-
*/
|
|
1003
|
-
created_at: string;
|
|
1004
|
-
|
|
1005
|
-
/**
|
|
1006
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
1007
|
-
*
|
|
1008
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
1009
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
1010
|
-
* money, weights, and durations.
|
|
1011
|
-
*/
|
|
1012
|
-
flat_rate: ItemsAPI.Quantity | null;
|
|
1013
|
-
|
|
1014
|
-
/**
|
|
1015
|
-
* A single page of resources, together with the metadata needed to page through
|
|
1016
|
-
* the rest of the result set.
|
|
1017
|
-
*/
|
|
1018
|
-
free_shipping_service_levels: ListServiceLevel | null;
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* A measured amount: a numeric value together with the unit it is expressed in.
|
|
1022
|
-
*
|
|
1023
|
-
* Quantities are shared building blocks rather than standalone records — other
|
|
1024
|
-
* resources point at them to report stock levels, ordered and packed amounts,
|
|
1025
|
-
* money, weights, and durations.
|
|
1026
|
-
*/
|
|
1027
|
-
minimum_order_value: ItemsAPI.Quantity | null;
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* Human-readable name for the shipping term, used to identify it when assigning
|
|
1031
|
-
* shipping terms to customers and orders.
|
|
1032
|
-
*/
|
|
1033
|
-
name: string;
|
|
1034
|
-
|
|
1035
|
-
/**
|
|
1036
|
-
* Resource type identifier.
|
|
1037
|
-
*/
|
|
1038
|
-
object: 'shipping_term';
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
* Owner describes the provenance of a resource.
|
|
1042
|
-
*/
|
|
1043
|
-
owner: APIKeysAPI.Owner | null;
|
|
1044
|
-
|
|
1045
|
-
/**
|
|
1046
|
-
* Freight pricing model applied by this shipping term.
|
|
1047
|
-
*
|
|
1048
|
-
* - `free_freight`: the buyer is never charged for shipping.
|
|
1049
|
-
* - `flat_rate_freight`: the buyer is charged the fixed amount in `flat_rate`,
|
|
1050
|
-
* regardless of what the carrier would have charged.
|
|
1051
|
-
* - `carrier_rate_freight`: the buyer is charged the rate the carrier quotes for
|
|
1052
|
-
* the order's carrier and service level.
|
|
1053
|
-
*/
|
|
1054
|
-
type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
|
|
1055
|
-
|
|
1056
|
-
/**
|
|
1057
|
-
* When this shipping term was last updated.
|
|
1058
|
-
*/
|
|
1059
|
-
updated_at: string;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
420
|
/**
|
|
1063
421
|
* Request to partially update a customer.
|
|
1064
422
|
*/
|
|
@@ -1798,19 +1156,8 @@ Customers.Actions = Actions;
|
|
|
1798
1156
|
|
|
1799
1157
|
export declare namespace Customers {
|
|
1800
1158
|
export {
|
|
1801
|
-
type Carrier as Carrier,
|
|
1802
1159
|
type CreateCustomerRequest as CreateCustomerRequest,
|
|
1803
|
-
type Customer as Customer,
|
|
1804
|
-
type CustomerContactInfo as CustomerContactInfo,
|
|
1805
|
-
type CustomerDefaults as CustomerDefaults,
|
|
1806
|
-
type CustomerFreightPreferences as CustomerFreightPreferences,
|
|
1807
1160
|
type CustomerLeadTime as CustomerLeadTime,
|
|
1808
|
-
type CustomerNotificationPreferences as CustomerNotificationPreferences,
|
|
1809
|
-
type ListCustomer as ListCustomer,
|
|
1810
|
-
type ListServiceLevel as ListServiceLevel,
|
|
1811
|
-
type PaymentTerm as PaymentTerm,
|
|
1812
|
-
type ServiceLevel as ServiceLevel,
|
|
1813
|
-
type ShippingTerm as ShippingTerm,
|
|
1814
1161
|
type UpdateCustomerRequest as UpdateCustomerRequest,
|
|
1815
1162
|
type CustomerDeleteResponse as CustomerDeleteResponse,
|
|
1816
1163
|
type CustomerListParams as CustomerListParams,
|