@flowio/api-types 0.0.224 → 0.0.225
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.csv.v0.billing-csv.d.ts +9 -0
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +44 -8
- package/generated/io.flow.billing.reporting.v0.billing-reporting.d.ts +1 -1
- package/generated/io.flow.billing.v0.billing.d.ts +21 -5
- package/generated/io.flow.internal.v0.api-internal.d.ts +173 -95
- package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts +2 -0
- package/generated/io.flow.payment.gateway.v0.payment-gateway.d.ts +17 -8
- package/generated/io.flow.payment.internal.v0.payment-internal.d.ts +0 -9
- package/generated/io.flow.payment.v0.payment.d.ts +0 -5
- package/generated/io.flow.shopify.external.v0.shopify-external.d.ts +8 -1
- package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +6 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
- package/generated/io.flow.v0.api.d.ts +41 -19
- package/package.json +2 -2
|
@@ -363,6 +363,7 @@ declare namespace io.flow.billing.csv.v0.models {
|
|
|
363
363
|
readonly 'shipping_label_revenue_share'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataShippingLabelRevenueShare;
|
|
364
364
|
readonly 'trueup'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataTrueup;
|
|
365
365
|
readonly 'carrier_charge'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataCarrierCharge;
|
|
366
|
+
readonly 'carrier_fee'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataCarrierFee;
|
|
366
367
|
readonly 'manual'?: io.flow.billing.csv.v0.models.BillingCsvTransactionMetadataManual;
|
|
367
368
|
}
|
|
368
369
|
|
|
@@ -375,6 +376,14 @@ declare namespace io.flow.billing.csv.v0.models {
|
|
|
375
376
|
readonly 'outbound_transaction_id'?: string;
|
|
376
377
|
}
|
|
377
378
|
|
|
379
|
+
interface BillingCsvTransactionMetadataCarrierFee {
|
|
380
|
+
readonly 'outbound_transaction_id': string;
|
|
381
|
+
readonly 'estimate_fixed_ddp'?: number;
|
|
382
|
+
readonly 'estimate_fixed_currency_conversion'?: number;
|
|
383
|
+
readonly 'actual_fixed_ddp'?: number;
|
|
384
|
+
readonly 'actual_fixed_currency_conversion'?: number;
|
|
385
|
+
}
|
|
386
|
+
|
|
378
387
|
interface BillingCsvTransactionMetadataChannel {
|
|
379
388
|
readonly 'method': string;
|
|
380
389
|
readonly 'card'?: io.flow.billing.v0.models.TransactionMetadataChannelCardMetadata;
|
|
@@ -6,17 +6,17 @@ declare namespace io.flow.billing.internal.v0.enums {
|
|
|
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
|
-
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 BillingTransactionStatus = '
|
|
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';
|
|
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' | 'carrier_fee' | 'all';
|
|
10
|
+
type BillingTransactionStatus = 'pending_proof' | 'posted';
|
|
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' | 'carrier_fee';
|
|
12
12
|
type CarrierChargeTransactionType = 'adjustment' | 'reversal' | 'charge' | 'revenue_share';
|
|
13
|
+
type CarrierFeeTransactionType = 'adjustment' | 'reversal' | 'fee';
|
|
13
14
|
type ChannelBilledTransactionType = 'adjustment' | 'reversal' | 'channel_initiated';
|
|
14
15
|
type ChannelTransactionType = 'adjustment' | 'reversal' | 'processing';
|
|
15
16
|
type DisputeTransactionType = 'adjustment' | 'dispute';
|
|
16
17
|
type DutyTransactionType = 'adjustment' | 'reversal' | 'duty';
|
|
17
18
|
type FeesSource = 'settings' | 'authorization_bundle';
|
|
18
19
|
type LabelTransactionType = 'adjustment' | 'reversal' | 'billable_label' | 'fee' | 'revenue_share';
|
|
19
|
-
type MainTransactionStatus = 'scheduled' | 'pending_proof';
|
|
20
20
|
type ManualTransactionCategory = 'cancelled_order_refund' | 'channel_partner_initiated' | 'client_accepted_chargeback' | 'fee_reimbursement' | 'partial_refund' | 'platform_fee' | 'shipping_true_up' | 'tax_credit' | 'carrier_credit' | 'negative_balance_guarantee' | 'bank_payment_failure';
|
|
21
21
|
type OrderCancellationInitiatedBy = 'flow' | 'organization';
|
|
22
22
|
type OrderTransactionType = 'adjustment' | 'reversal' | 'order_service';
|
|
@@ -347,6 +347,7 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
347
347
|
readonly 'duty': io.flow.common.v0.models.Price;
|
|
348
348
|
readonly 'trueup': io.flow.common.v0.models.Price;
|
|
349
349
|
readonly 'carrier_charge': io.flow.common.v0.models.Price;
|
|
350
|
+
readonly 'carrier_fee': io.flow.common.v0.models.Price;
|
|
350
351
|
readonly 'ending_balance': io.flow.common.v0.models.Price;
|
|
351
352
|
}
|
|
352
353
|
|
|
@@ -380,6 +381,23 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
380
381
|
readonly 'created_at': string;
|
|
381
382
|
}
|
|
382
383
|
|
|
384
|
+
interface CarrierFeeTransaction {
|
|
385
|
+
readonly 'discriminator': 'carrier_fee_transaction';
|
|
386
|
+
readonly 'label_reference': io.flow.billing.internal.v0.models.CarrierFeeTransactionLabelReference;
|
|
387
|
+
readonly 'id': string;
|
|
388
|
+
readonly 'type': io.flow.billing.internal.v0.enums.BillingTransactionType;
|
|
389
|
+
readonly 'status': io.flow.billing.internal.v0.enums.BillingTransactionStatus;
|
|
390
|
+
readonly 'posted_at'?: string;
|
|
391
|
+
readonly 'value': io.flow.common.v0.models.Price;
|
|
392
|
+
readonly 'description': string;
|
|
393
|
+
readonly 'statement'?: io.flow.billing.internal.v0.models.BillingStatementReference;
|
|
394
|
+
readonly 'created_at': string;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
interface CarrierFeeTransactionLabelReference {
|
|
398
|
+
readonly 'id': string;
|
|
399
|
+
}
|
|
400
|
+
|
|
383
401
|
interface ChannelAccount {
|
|
384
402
|
readonly 'channel': io.flow.common.v0.models.ChannelReference;
|
|
385
403
|
readonly 'id': string;
|
|
@@ -530,7 +548,14 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
530
548
|
readonly 'reason': string;
|
|
531
549
|
}
|
|
532
550
|
|
|
533
|
-
interface
|
|
551
|
+
interface ExplicitStatementFormAllPendingPostedTransactions {
|
|
552
|
+
readonly 'discriminator': 'all_pending_posted_transactions';
|
|
553
|
+
readonly 'account_id': string;
|
|
554
|
+
readonly 'reason': string;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
interface ExplicitStatementFormTransactionIds {
|
|
558
|
+
readonly 'discriminator': 'transaction_ids';
|
|
534
559
|
readonly 'account_id': string;
|
|
535
560
|
readonly 'reason': string;
|
|
536
561
|
readonly 'transaction_ids': string[];
|
|
@@ -701,6 +726,11 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
701
726
|
readonly 'created_at': string;
|
|
702
727
|
}
|
|
703
728
|
|
|
729
|
+
interface LostChargeback {
|
|
730
|
+
readonly 'id': string;
|
|
731
|
+
readonly 'order': io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
732
|
+
}
|
|
733
|
+
|
|
704
734
|
interface MainTransaction {
|
|
705
735
|
readonly 'id': string;
|
|
706
736
|
readonly 'account': io.flow.billing.v0.models.AccountReference;
|
|
@@ -734,7 +764,6 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
734
764
|
readonly 'currency'?: string;
|
|
735
765
|
readonly 'description': string;
|
|
736
766
|
readonly 'category'?: io.flow.billing.internal.v0.enums.ManualTransactionCategory;
|
|
737
|
-
readonly 'posted_at'?: string;
|
|
738
767
|
readonly 'order'?: io.flow.billing.internal.v0.models.ManualTransactionFormOrder;
|
|
739
768
|
readonly 'original_transaction_id'?: string;
|
|
740
769
|
readonly 'attributes'?: Record<string, string>;
|
|
@@ -933,6 +962,12 @@ declare namespace io.flow.billing.internal.v0.models {
|
|
|
933
962
|
readonly 'shipping_notification_id': string;
|
|
934
963
|
}
|
|
935
964
|
|
|
965
|
+
interface ProofOfPostingTimeElapsed {
|
|
966
|
+
readonly 'discriminator': 'time_elapsed';
|
|
967
|
+
readonly 'order': io.flow.billing.internal.v0.models.BillingOrderTransactionOrderReference;
|
|
968
|
+
readonly 'created_at': string;
|
|
969
|
+
}
|
|
970
|
+
|
|
936
971
|
interface SimpleAccountReference {
|
|
937
972
|
readonly 'id': string;
|
|
938
973
|
}
|
|
@@ -1091,9 +1126,10 @@ declare namespace io.flow.billing.internal.v0.unions {
|
|
|
1091
1126
|
type AdjustmentAmount = (io.flow.billing.internal.v0.models.AdjustmentAmountPercentage | io.flow.billing.internal.v0.models.AdjustmentAmountFixed);
|
|
1092
1127
|
type AdjustmentDetails = (io.flow.billing.internal.v0.models.AdjustmentAmountPercentage | io.flow.billing.internal.v0.models.AdjustmentAmountFixed | io.flow.billing.internal.v0.models.AdjustmentDetailsProcessingTransaction);
|
|
1093
1128
|
type ChannelRateMetadata = (io.flow.billing.internal.v0.models.ChannelRateMetadataIdentity | io.flow.billing.internal.v0.models.ChannelRateMetadataRate);
|
|
1129
|
+
type ExplicitStatementForm = (io.flow.billing.internal.v0.models.ExplicitStatementFormTransactionIds | io.flow.billing.internal.v0.models.ExplicitStatementFormAllPendingPostedTransactions);
|
|
1094
1130
|
type OrderCancellationEvidence = (io.flow.billing.internal.v0.models.OrderCancellationEvidenceManual | io.flow.billing.internal.v0.models.OrderCancellationEvidenceFullyRefundedNotFulfilled | io.flow.billing.internal.v0.models.OrderCancellationEvidenceReturnToSender);
|
|
1095
1131
|
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);
|
|
1096
|
-
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 | io.flow.billing.internal.v0.models.ProofOfPostingOrderCombinedShipment);
|
|
1132
|
+
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 | io.flow.billing.internal.v0.models.ProofOfPostingOrderCombinedShipment | io.flow.billing.internal.v0.models.ProofOfPostingTimeElapsed);
|
|
1097
1133
|
type SpotRateMetadata = (io.flow.billing.internal.v0.models.SpotRateMetadataIdentity | io.flow.billing.internal.v0.models.SpotRateMetadataRate);
|
|
1098
|
-
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 | io.flow.billing.internal.v0.models.CarrierChargeTransaction);
|
|
1134
|
+
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 | io.flow.billing.internal.v0.models.CarrierChargeTransaction | io.flow.billing.internal.v0.models.CarrierFeeTransaction);
|
|
1099
1135
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare namespace io.flow.billing.reporting.v0.enums {
|
|
2
2
|
type ReportStatus = 'created' | 'completed' | 'completed_no_records' | 'failed';
|
|
3
|
-
type ReportType = 'sales_record' | 'trueup_overview' | 'non_channel_payment_bank_account' | 'scheduled_payment';
|
|
3
|
+
type ReportType = 'sales_record' | 'trueup_overview' | 'non_channel_payment_bank_account' | 'scheduled_payment' | 'account_quarterly_balances';
|
|
4
4
|
type ReportingFulfillmentIsVirtual = 'all' | 'mixed' | 'none';
|
|
5
5
|
type RevenueRecordType = 'pending' | 'sales' | 'refund';
|
|
6
6
|
}
|
|
@@ -4,7 +4,7 @@ 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' | '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';
|
|
7
|
+
type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'reversal' | 'shipping_label' | 'shipping_label_service' | 'shipping_label_revenue_share' | 'trueup' | 'carrier_charge' | 'carrier_charge_revenue_share' | 'carrier_fee' | '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
|
}
|
|
@@ -294,11 +294,18 @@ declare namespace io.flow.billing.v0.models {
|
|
|
294
294
|
readonly 'carrier_id': string;
|
|
295
295
|
readonly 'carrier_tracking_number': string;
|
|
296
296
|
readonly 'revenue_share_percentage': number;
|
|
297
|
-
readonly 'outbound'?: io.flow.billing.v0.models.
|
|
297
|
+
readonly 'outbound'?: io.flow.billing.v0.models.TransactionMetadataOutboundTransaction;
|
|
298
298
|
}
|
|
299
299
|
|
|
300
|
-
interface
|
|
301
|
-
readonly '
|
|
300
|
+
interface TransactionMetadataCarrierFee {
|
|
301
|
+
readonly 'discriminator': 'carrier_fee';
|
|
302
|
+
readonly 'outbound': io.flow.billing.v0.models.TransactionMetadataOutboundTransaction;
|
|
303
|
+
readonly 'estimate': io.flow.billing.v0.models.TransactionMetadataCarrierFeeData;
|
|
304
|
+
readonly 'actual': io.flow.billing.v0.models.TransactionMetadataCarrierFeeData;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface TransactionMetadataCarrierFeeData {
|
|
308
|
+
readonly 'surcharges': io.flow.billing.v0.models.TrueupLabelSurcharge[];
|
|
302
309
|
}
|
|
303
310
|
|
|
304
311
|
interface TransactionMetadataChannel {
|
|
@@ -328,6 +335,15 @@ declare namespace io.flow.billing.v0.models {
|
|
|
328
335
|
readonly 'id': string;
|
|
329
336
|
}
|
|
330
337
|
|
|
338
|
+
interface TransactionMetadataOutboundTransaction {
|
|
339
|
+
readonly 'transaction_id': string;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
interface TransactionMetadataPaymentTransaction {
|
|
343
|
+
readonly 'discriminator': 'payment_transaction';
|
|
344
|
+
readonly 'key'?: string;
|
|
345
|
+
}
|
|
346
|
+
|
|
331
347
|
interface TransactionMetadataShippingLabel {
|
|
332
348
|
readonly 'discriminator': 'shipping_label';
|
|
333
349
|
readonly 'request_method'?: io.flow.label.v0.enums.LabelRequestMethod;
|
|
@@ -389,5 +405,5 @@ declare namespace io.flow.billing.v0.unions {
|
|
|
389
405
|
type BankAccountForm = (io.flow.billing.v0.models.BankAccountFormInfo | io.flow.billing.v0.models.BankAccountFormSimple);
|
|
390
406
|
type PayoutStatus = (io.flow.billing.v0.models.PayoutStatusScheduled | io.flow.billing.v0.models.PayoutStatusSent | io.flow.billing.v0.models.PayoutStatusFailed);
|
|
391
407
|
type Settlement = (io.flow.billing.v0.models.SettlementNoPayout | io.flow.billing.v0.models.SettlementPayout);
|
|
392
|
-
type TransactionMetadata = (io.flow.billing.v0.models.TransactionMetadataShippingLabel | io.flow.billing.v0.models.TransactionMetadataChannel | io.flow.billing.v0.models.TransactionMetadataTrueup | io.flow.billing.v0.models.TransactionMetadataCarrierCharge | io.flow.billing.v0.models.TransactionMetadataManual);
|
|
408
|
+
type TransactionMetadata = (io.flow.billing.v0.models.TransactionMetadataShippingLabel | io.flow.billing.v0.models.TransactionMetadataChannel | io.flow.billing.v0.models.TransactionMetadataTrueup | io.flow.billing.v0.models.TransactionMetadataCarrierCharge | io.flow.billing.v0.models.TransactionMetadataCarrierFee | io.flow.billing.v0.models.TransactionMetadataManual | io.flow.billing.v0.models.TransactionMetadataPaymentTransaction);
|
|
393
409
|
}
|