@flowio/api-types 0.0.221 → 0.0.223

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.
@@ -126,6 +126,11 @@ declare namespace io.flow.billing.accounting.v0.models {
126
126
  readonly 'total': number;
127
127
  }
128
128
 
129
+ interface OrderReference {
130
+ readonly 'organization': io.flow.common.v0.models.OrganizationReference;
131
+ readonly 'number': string;
132
+ }
133
+
129
134
  interface OrderSummary {
130
135
  readonly 'id': string;
131
136
  readonly 'organization': io.flow.common.v0.models.OrganizationReference;
@@ -136,6 +141,16 @@ declare namespace io.flow.billing.accounting.v0.models {
136
141
  readonly 'currency': string;
137
142
  }
138
143
 
144
+ interface PendingOrder {
145
+ readonly 'id': string;
146
+ readonly 'order': io.flow.billing.accounting.v0.models.OrderSummary;
147
+ readonly 'shopper': io.flow.billing.accounting.v0.models.ShopperSummary;
148
+ readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
149
+ readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
150
+ readonly 'sequence_number': number;
151
+ readonly 'posting_cutoff': string;
152
+ }
153
+
139
154
  interface RemittanceResponsibility {
140
155
  readonly 'tax': io.flow.billing.internal.v0.enums.ResponsibleParty;
141
156
  readonly 'duty': io.flow.billing.internal.v0.enums.ResponsibleParty;
@@ -145,8 +160,8 @@ declare namespace io.flow.billing.accounting.v0.models {
145
160
  readonly 'id': string;
146
161
  readonly 'order': io.flow.billing.accounting.v0.models.OrderSummary;
147
162
  readonly 'shopper': io.flow.billing.accounting.v0.models.ShopperSummary;
148
- readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
149
163
  readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
164
+ readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
150
165
  readonly 'sequence_number': number;
151
166
  readonly 'posting_cutoff': string;
152
167
  readonly 'trigger': io.flow.billing.accounting.v0.unions.ReturnTrigger;
@@ -273,6 +273,8 @@ declare namespace io.flow.billing.csv.v0.models {
273
273
  readonly 'fx_fee_description'?: string;
274
274
  readonly 'duty_guarantee_fee'?: number;
275
275
  readonly 'duty_guarantee_fee_description'?: string;
276
+ readonly 'negative_balance_fee'?: number;
277
+ readonly 'negative_balance_fee_description'?: string;
276
278
  }
277
279
 
278
280
  interface BillingCsvProcessingTransactionDelivery {
@@ -1,13 +1,12 @@
1
1
  declare namespace io.flow.billing.internal.v0.enums {
2
+ type AccountPaymentHoldReason = 'fraudulent' | 'invalid_bank_account';
2
3
  type AccountSettingLiabilitiesMethod = 'withholding' | 'transaction';
3
- type AccountStatus = 'active' | 'inactive';
4
4
  type AccountType = 'channel' | 'organization';
5
5
  type AdjustmentTransactionType = 'adjustment' | 'reversal';
6
6
  type BankPaymentPromiseCompletedMethod = 'credit' | 'time';
7
7
  type BankPaymentStatusCode = 'scheduled' | 'sent' | 'failed';
8
8
  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';
9
9
  type BillingStatementAttachmentKey = 'invoice' | 'statement' | 'consumer_invoice' | 'credit_memo' | 'channel_billed' | 'transactions' | 'virtual_card' | 'tax_remittance' | 'manual' | 'orders' | 'label' | 'order_service' | 'tax' | 'duty' | 'trueup' | 'carrier_charge' | 'all';
10
- type BillingStatementBatchFileKey = 'summary';
11
10
  type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
12
11
  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' | 'carrier_charge';
13
12
  type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge' | 'revenue_share';
@@ -63,6 +62,17 @@ declare namespace io.flow.billing.internal.v0.models {
63
62
  readonly 'country': string;
64
63
  }
65
64
 
65
+ interface AccountPaymentHold {
66
+ readonly 'id': string;
67
+ readonly 'account': io.flow.billing.internal.v0.models.SimpleAccountReference;
68
+ readonly 'reason': io.flow.billing.internal.v0.enums.AccountPaymentHoldReason;
69
+ }
70
+
71
+ interface AccountPaymentHoldForm {
72
+ readonly 'account_id': string;
73
+ readonly 'reason': io.flow.billing.internal.v0.enums.AccountPaymentHoldReason;
74
+ }
75
+
66
76
  interface AccountProcessingRateForm {
67
77
  readonly 'query': string;
68
78
  readonly 'capture': number;
@@ -291,26 +301,16 @@ declare namespace io.flow.billing.internal.v0.models {
291
301
  readonly 'label_fee'?: io.flow.billing.internal.v0.models.TieredFee;
292
302
  }
293
303
 
304
+ interface BillingSandboxSetup {
305
+ readonly 'description': string;
306
+ }
307
+
294
308
  interface BillingStatementAttachment {
295
309
  readonly 'key': io.flow.billing.internal.v0.enums.BillingStatementAttachmentKey;
296
310
  readonly 'name': string;
297
311
  readonly 'url': string;
298
312
  }
299
313
 
300
- interface BillingStatementBatch {
301
- readonly 'id': string;
302
- }
303
-
304
- interface BillingStatementBatchReference {
305
- readonly 'id': string;
306
- }
307
-
308
- interface BillingStatementBatchStatement {
309
- readonly 'id': string;
310
- readonly 'batch': io.flow.billing.internal.v0.models.BillingStatementBatchReference;
311
- readonly 'statement': io.flow.billing.internal.v0.models.BillingStatementReference;
312
- }
313
-
314
314
  interface BillingStatementReference {
315
315
  readonly 'id': string;
316
316
  }
@@ -384,7 +384,6 @@ declare namespace io.flow.billing.internal.v0.models {
384
384
  readonly 'channel': io.flow.common.v0.models.ChannelReference;
385
385
  readonly 'id': string;
386
386
  readonly 'key'?: string;
387
- readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
388
387
  readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
389
388
  readonly 'currency': string;
390
389
  readonly 'updated_at': string;
@@ -575,6 +574,7 @@ declare namespace io.flow.billing.internal.v0.models {
575
574
  readonly 'fx'?: io.flow.billing.internal.v0.models.Fee;
576
575
  readonly 'duty_guarantee'?: io.flow.billing.internal.v0.models.Fee;
577
576
  readonly 'transfer'?: io.flow.billing.internal.v0.models.Fee;
577
+ readonly 'negative_balance'?: io.flow.billing.internal.v0.models.Fee;
578
578
  }
579
579
 
580
580
  interface FinanceBankAccount {
@@ -601,7 +601,6 @@ declare namespace io.flow.billing.internal.v0.models {
601
601
  readonly 'source': io.flow.billing.internal.v0.models.AccountSource;
602
602
  readonly 'id': string;
603
603
  readonly 'key'?: string;
604
- readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
605
604
  readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
606
605
  readonly 'currency': string;
607
606
  readonly 'updated_at': string;
@@ -616,10 +615,6 @@ declare namespace io.flow.billing.internal.v0.models {
616
615
  readonly 'created_at': string;
617
616
  }
618
617
 
619
- interface FlowAccountStatusForm {
620
- readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
621
- }
622
-
623
618
  interface FlowBillingStatement {
624
619
  readonly 'id': string;
625
620
  readonly 'account': io.flow.billing.v0.models.AccountReference;
@@ -798,7 +793,6 @@ declare namespace io.flow.billing.internal.v0.models {
798
793
  readonly 'organization': io.flow.common.v0.models.OrganizationReference;
799
794
  readonly 'id': string;
800
795
  readonly 'key'?: string;
801
- readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
802
796
  readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
803
797
  readonly 'currency': string;
804
798
  readonly 'updated_at': string;
@@ -2,7 +2,7 @@ declare namespace io.flow.billing.reporting.v0.enums {
2
2
  type ReportStatus = 'created' | 'completed' | 'completed_no_records' | 'failed';
3
3
  type ReportType = 'sales_record' | 'trueup_overview' | 'non_channel_payment_bank_account' | 'scheduled_payment';
4
4
  type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
5
- type RevenueRecordType = 'sales' | 'refund';
5
+ type RevenueRecordType = 'pending' | 'sales' | 'refund';
6
6
  }
7
7
 
8
8
  declare namespace io.flow.billing.reporting.v0.models {