@flowio/api-types 0.0.202 → 0.0.204
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/generated/io.flow.apple.pay.v0.apple-pay.d.ts +4 -4
- package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +381 -0
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +1030 -0
- package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +281 -0
- package/generated/io.flow.billing.true.up.v0.billing-true-up.d.ts +46 -30
- package/generated/io.flow.billing.v0.billing.d.ts +23 -15
- package/generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts +204 -0
- package/generated/io.flow.internal.v0.api-internal.d.ts +167 -54
- package/generated/io.flow.invoice.v0.invoice.d.ts +21 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -0
- package/generated/io.flow.v0.api.d.ts +59 -19
- package/index.d.ts +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1030 @@
|
|
|
1
|
+
declare namespace io.flow.billing.internal.v0.enums {
|
|
2
|
+
type AccountSettingLiabilitiesMethod = 'withholding' | 'transaction';
|
|
3
|
+
type AccountType = 'channel' | 'organization';
|
|
4
|
+
type AdjustmentTransactionType = 'adjustment' | 'reversal';
|
|
5
|
+
type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
|
|
6
|
+
type BillingAllocationKey = 'freight_cost' | 'adjustment' | 'vat_deminimis' | 'duty_deminimis' | 'duties_item_price' | 'duties_freight' | 'duties_insurance' | 'vat_item_price' | 'vat_freight' | 'vat_insurance' | 'vat_duties_item_price' | 'vat_duties_freight' | 'vat_duties_insurance' | 'item_price' | 'item_discount' | 'rounding' | 'insurance' | 'shipping' | 'order_discount' | 'subtotal_percent_sales_margin' | 'subtotal_vat_percent_sales_margin' | 'subtotal_duty_percent_sales_margin' | 'vat_subsidy' | 'duty_subsidy' | 'fuel_surcharge' | 'remote_area_surcharge';
|
|
7
|
+
type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'channel_billed' | 'transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'label' | 'order_service' | 'tax' | 'duty' | 'trueup' | 'all';
|
|
8
|
+
type BillingStatementBatchFileKey = 'summary';
|
|
9
|
+
type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
|
|
10
|
+
type BillingTransactionType = 'manual' | 'subscription' | 'invoice' | 'transfer' | 'adjustment' | 'reversal' | 'capture' | 'refund' | 'virtual_card_capture' | 'virtual_card_refund' | 'tax_remittance' | 'fully_subsidized_order' | 'credit_payment' | 'dispute' | 'channel' | 'label' | 'order' | 'channel_billed' | 'tax' | 'duty' | 'trueup';
|
|
11
|
+
type ChannelBilledTransactionType = 'adjustment' | 'reversal' | 'channel_initiated';
|
|
12
|
+
type ChannelTransactionType = 'adjustment' | 'reversal' | 'processing';
|
|
13
|
+
type DisputeTransactionType = 'adjustment' | 'dispute';
|
|
14
|
+
type DutyTransactionType = 'adjustment' | 'reversal' | 'duty';
|
|
15
|
+
type FeesSource = 'settings' | 'authorization_bundle';
|
|
16
|
+
type LabelTransactionType = 'adjustment' | 'reversal' | 'billable_label' | 'fee' | 'revenue_share';
|
|
17
|
+
type MainTransactionStatus = 'scheduled' | 'pending_proof';
|
|
18
|
+
type ManualTransactionCategory = 'cancelled_order_refund' | 'channel_partner_initiated' | 'client_accepted_chargeback' | 'fee_reimbursement' | 'partial_refund' | 'platform_fee' | 'shipping_true_up' | 'tax_credit';
|
|
19
|
+
type OrderCancellationInitiatedBy = 'flow' | 'organization';
|
|
20
|
+
type OrderTransactionType = 'adjustment' | 'reversal' | 'order_service';
|
|
21
|
+
type PreferredBillingSchedule = 'monthly' | 'bi-monthly';
|
|
22
|
+
type ProcessingTransactionType = 'adjustment' | 'reversal' | 'capture' | 'refund' | 'fully_subsidized_order' | 'credit_payment';
|
|
23
|
+
type QueuedRecordType = 'capture' | 'channel_transaction' | 'consumer_invoice' | 'fulfillment_in_transit' | 'fulfillment_shipping_notification' | 'fulfillment_external' | 'fulfillment_order_cancellation' | 'label_tracking_summary' | 'label_invoice_request' | 'carrier_charge' | 'carrier_charge_file' | 'label_origin' | 'order' | 'order_identifier' | 'organization_onboarding_state' | 'refund' | 'refund_over_capture' | 'sales_record' | 'statement_batch' | 'statement_email' | 'statement_summary_email';
|
|
24
|
+
type ResponsibleParty = 'flow' | 'organization';
|
|
25
|
+
type StatementTransferTransactionLocation = 'transactions_file' | 'summary';
|
|
26
|
+
type SubscriptionFrequency = 'yearly' | 'monthly';
|
|
27
|
+
type TaxTransactionType = 'adjustment' | 'reversal' | 'tax';
|
|
28
|
+
type TransactionPostingMethod = 'time' | 'proof';
|
|
29
|
+
type TransferMethod = 'ach';
|
|
30
|
+
type TrueupTransactionType = 'adjustment' | 'reversal' | 'trueup';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare namespace io.flow.billing.internal.v0.models {
|
|
34
|
+
interface AccountContact {
|
|
35
|
+
readonly 'id': string;
|
|
36
|
+
readonly 'email': string;
|
|
37
|
+
readonly 'first_name'?: string;
|
|
38
|
+
readonly 'last_name'?: string;
|
|
39
|
+
readonly 'phone'?: string;
|
|
40
|
+
readonly 'account'?: io.flow.billing.internal.v0.models.SimpleAccountReference;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface AccountContactForm {
|
|
44
|
+
readonly 'email': string;
|
|
45
|
+
readonly 'first_name'?: string;
|
|
46
|
+
readonly 'last_name'?: string;
|
|
47
|
+
readonly 'phone'?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface AccountDepositRule {
|
|
51
|
+
readonly 'target': number;
|
|
52
|
+
readonly 'rate': number;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface AccountDepositRuleForm {
|
|
56
|
+
readonly 'target': number;
|
|
57
|
+
readonly 'rate': number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface AccountOrigin {
|
|
61
|
+
readonly 'country': string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface AccountProcessingRateForm {
|
|
65
|
+
readonly 'query': string;
|
|
66
|
+
readonly 'capture': number;
|
|
67
|
+
readonly 'refund': number;
|
|
68
|
+
readonly 'fraud': number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface AccountProcessingRates {
|
|
72
|
+
readonly 'id': string;
|
|
73
|
+
readonly 'query': string;
|
|
74
|
+
readonly 'capture': number;
|
|
75
|
+
readonly 'refund': number;
|
|
76
|
+
readonly 'fraud': number;
|
|
77
|
+
readonly 'position': number;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface AccountProcessingRatesForm {
|
|
81
|
+
readonly 'processing_rates': io.flow.billing.internal.v0.models.AccountProcessingRateForm[];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
interface AccountSettingLabelFees {
|
|
85
|
+
readonly 'flow'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
86
|
+
readonly 'organization'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
87
|
+
readonly 'revenue_share'?: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface AccountSettings {
|
|
91
|
+
readonly 'id': string;
|
|
92
|
+
readonly 'days_until_posted': number;
|
|
93
|
+
readonly 'logistics': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
94
|
+
readonly 'include_transaction_created_at': boolean;
|
|
95
|
+
readonly 'include_order_exchange_rate': boolean;
|
|
96
|
+
readonly 'send_statements_to_flow_ftp_server': boolean;
|
|
97
|
+
readonly 'invoicing_terms'?: io.flow.invoice.v0.enums.PaymentTerm;
|
|
98
|
+
readonly 'transfer_method'?: io.flow.billing.internal.v0.enums.TransferMethod;
|
|
99
|
+
readonly 'b2b_tax_remittance_days'?: number;
|
|
100
|
+
readonly 'merchant_of_record_fee'?: number;
|
|
101
|
+
readonly 'duty_guarantee_fee'?: number;
|
|
102
|
+
readonly 'transfer_fee'?: number;
|
|
103
|
+
readonly 'order_service_fee'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
104
|
+
readonly 'label_fees'?: io.flow.billing.internal.v0.models.AccountSettingLabelFees;
|
|
105
|
+
readonly 'charge_label_cost_directly': boolean;
|
|
106
|
+
readonly 'transaction_posting_method': io.flow.billing.internal.v0.enums.TransactionPostingMethod;
|
|
107
|
+
readonly 'statement_transfer_transaction_location': io.flow.billing.internal.v0.enums.StatementTransferTransactionLocation;
|
|
108
|
+
readonly 'fees_source': io.flow.billing.internal.v0.enums.FeesSource;
|
|
109
|
+
readonly 'require_payment_request': boolean;
|
|
110
|
+
readonly 'round_individual_transactions': boolean;
|
|
111
|
+
readonly 'liabilities_method': io.flow.billing.internal.v0.enums.AccountSettingLiabilitiesMethod;
|
|
112
|
+
readonly 'enable_fee_reversals': boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface AccountSource {
|
|
116
|
+
readonly 'id': string;
|
|
117
|
+
readonly 'type': io.flow.billing.internal.v0.enums.AccountType;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface AccountStatistics {
|
|
121
|
+
readonly 'transfers': io.flow.common.v0.models.Price;
|
|
122
|
+
readonly 'balance': io.flow.common.v0.models.Price;
|
|
123
|
+
readonly 'pending': io.flow.common.v0.models.Price;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
interface AccountSummary {
|
|
127
|
+
readonly 'id': string;
|
|
128
|
+
readonly 'currency': string;
|
|
129
|
+
readonly 'source': io.flow.billing.internal.v0.models.AccountSource;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface AdjustmentAmountFixed {
|
|
133
|
+
readonly 'discriminator': 'fixed';
|
|
134
|
+
readonly 'amount': io.flow.common.v0.models.Money;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
interface AdjustmentAmountPercentage {
|
|
138
|
+
readonly 'discriminator': 'percentage';
|
|
139
|
+
readonly 'percentage': number;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
interface AdjustmentDetailsAmountFixed {
|
|
143
|
+
readonly 'amount': io.flow.common.v0.models.Money;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface AdjustmentDetailsAmountPercentage {
|
|
147
|
+
readonly 'percentage': number;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
interface AdjustmentDetailsProcessingTransaction {
|
|
151
|
+
readonly 'discriminator': 'processing_transaction';
|
|
152
|
+
readonly 'withholdings'?: io.flow.billing.internal.v0.models.AdjustmentDetailsProcessingTransactionWithholding[];
|
|
153
|
+
readonly 'fees'?: io.flow.billing.internal.v0.models.AdjustmentDetailsProcessingTransactionFee[];
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
interface AdjustmentDetailsProcessingTransactionFee {
|
|
157
|
+
readonly 'type': io.flow.billing.v0.enums.FeeDeductionType;
|
|
158
|
+
readonly 'amount': io.flow.billing.internal.v0.unions.AdjustmentAmount;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
interface AdjustmentDetailsProcessingTransactionWithholding {
|
|
162
|
+
readonly 'type': io.flow.billing.v0.enums.WithholdingDeductionType;
|
|
163
|
+
readonly 'amount': io.flow.billing.internal.v0.unions.AdjustmentAmount;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
interface BankAccountReference {
|
|
167
|
+
readonly 'id': string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
interface BankPayment {
|
|
171
|
+
readonly 'id': string;
|
|
172
|
+
readonly 'key': string;
|
|
173
|
+
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
174
|
+
readonly 'reference'?: string;
|
|
175
|
+
readonly 'sent_on'?: string;
|
|
176
|
+
readonly 'status': io.flow.billing.v0.unions.PayoutStatus;
|
|
177
|
+
readonly 'expected_delivery_by'?: string;
|
|
178
|
+
readonly 'total': io.flow.common.v0.models.Price;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface BankPaymentForm {
|
|
182
|
+
readonly 'account_id': string;
|
|
183
|
+
readonly 'reference'?: string;
|
|
184
|
+
readonly 'sent_on'?: string;
|
|
185
|
+
readonly 'expected_delivery_by'?: string;
|
|
186
|
+
readonly 'amount': number;
|
|
187
|
+
readonly 'currency': string;
|
|
188
|
+
readonly 'transfer_transaction_ids': string[];
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface BankPaymentStatusForm {
|
|
192
|
+
readonly 'code': io.flow.billing.internal.v0.enums.BankPaymentStatusCode;
|
|
193
|
+
readonly 'failure_reason'?: io.flow.billing.v0.enums.PayoutStatusFailureCode;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface BillingAuthorizationReference {
|
|
197
|
+
readonly 'id': string;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface BillingInvoiceSummary {
|
|
201
|
+
readonly 'id': string;
|
|
202
|
+
readonly 'url': string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface BillingLabelSummary {
|
|
206
|
+
readonly 'id': string;
|
|
207
|
+
readonly 'flow_tracking_number': string;
|
|
208
|
+
readonly 'carrier_id': string;
|
|
209
|
+
readonly 'carrier_tracking_number': string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
interface BillingLabelTrackingSummaryReference {
|
|
213
|
+
readonly 'id': string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface BillingOrderDestination {
|
|
217
|
+
readonly 'city'?: string;
|
|
218
|
+
readonly 'province'?: string;
|
|
219
|
+
readonly 'postal'?: string;
|
|
220
|
+
readonly 'country': string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
interface BillingOrderSummary {
|
|
224
|
+
readonly 'number': string;
|
|
225
|
+
readonly 'submitted_at': string;
|
|
226
|
+
readonly 'primary_identifier'?: string;
|
|
227
|
+
readonly 'identifiers'?: Record<string, string>;
|
|
228
|
+
readonly 'destination'?: io.flow.billing.internal.v0.models.BillingOrderDestination;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
interface BillingOrderTransactionOrderReference {
|
|
232
|
+
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
233
|
+
readonly 'number': string;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface BillingOrganizationProcessingRates {
|
|
237
|
+
readonly 'id': string;
|
|
238
|
+
readonly 'query': string;
|
|
239
|
+
readonly 'capture': number;
|
|
240
|
+
readonly 'refund': number;
|
|
241
|
+
readonly 'fraud': number;
|
|
242
|
+
readonly 'position': number;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface BillingOrganizationSettings {
|
|
246
|
+
readonly 'id': string;
|
|
247
|
+
readonly 'days_until_posted': number;
|
|
248
|
+
readonly 'logistics': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
249
|
+
readonly 'include_transaction_created_at': boolean;
|
|
250
|
+
readonly 'include_order_exchange_rate': boolean;
|
|
251
|
+
readonly 'send_statements_to_flow_ftp_server': boolean;
|
|
252
|
+
readonly 'invoicing_terms'?: io.flow.invoice.v0.enums.PaymentTerm;
|
|
253
|
+
readonly 'transfer_method'?: io.flow.billing.internal.v0.enums.TransferMethod;
|
|
254
|
+
readonly 'b2b_tax_remittance_days'?: number;
|
|
255
|
+
readonly 'mor_fee'?: number;
|
|
256
|
+
readonly 'duty_guarantee_fee'?: number;
|
|
257
|
+
readonly 'order_service_fee'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
258
|
+
readonly 'label_fee'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
interface BillingStatementAttachment {
|
|
262
|
+
readonly 'key': io.flow.billing.internal.v0.enums.BillingStatementAttachmentKey;
|
|
263
|
+
readonly 'name': string;
|
|
264
|
+
readonly 'url': string;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
interface BillingStatementBatch {
|
|
268
|
+
readonly 'id': string;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface BillingStatementBatchReference {
|
|
272
|
+
readonly 'id': string;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
interface BillingStatementBatchStatement {
|
|
276
|
+
readonly 'id': string;
|
|
277
|
+
readonly 'batch': io.flow.billing.internal.v0.models.BillingStatementBatchReference;
|
|
278
|
+
readonly 'statement': io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
interface BillingStatementReference {
|
|
282
|
+
readonly 'id': string;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
interface BillingStatementSummary {
|
|
286
|
+
readonly 'id': string;
|
|
287
|
+
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
288
|
+
readonly 'period': io.flow.common.v0.models.DatetimeRange;
|
|
289
|
+
readonly 'totals': io.flow.billing.internal.v0.models.BillingStatementTotals;
|
|
290
|
+
readonly 'attachments': io.flow.billing.internal.v0.models.BillingStatementAttachment[];
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
interface BillingStatementTotals {
|
|
294
|
+
readonly 'starting_balance': io.flow.common.v0.models.Price;
|
|
295
|
+
readonly 'subscription': io.flow.common.v0.models.Price;
|
|
296
|
+
readonly 'transfer': io.flow.common.v0.models.Price;
|
|
297
|
+
readonly 'invoice': io.flow.common.v0.models.Price;
|
|
298
|
+
readonly 'manual': io.flow.common.v0.models.Price;
|
|
299
|
+
readonly 'adjustment': io.flow.common.v0.models.Price;
|
|
300
|
+
readonly 'capture': io.flow.common.v0.models.Price;
|
|
301
|
+
readonly 'refund': io.flow.common.v0.models.Price;
|
|
302
|
+
readonly 'reversal': io.flow.common.v0.models.Price;
|
|
303
|
+
readonly 'credit_payment': io.flow.common.v0.models.Price;
|
|
304
|
+
readonly 'fully_subsidized_order': io.flow.common.v0.models.Price;
|
|
305
|
+
readonly 'virtual_card_capture': io.flow.common.v0.models.Price;
|
|
306
|
+
readonly 'virtual_card_refund': io.flow.common.v0.models.Price;
|
|
307
|
+
readonly 'tax_remittance': io.flow.common.v0.models.Price;
|
|
308
|
+
readonly 'dispute': io.flow.common.v0.models.Price;
|
|
309
|
+
readonly 'channel': io.flow.common.v0.models.Price;
|
|
310
|
+
readonly 'label': io.flow.common.v0.models.Price;
|
|
311
|
+
readonly 'order': io.flow.common.v0.models.Price;
|
|
312
|
+
readonly 'channel_billed': io.flow.common.v0.models.Price;
|
|
313
|
+
readonly 'tax': io.flow.common.v0.models.Price;
|
|
314
|
+
readonly 'duty': io.flow.common.v0.models.Price;
|
|
315
|
+
readonly 'trueup': io.flow.common.v0.models.Price;
|
|
316
|
+
readonly 'ending_balance': io.flow.common.v0.models.Price;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
interface BillingTransaction {
|
|
320
|
+
readonly 'id': string;
|
|
321
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
322
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
323
|
+
readonly 'posted_at'?: string;
|
|
324
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
325
|
+
readonly 'description': string;
|
|
326
|
+
readonly 'created_at': string;
|
|
327
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface ChannelAccount {
|
|
331
|
+
readonly 'channel': io.flow.common.v0.models.ChannelReference;
|
|
332
|
+
readonly 'id': string;
|
|
333
|
+
readonly 'key'?: string;
|
|
334
|
+
readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
|
|
335
|
+
readonly 'currency': string;
|
|
336
|
+
readonly 'updated_at': string;
|
|
337
|
+
readonly 'timezone': io.flow.reference.v0.models.Timezone;
|
|
338
|
+
readonly 'payment_schedule': io.flow.common.v0.unions.RepeatSchedule;
|
|
339
|
+
readonly 'payment_conditions'?: string;
|
|
340
|
+
readonly 'deposit_rule'?: io.flow.billing.internal.v0.models.AccountDepositRule;
|
|
341
|
+
readonly 'center_key'?: string;
|
|
342
|
+
readonly 'statistics': io.flow.billing.internal.v0.models.AccountStatistics;
|
|
343
|
+
readonly 'next_statement': io.flow.billing.internal.v0.models.NextBillingStatement;
|
|
344
|
+
readonly 'bank_account'?: io.flow.billing.internal.v0.models.BankAccountReference;
|
|
345
|
+
readonly 'created_at': string;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
interface ChannelBilledTransaction {
|
|
349
|
+
readonly 'discriminator': 'channel_billed_transaction';
|
|
350
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
351
|
+
readonly 'id': string;
|
|
352
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
353
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
354
|
+
readonly 'posted_at'?: string;
|
|
355
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
356
|
+
readonly 'description': string;
|
|
357
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
358
|
+
readonly 'created_at': string;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface ChannelBilledTransactionPair {
|
|
362
|
+
readonly 'id': string;
|
|
363
|
+
readonly 'key': string;
|
|
364
|
+
readonly 'attributes'?: Record<string, string>;
|
|
365
|
+
readonly 'organization_transaction': io.flow.billing.internal.v0.models.ChannelBilledTransactionReference;
|
|
366
|
+
readonly 'channel_transaction': io.flow.billing.internal.v0.models.ChannelBilledTransactionReference;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
interface ChannelBilledTransactionPairForm {
|
|
370
|
+
readonly 'channel_id': string;
|
|
371
|
+
readonly 'organization_id': string;
|
|
372
|
+
readonly 'amount': number;
|
|
373
|
+
readonly 'currency': string;
|
|
374
|
+
readonly 'description': string;
|
|
375
|
+
readonly 'order_number'?: string;
|
|
376
|
+
readonly 'attributes'?: Record<string, string>;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
interface ChannelBilledTransactionReference {
|
|
380
|
+
readonly 'id': string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
interface ChannelBillingStatement {
|
|
384
|
+
readonly 'id': string;
|
|
385
|
+
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
386
|
+
readonly 'period': io.flow.common.v0.models.DatetimeRange;
|
|
387
|
+
readonly 'totals': io.flow.billing.internal.v0.models.BillingStatementTotals;
|
|
388
|
+
readonly 'attachments': io.flow.billing.internal.v0.models.BillingStatementAttachment[];
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
interface ChannelRateMetadataIdentity {
|
|
392
|
+
readonly 'discriminator': 'channel_rate_metadata_identity';
|
|
393
|
+
readonly 'currency': string;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
interface ChannelRateMetadataRate {
|
|
397
|
+
readonly 'discriminator': 'channel_rate_metadata_rate';
|
|
398
|
+
readonly 'id': string;
|
|
399
|
+
readonly 'base': string;
|
|
400
|
+
readonly 'target': string;
|
|
401
|
+
readonly 'spot_rate': number;
|
|
402
|
+
readonly 'flow_margin': number;
|
|
403
|
+
readonly 'flow_rate': number;
|
|
404
|
+
readonly 'journal_id'?: string;
|
|
405
|
+
readonly 'effective_at': string;
|
|
406
|
+
readonly 'timestamp'?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface ChannelTransaction {
|
|
410
|
+
readonly 'discriminator': 'channel_transaction';
|
|
411
|
+
readonly 'transaction': io.flow.billing.internal.v0.models.TransactionReference;
|
|
412
|
+
readonly 'fees': io.flow.billing.internal.v0.models.Fee[];
|
|
413
|
+
readonly 'id': string;
|
|
414
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
415
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
416
|
+
readonly 'posted_at'?: string;
|
|
417
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
418
|
+
readonly 'description': string;
|
|
419
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
420
|
+
readonly 'created_at': string;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
interface ChannelTransactionRate {
|
|
424
|
+
readonly 'from': string;
|
|
425
|
+
readonly 'to': string;
|
|
426
|
+
readonly 'value': number;
|
|
427
|
+
readonly 'timestamp': string;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
interface Components {
|
|
431
|
+
readonly 'vat': io.flow.common.v0.models.Price;
|
|
432
|
+
readonly 'duty': io.flow.common.v0.models.Price;
|
|
433
|
+
readonly 'freight': io.flow.common.v0.models.Price;
|
|
434
|
+
readonly 'insurance': io.flow.common.v0.models.Price;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
interface Discount {
|
|
438
|
+
readonly 'amount': number;
|
|
439
|
+
readonly 'description'?: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
interface DisputeTransaction {
|
|
443
|
+
readonly 'discriminator': 'dispute_transaction';
|
|
444
|
+
readonly 'authorization': io.flow.payment.v0.models.AuthorizationReference;
|
|
445
|
+
readonly 'id': string;
|
|
446
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
447
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
448
|
+
readonly 'posted_at'?: string;
|
|
449
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
450
|
+
readonly 'description': string;
|
|
451
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
452
|
+
readonly 'created_at': string;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
interface DutyTransaction {
|
|
456
|
+
readonly 'discriminator': 'duty_transaction';
|
|
457
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
458
|
+
readonly 'id': string;
|
|
459
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
460
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
461
|
+
readonly 'posted_at'?: string;
|
|
462
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
463
|
+
readonly 'description': string;
|
|
464
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
465
|
+
readonly 'created_at': string;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
interface EmailForm {
|
|
469
|
+
readonly 'to': string[];
|
|
470
|
+
readonly 'cc'?: string[];
|
|
471
|
+
readonly 'bcc'?: string[];
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
interface ExplicitStatement {
|
|
475
|
+
readonly 'id': string;
|
|
476
|
+
readonly 'statement': io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
477
|
+
readonly 'reason': string;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
interface ExplicitStatementForm {
|
|
481
|
+
readonly 'account_id': string;
|
|
482
|
+
readonly 'reason': string;
|
|
483
|
+
readonly 'transaction_ids': string[];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
interface ExternalFulfillmentProof {
|
|
487
|
+
readonly 'id': string;
|
|
488
|
+
readonly 'order': io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
489
|
+
readonly 'responsible_party': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
490
|
+
readonly 'tracking': io.flow.billing.internal.v0.models.ExternalFulfillmentProofTracking[];
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
interface ExternalFulfillmentProofForm {
|
|
494
|
+
readonly 'responsible_party': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
495
|
+
readonly 'tracking'?: io.flow.billing.internal.v0.models.ExternalFulfillmentProofTrackingForm[];
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
interface ExternalFulfillmentProofTracking {
|
|
499
|
+
readonly 'carrier_id'?: string;
|
|
500
|
+
readonly 'service_id'?: string;
|
|
501
|
+
readonly 'carrier_tracking_number'?: string;
|
|
502
|
+
readonly 'fulfilled_via_replacement_order'?: boolean;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
interface ExternalFulfillmentProofTrackingForm {
|
|
506
|
+
readonly 'carrier_id'?: string;
|
|
507
|
+
readonly 'service_id'?: string;
|
|
508
|
+
readonly 'carrier_tracking_number'?: string;
|
|
509
|
+
readonly 'fulfilled_via_replacement_order'?: boolean;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
interface Fee {
|
|
513
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
514
|
+
readonly 'description'?: string;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
interface Fees {
|
|
518
|
+
readonly 'processing'?: io.flow.billing.internal.v0.models.Fee;
|
|
519
|
+
readonly 'rate_lock': io.flow.billing.internal.v0.models.Fee;
|
|
520
|
+
readonly 'mor'?: io.flow.billing.internal.v0.models.Fee;
|
|
521
|
+
readonly 'fx'?: io.flow.billing.internal.v0.models.Fee;
|
|
522
|
+
readonly 'duty_guarantee'?: io.flow.billing.internal.v0.models.Fee;
|
|
523
|
+
readonly 'transfer'?: io.flow.billing.internal.v0.models.Fee;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
interface FinanceBankAccount {
|
|
527
|
+
readonly 'id': string;
|
|
528
|
+
readonly 'accounts': io.flow.billing.internal.v0.models.AccountSummary[];
|
|
529
|
+
readonly 'last4': string;
|
|
530
|
+
readonly 'info': io.flow.billing.bank.account.v0.unions.BankAccountInfo;
|
|
531
|
+
readonly 'owner'?: io.flow.billing.internal.v0.models.FinanceBankAccountOwner;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
interface FinanceBankAccountOwner {
|
|
535
|
+
readonly 'name': string;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
interface FinanceBankPayment {
|
|
539
|
+
readonly 'id': string;
|
|
540
|
+
readonly 'account': io.flow.billing.internal.v0.models.AccountSummary;
|
|
541
|
+
readonly 'last4'?: string;
|
|
542
|
+
readonly 'info'?: io.flow.billing.bank.account.v0.unions.BankAccountInfo;
|
|
543
|
+
readonly 'owner'?: io.flow.billing.internal.v0.models.FinanceBankAccountOwner;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
interface FlowAccount {
|
|
547
|
+
readonly 'source': io.flow.billing.internal.v0.models.AccountSource;
|
|
548
|
+
readonly 'id': string;
|
|
549
|
+
readonly 'key'?: string;
|
|
550
|
+
readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
|
|
551
|
+
readonly 'currency': string;
|
|
552
|
+
readonly 'updated_at': string;
|
|
553
|
+
readonly 'timezone': io.flow.reference.v0.models.Timezone;
|
|
554
|
+
readonly 'payment_schedule': io.flow.common.v0.unions.RepeatSchedule;
|
|
555
|
+
readonly 'payment_conditions'?: string;
|
|
556
|
+
readonly 'deposit_rule'?: io.flow.billing.internal.v0.models.AccountDepositRule;
|
|
557
|
+
readonly 'center_key'?: string;
|
|
558
|
+
readonly 'statistics': io.flow.billing.internal.v0.models.AccountStatistics;
|
|
559
|
+
readonly 'next_statement': io.flow.billing.internal.v0.models.NextBillingStatement;
|
|
560
|
+
readonly 'bank_account'?: io.flow.billing.internal.v0.models.BankAccountReference;
|
|
561
|
+
readonly 'created_at': string;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
interface FxFee {
|
|
565
|
+
readonly 'base': io.flow.common.v0.models.Money;
|
|
566
|
+
readonly 'local': io.flow.common.v0.models.Money;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
interface FxRevenueRecognition {
|
|
570
|
+
readonly 'id': string;
|
|
571
|
+
readonly 'organization': io.flow.billing.internal.v0.models.FxRevenueRecognitionOrganization;
|
|
572
|
+
readonly 'account': io.flow.billing.internal.v0.models.FxRevenueRecognitionAccount;
|
|
573
|
+
readonly 'fx': io.flow.billing.internal.v0.models.FxFee;
|
|
574
|
+
readonly 'spot_rate': io.flow.billing.internal.v0.models.FxRevenueRecognitionRate;
|
|
575
|
+
readonly 'created_at': string;
|
|
576
|
+
readonly 'order': io.flow.billing.internal.v0.models.FxRevenueRecognitionOrder;
|
|
577
|
+
readonly 'merchant_of_record': io.flow.common.v0.enums.MerchantOfRecord;
|
|
578
|
+
readonly 'source': io.flow.billing.internal.v0.models.FxRevenueRecognitionSource;
|
|
579
|
+
readonly 'reporting_date'?: string;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
interface FxRevenueRecognitionAccount {
|
|
583
|
+
readonly 'value': io.flow.common.v0.models.Money;
|
|
584
|
+
readonly 'spot_rate': io.flow.billing.internal.v0.models.FxRevenueRecognitionAccountRate;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
interface FxRevenueRecognitionAccountRate {
|
|
588
|
+
readonly 'value': number;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface FxRevenueRecognitionOrder {
|
|
592
|
+
readonly 'number': string;
|
|
593
|
+
readonly 'submitted_at': string;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
interface FxRevenueRecognitionOrganization {
|
|
597
|
+
readonly 'id': string;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
interface FxRevenueRecognitionRate {
|
|
601
|
+
readonly 'value': number;
|
|
602
|
+
readonly 'margin': number;
|
|
603
|
+
readonly 'timestamp': string;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
interface FxRevenueRecognitionSource {
|
|
607
|
+
readonly 'id': string;
|
|
608
|
+
readonly 'local': io.flow.common.v0.models.Money;
|
|
609
|
+
readonly 'transaction_created_at': string;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
interface InvoiceTransaction {
|
|
613
|
+
readonly 'discriminator': 'invoice_transaction';
|
|
614
|
+
readonly 'invoice': io.flow.invoice.v0.models.Invoice;
|
|
615
|
+
readonly 'id': string;
|
|
616
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
617
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
618
|
+
readonly 'posted_at'?: string;
|
|
619
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
620
|
+
readonly 'description': string;
|
|
621
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
622
|
+
readonly 'created_at': string;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
interface LabelTransaction {
|
|
626
|
+
readonly 'discriminator': 'label_transaction';
|
|
627
|
+
readonly 'label': io.flow.billing.internal.v0.models.BillingLabelSummary;
|
|
628
|
+
readonly 'tracking': io.flow.billing.internal.v0.models.BillingLabelTrackingSummaryReference;
|
|
629
|
+
readonly 'gross_value': io.flow.common.v0.models.Price;
|
|
630
|
+
readonly 'discount': io.flow.billing.internal.v0.models.Discount;
|
|
631
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
632
|
+
readonly 'id': string;
|
|
633
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
634
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
635
|
+
readonly 'posted_at'?: string;
|
|
636
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
637
|
+
readonly 'description': string;
|
|
638
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
639
|
+
readonly 'created_at': string;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
interface MainTransaction {
|
|
643
|
+
readonly 'id': string;
|
|
644
|
+
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
645
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
646
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
647
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
648
|
+
readonly 'posted_at'?: string;
|
|
649
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
650
|
+
readonly 'created_at': string;
|
|
651
|
+
readonly 'original_at'?: string;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
interface ManualTransaction {
|
|
655
|
+
readonly 'discriminator': 'manual_transaction';
|
|
656
|
+
readonly 'category'?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
|
|
657
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
658
|
+
readonly 'attributes'?: Record<string, string>;
|
|
659
|
+
readonly 'id': string;
|
|
660
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
661
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
662
|
+
readonly 'posted_at'?: string;
|
|
663
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
664
|
+
readonly 'description': string;
|
|
665
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
666
|
+
readonly 'created_at': string;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
interface ManualTransactionForm {
|
|
670
|
+
readonly 'amount': number;
|
|
671
|
+
readonly 'currency'?: string;
|
|
672
|
+
readonly 'description': string;
|
|
673
|
+
readonly 'category'?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
|
|
674
|
+
readonly 'posted_at'?: string;
|
|
675
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.ManualTransactionFormOrder;
|
|
676
|
+
readonly 'attributes'?: Record<string, string>;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
interface ManualTransactionFormOrder {
|
|
680
|
+
readonly 'organization_id': string;
|
|
681
|
+
readonly 'number': string;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
interface NextBillingStatement {
|
|
685
|
+
readonly 'date': string;
|
|
686
|
+
readonly 'amount': io.flow.common.v0.models.Price;
|
|
687
|
+
readonly 'conditions'?: string;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
interface OrderCancellation {
|
|
691
|
+
readonly 'id': string;
|
|
692
|
+
readonly 'order': io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
693
|
+
readonly 'evidence': io.flow.billing.internal.v0.unions.OrderCancellationEvidence;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
interface OrderCancellationEvidenceFullyRefundedNotFulfilled {
|
|
697
|
+
readonly 'discriminator': 'fully_refunded_not_fulfilled';
|
|
698
|
+
readonly 'placeholder'?: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
interface OrderCancellationEvidenceManual {
|
|
702
|
+
readonly 'discriminator': 'manual';
|
|
703
|
+
readonly 'description': string;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
interface OrderCancellationEvidenceReturnToSender {
|
|
707
|
+
readonly 'discriminator': 'return_to_sender';
|
|
708
|
+
readonly 'initiated_by': io.flow.billing.internal.v0.enums.OrderCancellationInitiatedBy;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
interface OrderCancellationForm {
|
|
712
|
+
readonly 'evidence': io.flow.billing.internal.v0.unions.OrderCancellationEvidence;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
interface OrderTransaction {
|
|
716
|
+
readonly 'discriminator': 'order_transaction';
|
|
717
|
+
readonly 'order': io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
718
|
+
readonly 'id': string;
|
|
719
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
720
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
721
|
+
readonly 'posted_at'?: string;
|
|
722
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
723
|
+
readonly 'description': string;
|
|
724
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
725
|
+
readonly 'created_at': string;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
interface OrganizationAccount {
|
|
729
|
+
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
730
|
+
readonly 'id': string;
|
|
731
|
+
readonly 'key'?: string;
|
|
732
|
+
readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
|
|
733
|
+
readonly 'currency': string;
|
|
734
|
+
readonly 'updated_at': string;
|
|
735
|
+
readonly 'timezone': io.flow.reference.v0.models.Timezone;
|
|
736
|
+
readonly 'payment_schedule': io.flow.common.v0.unions.RepeatSchedule;
|
|
737
|
+
readonly 'payment_conditions'?: string;
|
|
738
|
+
readonly 'deposit_rule'?: io.flow.billing.internal.v0.models.AccountDepositRule;
|
|
739
|
+
readonly 'center_key'?: string;
|
|
740
|
+
readonly 'statistics': io.flow.billing.internal.v0.models.AccountStatistics;
|
|
741
|
+
readonly 'next_statement': io.flow.billing.internal.v0.models.NextBillingStatement;
|
|
742
|
+
readonly 'bank_account'?: io.flow.billing.internal.v0.models.BankAccountReference;
|
|
743
|
+
readonly 'created_at': string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
interface OrganizationBillingStatement {
|
|
747
|
+
readonly 'id': string;
|
|
748
|
+
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
749
|
+
readonly 'period': io.flow.common.v0.models.DatetimeRange;
|
|
750
|
+
readonly 'totals': io.flow.billing.internal.v0.models.BillingStatementTotals;
|
|
751
|
+
readonly 'attachments': io.flow.billing.internal.v0.models.BillingStatementAttachment[];
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
interface PayoutStatusCounts {
|
|
755
|
+
readonly 'scheduled': number;
|
|
756
|
+
readonly 'sent': number;
|
|
757
|
+
readonly 'failed': number;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
interface PendingBankPayment {
|
|
761
|
+
readonly 'id': string;
|
|
762
|
+
readonly 'account': io.flow.billing.internal.v0.models.AccountSummary;
|
|
763
|
+
readonly 'total': io.flow.common.v0.models.Price;
|
|
764
|
+
readonly 'details': io.flow.billing.internal.v0.models.PendingBankPaymentDetail[];
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
interface PendingBankPaymentDetail {
|
|
768
|
+
readonly 'transaction': io.flow.billing.internal.v0.models.TransactionReference;
|
|
769
|
+
readonly 'statement': io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
interface PlatformFeeChange {
|
|
773
|
+
readonly 'organization_id': string;
|
|
774
|
+
readonly 'key': string;
|
|
775
|
+
readonly 'platform_fee': io.flow.billing.internal.v0.unions.PlatformFee;
|
|
776
|
+
readonly 'starts_at': string;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
interface PlatformFeeChangeForm {
|
|
780
|
+
readonly 'platform_fee': io.flow.billing.internal.v0.unions.PlatformFee;
|
|
781
|
+
readonly 'starts_at': string;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
interface PlatformFeeDisabled {
|
|
785
|
+
readonly 'discriminator': 'platform_fee_disabled';
|
|
786
|
+
readonly 'attributes'?: Record<string, string>;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
interface PlatformFeeFlat {
|
|
790
|
+
readonly 'discriminator': 'platform_fee_flat';
|
|
791
|
+
readonly 'amount': number;
|
|
792
|
+
readonly 'currency': string;
|
|
793
|
+
readonly 'frequency': io.flow.billing.internal.v0.enums.SubscriptionFrequency;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
interface PlatformFeePause {
|
|
797
|
+
readonly 'discriminator': 'platform_fee_pause';
|
|
798
|
+
readonly 'attributes'?: Record<string, string>;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
interface PlatformFeePercentage {
|
|
802
|
+
readonly 'discriminator': 'platform_fee_percentage';
|
|
803
|
+
readonly 'tiers': io.flow.billing.internal.v0.models.PlatformFeePercentageTier[];
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
interface PlatformFeePercentageTier {
|
|
807
|
+
readonly 'minimum_amount_base': number;
|
|
808
|
+
readonly 'rate': number;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
interface ProcessingTransaction {
|
|
812
|
+
readonly 'discriminator': 'processing_transaction';
|
|
813
|
+
readonly 'merchant_of_record': io.flow.common.v0.enums.MerchantOfRecord;
|
|
814
|
+
readonly 'logistics_responsibility': io.flow.billing.internal.v0.enums.ResponsibleParty[];
|
|
815
|
+
readonly 'original_at'?: string;
|
|
816
|
+
readonly 'reference': string;
|
|
817
|
+
readonly 'psp_reference_id': string;
|
|
818
|
+
readonly 'reference_id': string;
|
|
819
|
+
readonly 'reference_key': string;
|
|
820
|
+
readonly 'primary_identifier'?: string;
|
|
821
|
+
readonly 'payment_method': string;
|
|
822
|
+
readonly 'original': io.flow.common.v0.models.PriceWithBase;
|
|
823
|
+
readonly 'original_base_at_spot_rate'?: io.flow.common.v0.models.Price;
|
|
824
|
+
readonly 'fees': io.flow.billing.internal.v0.models.Fees;
|
|
825
|
+
readonly 'components'?: io.flow.billing.internal.v0.models.Components;
|
|
826
|
+
readonly 'withholdings': io.flow.billing.internal.v0.models.Components;
|
|
827
|
+
readonly 'parent_transaction_id'?: string;
|
|
828
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.BillingOrderSummary;
|
|
829
|
+
readonly 'spot_rate': number;
|
|
830
|
+
readonly 'flow_rate': number;
|
|
831
|
+
readonly 'flow_margin': number;
|
|
832
|
+
readonly 'revenue_share'?: io.flow.common.v0.models.Price;
|
|
833
|
+
readonly 'id': string;
|
|
834
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
835
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
836
|
+
readonly 'posted_at'?: string;
|
|
837
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
838
|
+
readonly 'description': string;
|
|
839
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
840
|
+
readonly 'created_at': string;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
interface ProcessingTransactionReference {
|
|
844
|
+
readonly 'id': string;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
interface ProofOfPostingExternallyFulfilled {
|
|
848
|
+
readonly 'discriminator': 'external';
|
|
849
|
+
readonly 'external_fulfillment_proof_id': string;
|
|
850
|
+
}
|
|
851
|
+
|
|
852
|
+
interface ProofOfPostingFulfilled {
|
|
853
|
+
readonly 'discriminator': 'fulfilled';
|
|
854
|
+
readonly 'label_tracking_summary_id': string;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
interface ProofOfPostingOrderCancellation {
|
|
858
|
+
readonly 'discriminator': 'order_cancellation';
|
|
859
|
+
readonly 'order_cancellation_id': string;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
interface ProofOfPostingShippingNotification {
|
|
863
|
+
readonly 'discriminator': 'shipping_notification';
|
|
864
|
+
readonly 'shipping_notification_id': string;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
interface SimpleAccountReference {
|
|
868
|
+
readonly 'id': string;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
interface SpotRateMetadataIdentity {
|
|
872
|
+
readonly 'discriminator': 'spot_rate_metadata_identity';
|
|
873
|
+
readonly 'currency': string;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
interface SpotRateMetadataRate {
|
|
877
|
+
readonly 'discriminator': 'spot_rate_metadata_rate';
|
|
878
|
+
readonly 'id': string;
|
|
879
|
+
readonly 'base': string;
|
|
880
|
+
readonly 'target': string;
|
|
881
|
+
readonly 'value': number;
|
|
882
|
+
readonly 'journal_id'?: string;
|
|
883
|
+
readonly 'effective_at': string;
|
|
884
|
+
readonly 'timestamp'?: string;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
interface StandaloneAttachment {
|
|
888
|
+
readonly 'id': string;
|
|
889
|
+
readonly 'statement': io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
890
|
+
readonly 'key': io.flow.billing.internal.v0.enums.BillingStatementAttachmentKey;
|
|
891
|
+
readonly 'name': string;
|
|
892
|
+
readonly 'url': string;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
interface Subscription {
|
|
896
|
+
readonly 'id': string;
|
|
897
|
+
readonly 'organization': string;
|
|
898
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
899
|
+
readonly 'frequency': io.flow.billing.internal.v0.enums.SubscriptionFrequency;
|
|
900
|
+
readonly 'starts_at': string;
|
|
901
|
+
readonly 'created_at': string;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
interface SubscriptionTransaction {
|
|
905
|
+
readonly 'discriminator': 'subscription_transaction';
|
|
906
|
+
readonly 'period': io.flow.common.v0.models.DatetimeRange;
|
|
907
|
+
readonly 'id': string;
|
|
908
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
909
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
910
|
+
readonly 'posted_at'?: string;
|
|
911
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
912
|
+
readonly 'description': string;
|
|
913
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
914
|
+
readonly 'created_at': string;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
interface TaxRemittanceTransaction {
|
|
918
|
+
readonly 'discriminator': 'tax_remittance_transaction';
|
|
919
|
+
readonly 'order': io.flow.billing.internal.v0.models.BillingOrderSummary;
|
|
920
|
+
readonly 'invoice': io.flow.billing.internal.v0.models.BillingInvoiceSummary;
|
|
921
|
+
readonly 'id': string;
|
|
922
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
923
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
924
|
+
readonly 'posted_at'?: string;
|
|
925
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
926
|
+
readonly 'description': string;
|
|
927
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
928
|
+
readonly 'created_at': string;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
interface TaxTransaction {
|
|
932
|
+
readonly 'discriminator': 'tax_transaction';
|
|
933
|
+
readonly 'order'?: io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
934
|
+
readonly 'id': string;
|
|
935
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
936
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
937
|
+
readonly 'posted_at'?: string;
|
|
938
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
939
|
+
readonly 'description': string;
|
|
940
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
941
|
+
readonly 'created_at': string;
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
interface TieredFee {
|
|
945
|
+
readonly 'currency': string;
|
|
946
|
+
readonly 'tiers': io.flow.billing.internal.v0.models.TieredFeeTier[];
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
interface TieredFeeTier {
|
|
950
|
+
readonly 'count': number;
|
|
951
|
+
readonly 'amount': number;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
interface TransactionAdjustment {
|
|
955
|
+
readonly 'id': string;
|
|
956
|
+
readonly 'original_transaction': io.flow.billing.internal.v0.models.TransactionReference;
|
|
957
|
+
readonly 'adjustment_transaction'?: io.flow.billing.internal.v0.models.TransactionReference;
|
|
958
|
+
readonly 'description': string;
|
|
959
|
+
readonly 'details': io.flow.billing.internal.v0.unions.AdjustmentDetails;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
interface TransactionAdjustmentForm {
|
|
963
|
+
readonly 'original_transaction_id': string;
|
|
964
|
+
readonly 'description': string;
|
|
965
|
+
readonly 'details': io.flow.billing.internal.v0.unions.AdjustmentDetails;
|
|
966
|
+
readonly 'type'?: io.flow.billing.internal.v0.enums.AdjustmentTransactionType;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
interface TransactionReference {
|
|
970
|
+
readonly 'id': string;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
interface TransactionStatement {
|
|
974
|
+
readonly 'id': string;
|
|
975
|
+
readonly 'statement': io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
interface TransferTransaction {
|
|
979
|
+
readonly 'discriminator': 'transfer_transaction';
|
|
980
|
+
readonly 'method': io.flow.billing.internal.v0.enums.TransferMethod;
|
|
981
|
+
readonly 'id': string;
|
|
982
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
983
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
984
|
+
readonly 'posted_at'?: string;
|
|
985
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
986
|
+
readonly 'description': string;
|
|
987
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
988
|
+
readonly 'created_at': string;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
interface TrueupTransaction {
|
|
992
|
+
readonly 'discriminator': 'trueup_transaction';
|
|
993
|
+
readonly 'label_transaction': io.flow.billing.internal.v0.models.TransactionReference;
|
|
994
|
+
readonly 'id': string;
|
|
995
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
996
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
997
|
+
readonly 'posted_at'?: string;
|
|
998
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
999
|
+
readonly 'description': string;
|
|
1000
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
1001
|
+
readonly 'created_at': string;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
interface VirtualCardTransaction {
|
|
1005
|
+
readonly 'discriminator': 'virtual_card_transaction';
|
|
1006
|
+
readonly 'virtual_card': io.flow.payment.v0.models.VirtualCardReference;
|
|
1007
|
+
readonly 'authorization': io.flow.payment.v0.models.AuthorizationReference;
|
|
1008
|
+
readonly 'original': io.flow.common.v0.models.PriceWithBase;
|
|
1009
|
+
readonly 'processing_fee': io.flow.billing.internal.v0.models.Fee;
|
|
1010
|
+
readonly 'id': string;
|
|
1011
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
1012
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
1013
|
+
readonly 'posted_at'?: string;
|
|
1014
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
1015
|
+
readonly 'description': string;
|
|
1016
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
1017
|
+
readonly 'created_at': string;
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
declare namespace io.flow.billing.internal.v0.unions {
|
|
1022
|
+
type AdjustmentAmount = (io.flow.billing.internal.v0.models.AdjustmentAmountPercentage | io.flow.billing.internal.v0.models.AdjustmentAmountFixed);
|
|
1023
|
+
type AdjustmentDetails = (io.flow.billing.internal.v0.models.AdjustmentAmountPercentage | io.flow.billing.internal.v0.models.AdjustmentAmountFixed | io.flow.billing.internal.v0.models.AdjustmentDetailsProcessingTransaction);
|
|
1024
|
+
type ChannelRateMetadata = (io.flow.billing.internal.v0.models.ChannelRateMetadataIdentity | io.flow.billing.internal.v0.models.ChannelRateMetadataRate);
|
|
1025
|
+
type OrderCancellationEvidence = (io.flow.billing.internal.v0.models.OrderCancellationEvidenceManual | io.flow.billing.internal.v0.models.OrderCancellationEvidenceFullyRefundedNotFulfilled | io.flow.billing.internal.v0.models.OrderCancellationEvidenceReturnToSender);
|
|
1026
|
+
type PlatformFee = (io.flow.billing.internal.v0.models.PlatformFeePause | io.flow.billing.internal.v0.models.PlatformFeeFlat | io.flow.billing.internal.v0.models.PlatformFeePercentage | io.flow.billing.internal.v0.models.PlatformFeeDisabled);
|
|
1027
|
+
type ProofOfPosting = (io.flow.billing.internal.v0.models.ProofOfPostingFulfilled | io.flow.billing.internal.v0.models.ProofOfPostingExternallyFulfilled | io.flow.billing.internal.v0.models.ProofOfPostingShippingNotification | io.flow.billing.internal.v0.models.ProofOfPostingOrderCancellation);
|
|
1028
|
+
type SpotRateMetadata = (io.flow.billing.internal.v0.models.SpotRateMetadataIdentity | io.flow.billing.internal.v0.models.SpotRateMetadataRate);
|
|
1029
|
+
type Transaction = (io.flow.billing.internal.v0.models.InvoiceTransaction | io.flow.billing.internal.v0.models.ManualTransaction | io.flow.billing.internal.v0.models.ProcessingTransaction | io.flow.billing.internal.v0.models.SubscriptionTransaction | io.flow.billing.internal.v0.models.TaxRemittanceTransaction | io.flow.billing.internal.v0.models.TransferTransaction | io.flow.billing.internal.v0.models.VirtualCardTransaction | io.flow.billing.internal.v0.models.DisputeTransaction | io.flow.billing.internal.v0.models.ChannelTransaction | io.flow.billing.internal.v0.models.LabelTransaction | io.flow.billing.internal.v0.models.OrderTransaction | io.flow.billing.internal.v0.models.ChannelBilledTransaction | io.flow.billing.internal.v0.models.TaxTransaction | io.flow.billing.internal.v0.models.DutyTransaction | io.flow.billing.internal.v0.models.TrueupTransaction);
|
|
1030
|
+
}
|