@flowio/api-types 0.0.219 → 0.0.221
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.billing.accounting.v0.billing-accounting.d.ts +211 -0
- package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +2 -0
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +19 -2
- package/generated/io.flow.billing.reporting.v0.billing-reporting.d.ts +1 -0
- package/generated/io.flow.billing.v0.billing.d.ts +29 -1
- package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +1 -0
- package/generated/io.flow.internal.v0.api-internal.d.ts +132 -17
- package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts +8 -2
- package/generated/io.flow.permission.v0.permission.d.ts +1 -1
- package/generated/io.flow.ratecard.v0.ratecard.d.ts +75 -2
- package/generated/io.flow.stripe.v0.stripe.d.ts +54 -3
- package/generated/io.flow.trueup.v0.trueup.d.ts +1 -1
- package/generated/io.flow.v0.api.d.ts +114 -7
- package/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
declare namespace io.flow.billing.accounting.v0.models {
|
|
2
|
+
interface Fulfillment {
|
|
3
|
+
readonly 'id': string;
|
|
4
|
+
readonly 'order': io.flow.billing.accounting.v0.models.OrderSummary;
|
|
5
|
+
readonly 'shopper': io.flow.billing.accounting.v0.models.ShopperSummary;
|
|
6
|
+
readonly 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
7
|
+
readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
8
|
+
readonly 'sequence_number': number;
|
|
9
|
+
readonly 'posting_cutoff': string;
|
|
10
|
+
readonly 'trigger': io.flow.billing.accounting.v0.unions.FulfillmentTrigger;
|
|
11
|
+
readonly 'fulfilled_at': string;
|
|
12
|
+
readonly 'owner': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
13
|
+
readonly 'origin'?: io.flow.billing.accounting.v0.models.FulfillmentOrigin;
|
|
14
|
+
readonly 'business'?: io.flow.billing.accounting.v0.models.FulfillmentBusiness;
|
|
15
|
+
readonly 'completes_order': boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface FulfillmentBusiness {
|
|
19
|
+
readonly 'vat_registration_number': string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface FulfillmentOrigin {
|
|
23
|
+
readonly 'country': string;
|
|
24
|
+
readonly 'province_code'?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface FulfillmentProofExternalFulfillmentProofReference {
|
|
28
|
+
readonly 'discriminator': 'external_fulfillment';
|
|
29
|
+
readonly 'id': string;
|
|
30
|
+
readonly 'carrier_id'?: string;
|
|
31
|
+
readonly 'carrier_service_id'?: string;
|
|
32
|
+
readonly 'carrier_tracking_number'?: string;
|
|
33
|
+
readonly 'label_id'?: string;
|
|
34
|
+
readonly 'created_at'?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface FulfillmentProofLabelTrackingReference {
|
|
38
|
+
readonly 'discriminator': 'label_tracking';
|
|
39
|
+
readonly 'id': string;
|
|
40
|
+
readonly 'carrier_id'?: string;
|
|
41
|
+
readonly 'carrier_service_id'?: string;
|
|
42
|
+
readonly 'carrier_tracking_number'?: string;
|
|
43
|
+
readonly 'label_id'?: string;
|
|
44
|
+
readonly 'created_at'?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface FulfillmentProofOrderCombinedShipmentReference {
|
|
48
|
+
readonly 'discriminator': 'order_combined_shipment';
|
|
49
|
+
readonly 'id': string;
|
|
50
|
+
readonly 'carrier_id'?: string;
|
|
51
|
+
readonly 'carrier_service_id'?: string;
|
|
52
|
+
readonly 'carrier_tracking_number'?: string;
|
|
53
|
+
readonly 'label_id'?: string;
|
|
54
|
+
readonly 'created_at'?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface FulfillmentProofShippingNotificationReference {
|
|
58
|
+
readonly 'discriminator': 'shipping_notification';
|
|
59
|
+
readonly 'id': string;
|
|
60
|
+
readonly 'carrier_id'?: string;
|
|
61
|
+
readonly 'carrier_service_id'?: string;
|
|
62
|
+
readonly 'carrier_tracking_number'?: string;
|
|
63
|
+
readonly 'label_id'?: string;
|
|
64
|
+
readonly 'created_at'?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
interface FulfillmentReference {
|
|
68
|
+
readonly 'id': string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface FulfillmentSubsidyBreakdown {
|
|
72
|
+
readonly 'tax': number;
|
|
73
|
+
readonly 'duty': number;
|
|
74
|
+
readonly 'total': number;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface FulfillmentTriggerProof {
|
|
78
|
+
readonly 'discriminator': 'by_proof';
|
|
79
|
+
readonly 'proof': io.flow.billing.accounting.v0.unions.FulfillmentProof;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
interface FulfillmentTriggerTime {
|
|
83
|
+
readonly 'discriminator': 'by_time';
|
|
84
|
+
readonly 'placeholder'?: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface ItemSummary {
|
|
88
|
+
readonly 'number': string;
|
|
89
|
+
readonly 'fulfillment_method': io.flow.catalog.v0.enums.FulfillmentMethodValue;
|
|
90
|
+
readonly 'country_of_origin'?: string;
|
|
91
|
+
readonly 'tarriff_code'?: string;
|
|
92
|
+
readonly 'inferred'?: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface MerchantFees {
|
|
96
|
+
readonly 'duty_guarantee': number;
|
|
97
|
+
readonly 'mor': number;
|
|
98
|
+
readonly 'fraud': number;
|
|
99
|
+
readonly 'fx': number;
|
|
100
|
+
readonly 'processing': number;
|
|
101
|
+
readonly 'rate_lock': number;
|
|
102
|
+
readonly 'transfer': number;
|
|
103
|
+
readonly 'total': number;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
interface MerchantSubsidies {
|
|
107
|
+
readonly 'fees': io.flow.billing.accounting.v0.models.ShopperFees;
|
|
108
|
+
readonly 'tax': number;
|
|
109
|
+
readonly 'duty': number;
|
|
110
|
+
readonly 'total': number;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
interface MerchantSummary {
|
|
114
|
+
readonly 'subsidies': io.flow.billing.accounting.v0.models.MerchantSubsidies;
|
|
115
|
+
readonly 'fees': io.flow.billing.accounting.v0.models.MerchantFees;
|
|
116
|
+
readonly 'transactions': io.flow.billing.accounting.v0.models.MerchantTransactions;
|
|
117
|
+
readonly 'total': number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface MerchantTransactions {
|
|
121
|
+
readonly 'adjustment': number;
|
|
122
|
+
readonly 'reversal': number;
|
|
123
|
+
readonly 'tax': number;
|
|
124
|
+
readonly 'duty': number;
|
|
125
|
+
readonly 'freight': number;
|
|
126
|
+
readonly 'total': number;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
interface OrderSummary {
|
|
130
|
+
readonly 'id': string;
|
|
131
|
+
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
132
|
+
readonly 'number': string;
|
|
133
|
+
readonly 'type': io.flow.experience.v0.enums.OrderType;
|
|
134
|
+
readonly 'submitted_at': string;
|
|
135
|
+
readonly 'delivered_duty': io.flow.common.v0.enums.DeliveredDuty;
|
|
136
|
+
readonly 'currency': string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
interface RemittanceResponsibility {
|
|
140
|
+
readonly 'tax': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
141
|
+
readonly 'duty': io.flow.billing.internal.v0.enums.ResponsibleParty;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface Return {
|
|
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 'remittance': io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
149
|
+
readonly 'merchant': io.flow.billing.accounting.v0.models.MerchantSummary;
|
|
150
|
+
readonly 'sequence_number': number;
|
|
151
|
+
readonly 'posting_cutoff': string;
|
|
152
|
+
readonly 'trigger': io.flow.billing.accounting.v0.unions.ReturnTrigger;
|
|
153
|
+
readonly 'returned_at': string;
|
|
154
|
+
readonly 'completes_order': boolean;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface ReturnTriggerRefund {
|
|
158
|
+
readonly 'discriminator': 'by_refund';
|
|
159
|
+
readonly 'refund': io.flow.payment.v0.models.RefundReference;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
interface ShopperFees {
|
|
163
|
+
readonly 'fuel': number;
|
|
164
|
+
readonly 'remote_area': number;
|
|
165
|
+
readonly 'oversize': number;
|
|
166
|
+
readonly 'ccf': number;
|
|
167
|
+
readonly 'emergency': number;
|
|
168
|
+
readonly 'peak': number;
|
|
169
|
+
readonly 'total': number;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface ShopperFreight {
|
|
173
|
+
readonly 'price': number;
|
|
174
|
+
readonly 'discount': number;
|
|
175
|
+
readonly 'tax': number;
|
|
176
|
+
readonly 'duty': number;
|
|
177
|
+
readonly 'subsidies': io.flow.billing.accounting.v0.models.FulfillmentSubsidyBreakdown;
|
|
178
|
+
readonly 'total': number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface ShopperLine {
|
|
182
|
+
readonly 'item': io.flow.billing.accounting.v0.models.ItemSummary;
|
|
183
|
+
readonly 'quantity': number;
|
|
184
|
+
readonly 'unit_price': number;
|
|
185
|
+
readonly 'price': number;
|
|
186
|
+
readonly 'discount': number;
|
|
187
|
+
readonly 'tax': number;
|
|
188
|
+
readonly 'duty': number;
|
|
189
|
+
readonly 'subsidies': io.flow.billing.accounting.v0.models.FulfillmentSubsidyBreakdown;
|
|
190
|
+
readonly 'total': number;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface ShopperLines {
|
|
194
|
+
readonly 'lines': io.flow.billing.accounting.v0.models.ShopperLine[];
|
|
195
|
+
readonly 'total': number;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
interface ShopperSummary {
|
|
199
|
+
readonly 'product': io.flow.billing.accounting.v0.models.ShopperLines;
|
|
200
|
+
readonly 'fees': io.flow.billing.accounting.v0.models.ShopperFees;
|
|
201
|
+
readonly 'freight': io.flow.billing.accounting.v0.models.ShopperFreight;
|
|
202
|
+
readonly 'order_discount': number;
|
|
203
|
+
readonly 'total': number;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare namespace io.flow.billing.accounting.v0.unions {
|
|
208
|
+
type FulfillmentProof = (io.flow.billing.accounting.v0.models.FulfillmentProofLabelTrackingReference | io.flow.billing.accounting.v0.models.FulfillmentProofShippingNotificationReference | io.flow.billing.accounting.v0.models.FulfillmentProofExternalFulfillmentProofReference | io.flow.billing.accounting.v0.models.FulfillmentProofOrderCombinedShipmentReference);
|
|
209
|
+
type FulfillmentTrigger = (io.flow.billing.accounting.v0.models.FulfillmentTriggerProof | io.flow.billing.accounting.v0.models.FulfillmentTriggerTime);
|
|
210
|
+
type ReturnTrigger = (io.flow.billing.accounting.v0.models.ReturnTriggerRefund);
|
|
211
|
+
}
|
|
@@ -348,6 +348,7 @@ declare namespace io.flow.billing.csv.v0.models {
|
|
|
348
348
|
readonly 'processing': number;
|
|
349
349
|
readonly 'rate_lock': number;
|
|
350
350
|
readonly 'transfer': number;
|
|
351
|
+
readonly 'negative_balance': number;
|
|
351
352
|
}
|
|
352
353
|
|
|
353
354
|
interface BillingCsvTransactionIdentifiers {
|
|
@@ -368,6 +369,7 @@ declare namespace io.flow.billing.csv.v0.models {
|
|
|
368
369
|
readonly 'label_created_at': string;
|
|
369
370
|
readonly 'carrier_id': string;
|
|
370
371
|
readonly 'carrier_tracking_number': string;
|
|
372
|
+
readonly 'revenue_share_percentage': number;
|
|
371
373
|
readonly 'outbound_transaction_id'?: string;
|
|
372
374
|
}
|
|
373
375
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare namespace io.flow.billing.internal.v0.enums {
|
|
2
2
|
type AccountSettingLiabilitiesMethod = 'withholding' | 'transaction';
|
|
3
|
+
type AccountStatus = 'active' | 'inactive';
|
|
3
4
|
type AccountType = 'channel' | 'organization';
|
|
4
5
|
type AdjustmentTransactionType = 'adjustment' | 'reversal';
|
|
5
6
|
type BankPaymentPromiseCompletedMethod = 'credit' | 'time';
|
|
@@ -9,7 +10,7 @@ declare namespace io.flow.billing.internal.v0.enums {
|
|
|
9
10
|
type BillingStatementBatchFileKey = 'summary';
|
|
10
11
|
type BillingTransactionStatus = 'pending' | 'pending_proof' | 'posted';
|
|
11
12
|
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';
|
|
12
|
-
type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge';
|
|
13
|
+
type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge' | 'revenue_share';
|
|
13
14
|
type ChannelBilledTransactionType = 'adjustment' | 'reversal' | 'channel_initiated';
|
|
14
15
|
type ChannelTransactionType = 'adjustment' | 'reversal' | 'processing';
|
|
15
16
|
type DisputeTransactionType = 'adjustment' | 'dispute';
|
|
@@ -100,7 +101,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
100
101
|
readonly 'merchant_of_record_fee'?: number;
|
|
101
102
|
readonly 'duty_guarantee_fee'?: number;
|
|
102
103
|
readonly 'transfer_fee'?: number;
|
|
103
|
-
readonly '
|
|
104
|
+
readonly 'negative_balance_fee'?: number;
|
|
104
105
|
readonly 'order_service_fee'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
105
106
|
readonly 'label_fees'?: io.flow.billing.internal.v0.models.AccountSettingLabelFees;
|
|
106
107
|
readonly 'charge_label_cost_directly': boolean;
|
|
@@ -285,6 +286,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
285
286
|
readonly 'b2b_tax_remittance_days'?: number;
|
|
286
287
|
readonly 'mor_fee'?: number;
|
|
287
288
|
readonly 'duty_guarantee_fee'?: number;
|
|
289
|
+
readonly 'negative_balance_fee'?: number;
|
|
288
290
|
readonly 'order_service_fee'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
289
291
|
readonly 'label_fee'?: io.flow.billing.internal.v0.models.TieredFee;
|
|
290
292
|
}
|
|
@@ -382,6 +384,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
382
384
|
readonly 'channel': io.flow.common.v0.models.ChannelReference;
|
|
383
385
|
readonly 'id': string;
|
|
384
386
|
readonly 'key'?: string;
|
|
387
|
+
readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
|
|
385
388
|
readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
|
|
386
389
|
readonly 'currency': string;
|
|
387
390
|
readonly 'updated_at': string;
|
|
@@ -598,6 +601,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
598
601
|
readonly 'source': io.flow.billing.internal.v0.models.AccountSource;
|
|
599
602
|
readonly 'id': string;
|
|
600
603
|
readonly 'key'?: string;
|
|
604
|
+
readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
|
|
601
605
|
readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
|
|
602
606
|
readonly 'currency': string;
|
|
603
607
|
readonly 'updated_at': string;
|
|
@@ -612,6 +616,18 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
612
616
|
readonly 'created_at': string;
|
|
613
617
|
}
|
|
614
618
|
|
|
619
|
+
interface FlowAccountStatusForm {
|
|
620
|
+
readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
interface FlowBillingStatement {
|
|
624
|
+
readonly 'id': string;
|
|
625
|
+
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
626
|
+
readonly 'period': io.flow.common.v0.models.DatetimeRange;
|
|
627
|
+
readonly 'totals': io.flow.billing.internal.v0.models.BillingStatementTotals;
|
|
628
|
+
readonly 'attachments': io.flow.billing.internal.v0.models.BillingStatementAttachment[];
|
|
629
|
+
}
|
|
630
|
+
|
|
615
631
|
interface FxFee {
|
|
616
632
|
readonly 'base': io.flow.common.v0.models.Money;
|
|
617
633
|
readonly 'local': io.flow.common.v0.models.Money;
|
|
@@ -782,6 +798,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
782
798
|
readonly 'organization': io.flow.common.v0.models.OrganizationReference;
|
|
783
799
|
readonly 'id': string;
|
|
784
800
|
readonly 'key'?: string;
|
|
801
|
+
readonly 'status': io.flow.billing.internal.v0.enums.AccountStatus;
|
|
785
802
|
readonly 'origin'?: io.flow.billing.internal.v0.models.AccountOrigin;
|
|
786
803
|
readonly 'currency': string;
|
|
787
804
|
readonly 'updated_at': string;
|
|
@@ -251,6 +251,7 @@ declare namespace io.flow.billing.reporting.v0.models {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
interface ReportingShipment {
|
|
254
|
+
readonly 'remittance'?: io.flow.billing.accounting.v0.models.RemittanceResponsibility;
|
|
254
255
|
readonly 'carrier': string;
|
|
255
256
|
readonly 'tracking_number'?: string;
|
|
256
257
|
}
|
|
@@ -4,12 +4,16 @@ declare namespace io.flow.billing.v0.enums {
|
|
|
4
4
|
type PayoutStatusFailureCode = 'invalid_account_number' | 'account_closed' | 'could_not_process';
|
|
5
5
|
type PendingPayoutTransactionReasonCode = 'waiting_for_full_refund' | 'waiting_for_fulfillment' | 'waiting_for_in_transit' | 'waiting_for_next_payout_date' | 'waiting_for_tracking_info' | 'waiting_for_positive_account_balance';
|
|
6
6
|
type StatementAttachmentType = 'csv';
|
|
7
|
-
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'trueup' | 'carrier_charge' | '
|
|
7
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'platform_fee' | 'tax' | 'duty' | 'withholding' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'channel_billed' | 'order_service' | 'virtual_card_capture' | 'virtual_card_refund';
|
|
8
8
|
type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl';
|
|
9
9
|
type WithholdingDeductionType = 'tax' | 'duty' | 'freight' | 'insurance';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
declare namespace io.flow.billing.v0.models {
|
|
13
|
+
interface AccountIdReference {
|
|
14
|
+
readonly 'id': string;
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
interface AccountReference {
|
|
14
18
|
readonly 'id': string;
|
|
15
19
|
readonly 'currency': string;
|
|
@@ -106,6 +110,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
106
110
|
interface ChannelTransaction {
|
|
107
111
|
readonly 'statement'?: io.flow.billing.v0.models.BillingChannelStatementReference;
|
|
108
112
|
readonly 'id': string;
|
|
113
|
+
readonly 'account': io.flow.billing.v0.models.AccountIdReference;
|
|
109
114
|
readonly 'metadata'?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
110
115
|
readonly 'order'?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
111
116
|
readonly 'payment_request'?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -132,6 +137,26 @@ declare namespace io.flow.billing.v0.models {
|
|
|
132
137
|
readonly 'description'?: string;
|
|
133
138
|
}
|
|
134
139
|
|
|
140
|
+
interface FlowTransaction {
|
|
141
|
+
readonly 'statement'?: io.flow.billing.v0.models.BillingChannelStatementReference;
|
|
142
|
+
readonly 'id': string;
|
|
143
|
+
readonly 'account': io.flow.billing.v0.models.AccountIdReference;
|
|
144
|
+
readonly 'metadata'?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
145
|
+
readonly 'order'?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
146
|
+
readonly 'payment_request'?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
147
|
+
readonly 'currency': string;
|
|
148
|
+
readonly 'source': io.flow.billing.v0.enums.TransactionSource;
|
|
149
|
+
readonly 'parent'?: io.flow.billing.v0.models.ParentTransactionSummary;
|
|
150
|
+
readonly 'gross': number;
|
|
151
|
+
readonly 'fees': io.flow.billing.v0.models.FeeDeduction[];
|
|
152
|
+
readonly 'withholdings': io.flow.billing.v0.models.WithholdingDeduction[];
|
|
153
|
+
readonly 'discounts': io.flow.billing.v0.models.BillingDiscount[];
|
|
154
|
+
readonly 'net': number;
|
|
155
|
+
readonly 'identifiers': Record<string, string>;
|
|
156
|
+
readonly 'created_at': string;
|
|
157
|
+
readonly 'updated_at': string;
|
|
158
|
+
}
|
|
159
|
+
|
|
135
160
|
interface OrganizationBankAccount {
|
|
136
161
|
readonly 'id': string;
|
|
137
162
|
readonly 'key': string;
|
|
@@ -195,6 +220,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
195
220
|
|
|
196
221
|
interface PayoutTransaction {
|
|
197
222
|
readonly 'id': string;
|
|
223
|
+
readonly 'account': io.flow.billing.v0.models.AccountIdReference;
|
|
198
224
|
readonly 'metadata'?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
199
225
|
readonly 'order'?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
200
226
|
readonly 'payment_request'?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -244,6 +270,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
244
270
|
interface Transaction {
|
|
245
271
|
readonly 'statement'?: io.flow.billing.v0.models.BillingChannelStatementReference;
|
|
246
272
|
readonly 'id': string;
|
|
273
|
+
readonly 'account': io.flow.billing.v0.models.AccountIdReference;
|
|
247
274
|
readonly 'metadata'?: io.flow.billing.v0.unions.TransactionMetadata;
|
|
248
275
|
readonly 'order'?: io.flow.billing.v0.models.BillingChannelOrderSummary;
|
|
249
276
|
readonly 'payment_request'?: io.flow.billing.v0.models.BillingChannelPaymentRequestReference;
|
|
@@ -266,6 +293,7 @@ declare namespace io.flow.billing.v0.models {
|
|
|
266
293
|
readonly 'label_created_at': string;
|
|
267
294
|
readonly 'carrier_id': string;
|
|
268
295
|
readonly 'carrier_tracking_number': string;
|
|
296
|
+
readonly 'revenue_share_percentage': number;
|
|
269
297
|
readonly 'outbound'?: io.flow.billing.v0.models.TransactionMetadataCarrierChargeOutbound;
|
|
270
298
|
}
|
|
271
299
|
|
|
@@ -42,6 +42,7 @@ declare namespace io.flow.channel.internal.v0.models {
|
|
|
42
42
|
readonly 'channel_id': string;
|
|
43
43
|
readonly 'external_order_reference': string;
|
|
44
44
|
readonly 'payment_request_id'?: string;
|
|
45
|
+
readonly 'order_edit_payment_request_ids'?: string[];
|
|
45
46
|
readonly 'status': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
46
47
|
readonly 'reasons': io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason[];
|
|
47
48
|
readonly 'next_action_from'?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceNextActionFrom;
|