@metronome/sdk 0.1.0-alpha.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 +24 -0
- package/LICENSE +201 -0
- package/README.md +313 -0
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +90 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +237 -0
- package/core.d.ts.map +1 -0
- package/core.js +868 -0
- package/core.js.map +1 -0
- package/core.mjs +837 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +53 -0
- package/error.d.ts.map +1 -0
- package/error.js +143 -0
- package/error.js.map +1 -0
- package/error.mjs +127 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +210 -0
- package/index.d.ts +210 -0
- package/index.d.ts.map +1 -0
- package/index.js +133 -0
- package/index.js.map +1 -0
- package/index.mjs +105 -0
- package/index.mjs.map +1 -0
- package/package.json +106 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/alerts.d.ts +103 -0
- package/resources/alerts.d.ts.map +1 -0
- package/resources/alerts.js +23 -0
- package/resources/alerts.js.map +1 -0
- package/resources/alerts.mjs +19 -0
- package/resources/alerts.mjs.map +1 -0
- package/resources/audit-logs.d.ts +83 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +18 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +14 -0
- package/resources/audit-logs.mjs.map +1 -0
- package/resources/billable-metrics.d.ts +236 -0
- package/resources/billable-metrics.d.ts.map +1 -0
- package/resources/billable-metrics.js +36 -0
- package/resources/billable-metrics.js.map +1 -0
- package/resources/billable-metrics.mjs +32 -0
- package/resources/billable-metrics.mjs.map +1 -0
- package/resources/credit-grants.d.ts +469 -0
- package/resources/credit-grants.d.ts.map +1 -0
- package/resources/credit-grants.js +50 -0
- package/resources/credit-grants.js.map +1 -0
- package/resources/credit-grants.mjs +46 -0
- package/resources/credit-grants.mjs.map +1 -0
- package/resources/custom-fields.d.ts +82 -0
- package/resources/custom-fields.d.ts.map +1 -0
- package/resources/custom-fields.js +66 -0
- package/resources/custom-fields.js.map +1 -0
- package/resources/custom-fields.mjs +62 -0
- package/resources/custom-fields.mjs.map +1 -0
- package/resources/customers/alerts.d.ts +146 -0
- package/resources/customers/alerts.d.ts.map +1 -0
- package/resources/customers/alerts.js +35 -0
- package/resources/customers/alerts.js.map +1 -0
- package/resources/customers/alerts.mjs +31 -0
- package/resources/customers/alerts.mjs.map +1 -0
- package/resources/customers/billing-config.d.ts +64 -0
- package/resources/customers/billing-config.d.ts.map +1 -0
- package/resources/customers/billing-config.js +37 -0
- package/resources/customers/billing-config.js.map +1 -0
- package/resources/customers/billing-config.mjs +33 -0
- package/resources/customers/billing-config.mjs.map +1 -0
- package/resources/customers/customers.d.ts +313 -0
- package/resources/customers/customers.d.ts.map +1 -0
- package/resources/customers/customers.js +116 -0
- package/resources/customers/customers.js.map +1 -0
- package/resources/customers/customers.mjs +89 -0
- package/resources/customers/customers.mjs.map +1 -0
- package/resources/customers/index.d.ts +6 -0
- package/resources/customers/index.d.ts.map +1 -0
- package/resources/customers/index.js +15 -0
- package/resources/customers/index.js.map +1 -0
- package/resources/customers/index.mjs +7 -0
- package/resources/customers/index.mjs.map +1 -0
- package/resources/customers/invoices.d.ts +331 -0
- package/resources/customers/invoices.d.ts.map +1 -0
- package/resources/customers/invoices.js +30 -0
- package/resources/customers/invoices.js.map +1 -0
- package/resources/customers/invoices.mjs +26 -0
- package/resources/customers/invoices.mjs.map +1 -0
- package/resources/customers/plans.d.ts +239 -0
- package/resources/customers/plans.d.ts.map +1 -0
- package/resources/customers/plans.js +41 -0
- package/resources/customers/plans.js.map +1 -0
- package/resources/customers/plans.mjs +37 -0
- package/resources/customers/plans.mjs.map +1 -0
- package/resources/dashboards.d.ts +61 -0
- package/resources/dashboards.d.ts.map +1 -0
- package/resources/dashboards.js +19 -0
- package/resources/dashboards.js.map +1 -0
- package/resources/dashboards.mjs +15 -0
- package/resources/dashboards.mjs.map +1 -0
- package/resources/index.d.ts +13 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +42 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +14 -0
- package/resources/index.mjs.map +1 -0
- package/resources/plans.d.ts +217 -0
- package/resources/plans.d.ts.map +1 -0
- package/resources/plans.js +36 -0
- package/resources/plans.js.map +1 -0
- package/resources/plans.mjs +32 -0
- package/resources/plans.mjs.map +1 -0
- package/resources/services.d.ts +26 -0
- package/resources/services.d.ts.map +1 -0
- package/resources/services.js +20 -0
- package/resources/services.js.map +1 -0
- package/resources/services.mjs +16 -0
- package/resources/services.mjs.map +1 -0
- package/resources/shared.d.ts +540 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/usage.d.ts +182 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +41 -0
- package/resources/usage.js.map +1 -0
- package/resources/usage.mjs +37 -0
- package/resources/usage.mjs.map +1 -0
- package/resources/webhooks.d.ts +22 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +91 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +87 -0
- package/resources/webhooks.mjs.map +1 -0
- package/shims/node.d.ts +29 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +83 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1146 -0
- package/src/error.ts +146 -0
- package/src/index.ts +303 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +11 -0
- package/src/resources/alerts.ts +144 -0
- package/src/resources/audit-logs.ts +116 -0
- package/src/resources/billable-metrics.ts +341 -0
- package/src/resources/credit-grants.ts +627 -0
- package/src/resources/custom-fields.ts +242 -0
- package/src/resources/customers/alerts.ts +214 -0
- package/src/resources/customers/billing-config.ts +183 -0
- package/src/resources/customers/customers.ts +500 -0
- package/src/resources/customers/index.ts +53 -0
- package/src/resources/customers/invoices.ts +533 -0
- package/src/resources/customers/plans.ts +363 -0
- package/src/resources/dashboards.ts +98 -0
- package/src/resources/index.ts +90 -0
- package/src/resources/plans.ts +333 -0
- package/src/resources/services.ts +35 -0
- package/src/resources/shared.ts +849 -0
- package/src/resources/usage.ts +245 -0
- package/src/resources/webhooks.ts +120 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +248 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +165 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +152 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,849 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import * as Shared from "./shared";
|
|
4
|
+
|
|
5
|
+
export interface Commit {
|
|
6
|
+
id: string;
|
|
7
|
+
|
|
8
|
+
product: Commit.Product;
|
|
9
|
+
|
|
10
|
+
type: 'PREPAID' | 'POSTPAID';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The schedule that the customer will gain access to the credits purposed with
|
|
14
|
+
* this commit.
|
|
15
|
+
*/
|
|
16
|
+
access_schedule?: Commit.AccessSchedule;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* (DEPRECATED) Use access_schedule + invoice_schedule instead.
|
|
20
|
+
*/
|
|
21
|
+
amount?: number;
|
|
22
|
+
|
|
23
|
+
applicable_contract_ids?: Array<string>;
|
|
24
|
+
|
|
25
|
+
applicable_product_ids?: Array<string>;
|
|
26
|
+
|
|
27
|
+
applicable_product_tags?: Array<string>;
|
|
28
|
+
|
|
29
|
+
contract?: Commit.Contract;
|
|
30
|
+
|
|
31
|
+
custom_fields?: Record<string, string>;
|
|
32
|
+
|
|
33
|
+
description?: string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The contract that this commit will be billed on.
|
|
37
|
+
*/
|
|
38
|
+
invoice_contract?: Commit.InvoiceContract;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The schedule that the customer will be invoiced for this commit.
|
|
42
|
+
*/
|
|
43
|
+
invoice_schedule?: SchedulePointInTime;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* A list of ordered events that impact the balance of a commit. For example, an
|
|
47
|
+
* invoice deduction or a rollover.
|
|
48
|
+
*/
|
|
49
|
+
ledger?: Array<
|
|
50
|
+
| Commit.PrepaidCommitSegmentStartLedgerEntry
|
|
51
|
+
| Commit.PrepaidCommitAutomatedInvoiceDeductionLedgerEntry
|
|
52
|
+
| Commit.PrepaidCommitRolloverLedgerEntry
|
|
53
|
+
| Commit.PrepaidCommitExpirationLedgerEntry
|
|
54
|
+
| Commit.PrepaidCommitCanceledLedgerEntry
|
|
55
|
+
| Commit.PrepaidCommitCreditedLedgerEntry
|
|
56
|
+
| Commit.PostpaidCommitInitialBalanceLedgerEntry
|
|
57
|
+
| Commit.PostpaidCommitAutomatedInvoiceDeductionLedgerEntry
|
|
58
|
+
| Commit.PostpaidCommitRolloverLedgerEntry
|
|
59
|
+
| Commit.PostpaidCommitCanceledLedgerEntry
|
|
60
|
+
| Commit.PostpaidCommitCreditedLedgerEntry
|
|
61
|
+
| Commit.PostpaidCommitTrueupLedgerEntry
|
|
62
|
+
| Commit.PrepaidCommitManualLedgerEntry
|
|
63
|
+
| Commit.PostpaidCommitManualLedgerEntry
|
|
64
|
+
| Commit.PostpaidCommitExpirationLedgerEntry
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
name?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* This field's availability is dependent on your client's configuration.
|
|
71
|
+
*/
|
|
72
|
+
netsuite_sales_order_id?: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* If multiple credits or commits are applicable, the one with the lower priority
|
|
76
|
+
* will apply first.
|
|
77
|
+
*/
|
|
78
|
+
priority?: number;
|
|
79
|
+
|
|
80
|
+
rolled_over_from?: Commit.RolledOverFrom;
|
|
81
|
+
|
|
82
|
+
rollover_fraction?: number;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* This field's availability is dependent on your client's configuration.
|
|
86
|
+
*/
|
|
87
|
+
salesforce_opportunity_id?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace Commit {
|
|
91
|
+
export interface Product {
|
|
92
|
+
id: string;
|
|
93
|
+
|
|
94
|
+
name: string;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The schedule that the customer will gain access to the credits purposed with
|
|
99
|
+
* this commit.
|
|
100
|
+
*/
|
|
101
|
+
export interface AccessSchedule {
|
|
102
|
+
schedule_items: Array<AccessSchedule.ScheduleItem>;
|
|
103
|
+
|
|
104
|
+
credit_type?: Shared.CreditType;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export namespace AccessSchedule {
|
|
108
|
+
export interface ScheduleItem {
|
|
109
|
+
id: string;
|
|
110
|
+
|
|
111
|
+
amount: number;
|
|
112
|
+
|
|
113
|
+
ending_before: string;
|
|
114
|
+
|
|
115
|
+
starting_at: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export interface Contract {
|
|
120
|
+
id: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The contract that this commit will be billed on.
|
|
125
|
+
*/
|
|
126
|
+
export interface InvoiceContract {
|
|
127
|
+
id: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface PrepaidCommitSegmentStartLedgerEntry {
|
|
131
|
+
amount: number;
|
|
132
|
+
|
|
133
|
+
segment_id: string;
|
|
134
|
+
|
|
135
|
+
timestamp: string;
|
|
136
|
+
|
|
137
|
+
type: 'PREPAID_COMMIT_SEGMENT_START';
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface PrepaidCommitAutomatedInvoiceDeductionLedgerEntry {
|
|
141
|
+
amount: number;
|
|
142
|
+
|
|
143
|
+
invoice_id: string;
|
|
144
|
+
|
|
145
|
+
segment_id: string;
|
|
146
|
+
|
|
147
|
+
timestamp: string;
|
|
148
|
+
|
|
149
|
+
type: 'PREPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface PrepaidCommitRolloverLedgerEntry {
|
|
153
|
+
amount: number;
|
|
154
|
+
|
|
155
|
+
new_contract_id: string;
|
|
156
|
+
|
|
157
|
+
segment_id: string;
|
|
158
|
+
|
|
159
|
+
timestamp: string;
|
|
160
|
+
|
|
161
|
+
type: 'PREPAID_COMMIT_ROLLOVER';
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface PrepaidCommitExpirationLedgerEntry {
|
|
165
|
+
amount: number;
|
|
166
|
+
|
|
167
|
+
segment_id: string;
|
|
168
|
+
|
|
169
|
+
timestamp: string;
|
|
170
|
+
|
|
171
|
+
type: 'PREPAID_COMMIT_EXPIRATION';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface PrepaidCommitCanceledLedgerEntry {
|
|
175
|
+
amount: number;
|
|
176
|
+
|
|
177
|
+
invoice_id: string;
|
|
178
|
+
|
|
179
|
+
segment_id: string;
|
|
180
|
+
|
|
181
|
+
timestamp: string;
|
|
182
|
+
|
|
183
|
+
type: 'PREPAID_COMMIT_CANCELED';
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface PrepaidCommitCreditedLedgerEntry {
|
|
187
|
+
amount: number;
|
|
188
|
+
|
|
189
|
+
invoice_id: string;
|
|
190
|
+
|
|
191
|
+
segment_id: string;
|
|
192
|
+
|
|
193
|
+
timestamp: string;
|
|
194
|
+
|
|
195
|
+
type: 'PREPAID_COMMIT_CREDITED';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface PostpaidCommitInitialBalanceLedgerEntry {
|
|
199
|
+
amount: number;
|
|
200
|
+
|
|
201
|
+
timestamp: string;
|
|
202
|
+
|
|
203
|
+
type: 'POSTPAID_COMMIT_INITIAL_BALANCE';
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface PostpaidCommitAutomatedInvoiceDeductionLedgerEntry {
|
|
207
|
+
amount: number;
|
|
208
|
+
|
|
209
|
+
invoice_id: string;
|
|
210
|
+
|
|
211
|
+
segment_id: string;
|
|
212
|
+
|
|
213
|
+
timestamp: string;
|
|
214
|
+
|
|
215
|
+
type: 'POSTPAID_COMMIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface PostpaidCommitRolloverLedgerEntry {
|
|
219
|
+
amount: number;
|
|
220
|
+
|
|
221
|
+
new_contract_id: string;
|
|
222
|
+
|
|
223
|
+
segment_id: string;
|
|
224
|
+
|
|
225
|
+
timestamp: string;
|
|
226
|
+
|
|
227
|
+
type: 'POSTPAID_COMMIT_ROLLOVER';
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface PostpaidCommitCanceledLedgerEntry {
|
|
231
|
+
amount: number;
|
|
232
|
+
|
|
233
|
+
invoice_id: string;
|
|
234
|
+
|
|
235
|
+
segment_id: string;
|
|
236
|
+
|
|
237
|
+
timestamp: string;
|
|
238
|
+
|
|
239
|
+
type: 'POSTPAID_COMMIT_CANCELED';
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface PostpaidCommitCreditedLedgerEntry {
|
|
243
|
+
amount: number;
|
|
244
|
+
|
|
245
|
+
invoice_id: string;
|
|
246
|
+
|
|
247
|
+
segment_id: string;
|
|
248
|
+
|
|
249
|
+
timestamp: string;
|
|
250
|
+
|
|
251
|
+
type: 'POSTPAID_COMMIT_CREDITED';
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
export interface PostpaidCommitTrueupLedgerEntry {
|
|
255
|
+
amount: number;
|
|
256
|
+
|
|
257
|
+
invoice_id: string;
|
|
258
|
+
|
|
259
|
+
timestamp: string;
|
|
260
|
+
|
|
261
|
+
type: 'POSTPAID_COMMIT_TRUEUP';
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export interface PrepaidCommitManualLedgerEntry {
|
|
265
|
+
amount: number;
|
|
266
|
+
|
|
267
|
+
reason: string;
|
|
268
|
+
|
|
269
|
+
timestamp: string;
|
|
270
|
+
|
|
271
|
+
type: 'PREPAID_COMMIT_MANUAL';
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface PostpaidCommitManualLedgerEntry {
|
|
275
|
+
amount: number;
|
|
276
|
+
|
|
277
|
+
reason: string;
|
|
278
|
+
|
|
279
|
+
timestamp: string;
|
|
280
|
+
|
|
281
|
+
type: 'POSTPAID_COMMIT_MANUAL';
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface PostpaidCommitExpirationLedgerEntry {
|
|
285
|
+
amount: number;
|
|
286
|
+
|
|
287
|
+
timestamp: string;
|
|
288
|
+
|
|
289
|
+
type: 'POSTPAID_COMMIT_EXPIRATION';
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface RolledOverFrom {
|
|
293
|
+
commit_id: string;
|
|
294
|
+
|
|
295
|
+
contract_id: string;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface ContractWithoutAmendments {
|
|
300
|
+
commits: Array<Commit>;
|
|
301
|
+
|
|
302
|
+
created_at: string;
|
|
303
|
+
|
|
304
|
+
created_by: string;
|
|
305
|
+
|
|
306
|
+
overrides: Array<Override>;
|
|
307
|
+
|
|
308
|
+
scheduled_charges: Array<ScheduledCharge>;
|
|
309
|
+
|
|
310
|
+
starting_at: string;
|
|
311
|
+
|
|
312
|
+
transitions: Array<ContractWithoutAmendments.Transition>;
|
|
313
|
+
|
|
314
|
+
usage_statement_schedule: ContractWithoutAmendments.UsageStatementSchedule;
|
|
315
|
+
|
|
316
|
+
credits?: Array<ContractWithoutAmendments.Credit>;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* This field's availability is dependent on your client's configuration.
|
|
320
|
+
*/
|
|
321
|
+
discounts?: Array<Discount>;
|
|
322
|
+
|
|
323
|
+
ending_before?: string;
|
|
324
|
+
|
|
325
|
+
name?: string;
|
|
326
|
+
|
|
327
|
+
net_payment_terms_days?: number;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* This field's availability is dependent on your client's configuration.
|
|
331
|
+
*/
|
|
332
|
+
netsuite_sales_order_id?: string;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* This field's availability is dependent on your client's configuration.
|
|
336
|
+
*/
|
|
337
|
+
professional_services?: Array<ContractWithoutAmendments.ProfessionalService>;
|
|
338
|
+
|
|
339
|
+
rate_card_id?: string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* This field's availability is dependent on your client's configuration.
|
|
343
|
+
*/
|
|
344
|
+
reseller_royalties?: Array<ContractWithoutAmendments.ResellerRoyalty>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* This field's availability is dependent on your client's configuration.
|
|
348
|
+
*/
|
|
349
|
+
salesforce_opportunity_id?: string;
|
|
350
|
+
|
|
351
|
+
total_contract_value?: number;
|
|
352
|
+
|
|
353
|
+
usage_filter?: ContractWithoutAmendments.UsageFilter;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export namespace ContractWithoutAmendments {
|
|
357
|
+
export interface Transition {
|
|
358
|
+
from_contract_id: string;
|
|
359
|
+
|
|
360
|
+
to_contract_id: string;
|
|
361
|
+
|
|
362
|
+
type: 'SUPERSEDE' | 'RENEWAL';
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface UsageStatementSchedule {
|
|
366
|
+
frequency: 'MONTHLY' | 'monthly' | 'QUARTERLY' | 'quarterly';
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface Credit {
|
|
370
|
+
id: string;
|
|
371
|
+
|
|
372
|
+
product: Credit.Product;
|
|
373
|
+
|
|
374
|
+
type: 'CREDIT';
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* The schedule that the customer will gain access to the credits.
|
|
378
|
+
*/
|
|
379
|
+
access_schedule?: Credit.AccessSchedule;
|
|
380
|
+
|
|
381
|
+
applicable_contract_ids?: Array<string>;
|
|
382
|
+
|
|
383
|
+
applicable_product_ids?: Array<string>;
|
|
384
|
+
|
|
385
|
+
applicable_product_tags?: Array<string>;
|
|
386
|
+
|
|
387
|
+
contract?: Credit.Contract;
|
|
388
|
+
|
|
389
|
+
custom_fields?: Record<string, string>;
|
|
390
|
+
|
|
391
|
+
description?: string;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* A list of ordered events that impact the balance of a credit. For example, an
|
|
395
|
+
* invoice deduction or an expiration.
|
|
396
|
+
*/
|
|
397
|
+
ledger?: Array<
|
|
398
|
+
| Credit.CreditSegmentStartLedgerEntry
|
|
399
|
+
| Credit.CreditAutomatedInvoiceDeductionLedgerEntry
|
|
400
|
+
| Credit.CreditExpirationLedgerEntry
|
|
401
|
+
| Credit.CreditCanceledLedgerEntry
|
|
402
|
+
| Credit.CreditCreditedLedgerEntry
|
|
403
|
+
| Credit.CreditManualLedgerEntry
|
|
404
|
+
>;
|
|
405
|
+
|
|
406
|
+
name?: string;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* This field's availability is dependent on your client's configuration.
|
|
410
|
+
*/
|
|
411
|
+
netsuite_sales_order_id?: string;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* If multiple credits or commits are applicable, the one with the lower priority
|
|
415
|
+
* will apply first.
|
|
416
|
+
*/
|
|
417
|
+
priority?: number;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* This field's availability is dependent on your client's configuration.
|
|
421
|
+
*/
|
|
422
|
+
salesforce_opportunity_id?: string;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export namespace Credit {
|
|
426
|
+
export interface Product {
|
|
427
|
+
id: string;
|
|
428
|
+
|
|
429
|
+
name: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The schedule that the customer will gain access to the credits.
|
|
434
|
+
*/
|
|
435
|
+
export interface AccessSchedule {
|
|
436
|
+
schedule_items: Array<AccessSchedule.ScheduleItem>;
|
|
437
|
+
|
|
438
|
+
credit_type?: Shared.CreditType;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export namespace AccessSchedule {
|
|
442
|
+
export interface ScheduleItem {
|
|
443
|
+
id: string;
|
|
444
|
+
|
|
445
|
+
amount: number;
|
|
446
|
+
|
|
447
|
+
ending_before: string;
|
|
448
|
+
|
|
449
|
+
starting_at: string;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export interface Contract {
|
|
454
|
+
id: string;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export interface CreditSegmentStartLedgerEntry {
|
|
458
|
+
amount: number;
|
|
459
|
+
|
|
460
|
+
segment_id: string;
|
|
461
|
+
|
|
462
|
+
timestamp: string;
|
|
463
|
+
|
|
464
|
+
type: 'CREDIT_SEGMENT_START';
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface CreditAutomatedInvoiceDeductionLedgerEntry {
|
|
468
|
+
amount: number;
|
|
469
|
+
|
|
470
|
+
invoice_id: string;
|
|
471
|
+
|
|
472
|
+
segment_id: string;
|
|
473
|
+
|
|
474
|
+
timestamp: string;
|
|
475
|
+
|
|
476
|
+
type: 'CREDIT_AUTOMATED_INVOICE_DEDUCTION';
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export interface CreditExpirationLedgerEntry {
|
|
480
|
+
amount: number;
|
|
481
|
+
|
|
482
|
+
segment_id: string;
|
|
483
|
+
|
|
484
|
+
timestamp: string;
|
|
485
|
+
|
|
486
|
+
type: 'CREDIT_EXPIRATION';
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface CreditCanceledLedgerEntry {
|
|
490
|
+
amount: number;
|
|
491
|
+
|
|
492
|
+
invoice_id: string;
|
|
493
|
+
|
|
494
|
+
segment_id: string;
|
|
495
|
+
|
|
496
|
+
timestamp: string;
|
|
497
|
+
|
|
498
|
+
type: 'CREDIT_CANCELED';
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export interface CreditCreditedLedgerEntry {
|
|
502
|
+
amount: number;
|
|
503
|
+
|
|
504
|
+
invoice_id: string;
|
|
505
|
+
|
|
506
|
+
segment_id: string;
|
|
507
|
+
|
|
508
|
+
timestamp: string;
|
|
509
|
+
|
|
510
|
+
type: 'CREDIT_CREDITED';
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
export interface CreditManualLedgerEntry {
|
|
514
|
+
amount: number;
|
|
515
|
+
|
|
516
|
+
reason: string;
|
|
517
|
+
|
|
518
|
+
timestamp: string;
|
|
519
|
+
|
|
520
|
+
type: 'CREDIT_MANUAL';
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export interface ProfessionalService {
|
|
525
|
+
id: string;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Maximum amount for the term.
|
|
529
|
+
*/
|
|
530
|
+
max_amount: number;
|
|
531
|
+
|
|
532
|
+
product_id: string;
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Quantity for the charge. Will be multiplied by unit_price to determine the
|
|
536
|
+
* amount.
|
|
537
|
+
*/
|
|
538
|
+
quantity: number;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* Unit price for the charge. Will be multiplied by quantity to determine the
|
|
542
|
+
* amount and must be specified.
|
|
543
|
+
*/
|
|
544
|
+
unit_price: number;
|
|
545
|
+
|
|
546
|
+
custom_fields?: Record<string, string>;
|
|
547
|
+
|
|
548
|
+
description?: string;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* This field's availability is dependent on your client's configuration.
|
|
552
|
+
*/
|
|
553
|
+
netsuite_sales_order_id?: string;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export interface ResellerRoyalty {
|
|
557
|
+
fraction: number;
|
|
558
|
+
|
|
559
|
+
netsuite_reseller_id: string;
|
|
560
|
+
|
|
561
|
+
reseller_type: 'AWS' | 'AWS_PRO_SERVICE' | 'GCP' | 'GCP_PRO_SERVICE';
|
|
562
|
+
|
|
563
|
+
starting_at: string;
|
|
564
|
+
|
|
565
|
+
applicable_product_ids?: Array<string>;
|
|
566
|
+
|
|
567
|
+
applicable_product_tags?: Array<string>;
|
|
568
|
+
|
|
569
|
+
aws_account_number?: string;
|
|
570
|
+
|
|
571
|
+
aws_offer_id?: string;
|
|
572
|
+
|
|
573
|
+
aws_payer_reference_id?: string;
|
|
574
|
+
|
|
575
|
+
ending_before?: string;
|
|
576
|
+
|
|
577
|
+
gcp_account_id?: string;
|
|
578
|
+
|
|
579
|
+
gcp_offer_id?: string;
|
|
580
|
+
|
|
581
|
+
reseller_contract_value?: number;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
export interface UsageFilter {
|
|
585
|
+
current: UsageFilter.Current | null;
|
|
586
|
+
|
|
587
|
+
initial: UsageFilter.Initial;
|
|
588
|
+
|
|
589
|
+
updates: Array<UsageFilter.Update>;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export namespace UsageFilter {
|
|
593
|
+
export interface Current {
|
|
594
|
+
group_key: string;
|
|
595
|
+
|
|
596
|
+
group_values: Array<string>;
|
|
597
|
+
|
|
598
|
+
starting_at?: string;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export interface Initial {
|
|
602
|
+
group_key: string;
|
|
603
|
+
|
|
604
|
+
group_values: Array<string>;
|
|
605
|
+
|
|
606
|
+
starting_at?: string;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
export interface Update {
|
|
610
|
+
group_key: string;
|
|
611
|
+
|
|
612
|
+
group_values: Array<string>;
|
|
613
|
+
|
|
614
|
+
starting_at: string;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export interface CreditType {
|
|
620
|
+
id: string;
|
|
621
|
+
|
|
622
|
+
name: string;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export interface Discount {
|
|
626
|
+
id: string;
|
|
627
|
+
|
|
628
|
+
product: Discount.Product;
|
|
629
|
+
|
|
630
|
+
schedule: SchedulePointInTime;
|
|
631
|
+
|
|
632
|
+
name?: string;
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* This field's availability is dependent on your client's configuration.
|
|
636
|
+
*/
|
|
637
|
+
netsuite_sales_order_id?: string;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
export namespace Discount {
|
|
641
|
+
export interface Product {
|
|
642
|
+
id: string;
|
|
643
|
+
|
|
644
|
+
name: string;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface ID {
|
|
649
|
+
id: string;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface Override {
|
|
653
|
+
id: string;
|
|
654
|
+
|
|
655
|
+
starting_at: string;
|
|
656
|
+
|
|
657
|
+
applicable_product_tags?: Array<string>;
|
|
658
|
+
|
|
659
|
+
ending_before?: string;
|
|
660
|
+
|
|
661
|
+
entitled?: boolean;
|
|
662
|
+
|
|
663
|
+
multiplier?: number;
|
|
664
|
+
|
|
665
|
+
override_specifiers?: Array<Override.OverrideSpecifier>;
|
|
666
|
+
|
|
667
|
+
overwrite_rate?: Override.OverwriteRate;
|
|
668
|
+
|
|
669
|
+
product?: Override.Product;
|
|
670
|
+
|
|
671
|
+
type?: 'OVERWRITE' | 'MULTIPLIER';
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
export namespace Override {
|
|
675
|
+
export interface OverrideSpecifier {
|
|
676
|
+
presentation_group_values?: Record<string, string | null>;
|
|
677
|
+
|
|
678
|
+
pricing_group_values?: Record<string, string>;
|
|
679
|
+
|
|
680
|
+
product_id?: string;
|
|
681
|
+
|
|
682
|
+
product_tags?: Array<string>;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export interface OverwriteRate {
|
|
686
|
+
rate_type:
|
|
687
|
+
| 'FLAT'
|
|
688
|
+
| 'flat'
|
|
689
|
+
| 'PERCENTAGE'
|
|
690
|
+
| 'percentage'
|
|
691
|
+
| 'SUBSCRIPTION'
|
|
692
|
+
| 'subscription'
|
|
693
|
+
| 'TIERED'
|
|
694
|
+
| 'tiered'
|
|
695
|
+
| 'CUSTOM'
|
|
696
|
+
| 'custom';
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Only set for CUSTOM rate_type. This field is interpreted by custom rate
|
|
700
|
+
* processors.
|
|
701
|
+
*/
|
|
702
|
+
custom_rate?: Record<string, unknown>;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Default proration configuration. Only valid for SUBSCRIPTION rate_type.
|
|
706
|
+
*/
|
|
707
|
+
is_prorated?: boolean;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type,
|
|
711
|
+
* this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.
|
|
712
|
+
*/
|
|
713
|
+
price?: number;
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Default quantity. For SUBSCRIPTION rate_type, this must be >=0.
|
|
717
|
+
*/
|
|
718
|
+
quantity?: number;
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Only set for TIERED rate_type.
|
|
722
|
+
*/
|
|
723
|
+
tiers?: Array<OverwriteRate.Tier>;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
export namespace OverwriteRate {
|
|
727
|
+
export interface Tier {
|
|
728
|
+
price: number;
|
|
729
|
+
|
|
730
|
+
size?: number;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
export interface Product {
|
|
735
|
+
id: string;
|
|
736
|
+
|
|
737
|
+
name: string;
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
export interface Rate {
|
|
742
|
+
rate_type:
|
|
743
|
+
| 'FLAT'
|
|
744
|
+
| 'flat'
|
|
745
|
+
| 'PERCENTAGE'
|
|
746
|
+
| 'percentage'
|
|
747
|
+
| 'SUBSCRIPTION'
|
|
748
|
+
| 'subscription'
|
|
749
|
+
| 'CUSTOM'
|
|
750
|
+
| 'custom'
|
|
751
|
+
| 'TIERED'
|
|
752
|
+
| 'tiered';
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* Only set for CUSTOM rate_type. This field is interpreted by custom rate
|
|
756
|
+
* processors.
|
|
757
|
+
*/
|
|
758
|
+
custom_rate?: Record<string, unknown>;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Default proration configuration. Only valid for SUBSCRIPTION rate_type.
|
|
762
|
+
*/
|
|
763
|
+
is_prorated?: boolean;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Default price. For FLAT rate_type, this must be >=0. For PERCENTAGE rate_type,
|
|
767
|
+
* this is a decimal fraction, e.g. use 0.1 for 10%; this must be >=0 and <=1.
|
|
768
|
+
*/
|
|
769
|
+
price?: number;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* if pricing groups are used, this will contain the values used to calculate the
|
|
773
|
+
* price
|
|
774
|
+
*/
|
|
775
|
+
pricing_group_values?: Record<string, string>;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Default quantity. For SUBSCRIPTION rate_type, this must be >=0.
|
|
779
|
+
*/
|
|
780
|
+
quantity?: number;
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Only set for TIERED rate_type.
|
|
784
|
+
*/
|
|
785
|
+
tiers?: Array<Rate.Tier>;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* Only set for PERCENTAGE rate_type. Defaults to false. If true, rate is computed
|
|
789
|
+
* using list prices rather than the standard rates for this product on the
|
|
790
|
+
* contract.
|
|
791
|
+
*/
|
|
792
|
+
use_list_prices?: boolean;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export namespace Rate {
|
|
796
|
+
export interface Tier {
|
|
797
|
+
price: number;
|
|
798
|
+
|
|
799
|
+
size?: number;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export interface SchedulePointInTime {
|
|
804
|
+
schedule_items?: Array<SchedulePointInTime.ScheduleItem>;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export namespace SchedulePointInTime {
|
|
808
|
+
export interface ScheduleItem {
|
|
809
|
+
id: string;
|
|
810
|
+
|
|
811
|
+
amount: number;
|
|
812
|
+
|
|
813
|
+
invoice_id: string;
|
|
814
|
+
|
|
815
|
+
quantity: number;
|
|
816
|
+
|
|
817
|
+
timestamp: string;
|
|
818
|
+
|
|
819
|
+
unit_price: number;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export interface ScheduledCharge {
|
|
824
|
+
id: string;
|
|
825
|
+
|
|
826
|
+
product: ScheduledCharge.Product;
|
|
827
|
+
|
|
828
|
+
schedule: SchedulePointInTime;
|
|
829
|
+
|
|
830
|
+
custom_fields?: Record<string, string>;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* displayed on invoices
|
|
834
|
+
*/
|
|
835
|
+
name?: string;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* This field's availability is dependent on your client's configuration.
|
|
839
|
+
*/
|
|
840
|
+
netsuite_sales_order_id?: string;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
export namespace ScheduledCharge {
|
|
844
|
+
export interface Product {
|
|
845
|
+
id: string;
|
|
846
|
+
|
|
847
|
+
name: string;
|
|
848
|
+
}
|
|
849
|
+
}
|