@flowio/types 11.24.21 → 11.24.23

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
@@ -2405,6 +2405,8 @@ declare namespace io.flow.v0.enums {
2405
2405
  | 'manifested_label_deleted'
2406
2406
  | 'local_item_upserted'
2407
2407
  | 'local_item_deleted'
2408
+ | 'merchant_application_upserted'
2409
+ | 'merchant_application_deleted'
2408
2410
  | 'checkout_optin_responses_upserted'
2409
2411
  | 'checkout_optin_responses_deleted'
2410
2412
  | 'browse_optin_responses_upserted'
@@ -2974,11 +2976,13 @@ declare namespace io.flow.v0.enums {
2974
2976
  | 'dispute'
2975
2977
  | 'adjustment'
2976
2978
  | 'shipping_label'
2979
+ | 'shipping_label_service'
2980
+ | 'shipping_label_revenue_share'
2977
2981
  | 'platform_fee'
2978
2982
  | 'other_adjustment'
2979
2983
  | 'tax_adjustment'
2980
2984
  | 'channel'
2981
- | 'order'
2985
+ | 'order_service'
2982
2986
  | 'virtual_card_capture'
2983
2987
  | 'virtual_card_refund';
2984
2988
  type UnitOfMeasurement =
@@ -3512,6 +3516,11 @@ declare namespace io.flow.v0.models {
3512
3516
  readonly result: any /*object*/;
3513
3517
  }
3514
3518
 
3519
+ interface AuthorizationCode {
3520
+ readonly result_code: string;
3521
+ readonly code: string;
3522
+ }
3523
+
3515
3524
  interface AuthorizationCopyForm {
3516
3525
  readonly discriminator: 'authorization_copy_form';
3517
3526
  readonly source_authorization_key: string;
@@ -3558,6 +3567,7 @@ declare namespace io.flow.v0.models {
3558
3567
  readonly cvv?: io.flow.v0.models.Cvv;
3559
3568
  readonly three_d_secure?: io.flow.v0.models.ThreeDSecure;
3560
3569
  readonly description?: io.flow.v0.models.AuthorizationResultDescription;
3570
+ readonly authorization_code?: io.flow.v0.models.AuthorizationCode;
3561
3571
  }
3562
3572
 
3563
3573
  interface AuthorizationResultActionGet {
@@ -3788,6 +3798,17 @@ declare namespace io.flow.v0.models {
3788
3798
  readonly id: string;
3789
3799
  }
3790
3800
 
3801
+ interface BridgeManifest {
3802
+ readonly id: string;
3803
+ readonly service: io.flow.v0.models.ServiceSummary;
3804
+ readonly pdf: string;
3805
+ readonly data: string;
3806
+ }
3807
+
3808
+ interface BridgeManifestForm {
3809
+ readonly order_numbers: string[];
3810
+ }
3811
+
3791
3812
  interface BrowseOptinResponses {
3792
3813
  readonly id: string;
3793
3814
  readonly session_id: string;
@@ -4387,6 +4408,15 @@ declare namespace io.flow.v0.models {
4387
4408
  readonly id: string;
4388
4409
  }
4389
4410
 
4411
+ interface ChannelStatement {
4412
+ readonly id: string;
4413
+ readonly account: io.flow.v0.models.AccountReference;
4414
+ readonly ending_balance: number;
4415
+ readonly settlement: io.flow.v0.unions.Settlement;
4416
+ readonly attachments: io.flow.v0.models.Attachment[];
4417
+ readonly created_at: string;
4418
+ }
4419
+
4390
4420
  interface ChannelToken {
4391
4421
  readonly discriminator: 'channel_token';
4392
4422
  readonly id: string;
@@ -4410,6 +4440,20 @@ declare namespace io.flow.v0.models {
4410
4440
  readonly user: io.flow.v0.models.UserReference;
4411
4441
  }
4412
4442
 
4443
+ interface ChannelTransaction {
4444
+ readonly id: string;
4445
+ readonly order?: io.flow.v0.models.BillingChannelOrderReference;
4446
+ readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
4447
+ readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
4448
+ readonly currency: string;
4449
+ readonly source: io.flow.v0.enums.TransactionSource;
4450
+ readonly gross: number;
4451
+ readonly fees: io.flow.v0.models.FeeDeduction[];
4452
+ readonly withholdings: io.flow.v0.models.WithholdingDeduction[];
4453
+ readonly net: number;
4454
+ readonly created_at: string;
4455
+ }
4456
+
4413
4457
  interface ChannelUpserted {
4414
4458
  readonly discriminator: 'channel_upserted';
4415
4459
  readonly event_id: string;
@@ -5318,6 +5362,7 @@ declare namespace io.flow.v0.models {
5318
5362
  readonly discriminator: 'direct_debit';
5319
5363
  readonly routing_number: string;
5320
5364
  readonly last4: string;
5365
+ readonly additional_data?: Record<string, string>;
5321
5366
  }
5322
5367
 
5323
5368
  interface Discount {
@@ -7384,6 +7429,20 @@ declare namespace io.flow.v0.models {
7384
7429
  readonly membership: io.flow.v0.models.Membership;
7385
7430
  }
7386
7431
 
7432
+ interface MerchantApplicationDeleted {
7433
+ readonly discriminator: 'merchant_application_deleted';
7434
+ readonly event_id: string;
7435
+ readonly timestamp: string;
7436
+ readonly merchant_application: io.flow.v0.unions.MerchantApplication;
7437
+ }
7438
+
7439
+ interface MerchantApplicationUpserted {
7440
+ readonly discriminator: 'merchant_application_upserted';
7441
+ readonly event_id: string;
7442
+ readonly timestamp: string;
7443
+ readonly merchant_application: io.flow.v0.unions.MerchantApplication;
7444
+ }
7445
+
7387
7446
  interface MerchantGiftCardBalance {
7388
7447
  readonly amount: number;
7389
7448
  readonly currency: string;
@@ -7526,6 +7585,11 @@ declare namespace io.flow.v0.models {
7526
7585
  readonly available_quantity: number;
7527
7586
  }
7528
7587
 
7588
+ interface NoPayout {
7589
+ readonly discriminator: 'no_payout';
7590
+ readonly placeholder?: string;
7591
+ }
7592
+
7529
7593
  interface NotificationDeletedV2 {
7530
7594
  readonly discriminator: 'notification_deleted_v2';
7531
7595
  readonly event_id: string;
@@ -7564,6 +7628,11 @@ declare namespace io.flow.v0.models {
7564
7628
  readonly timezone?: string;
7565
7629
  }
7566
7630
 
7631
+ interface OnboardingOrganizationReference {
7632
+ readonly id: string;
7633
+ readonly status: io.flow.v0.enums.OrganizationStatus;
7634
+ }
7635
+
7567
7636
  interface OnlineAuthorization {
7568
7637
  readonly discriminator: 'online_authorization';
7569
7638
  readonly id: string;
@@ -9235,9 +9304,10 @@ declare namespace io.flow.v0.models {
9235
9304
  }
9236
9305
 
9237
9306
  interface Payout {
9307
+ readonly discriminator: 'payout';
9238
9308
  readonly status: io.flow.v0.models.PayoutStatus;
9239
9309
  readonly amount: number;
9240
- readonly sent_on: string;
9310
+ readonly sent_on?: string;
9241
9311
  }
9242
9312
 
9243
9313
  interface PayoutStatus {
@@ -9250,6 +9320,7 @@ declare namespace io.flow.v0.models {
9250
9320
  readonly payment_id: string;
9251
9321
  readonly payment_method?: string;
9252
9322
  readonly payment_state?: string;
9323
+ readonly payer_id?: string;
9253
9324
  readonly payer_email?: string;
9254
9325
  readonly payer_status?: string;
9255
9326
  readonly approval_url?: string;
@@ -11108,11 +11179,13 @@ declare namespace io.flow.v0.models {
11108
11179
  readonly discriminator: 'shopify_merchant_application';
11109
11180
  readonly id: string;
11110
11181
  readonly organization_id: string;
11182
+ readonly organization_reference: io.flow.v0.models.OnboardingOrganizationReference;
11111
11183
  readonly status: io.flow.v0.enums.OnboardingApplicationStatus;
11112
11184
  readonly company?: io.flow.v0.models.MerchantInfo;
11113
11185
  readonly indirect_tax_number?: string;
11114
11186
  readonly parent_company?: io.flow.v0.models.MerchantInfo;
11115
11187
  readonly beneficiary?: string;
11188
+ readonly ultimate_beneficiary_owner?: io.flow.v0.models.UltimateBeneficiaryOwner;
11116
11189
  readonly business_url?: string;
11117
11190
  readonly business_description?: string;
11118
11191
  readonly business_address?: io.flow.v0.models.Address;
@@ -11131,6 +11204,7 @@ declare namespace io.flow.v0.models {
11131
11204
  readonly ratecard?: io.flow.v0.models.RatecardReference;
11132
11205
  readonly rate_card: string;
11133
11206
  readonly created_at: string;
11207
+ readonly activated_at?: string;
11134
11208
  }
11135
11209
 
11136
11210
  interface ShopifyMerchantApplicationForm {
@@ -11139,6 +11213,7 @@ declare namespace io.flow.v0.models {
11139
11213
  readonly indirect_tax_number?: string;
11140
11214
  readonly parent_company?: io.flow.v0.models.MerchantInfo;
11141
11215
  readonly beneficiary?: string;
11216
+ readonly ultimate_beneficiary_owner?: io.flow.v0.models.UltimateBeneficiaryOwner;
11142
11217
  readonly business_url?: string;
11143
11218
  readonly business_description?: string;
11144
11219
  readonly business_address?: io.flow.v0.models.Address;
@@ -11165,6 +11240,11 @@ declare namespace io.flow.v0.models {
11165
11240
  readonly status?: io.flow.v0.enums.OnboardingApplicationStatus;
11166
11241
  }
11167
11242
 
11243
+ interface ShopifyMerchantApplicationsSummary {
11244
+ readonly discriminator: 'shopify_merchant_applications_summary';
11245
+ readonly total: number;
11246
+ }
11247
+
11168
11248
  interface ShopifyOrderAttributesForm {
11169
11249
  readonly attributes: Record<string, string>;
11170
11250
  }
@@ -11290,8 +11370,9 @@ declare namespace io.flow.v0.models {
11290
11370
  readonly id: string;
11291
11371
  readonly account: io.flow.v0.models.AccountReference;
11292
11372
  readonly ending_balance: number;
11293
- readonly payout?: io.flow.v0.models.Payout;
11373
+ readonly settlement: io.flow.v0.unions.Settlement;
11294
11374
  readonly attachments: io.flow.v0.models.Attachment[];
11375
+ readonly created_at: string;
11295
11376
  }
11296
11377
 
11297
11378
  interface StatementDeleted {
@@ -11658,11 +11739,15 @@ declare namespace io.flow.v0.models {
11658
11739
  readonly location?: io.flow.v0.models.MerchantOnboardingAddress;
11659
11740
  readonly scheduled_pickups?: io.flow.v0.models.OnboardingMerchantScheduledPickup[];
11660
11741
  readonly operations_contact: io.flow.v0.models.OperationsContact;
11742
+ readonly center_id?: string;
11661
11743
  }
11662
11744
 
11663
11745
  interface ThreeDSecure {
11664
11746
  readonly code: io.flow.v0.enums.ThreeDSecureCode;
11665
11747
  readonly description?: string;
11748
+ readonly eci?: string;
11749
+ readonly liability_sift?: boolean;
11750
+ readonly version?: string;
11666
11751
  }
11667
11752
 
11668
11753
  interface ThreedsChallengeActionDetails {
@@ -12014,6 +12099,11 @@ declare namespace io.flow.v0.models {
12014
12099
  readonly to: number;
12015
12100
  }
12016
12101
 
12102
+ interface UltimateBeneficiaryOwner {
12103
+ readonly name: string;
12104
+ readonly dob: string;
12105
+ }
12106
+
12017
12107
  interface UnharmonizedItemExportType {
12018
12108
  readonly discriminator: 'unharmonized_item_export_type';
12019
12109
  readonly sort?: string;
@@ -12445,6 +12535,8 @@ declare namespace io.flow.v0.unions {
12445
12535
  | io.flow.v0.models.ManifestedLabelDeleted
12446
12536
  | io.flow.v0.models.LocalItemUpserted
12447
12537
  | io.flow.v0.models.LocalItemDeleted
12538
+ | io.flow.v0.models.MerchantApplicationUpserted
12539
+ | io.flow.v0.models.MerchantApplicationDeleted
12448
12540
  | io.flow.v0.models.CheckoutOptinResponsesUpserted
12449
12541
  | io.flow.v0.models.CheckoutOptinResponsesDeleted
12450
12542
  | io.flow.v0.models.BrowseOptinResponsesUpserted
@@ -12582,6 +12674,8 @@ declare namespace io.flow.v0.unions {
12582
12674
  io.flow.v0.models.ShopifyMerchantApplicationForm;
12583
12675
  type MerchantApplicationPutForm =
12584
12676
  io.flow.v0.models.ShopifyMerchantApplicationPutForm;
12677
+ type MerchantApplicationsSummary =
12678
+ io.flow.v0.models.ShopifyMerchantApplicationsSummary;
12585
12679
  type OnlineAuthorizationDetails =
12586
12680
  | io.flow.v0.models.CryptopayAuthorizationDetails
12587
12681
  | io.flow.v0.models.PaypalAuthorizationDetails
@@ -12722,6 +12816,7 @@ declare namespace io.flow.v0.unions {
12722
12816
  type Session = io.flow.v0.models.OrganizationSession;
12723
12817
  type SessionAuthorization =
12724
12818
  io.flow.v0.models.OrganizationSessionAuthorization;
12819
+ type Settlement = io.flow.v0.models.NoPayout | io.flow.v0.models.Payout;
12725
12820
  type ShippingLabelForm =
12726
12821
  | io.flow.v0.models.DetailedShippingLabelForm
12727
12822
  | io.flow.v0.models.SummaryShippingLabelForm;
@@ -12867,6 +12962,7 @@ export type AuthorizationActionResultAdyenV3 =
12867
12962
  io.flow.v0.models.AuthorizationActionResultAdyenV3;
12868
12963
  export type AuthorizationActionResultAdyenV4 =
12869
12964
  io.flow.v0.models.AuthorizationActionResultAdyenV4;
12965
+ export type AuthorizationCode = io.flow.v0.models.AuthorizationCode;
12870
12966
  export type AuthorizationCopyForm = io.flow.v0.models.AuthorizationCopyForm;
12871
12967
  export type AuthorizationDeclineCode =
12872
12968
  io.flow.v0.enums.AuthorizationDeclineCode;
@@ -12938,6 +13034,8 @@ export type BillingChannelPaymentRequestReference =
12938
13034
  io.flow.v0.models.BillingChannelPaymentRequestReference;
12939
13035
  export type BillingChannelStatementReference =
12940
13036
  io.flow.v0.models.BillingChannelStatementReference;
13037
+ export type BridgeManifest = io.flow.v0.models.BridgeManifest;
13038
+ export type BridgeManifestForm = io.flow.v0.models.BridgeManifestForm;
12941
13039
  export type BrowseOptinResponses = io.flow.v0.models.BrowseOptinResponses;
12942
13040
  export type BrowseOptinResponsesDeleted =
12943
13041
  io.flow.v0.models.BrowseOptinResponsesDeleted;
@@ -13052,9 +13150,11 @@ export type ChannelOrganizationUpserted =
13052
13150
  io.flow.v0.models.ChannelOrganizationUpserted;
13053
13151
  export type ChannelRate = io.flow.v0.models.ChannelRate;
13054
13152
  export type ChannelReference = io.flow.v0.models.ChannelReference;
13153
+ export type ChannelStatement = io.flow.v0.models.ChannelStatement;
13055
13154
  export type ChannelToken = io.flow.v0.models.ChannelToken;
13056
13155
  export type ChannelTokenForm = io.flow.v0.models.ChannelTokenForm;
13057
13156
  export type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
13157
+ export type ChannelTransaction = io.flow.v0.models.ChannelTransaction;
13058
13158
  export type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
13059
13159
  export type ChannelViesRegistration = io.flow.v0.models.ChannelViesRegistration;
13060
13160
  export type ChannelViesRegistrationForm =
@@ -13705,9 +13805,15 @@ export type MembershipPutForm = io.flow.v0.models.MembershipPutForm;
13705
13805
  export type MembershipUpsertedV2 = io.flow.v0.models.MembershipUpsertedV2;
13706
13806
  export type MembershipVersion = io.flow.v0.models.MembershipVersion;
13707
13807
  export type MerchantApplication = io.flow.v0.unions.MerchantApplication;
13808
+ export type MerchantApplicationDeleted =
13809
+ io.flow.v0.models.MerchantApplicationDeleted;
13708
13810
  export type MerchantApplicationForm = io.flow.v0.unions.MerchantApplicationForm;
13709
13811
  export type MerchantApplicationPutForm =
13710
13812
  io.flow.v0.unions.MerchantApplicationPutForm;
13813
+ export type MerchantApplicationUpserted =
13814
+ io.flow.v0.models.MerchantApplicationUpserted;
13815
+ export type MerchantApplicationsSummary =
13816
+ io.flow.v0.unions.MerchantApplicationsSummary;
13711
13817
  export type MerchantGiftCardBalance = io.flow.v0.models.MerchantGiftCardBalance;
13712
13818
  export type MerchantGiftCardBalanceForm =
13713
13819
  io.flow.v0.models.MerchantGiftCardBalanceForm;
@@ -13745,6 +13851,7 @@ export type NoInventoryReservationError =
13745
13851
  io.flow.v0.models.NoInventoryReservationError;
13746
13852
  export type NoInventoryReservationErrorItem =
13747
13853
  io.flow.v0.models.NoInventoryReservationErrorItem;
13854
+ export type NoPayout = io.flow.v0.models.NoPayout;
13748
13855
  export type NotificationDeletedV2 = io.flow.v0.models.NotificationDeletedV2;
13749
13856
  export type NotificationUpsertedV2 = io.flow.v0.models.NotificationUpsertedV2;
13750
13857
  export type NumberRange = io.flow.v0.models.NumberRange;
@@ -13755,6 +13862,8 @@ export type OnboardingMerchantPickupWindow =
13755
13862
  export type OnboardingMerchantScheduledPickup =
13756
13863
  io.flow.v0.models.OnboardingMerchantScheduledPickup;
13757
13864
  export type OnboardingMerchantTime = io.flow.v0.models.OnboardingMerchantTime;
13865
+ export type OnboardingOrganizationReference =
13866
+ io.flow.v0.models.OnboardingOrganizationReference;
13758
13867
  export type OnboardingTradeSector = io.flow.v0.enums.OnboardingTradeSector;
13759
13868
  export type OnlineAuthorization = io.flow.v0.models.OnlineAuthorization;
13760
13869
  export type OnlineAuthorizationDeletedV2 =
@@ -14407,6 +14516,7 @@ export type SessionPutForm = io.flow.v0.models.SessionPutForm;
14407
14516
  export type SessionReference = io.flow.v0.models.SessionReference;
14408
14517
  export type SessionVisit = io.flow.v0.models.SessionVisit;
14409
14518
  export type SessionVisitor = io.flow.v0.models.SessionVisitor;
14519
+ export type Settlement = io.flow.v0.unions.Settlement;
14410
14520
  export type ShipmentIntegrationType = io.flow.v0.enums.ShipmentIntegrationType;
14411
14521
  export type ShipmentRecipient = io.flow.v0.enums.ShipmentRecipient;
14412
14522
  export type ShipmentWindow = io.flow.v0.models.ShipmentWindow;
@@ -14520,6 +14630,8 @@ export type ShopifyMerchantApplicationForm =
14520
14630
  io.flow.v0.models.ShopifyMerchantApplicationForm;
14521
14631
  export type ShopifyMerchantApplicationPutForm =
14522
14632
  io.flow.v0.models.ShopifyMerchantApplicationPutForm;
14633
+ export type ShopifyMerchantApplicationsSummary =
14634
+ io.flow.v0.models.ShopifyMerchantApplicationsSummary;
14523
14635
  export type ShopifyOrderAttributesForm =
14524
14636
  io.flow.v0.models.ShopifyOrderAttributesForm;
14525
14637
  export type ShopifyOrderDeliveryMetafield =
@@ -14698,6 +14810,8 @@ export type TransactionSource = io.flow.v0.enums.TransactionSource;
14698
14810
  export type TransactionUpserted = io.flow.v0.models.TransactionUpserted;
14699
14811
  export type TransitEstimate = io.flow.v0.models.TransitEstimate;
14700
14812
  export type TransitWindow = io.flow.v0.models.TransitWindow;
14813
+ export type UltimateBeneficiaryOwner =
14814
+ io.flow.v0.models.UltimateBeneficiaryOwner;
14701
14815
  export type UnharmonizedItemExportType =
14702
14816
  io.flow.v0.models.UnharmonizedItemExportType;
14703
14817
  export type UnitOfMeasurement = io.flow.v0.enums.UnitOfMeasurement;