@flowio/api-types 0.0.228 → 0.0.229

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.
@@ -1,35 +0,0 @@
1
- declare namespace io.flow.billing.reporting.csv.v0.models {
2
- interface ReportingFulfillment {
3
- readonly 'id': string;
4
- readonly 'sequence_number': number;
5
- readonly 'fulfilled_at': string;
6
- readonly 'completes_order': boolean;
7
- readonly 'value': io.flow.billing.reporting.v0.models.FulfillmentShopperBreakdown;
8
- readonly 'dispatch_country'?: io.flow.billing.reporting.v0.models.ReportingCountry;
9
- readonly 'destination': io.flow.billing.reporting.v0.models.ReportingDestination;
10
- readonly 'carrier'?: string;
11
- readonly 'is': io.flow.billing.reporting.v0.models.ReportingFulfillmentIs;
12
- readonly 'has': io.flow.billing.reporting.v0.models.ReportingFulfillmentHas;
13
- readonly 'fx': io.flow.billing.reporting.v0.models.ReportingFx;
14
- readonly 'business'?: io.flow.billing.reporting.v0.models.ReportingBusiness;
15
- }
16
-
17
- interface SalesRecord {
18
- readonly 'id': string;
19
- readonly 'parent'?: io.flow.billing.reporting.v0.models.RecordReference;
20
- readonly 'merchant': io.flow.billing.reporting.v0.models.ReportingOrganizationSummary;
21
- readonly 'order': io.flow.billing.reporting.v0.models.ReportingOrderSummary;
22
- readonly 'entity': io.flow.billing.reporting.v0.models.ReportingEntity;
23
- readonly 'vendor': io.flow.billing.reporting.v0.models.ReportingVendor;
24
- readonly 'currencies': io.flow.billing.reporting.v0.models.ReportingCurrencies;
25
- readonly 'conversion_rate': io.flow.billing.reporting.v0.models.ReportingConversionRates;
26
- readonly 'reconciliation': io.flow.billing.reporting.v0.models.ReportingReconciliation;
27
- readonly 'merchant_subsidies': io.flow.billing.reporting.v0.models.ReportingMerchantSubsidies;
28
- readonly 'merchant_fees': io.flow.billing.reporting.v0.models.ReportingMerchantFees;
29
- readonly 'merchant_transactions': io.flow.billing.reporting.v0.models.ReportingMerchantTransactions;
30
- readonly 'debug': io.flow.billing.reporting.v0.models.ReportingDebug;
31
- readonly 'fulfillment': io.flow.billing.reporting.csv.v0.models.ReportingFulfillment;
32
- readonly 'vat_remittance': io.flow.billing.reporting.v0.models.ReportingVatRemittance;
33
- readonly 'marked_as_final': io.flow.billing.reporting.v0.models.MarkedAsFinal;
34
- }
35
- }
@@ -1,324 +0,0 @@
1
- declare namespace io.flow.billing.reporting.v0.enums {
2
- type ReportPaymentType = 'credit' | 'debit';
3
- type ReportStatus = 'created' | 'completed' | 'completed_no_records' | 'failed';
4
- type ReportType = 'sales_record' | 'refund_record' | 'other_record' | 'pending_record' | 'trueup_overview' | 'non_channel_payment_bank_account' | 'scheduled_payment' | 'account_quarterly_balances' | 'invariants' | 'payments';
5
- type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
6
- type RevenueRecordType = 'pending' | 'sales' | 'refund';
7
- }
8
-
9
- declare namespace io.flow.billing.reporting.v0.models {
10
- interface FulfillmentShopperBreakdown {
11
- readonly 'shipping': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
12
- readonly 'fees': io.flow.billing.reporting.v0.models.ReportingShopperFees;
13
- readonly 'product': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
14
- readonly 'subtotal': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
15
- readonly 'tax': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
16
- readonly 'duty': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
17
- readonly 'tips'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
18
- readonly 'discount': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
19
- readonly 'total': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
20
- }
21
-
22
- interface MarkedAsFinal {
23
- readonly 'products': boolean;
24
- readonly 'shipping': boolean;
25
- }
26
-
27
- interface NonChannelPaymentBankAccount {
28
- readonly 'payment': io.flow.billing.reporting.v0.models.ReportPayment;
29
- readonly 'bank_account': io.flow.billing.reporting.v0.models.ReportBankAccount;
30
- readonly 'account': io.flow.billing.reporting.v0.models.ReportAccount;
31
- }
32
-
33
- interface RecordReference {
34
- readonly 'id': string;
35
- }
36
-
37
- interface Report {
38
- readonly 'id': string;
39
- readonly 'status': io.flow.billing.reporting.v0.enums.ReportStatus;
40
- readonly 'type': io.flow.billing.reporting.v0.enums.ReportType;
41
- readonly 'from'?: string;
42
- readonly 'to'?: string;
43
- readonly 'payment_type'?: io.flow.billing.reporting.v0.enums.ReportPaymentType;
44
- readonly 'url'?: string;
45
- readonly 'processed_at'?: string;
46
- }
47
-
48
- interface ReportAccount {
49
- readonly 'id': string;
50
- readonly 'currency': string;
51
- readonly 'source': io.flow.billing.internal.v0.models.AccountSource;
52
- }
53
-
54
- interface ReportBankAccount {
55
- readonly 'id'?: string;
56
- readonly 'last4'?: string;
57
- }
58
-
59
- interface ReportBankAccountCleartext {
60
- readonly 'type': string;
61
- readonly 'routing_number': string;
62
- readonly 'account_number': string;
63
- }
64
-
65
- interface ReportForm {
66
- readonly 'type': io.flow.billing.reporting.v0.enums.ReportType;
67
- readonly 'from'?: string;
68
- readonly 'to'?: string;
69
- readonly 'payment_type'?: io.flow.billing.reporting.v0.enums.ReportPaymentType;
70
- readonly 'orders'?: io.flow.billing.reporting.v0.models.ReportOrderReference[];
71
- }
72
-
73
- interface ReportMerchant {
74
- readonly 'id': string;
75
- }
76
-
77
- interface ReportOrderReference {
78
- readonly 'organization_id': string;
79
- readonly 'order_number': string;
80
- }
81
-
82
- interface ReportOwner {
83
- readonly 'name': string;
84
- }
85
-
86
- interface ReportPayment {
87
- readonly 'id': string;
88
- readonly 'amount': number;
89
- readonly 'created_at': string;
90
- }
91
-
92
- interface ReportingAuthorizationReference {
93
- readonly 'id': string;
94
- }
95
-
96
- interface ReportingBusiness {
97
- readonly 'vat_registration_number': string;
98
- readonly 'name'?: string;
99
- }
100
-
101
- interface ReportingConversionRates {
102
- readonly 'merchant': number;
103
- readonly 'entity': number;
104
- readonly 'usd': number;
105
- readonly 'eur': number;
106
- }
107
-
108
- interface ReportingCountry {
109
- readonly 'code': string;
110
- readonly 'is_eu': boolean;
111
- }
112
-
113
- interface ReportingCurrencies {
114
- readonly 'transaction': string;
115
- readonly 'merchant': string;
116
- readonly 'entity': string;
117
- }
118
-
119
- interface ReportingDebug {
120
- readonly 'console_order_link': string;
121
- readonly 'allocation_order_totals_delta'?: number;
122
- readonly 'allocation_order_item_discount_delta'?: number;
123
- readonly 'missing_item_subsidies'?: io.flow.billing.reporting.v0.models.ReportingDebugMissingSubsidies;
124
- readonly 'missing_shipping_subsidies'?: io.flow.billing.reporting.v0.models.ReportingDebugMissingSubsidies;
125
- }
126
-
127
- interface ReportingDebugMissingSubsidies {
128
- readonly 'price'?: boolean;
129
- readonly 'tax'?: boolean;
130
- readonly 'duty'?: boolean;
131
- }
132
-
133
- interface ReportingDestination {
134
- readonly 'country': io.flow.billing.reporting.v0.models.ReportingCountry;
135
- readonly 'province'?: io.flow.billing.reporting.v0.models.ReportingProvince;
136
- }
137
-
138
- interface ReportingEntity {
139
- readonly 'id': string;
140
- }
141
-
142
- interface ReportingFulfillment {
143
- readonly 'id': string;
144
- readonly 'sequence_number': number;
145
- readonly 'fulfilled_at': string;
146
- readonly 'completes_order': boolean;
147
- readonly 'refund'?: io.flow.billing.reporting.v0.models.ReportingRefundReference;
148
- readonly 'value': io.flow.billing.reporting.v0.models.FulfillmentShopperBreakdown;
149
- readonly 'dispatch_country'?: io.flow.billing.reporting.v0.models.ReportingCountry;
150
- readonly 'destination'?: io.flow.billing.reporting.v0.models.ReportingDestination;
151
- readonly 'payment'?: io.flow.billing.reporting.v0.models.ReportingPayment;
152
- readonly 'shipment'?: io.flow.billing.reporting.v0.models.ReportingShipment;
153
- readonly 'is': io.flow.billing.reporting.v0.models.ReportingFulfillmentIs;
154
- readonly 'has': io.flow.billing.reporting.v0.models.ReportingFulfillmentHas;
155
- readonly 'fx': io.flow.billing.reporting.v0.models.ReportingFx;
156
- readonly 'business'?: io.flow.billing.reporting.v0.models.ReportingBusiness;
157
- }
158
-
159
- interface ReportingFulfillmentHas {
160
- readonly 'zero_vat_product': boolean;
161
- }
162
-
163
- interface ReportingFulfillmentIs {
164
- readonly 'replacement': boolean;
165
- readonly 'virtual': io.flow.billing.reporting.v0.enums.ReportingFulfillmentIsVirtual;
166
- readonly 'duties_guaranteed': boolean;
167
- readonly 'wyol': boolean;
168
- readonly 'b2b': boolean;
169
- readonly 'domestic': boolean;
170
- readonly 'combined_shipment'?: boolean;
171
- readonly 'order_cancelled'?: boolean;
172
- readonly 'lvg'?: boolean;
173
- readonly 'tax_inclusive'?: boolean;
174
- readonly 'duty_inclusive'?: boolean;
175
- }
176
-
177
- interface ReportingFx {
178
- readonly 'shipping': io.flow.billing.reporting.v0.models.ReportingUsd;
179
- readonly 'fees': io.flow.billing.reporting.v0.models.ReportingUsd;
180
- readonly 'product': io.flow.billing.reporting.v0.models.ReportingUsd;
181
- readonly 'tax': io.flow.billing.reporting.v0.models.ReportingUsd;
182
- readonly 'duty': io.flow.billing.reporting.v0.models.ReportingUsd;
183
- readonly 'tips'?: io.flow.billing.reporting.v0.models.ReportingUsd;
184
- readonly 'total': io.flow.billing.reporting.v0.models.ReportingUsd;
185
- }
186
-
187
- interface ReportingMerchantBreakdown {
188
- readonly 'subsidies': io.flow.billing.reporting.v0.models.ReportingMerchantSubsidies;
189
- readonly 'fees': io.flow.billing.reporting.v0.models.ReportingMerchantFees;
190
- readonly 'transactions': io.flow.billing.reporting.v0.models.ReportingMerchantTransactions;
191
- }
192
-
193
- interface ReportingMerchantFees {
194
- readonly 'duty_guarantee': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
195
- readonly 'mor': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
196
- readonly 'fraud': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
197
- readonly 'fx': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
198
- readonly 'processing': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
199
- readonly 'rate_lock': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
200
- readonly 'transfer': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
201
- readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
202
- }
203
-
204
- interface ReportingMerchantSubsidies {
205
- readonly 'shipping': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
206
- readonly 'tax': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
207
- readonly 'duty': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
208
- readonly 'ccf': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
209
- readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
210
- }
211
-
212
- interface ReportingMerchantTransactions {
213
- readonly 'adjustment': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
214
- readonly 'reversal': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
215
- readonly 'tax': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
216
- readonly 'duty': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
217
- readonly 'freight': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
218
- readonly 'discount'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
219
- readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
220
- }
221
-
222
- interface ReportingMonetaryValue {
223
- readonly 'transaction': number;
224
- readonly 'merchant': number;
225
- readonly 'entity': number;
226
- readonly 'usd': number;
227
- readonly 'eur': number;
228
- }
229
-
230
- interface ReportingOrderSummary {
231
- readonly 'id': string;
232
- readonly 'number': string;
233
- readonly 'submitted_at': string;
234
- }
235
-
236
- interface ReportingOrganizationSummary {
237
- readonly 'id': string;
238
- readonly 'name': string;
239
- }
240
-
241
- interface ReportingPayment {
242
- readonly 'psp': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
243
- readonly 'credit': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
244
- readonly 'subsidized': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
245
- readonly 'manual': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
246
- readonly 'cod': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
247
- readonly 'total': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
248
- }
249
-
250
- interface ReportingProvince {
251
- readonly 'code'?: string;
252
- readonly 'name': string;
253
- }
254
-
255
- interface ReportingReconciliation {
256
- readonly 'date': string;
257
- readonly 'month': number;
258
- readonly 'year': number;
259
- }
260
-
261
- interface ReportingRefundReference {
262
- readonly 'id': string;
263
- }
264
-
265
- interface ReportingShipment {
266
- readonly 'remittance'?: io.flow.billing.accounting.v0.models.RemittanceResponsibility;
267
- readonly 'carrier': string;
268
- readonly 'tracking_number'?: string;
269
- }
270
-
271
- interface ReportingShopperFees {
272
- readonly 'fuel': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
273
- readonly 'remote_area': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
274
- readonly 'oversize': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
275
- readonly 'ccf': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
276
- readonly 'emergency': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
277
- readonly 'peak': io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
278
- readonly 'total'?: io.flow.billing.reporting.v0.models.ReportingMonetaryValue;
279
- }
280
-
281
- interface ReportingUsd {
282
- readonly 'usd': number;
283
- }
284
-
285
- interface ReportingVatRemittance {
286
- readonly 'currency': string;
287
- readonly 'rate': io.flow.billing.reporting.v0.models.ReportingVatRemittanceRate;
288
- }
289
-
290
- interface ReportingVatRemittanceRate {
291
- readonly 'entity': number;
292
- }
293
-
294
- interface ReportingVendor {
295
- readonly 'id': string;
296
- }
297
-
298
- interface RevenueRecord {
299
- readonly 'id': string;
300
- readonly 'organization': io.flow.billing.reporting.v0.models.ReportingOrganizationSummary;
301
- readonly 'parent'?: io.flow.billing.reporting.v0.models.RecordReference;
302
- readonly 'type': io.flow.billing.reporting.v0.enums.RevenueRecordType;
303
- readonly 'order': io.flow.billing.reporting.v0.models.ReportingOrderSummary;
304
- readonly 'entity': io.flow.billing.reporting.v0.models.ReportingEntity;
305
- readonly 'vendor': io.flow.billing.reporting.v0.models.ReportingVendor;
306
- readonly 'currencies': io.flow.billing.reporting.v0.models.ReportingCurrencies;
307
- readonly 'conversion_rate': io.flow.billing.reporting.v0.models.ReportingConversionRates;
308
- readonly 'reconciliation': io.flow.billing.reporting.v0.models.ReportingReconciliation;
309
- readonly 'merchant': io.flow.billing.reporting.v0.models.ReportingMerchantBreakdown;
310
- readonly 'fulfillment': io.flow.billing.reporting.v0.models.ReportingFulfillment;
311
- readonly 'vat_remittance': io.flow.billing.reporting.v0.models.ReportingVatRemittance;
312
- readonly 'marked_as_final': io.flow.billing.reporting.v0.models.MarkedAsFinal;
313
- readonly 'debug': io.flow.billing.reporting.v0.models.ReportingDebug;
314
- }
315
-
316
- interface ScheduledPayment {
317
- readonly 'payment': io.flow.billing.reporting.v0.models.ReportPayment;
318
- readonly 'bank_account': io.flow.billing.reporting.v0.models.ReportBankAccountCleartext;
319
- readonly 'account': io.flow.billing.reporting.v0.models.ReportAccount;
320
- readonly 'merchant': io.flow.billing.reporting.v0.models.ReportMerchant;
321
- readonly 'owner': io.flow.billing.reporting.v0.models.ReportOwner;
322
- readonly 'description': string;
323
- }
324
- }
@@ -1,21 +0,0 @@
1
- declare namespace io.flow.invoice.v0.enums {
2
- type PaymentTerm = 'net7' | 'net15' | 'net30';
3
- }
4
-
5
- declare namespace io.flow.invoice.v0.models {
6
- interface Invoice {
7
- readonly 'id': string;
8
- readonly 'number': string;
9
- readonly 'date': string;
10
- readonly 'terms': io.flow.invoice.v0.enums.PaymentTerm;
11
- readonly 'due_date': string;
12
- readonly 'lines': io.flow.invoice.v0.models.InvoiceLine[];
13
- readonly 'total': io.flow.common.v0.models.Price;
14
- }
15
-
16
- interface InvoiceLine {
17
- readonly 'id': string;
18
- readonly 'description': string;
19
- readonly 'value': io.flow.common.v0.models.Price;
20
- }
21
- }