@flowio/types 11.24.38 → 11.24.40

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/src/api.ts CHANGED
@@ -2295,11 +2295,13 @@ declare namespace io.flow.v0.enums {
2295
2295
  type Environment = 'sandbox' | 'production';
2296
2296
  type EventType =
2297
2297
  | 'transaction_upserted'
2298
- | 'transaction_deleted'
2298
+ | 'organization_transaction_upserted'
2299
+ | 'organization_transaction_deleted'
2299
2300
  | 'statement_upserted'
2300
2301
  | 'statement_deleted'
2301
2302
  | 'channel_transaction_upserted'
2302
2303
  | 'channel_transaction_deleted'
2304
+ | 'channel_transaction_deleted_v2'
2303
2305
  | 'channel_statement_upserted'
2304
2306
  | 'channel_statement_deleted'
2305
2307
  | 'attribute_upserted'
@@ -2584,6 +2586,10 @@ declare namespace io.flow.v0.enums {
2584
2586
  | 'insufficient_funds'
2585
2587
  | 'unsupported_currency';
2586
2588
  type MerchantOfRecord = 'flow' | 'organization';
2589
+ type MerchantRejectedReason =
2590
+ | 'merchant_ubo_is_pep'
2591
+ | 'merchant_catalog_is_unsupportable'
2592
+ | 'merchant_failed_kyb_review';
2587
2593
  type Method = 'post';
2588
2594
  type OnboardingApplicationStatus =
2589
2595
  | 'to_do'
@@ -2591,6 +2597,11 @@ declare namespace io.flow.v0.enums {
2591
2597
  | 'on_hold'
2592
2598
  | 'rejected'
2593
2599
  | 'accepted';
2600
+ type OnboardingBlockedReason =
2601
+ | 'street_address_is_blank_3pl'
2602
+ | 'street_address_is_po_box_3pl'
2603
+ | 'business_street_address_is_blank'
2604
+ | 'business_street_address_is_po_box';
2594
2605
  type OnboardingTradeSector =
2595
2606
  | 'accessories'
2596
2607
  | 'animals_and_pet_supplies'
@@ -2997,6 +3008,7 @@ declare namespace io.flow.v0.enums {
2997
3008
  | 'other_adjustment'
2998
3009
  | 'tax_adjustment'
2999
3010
  | 'channel'
3011
+ | 'channel_billed'
3000
3012
  | 'order_service'
3001
3013
  | 'virtual_card_capture'
3002
3014
  | 'virtual_card_refund';
@@ -3445,6 +3457,11 @@ declare namespace io.flow.v0.models {
3445
3457
  readonly display_name?: string;
3446
3458
  }
3447
3459
 
3460
+ interface ApplicationReceived {
3461
+ readonly discriminator: 'application_received';
3462
+ readonly placeholder: boolean;
3463
+ }
3464
+
3448
3465
  interface AtCost {
3449
3466
  readonly discriminator: 'at_cost';
3450
3467
  readonly ignore?: string;
@@ -3795,6 +3812,10 @@ declare namespace io.flow.v0.models {
3795
3812
  readonly account_number: string;
3796
3813
  }
3797
3814
 
3815
+ interface BankAccountReference {
3816
+ readonly id: string;
3817
+ }
3818
+
3798
3819
  interface BehaviorAudit {
3799
3820
  readonly behavior: io.flow.v0.enums.FlowBehavior;
3800
3821
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
@@ -4505,6 +4526,7 @@ declare namespace io.flow.v0.models {
4505
4526
  readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
4506
4527
  readonly discounts: io.flow.v0.models.BillingDiscount[];
4507
4528
  readonly net: number;
4529
+ readonly identifiers: Record<string, string>;
4508
4530
  readonly created_at: string;
4509
4531
  }
4510
4532
 
@@ -4516,6 +4538,14 @@ declare namespace io.flow.v0.models {
4516
4538
  readonly channel_transaction: io.flow.v0.models.ChannelTransaction;
4517
4539
  }
4518
4540
 
4541
+ interface ChannelTransactionDeletedV2 {
4542
+ readonly discriminator: 'channel_transaction_deleted_v2';
4543
+ readonly event_id: string;
4544
+ readonly timestamp: string;
4545
+ readonly channel_id: string;
4546
+ readonly id: string;
4547
+ }
4548
+
4519
4549
  interface ChannelTransactionUpserted {
4520
4550
  readonly discriminator: 'channel_transaction_upserted';
4521
4551
  readonly event_id: string;
@@ -5175,6 +5205,10 @@ declare namespace io.flow.v0.models {
5175
5205
  readonly amount: number;
5176
5206
  }
5177
5207
 
5208
+ interface DefaultBankAccountForm {
5209
+ readonly bank_account_id: string;
5210
+ }
5211
+
5178
5212
  interface DeliveredDutySetting {
5179
5213
  readonly default: io.flow.v0.enums.DeliveredDuty;
5180
5214
  readonly available: io.flow.v0.enums.DeliveredDuty[];
@@ -6646,6 +6680,11 @@ declare namespace io.flow.v0.models {
6646
6680
  readonly import: io.flow.v0.models.Import;
6647
6681
  }
6648
6682
 
6683
+ interface InComplianceReview {
6684
+ readonly discriminator: 'in_compliance_review';
6685
+ readonly placeholder: boolean;
6686
+ }
6687
+
6649
6688
  interface InboundCartonFee {
6650
6689
  readonly discriminator: 'inbound_carton_fee';
6651
6690
  readonly amount: io.flow.v0.models.Money;
@@ -7557,6 +7596,11 @@ declare namespace io.flow.v0.models {
7557
7596
  readonly membership: io.flow.v0.models.Membership;
7558
7597
  }
7559
7598
 
7599
+ interface MerchantActivated {
7600
+ readonly discriminator: 'merchant_activated';
7601
+ readonly placeholder: boolean;
7602
+ }
7603
+
7560
7604
  interface MerchantApplicationDeleted {
7561
7605
  readonly discriminator: 'merchant_application_deleted';
7562
7606
  readonly event_id: string;
@@ -7665,6 +7709,12 @@ declare namespace io.flow.v0.models {
7665
7709
  readonly country?: string;
7666
7710
  }
7667
7711
 
7712
+ interface MerchantRejected {
7713
+ readonly discriminator: 'merchant_rejected';
7714
+ readonly reason: io.flow.v0.enums.MerchantRejectedReason;
7715
+ readonly description?: string;
7716
+ }
7717
+
7668
7718
  interface Money {
7669
7719
  readonly amount: number;
7670
7720
  readonly currency: string;
@@ -7762,6 +7812,11 @@ declare namespace io.flow.v0.models {
7762
7812
  readonly status: io.flow.v0.enums.OrganizationStatus;
7763
7813
  }
7764
7814
 
7815
+ interface OnboardingStateTransition {
7816
+ readonly state: io.flow.v0.unions.OnboardingState;
7817
+ readonly started_at: string;
7818
+ }
7819
+
7765
7820
  interface OnlineAuthorization {
7766
7821
  readonly discriminator: 'online_authorization';
7767
7822
  readonly id: string;
@@ -8620,6 +8675,11 @@ declare namespace io.flow.v0.models {
8620
8675
  readonly id: string;
8621
8676
  }
8622
8677
 
8678
+ interface OrganizationDefaultBankAccount {
8679
+ readonly id: string;
8680
+ readonly bank_account: io.flow.v0.models.BankAccountReference;
8681
+ }
8682
+
8623
8683
  interface OrganizationDefaultConfigurations {
8624
8684
  readonly id: string;
8625
8685
  readonly checkout_configuration: io.flow.v0.models.OrganizationConfigurationReference;
@@ -8677,6 +8737,12 @@ declare namespace io.flow.v0.models {
8677
8737
  readonly type?: io.flow.v0.enums.OrganizationType;
8678
8738
  }
8679
8739
 
8740
+ interface OrganizationOnboardingState {
8741
+ readonly organization: io.flow.v0.models.OrganizationReference;
8742
+ readonly transitions: io.flow.v0.models.OnboardingStateTransition[];
8743
+ readonly current_state: io.flow.v0.unions.OnboardingState;
8744
+ }
8745
+
8680
8746
  interface OrganizationPutForm {
8681
8747
  readonly name?: string;
8682
8748
  readonly environment?: io.flow.v0.enums.Environment;
@@ -8777,6 +8843,22 @@ declare namespace io.flow.v0.models {
8777
8843
  readonly organization: io.flow.v0.models.OrganizationReference;
8778
8844
  }
8779
8845
 
8846
+ interface OrganizationTransactionDeleted {
8847
+ readonly discriminator: 'organization_transaction_deleted';
8848
+ readonly event_id: string;
8849
+ readonly timestamp: string;
8850
+ readonly organization: string;
8851
+ readonly id: string;
8852
+ }
8853
+
8854
+ interface OrganizationTransactionUpserted {
8855
+ readonly discriminator: 'organization_transaction_upserted';
8856
+ readonly event_id: string;
8857
+ readonly timestamp: string;
8858
+ readonly organization: string;
8859
+ readonly transaction: io.flow.v0.models.Transaction;
8860
+ }
8861
+
8780
8862
  interface OrganizationUpserted {
8781
8863
  readonly discriminator: 'organization_upserted';
8782
8864
  readonly event_id: string;
@@ -8963,7 +9045,7 @@ declare namespace io.flow.v0.models {
8963
9045
  readonly first_name?: string;
8964
9046
  readonly last_name: string;
8965
9047
  readonly email: string;
8966
- readonly phone: string;
9048
+ readonly phone?: string;
8967
9049
  }
8968
9050
 
8969
9051
  interface PaymentCryptopay {
@@ -10857,6 +10939,21 @@ declare namespace io.flow.v0.models {
10857
10939
  readonly id: string;
10858
10940
  }
10859
10941
 
10942
+ interface SetupBlocked {
10943
+ readonly discriminator: 'setup_blocked';
10944
+ readonly reasons: io.flow.v0.enums.OnboardingBlockedReason[];
10945
+ }
10946
+
10947
+ interface SetupCompleted {
10948
+ readonly discriminator: 'setup_completed';
10949
+ readonly placeholder: boolean;
10950
+ }
10951
+
10952
+ interface SetupInProgress {
10953
+ readonly discriminator: 'setup_in_progress';
10954
+ readonly placeholder: boolean;
10955
+ }
10956
+
10860
10957
  interface ShipmentWindow {
10861
10958
  readonly from: number;
10862
10959
  readonly to: number;
@@ -12223,17 +12320,10 @@ declare namespace io.flow.v0.models {
12223
12320
  readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
12224
12321
  readonly discounts: io.flow.v0.models.BillingDiscount[];
12225
12322
  readonly net: number;
12323
+ readonly identifiers: Record<string, string>;
12226
12324
  readonly created_at: string;
12227
12325
  }
12228
12326
 
12229
- interface TransactionDeleted {
12230
- readonly discriminator: 'transaction_deleted';
12231
- readonly event_id: string;
12232
- readonly timestamp: string;
12233
- readonly organization: string;
12234
- readonly transaction: io.flow.v0.models.Transaction;
12235
- }
12236
-
12237
12327
  interface TransactionUpserted {
12238
12328
  readonly discriminator: 'transaction_upserted';
12239
12329
  readonly event_id: string;
@@ -12578,11 +12668,13 @@ declare namespace io.flow.v0.unions {
12578
12668
  | io.flow.v0.models.EmailNotificationAbandonedOrder;
12579
12669
  type Event =
12580
12670
  | io.flow.v0.models.TransactionUpserted
12581
- | io.flow.v0.models.TransactionDeleted
12671
+ | io.flow.v0.models.OrganizationTransactionUpserted
12672
+ | io.flow.v0.models.OrganizationTransactionDeleted
12582
12673
  | io.flow.v0.models.StatementUpserted
12583
12674
  | io.flow.v0.models.StatementDeleted
12584
12675
  | io.flow.v0.models.ChannelTransactionUpserted
12585
12676
  | io.flow.v0.models.ChannelTransactionDeleted
12677
+ | io.flow.v0.models.ChannelTransactionDeletedV2
12586
12678
  | io.flow.v0.models.ChannelStatementUpserted
12587
12679
  | io.flow.v0.models.ChannelStatementDeleted
12588
12680
  | io.flow.v0.models.AttributeUpserted
@@ -12842,6 +12934,14 @@ declare namespace io.flow.v0.unions {
12842
12934
  io.flow.v0.models.ShopifyMerchantApplicationPutForm;
12843
12935
  type MerchantApplicationsSummary =
12844
12936
  io.flow.v0.models.ShopifyMerchantApplicationsSummary;
12937
+ type OnboardingState =
12938
+ | io.flow.v0.models.ApplicationReceived
12939
+ | io.flow.v0.models.InComplianceReview
12940
+ | io.flow.v0.models.SetupInProgress
12941
+ | io.flow.v0.models.MerchantRejected
12942
+ | io.flow.v0.models.SetupBlocked
12943
+ | io.flow.v0.models.SetupCompleted
12944
+ | io.flow.v0.models.MerchantActivated;
12845
12945
  type OnlineAuthorizationDetails =
12846
12946
  | io.flow.v0.models.CryptopayAuthorizationDetails
12847
12947
  | io.flow.v0.models.PaypalAuthorizationDetails
@@ -13109,6 +13209,7 @@ export type AmountMarginForm = io.flow.v0.models.AmountMarginForm;
13109
13209
  export type AnalyticsExportType = io.flow.v0.models.AnalyticsExportType;
13110
13210
  export type ApplePayMerchantValidationPayload =
13111
13211
  io.flow.v0.models.ApplePayMerchantValidationPayload;
13212
+ export type ApplicationReceived = io.flow.v0.models.ApplicationReceived;
13112
13213
  export type AtCost = io.flow.v0.models.AtCost;
13113
13214
  export type Attachment = io.flow.v0.models.Attachment;
13114
13215
  export type AttachmentType = io.flow.v0.enums.AttachmentType;
@@ -13195,6 +13296,7 @@ export type B2BInvoiceUpserted = io.flow.v0.models.B2BInvoiceUpserted;
13195
13296
  export type BankAccountForm = io.flow.v0.models.BankAccountForm;
13196
13297
  export type BankAccountInfo = io.flow.v0.unions.BankAccountInfo;
13197
13298
  export type BankAccountInfoUsa = io.flow.v0.models.BankAccountInfoUsa;
13299
+ export type BankAccountReference = io.flow.v0.models.BankAccountReference;
13198
13300
  export type BehaviorAudit = io.flow.v0.models.BehaviorAudit;
13199
13301
  export type BillingAddress = io.flow.v0.models.BillingAddress;
13200
13302
  export type BillingChannelOrderSummary =
@@ -13332,6 +13434,8 @@ export type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
13332
13434
  export type ChannelTransaction = io.flow.v0.models.ChannelTransaction;
13333
13435
  export type ChannelTransactionDeleted =
13334
13436
  io.flow.v0.models.ChannelTransactionDeleted;
13437
+ export type ChannelTransactionDeletedV2 =
13438
+ io.flow.v0.models.ChannelTransactionDeletedV2;
13335
13439
  export type ChannelTransactionUpserted =
13336
13440
  io.flow.v0.models.ChannelTransactionUpserted;
13337
13441
  export type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
@@ -13470,6 +13574,7 @@ export type DatetimeRange = io.flow.v0.models.DatetimeRange;
13470
13574
  export type DatetimeWithTimezone = io.flow.v0.models.DatetimeWithTimezone;
13471
13575
  export type DayOfWeek = io.flow.v0.enums.DayOfWeek;
13472
13576
  export type DdpRatecardFee = io.flow.v0.models.DdpRatecardFee;
13577
+ export type DefaultBankAccountForm = io.flow.v0.models.DefaultBankAccountForm;
13473
13578
  export type DeliveredDuty = io.flow.v0.enums.DeliveredDuty;
13474
13579
  export type DeliveredDutyDisplayType =
13475
13580
  io.flow.v0.enums.DeliveredDutyDisplayType;
@@ -13830,6 +13935,7 @@ export type ImportTemplateExample = io.flow.v0.models.ImportTemplateExample;
13830
13935
  export type ImportTemplateForm = io.flow.v0.models.ImportTemplateForm;
13831
13936
  export type ImportType = io.flow.v0.enums.ImportType;
13832
13937
  export type ImportVersion = io.flow.v0.models.ImportVersion;
13938
+ export type InComplianceReview = io.flow.v0.models.InComplianceReview;
13833
13939
  export type InboundCartonFee = io.flow.v0.models.InboundCartonFee;
13834
13940
  export type IncludedLevies = io.flow.v0.models.IncludedLevies;
13835
13941
  export type IncludedLevyKey = io.flow.v0.enums.IncludedLevyKey;
@@ -13999,6 +14105,7 @@ export type MembershipForm = io.flow.v0.models.MembershipForm;
13999
14105
  export type MembershipPutForm = io.flow.v0.models.MembershipPutForm;
14000
14106
  export type MembershipUpsertedV2 = io.flow.v0.models.MembershipUpsertedV2;
14001
14107
  export type MembershipVersion = io.flow.v0.models.MembershipVersion;
14108
+ export type MerchantActivated = io.flow.v0.models.MerchantActivated;
14002
14109
  export type MerchantApplication = io.flow.v0.unions.MerchantApplication;
14003
14110
  export type MerchantApplicationDeleted =
14004
14111
  io.flow.v0.models.MerchantApplicationDeleted;
@@ -14034,6 +14141,8 @@ export type MerchantOfRecordPaymentForm =
14034
14141
  io.flow.v0.models.MerchantOfRecordPaymentForm;
14035
14142
  export type MerchantOnboardingAddress =
14036
14143
  io.flow.v0.models.MerchantOnboardingAddress;
14144
+ export type MerchantRejected = io.flow.v0.models.MerchantRejected;
14145
+ export type MerchantRejectedReason = io.flow.v0.enums.MerchantRejectedReason;
14037
14146
  export type Method = io.flow.v0.enums.Method;
14038
14147
  export type Money = io.flow.v0.models.Money;
14039
14148
  export type MoneyWithBase = io.flow.v0.models.MoneyWithBase;
@@ -14052,6 +14161,7 @@ export type NotificationUpsertedV2 = io.flow.v0.models.NotificationUpsertedV2;
14052
14161
  export type NumberRange = io.flow.v0.models.NumberRange;
14053
14162
  export type OnboardingApplicationStatus =
14054
14163
  io.flow.v0.enums.OnboardingApplicationStatus;
14164
+ export type OnboardingBlockedReason = io.flow.v0.enums.OnboardingBlockedReason;
14055
14165
  export type OnboardingMerchantPickupWindow =
14056
14166
  io.flow.v0.models.OnboardingMerchantPickupWindow;
14057
14167
  export type OnboardingMerchantScheduledPickup =
@@ -14059,6 +14169,9 @@ export type OnboardingMerchantScheduledPickup =
14059
14169
  export type OnboardingMerchantTime = io.flow.v0.models.OnboardingMerchantTime;
14060
14170
  export type OnboardingOrganizationReference =
14061
14171
  io.flow.v0.models.OnboardingOrganizationReference;
14172
+ export type OnboardingState = io.flow.v0.unions.OnboardingState;
14173
+ export type OnboardingStateTransition =
14174
+ io.flow.v0.models.OnboardingStateTransition;
14062
14175
  export type OnboardingTradeSector = io.flow.v0.enums.OnboardingTradeSector;
14063
14176
  export type OnlineAuthorization = io.flow.v0.models.OnlineAuthorization;
14064
14177
  export type OnlineAuthorizationDeletedV2 =
@@ -14238,6 +14351,8 @@ export type OrganizationAuthorizationForm =
14238
14351
  export type OrganizationBankAccount = io.flow.v0.models.OrganizationBankAccount;
14239
14352
  export type OrganizationConfigurationReference =
14240
14353
  io.flow.v0.models.OrganizationConfigurationReference;
14354
+ export type OrganizationDefaultBankAccount =
14355
+ io.flow.v0.models.OrganizationDefaultBankAccount;
14241
14356
  export type OrganizationDefaultConfigurations =
14242
14357
  io.flow.v0.models.OrganizationDefaultConfigurations;
14243
14358
  export type OrganizationDefaultConfigurationsDeleted =
@@ -14250,6 +14365,8 @@ export type OrganizationDefaults = io.flow.v0.models.OrganizationDefaults;
14250
14365
  export type OrganizationDeleted = io.flow.v0.models.OrganizationDeleted;
14251
14366
  export type OrganizationDeletedV2 = io.flow.v0.models.OrganizationDeletedV2;
14252
14367
  export type OrganizationForm = io.flow.v0.models.OrganizationForm;
14368
+ export type OrganizationOnboardingState =
14369
+ io.flow.v0.models.OrganizationOnboardingState;
14253
14370
  export type OrganizationPaymentMethodTag =
14254
14371
  io.flow.v0.enums.OrganizationPaymentMethodTag;
14255
14372
  export type OrganizationPutForm = io.flow.v0.models.OrganizationPutForm;
@@ -14270,6 +14387,10 @@ export type OrganizationTokenReference =
14270
14387
  export type OrganizationTokenV2 = io.flow.v0.models.OrganizationTokenV2;
14271
14388
  export type OrganizationTokenV2Reference =
14272
14389
  io.flow.v0.models.OrganizationTokenV2Reference;
14390
+ export type OrganizationTransactionDeleted =
14391
+ io.flow.v0.models.OrganizationTransactionDeleted;
14392
+ export type OrganizationTransactionUpserted =
14393
+ io.flow.v0.models.OrganizationTransactionUpserted;
14273
14394
  export type OrganizationType = io.flow.v0.enums.OrganizationType;
14274
14395
  export type OrganizationUpserted = io.flow.v0.models.OrganizationUpserted;
14275
14396
  export type OrganizationUpsertedV2 = io.flow.v0.models.OrganizationUpsertedV2;
@@ -14714,6 +14835,9 @@ export type SessionReference = io.flow.v0.models.SessionReference;
14714
14835
  export type SessionVisit = io.flow.v0.models.SessionVisit;
14715
14836
  export type SessionVisitor = io.flow.v0.models.SessionVisitor;
14716
14837
  export type Settlement = io.flow.v0.unions.Settlement;
14838
+ export type SetupBlocked = io.flow.v0.models.SetupBlocked;
14839
+ export type SetupCompleted = io.flow.v0.models.SetupCompleted;
14840
+ export type SetupInProgress = io.flow.v0.models.SetupInProgress;
14717
14841
  export type ShipmentIntegrationType = io.flow.v0.enums.ShipmentIntegrationType;
14718
14842
  export type ShipmentRecipient = io.flow.v0.enums.ShipmentRecipient;
14719
14843
  export type ShipmentWindow = io.flow.v0.models.ShipmentWindow;
@@ -15003,7 +15127,6 @@ export type TradeAgreementDuty = io.flow.v0.models.TradeAgreementDuty;
15003
15127
  export type TradeAgreementName = io.flow.v0.enums.TradeAgreementName;
15004
15128
  export type TradeAgreementStatus = io.flow.v0.enums.TradeAgreementStatus;
15005
15129
  export type Transaction = io.flow.v0.models.Transaction;
15006
- export type TransactionDeleted = io.flow.v0.models.TransactionDeleted;
15007
15130
  export type TransactionSource = io.flow.v0.enums.TransactionSource;
15008
15131
  export type TransactionUpserted = io.flow.v0.models.TransactionUpserted;
15009
15132
  export type TransitEstimate = io.flow.v0.models.TransitEstimate;