@flowio/types 11.24.138 → 11.24.139

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
@@ -3649,6 +3649,7 @@ declare namespace io.flow.common.v0.models {
3649
3649
  readonly created_at?: string;
3650
3650
  readonly status?: io.flow.common.v0.enums.OrganizationStatus;
3651
3651
  readonly type?: io.flow.common.v0.enums.OrganizationType;
3652
+ readonly channel?: io.flow.common.v0.models.ChannelReference;
3652
3653
  }
3653
3654
 
3654
3655
  interface OrganizationDefaults {
@@ -3662,6 +3663,7 @@ declare namespace io.flow.common.v0.models {
3662
3663
  interface OrganizationReference {
3663
3664
  readonly discriminator: 'organization_reference';
3664
3665
  readonly id: string;
3666
+ readonly channel?: io.flow.common.v0.models.ChannelReference;
3665
3667
  }
3666
3668
 
3667
3669
  interface OrganizationSummary {
@@ -4321,6 +4323,19 @@ declare namespace io.flow.v0.enums {
4321
4323
  type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
4322
4324
  type CostEstimateSource = 'flow' | 'channel';
4323
4325
  type CountryPickerSource = 'experience' | 'destination';
4326
+ type CpscAttribute =
4327
+ | 'certification_id'
4328
+ | 'citation_codes'
4329
+ | 'manufactured_date'
4330
+ | 'manufactured_location'
4331
+ | 'product_test_date'
4332
+ | 'test_lab_name'
4333
+ | 'point_of_contact'
4334
+ | 'certification_version'
4335
+ | 'certification_product_id'
4336
+ | 'certificate_type'
4337
+ | 'lab_type'
4338
+ | 'taxonomy_reference';
4324
4339
  type CreditPaymentErrorCode =
4325
4340
  | 'generic_error'
4326
4341
  | 'invalid_order_number'
@@ -5047,6 +5062,8 @@ declare namespace io.flow.v0.enums {
5047
5062
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
5048
5063
  type RegionType = 'state' | 'province' | 'jurisdiction';
5049
5064
  type RestrictedReviewStatus = 'in_review' | 'reviewed';
5065
+ type RestrictionDecision = 'accept' | 'reject' | 'escalate' | 'review';
5066
+ type RestrictionDecisionReason = 'manual_dispute';
5050
5067
  type RestrictionEnvironment = 'sandbox' | 'production' | 'qa';
5051
5068
  type ReturnItemStatus = 'returnable' | 'non-returnable';
5052
5069
  type ReturnPolicyState = 'current' | 'deleting' | 'updating';
@@ -5130,7 +5147,7 @@ declare namespace io.flow.v0.enums {
5130
5147
  type ShopifySyncCheck = 'localized_variants' | 'flow_variant_metafields';
5131
5148
  type SortDirection = 'ascending' | 'descending';
5132
5149
  type StatementAttachmentType = 'csv' | 'pdf';
5133
- type StatementStatusCode = 'scheduled' | 'sent' | 'failed';
5150
+ type StatementStatusCode = 'scheduled' | 'sent' | 'failed' | 'paid';
5134
5151
  type StoredMethodUsageStep = 'initial' | 'subsequent';
5135
5152
  type Strategy = 'range' | 'from' | 'to';
5136
5153
  type SubcatalogItemStatus = 'excluded' | 'included' | 'restricted';
@@ -5289,7 +5306,8 @@ declare namespace io.flow.v0.enums {
5289
5306
  | 'b2b_tax_refund'
5290
5307
  | 'b2b_fee_mor_tax'
5291
5308
  | 'b2b_fee_shipping_tax'
5292
- | 'flat_rate_label';
5309
+ | 'flat_rate_label'
5310
+ | 'flat_rate_label_subsidy';
5293
5311
  type TransferStatus = 'succeeded' | 'canceled';
5294
5312
  type TransferType =
5295
5313
  | 'payout_to_merchant'
@@ -6132,6 +6150,42 @@ declare namespace io.flow.v0.models {
6132
6150
  readonly b2b_credit_memo: io.flow.v0.models.B2BCreditMemo;
6133
6151
  }
6134
6152
 
6153
+ interface B2BCreditNote {
6154
+ readonly id: string;
6155
+ readonly number: string;
6156
+ readonly status: io.flow.v0.enums.ConsumerInvoiceStatus;
6157
+ readonly date: string;
6158
+ readonly key: string;
6159
+ readonly debit_note: io.flow.v0.models.B2BDebitNoteReference;
6160
+ readonly order?: io.flow.v0.models.ConsumerInvoiceOrderSummary;
6161
+ readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
6162
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
6163
+ readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
6164
+ readonly attributes: Record<string, string>;
6165
+ readonly voids_b2b_debit_note?: boolean;
6166
+ }
6167
+
6168
+ interface B2BDebitNote {
6169
+ readonly id: string;
6170
+ readonly number: string;
6171
+ readonly buyer: io.flow.v0.models.MerchantOfRecordEntity;
6172
+ readonly seller: io.flow.v0.models.MerchantOfRecordEntity;
6173
+ readonly status: io.flow.v0.enums.ConsumerInvoiceStatus;
6174
+ readonly date: string;
6175
+ readonly key: string;
6176
+ readonly order: io.flow.v0.models.ConsumerInvoiceOrderSummary;
6177
+ readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
6178
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
6179
+ readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
6180
+ readonly attributes: Record<string, string>;
6181
+ }
6182
+
6183
+ interface B2BDebitNoteReference {
6184
+ readonly id: string;
6185
+ readonly key: string;
6186
+ readonly number: string;
6187
+ }
6188
+
6135
6189
  interface B2BInvoice {
6136
6190
  readonly id: string;
6137
6191
  readonly number: string;
@@ -6212,18 +6266,6 @@ declare namespace io.flow.v0.models {
6212
6266
 
6213
6267
  interface BankAccountInfoKor {
6214
6268
  readonly discriminator: 'kor';
6215
- readonly name?: string;
6216
- readonly address?: io.flow.v0.models.Address;
6217
- readonly phone?: string;
6218
- readonly email?: string;
6219
- readonly bank_account_number: string;
6220
- readonly bank_routing_number?: string;
6221
- readonly bank_name?: string;
6222
- readonly bank_address?: io.flow.v0.models.Address;
6223
- }
6224
-
6225
- interface BankAccountInfoKorV2 {
6226
- readonly discriminator: 'kor_v2';
6227
6269
  readonly name: string;
6228
6270
  readonly bank_account_number: string;
6229
6271
  readonly bank_routing_number: string;
@@ -9881,6 +9923,7 @@ declare namespace io.flow.v0.models {
9881
9923
  interface LaneSummary {
9882
9924
  readonly id: string;
9883
9925
  readonly ratecard: io.flow.v0.models.RatecardSummary;
9926
+ readonly dim_factor: number;
9884
9927
  }
9885
9928
 
9886
9929
  interface Language {
@@ -11012,6 +11055,11 @@ declare namespace io.flow.v0.models {
11012
11055
  readonly deactivated_at?: string;
11013
11056
  }
11014
11057
 
11058
+ interface OrderStateRejectionReasonPaymentFraud {
11059
+ readonly discriminator: 'order_state_rejection_reason_payment_fraud';
11060
+ readonly payment_request_id: string;
11061
+ }
11062
+
11015
11063
  interface OrderStateRejectionReasonRestrictedItem {
11016
11064
  readonly discriminator: 'order_state_rejection_reason_restricted_item';
11017
11065
  readonly item_numbers: string[];
@@ -11124,6 +11172,7 @@ declare namespace io.flow.v0.models {
11124
11172
  readonly created_at?: string;
11125
11173
  readonly status?: io.flow.v0.enums.OrganizationStatus;
11126
11174
  readonly type?: io.flow.v0.enums.OrganizationType;
11175
+ readonly channel?: io.flow.v0.models.ChannelReference;
11127
11176
  }
11128
11177
 
11129
11178
  interface OrganizationAuthorization {
@@ -11284,6 +11333,7 @@ declare namespace io.flow.v0.models {
11284
11333
  interface OrganizationReference {
11285
11334
  readonly discriminator: 'organization_reference';
11286
11335
  readonly id: string;
11336
+ readonly channel?: io.flow.v0.models.ChannelReference;
11287
11337
  }
11288
11338
 
11289
11339
  interface OrganizationSession {
@@ -11327,6 +11377,7 @@ declare namespace io.flow.v0.models {
11327
11377
  readonly province?: string;
11328
11378
  readonly self_billing_agreement_effective_at: string;
11329
11379
  readonly self_billing_agreement_expires_at?: string;
11380
+ readonly legal_name?: string;
11330
11381
  }
11331
11382
 
11332
11383
  interface OrganizationToken {
@@ -12267,6 +12318,11 @@ declare namespace io.flow.v0.models {
12267
12318
  readonly reason: io.flow.v0.enums.PayoutStatusFailureCode;
12268
12319
  }
12269
12320
 
12321
+ interface PayoutStatusPaid {
12322
+ readonly code: 'paid';
12323
+ readonly timestamp: string;
12324
+ }
12325
+
12270
12326
  interface PayoutStatusScheduled {
12271
12327
  readonly code: 'scheduled';
12272
12328
  readonly placeholder?: string;
@@ -12952,6 +13008,7 @@ declare namespace io.flow.v0.models {
12952
13008
  readonly glbe_shipping_method_id?: string;
12953
13009
  readonly glbe_proposition_name?: string;
12954
13010
  readonly channel_revenue_share_percentage?: number;
13011
+ readonly channel_id?: string;
12955
13012
  }
12956
13013
 
12957
13014
  interface RatecardCarrierSummary {
@@ -13062,6 +13119,7 @@ declare namespace io.flow.v0.models {
13062
13119
  readonly glbe_shipping_method_id?: string;
13063
13120
  readonly glbe_proposition_name?: string;
13064
13121
  readonly channel_revenue_share_percentage?: number;
13122
+ readonly channel_id?: string;
13065
13123
  readonly data?: io.flow.v0.models.RatecardData;
13066
13124
  }
13067
13125
 
@@ -13105,20 +13163,6 @@ declare namespace io.flow.v0.models {
13105
13163
  readonly distance_unit: io.flow.v0.enums.UnitOfMeasurement;
13106
13164
  }
13107
13165
 
13108
- interface RatecardLaneImportForm {
13109
- readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
13110
- readonly service: string;
13111
- readonly currency: string;
13112
- readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
13113
- readonly origin: io.flow.v0.models.Zone;
13114
- readonly destination: io.flow.v0.models.Zone;
13115
- readonly shipment_window: io.flow.v0.models.ShipmentWindow;
13116
- readonly dim_factor: number;
13117
- readonly weight_unit: io.flow.v0.enums.UnitOfMeasurement;
13118
- readonly distance_unit: io.flow.v0.enums.UnitOfMeasurement;
13119
- readonly rates: io.flow.v0.models.RatecardRateForm[];
13120
- }
13121
-
13122
13166
  interface RatecardLaneUpserted {
13123
13167
  readonly discriminator: 'ratecard_lane_upserted';
13124
13168
  readonly event_id: string;
@@ -13134,14 +13178,7 @@ declare namespace io.flow.v0.models {
13134
13178
  readonly ratecard_lane: io.flow.v0.models.RatecardLane;
13135
13179
  }
13136
13180
 
13137
- interface RatecardLanesImportRequestData {
13138
- readonly id: string;
13139
- readonly source_url: string;
13140
- readonly filename?: string;
13141
- }
13142
-
13143
13181
  interface RatecardRate {
13144
- readonly id: string;
13145
13182
  readonly amount: number;
13146
13183
  readonly weight: number;
13147
13184
  }
@@ -13151,13 +13188,6 @@ declare namespace io.flow.v0.models {
13151
13188
  readonly weight: number;
13152
13189
  }
13153
13190
 
13154
- interface RatecardRateVersion {
13155
- readonly id: string;
13156
- readonly timestamp: string;
13157
- readonly type: io.flow.v0.enums.ChangeType;
13158
- readonly ratecard_rate: io.flow.v0.models.RatecardRate;
13159
- }
13160
-
13161
13191
  interface RatecardReference {
13162
13192
  readonly id: string;
13163
13193
  }
@@ -13437,6 +13467,18 @@ declare namespace io.flow.v0.models {
13437
13467
  readonly days_of_week: io.flow.v0.enums.DayOfWeek[];
13438
13468
  }
13439
13469
 
13470
+ interface RestrictionDecisionsForm {
13471
+ readonly organization_id: string;
13472
+ readonly rule_decisions: io.flow.v0.models.RestrictionRuleDecisionForm[];
13473
+ }
13474
+
13475
+ interface RestrictionRuleDecisionForm {
13476
+ readonly product_id: string;
13477
+ readonly reason_code: string;
13478
+ readonly decision: io.flow.v0.enums.RestrictionDecision;
13479
+ readonly decision_reason: io.flow.v0.enums.RestrictionDecisionReason;
13480
+ }
13481
+
13440
13482
  interface Return {
13441
13483
  readonly id: string;
13442
13484
  readonly key: string;
@@ -13745,6 +13787,7 @@ declare namespace io.flow.v0.models {
13745
13787
  readonly price: io.flow.v0.models.Money;
13746
13788
  readonly description: string;
13747
13789
  readonly taxonomy_category: io.flow.v0.models.ProductTaxonomyCategory;
13790
+ readonly inferred_taxonomy_category?: io.flow.v0.models.ProductTaxonomyCategory;
13748
13791
  readonly mode: io.flow.v0.enums.SellabilityScreeningMode;
13749
13792
  readonly catalog_size?: number;
13750
13793
  readonly relative_ranking?: number;
@@ -14047,6 +14090,7 @@ declare namespace io.flow.v0.models {
14047
14090
  readonly id?: string;
14048
14091
  readonly ratecard: io.flow.v0.models.ShippingLabelRatecardSummary;
14049
14092
  readonly weight_break?: number;
14093
+ readonly dim_factor?: number;
14050
14094
  }
14051
14095
 
14052
14096
  interface ShippingLabelPackage {
@@ -14908,6 +14952,7 @@ declare namespace io.flow.v0.models {
14908
14952
  readonly country: string;
14909
14953
  readonly tax_code: string;
14910
14954
  readonly province?: string;
14955
+ readonly legal_name?: string;
14911
14956
  }
14912
14957
 
14913
14958
  interface TaxRegistrationForm {
@@ -15404,6 +15449,7 @@ declare namespace io.flow.v0.models {
15404
15449
  readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
15405
15450
  readonly carrier: io.flow.v0.models.TransactionMetadataShippingLabelCarrier;
15406
15451
  readonly revenue_share_percentage?: number;
15452
+ readonly actual?: io.flow.v0.models.TransactionMetadataTrueupData;
15407
15453
  }
15408
15454
 
15409
15455
  interface TransactionMetadataShippingLabelCarrier {
@@ -15860,8 +15906,7 @@ declare namespace io.flow.v0.unions {
15860
15906
  | io.flow.v0.models.BankAccountInfoGbr
15861
15907
  | io.flow.v0.models.BankAccountInfoFra
15862
15908
  | io.flow.v0.models.BankAccountInfoIta
15863
- | io.flow.v0.models.BankAccountInfoKor
15864
- | io.flow.v0.models.BankAccountInfoKorV2;
15909
+ | io.flow.v0.models.BankAccountInfoKor;
15865
15910
  type BrowserActionConfiguration =
15866
15911
  io.flow.v0.models.CardBrowserActionConfiguration;
15867
15912
  type CardAuthorizationActionResult =
@@ -16203,7 +16248,8 @@ declare namespace io.flow.v0.unions {
16203
16248
  | io.flow.v0.models.OrderStateRejectionReasonRestrictedItem
16204
16249
  | io.flow.v0.models.OrderStateRejectionReasonDomesticOrder
16205
16250
  | io.flow.v0.models.OrderStateRejectionReasonItemsEmpty
16206
- | io.flow.v0.models.OrderStateRejectionReasonOrganizationDeactivated;
16251
+ | io.flow.v0.models.OrderStateRejectionReasonOrganizationDeactivated
16252
+ | io.flow.v0.models.OrderStateRejectionReasonPaymentFraud;
16207
16253
  type PartnerCenterFee =
16208
16254
  | io.flow.v0.models.CommercialInvoiceFee
16209
16255
  | io.flow.v0.models.InboundCartonFee
@@ -16292,7 +16338,8 @@ declare namespace io.flow.v0.unions {
16292
16338
  type PayoutStatus =
16293
16339
  | io.flow.v0.models.PayoutStatusScheduled
16294
16340
  | io.flow.v0.models.PayoutStatusSent
16295
- | io.flow.v0.models.PayoutStatusFailed;
16341
+ | io.flow.v0.models.PayoutStatusFailed
16342
+ | io.flow.v0.models.PayoutStatusPaid;
16296
16343
  type PriceSource =
16297
16344
  | io.flow.v0.models.PriceSourcePriceBook
16298
16345
  | io.flow.v0.models.PriceSourceCatalog
@@ -16604,6 +16651,9 @@ export type AvsCode = io.flow.v0.enums.AvsCode;
16604
16651
  export type B2BCreditMemo = io.flow.v0.models.B2BCreditMemo;
16605
16652
  export type B2BCreditMemoDeleted = io.flow.v0.models.B2BCreditMemoDeleted;
16606
16653
  export type B2BCreditMemoUpserted = io.flow.v0.models.B2BCreditMemoUpserted;
16654
+ export type B2BCreditNote = io.flow.v0.models.B2BCreditNote;
16655
+ export type B2BDebitNote = io.flow.v0.models.B2BDebitNote;
16656
+ export type B2BDebitNoteReference = io.flow.v0.models.B2BDebitNoteReference;
16607
16657
  export type B2BInvoice = io.flow.v0.models.B2BInvoice;
16608
16658
  export type B2BInvoiceDeleted = io.flow.v0.models.B2BInvoiceDeleted;
16609
16659
  export type B2BInvoiceReference = io.flow.v0.models.B2BInvoiceReference;
@@ -16618,7 +16668,6 @@ export type BankAccountInfoFra = io.flow.v0.models.BankAccountInfoFra;
16618
16668
  export type BankAccountInfoGbr = io.flow.v0.models.BankAccountInfoGbr;
16619
16669
  export type BankAccountInfoIta = io.flow.v0.models.BankAccountInfoIta;
16620
16670
  export type BankAccountInfoKor = io.flow.v0.models.BankAccountInfoKor;
16621
- export type BankAccountInfoKorV2 = io.flow.v0.models.BankAccountInfoKorV2;
16622
16671
  export type BankAccountInfoUsa = io.flow.v0.models.BankAccountInfoUsa;
16623
16672
  export type BankAccountReference = io.flow.v0.models.BankAccountReference;
16624
16673
  export type BankAccountSummary = io.flow.v0.models.BankAccountSummary;
@@ -16868,6 +16917,7 @@ export type CountryPickerSource = io.flow.v0.enums.CountryPickerSource;
16868
16917
  export type CountryShippingPricing = io.flow.v0.models.CountryShippingPricing;
16869
16918
  export type CountryStatus = io.flow.v0.models.CountryStatus;
16870
16919
  export type CountryStatusForm = io.flow.v0.models.CountryStatusForm;
16920
+ export type CpscAttribute = io.flow.v0.enums.CpscAttribute;
16871
16921
  export type CreditMemo = io.flow.v0.models.CreditMemo;
16872
16922
  export type CreditMemoDeleted = io.flow.v0.models.CreditMemoDeleted;
16873
16923
  export type CreditMemoForm = io.flow.v0.models.CreditMemoForm;
@@ -17669,6 +17719,8 @@ export type OrderStateRejectionReasonItemsEmpty =
17669
17719
  io.flow.v0.models.OrderStateRejectionReasonItemsEmpty;
17670
17720
  export type OrderStateRejectionReasonOrganizationDeactivated =
17671
17721
  io.flow.v0.models.OrderStateRejectionReasonOrganizationDeactivated;
17722
+ export type OrderStateRejectionReasonPaymentFraud =
17723
+ io.flow.v0.models.OrderStateRejectionReasonPaymentFraud;
17672
17724
  export type OrderStateRejectionReasonRestrictedItem =
17673
17725
  io.flow.v0.models.OrderStateRejectionReasonRestrictedItem;
17674
17726
  export type OrderStateStatus = io.flow.v0.enums.OrderStateStatus;
@@ -18001,6 +18053,7 @@ export type PayoutReference = io.flow.v0.models.PayoutReference;
18001
18053
  export type PayoutStatus = io.flow.v0.unions.PayoutStatus;
18002
18054
  export type PayoutStatusFailed = io.flow.v0.models.PayoutStatusFailed;
18003
18055
  export type PayoutStatusFailureCode = io.flow.v0.enums.PayoutStatusFailureCode;
18056
+ export type PayoutStatusPaid = io.flow.v0.models.PayoutStatusPaid;
18004
18057
  export type PayoutStatusScheduled = io.flow.v0.models.PayoutStatusScheduled;
18005
18058
  export type PayoutStatusSent = io.flow.v0.models.PayoutStatusSent;
18006
18059
  export type PayoutTransaction = io.flow.v0.models.PayoutTransaction;
@@ -18147,15 +18200,11 @@ export type RatecardForm = io.flow.v0.models.RatecardForm;
18147
18200
  export type RatecardLane = io.flow.v0.models.RatecardLane;
18148
18201
  export type RatecardLaneDeleted = io.flow.v0.models.RatecardLaneDeleted;
18149
18202
  export type RatecardLaneForm = io.flow.v0.models.RatecardLaneForm;
18150
- export type RatecardLaneImportForm = io.flow.v0.models.RatecardLaneImportForm;
18151
18203
  export type RatecardLaneUpserted = io.flow.v0.models.RatecardLaneUpserted;
18152
18204
  export type RatecardLaneVersion = io.flow.v0.models.RatecardLaneVersion;
18153
- export type RatecardLanesImportRequestData =
18154
- io.flow.v0.models.RatecardLanesImportRequestData;
18155
18205
  export type RatecardOwner = io.flow.v0.enums.RatecardOwner;
18156
18206
  export type RatecardRate = io.flow.v0.models.RatecardRate;
18157
18207
  export type RatecardRateForm = io.flow.v0.models.RatecardRateForm;
18158
- export type RatecardRateVersion = io.flow.v0.models.RatecardRateVersion;
18159
18208
  export type RatecardReference = io.flow.v0.models.RatecardReference;
18160
18209
  export type RatecardRegionReference = io.flow.v0.models.RatecardRegionReference;
18161
18210
  export type RatecardServiceSummary = io.flow.v0.models.RatecardServiceSummary;
@@ -18206,7 +18255,14 @@ export type RepeatMonthly = io.flow.v0.models.RepeatMonthly;
18206
18255
  export type RepeatSchedule = io.flow.v0.unions.RepeatSchedule;
18207
18256
  export type RepeatWeekly = io.flow.v0.models.RepeatWeekly;
18208
18257
  export type RestrictedReviewStatus = io.flow.v0.enums.RestrictedReviewStatus;
18258
+ export type RestrictionDecision = io.flow.v0.enums.RestrictionDecision;
18259
+ export type RestrictionDecisionReason =
18260
+ io.flow.v0.enums.RestrictionDecisionReason;
18261
+ export type RestrictionDecisionsForm =
18262
+ io.flow.v0.models.RestrictionDecisionsForm;
18209
18263
  export type RestrictionEnvironment = io.flow.v0.enums.RestrictionEnvironment;
18264
+ export type RestrictionRuleDecisionForm =
18265
+ io.flow.v0.models.RestrictionRuleDecisionForm;
18210
18266
  export type Return = io.flow.v0.models.Return;
18211
18267
  export type ReturnForm = io.flow.v0.models.ReturnForm;
18212
18268
  export type ReturnItemReference = io.flow.v0.models.ReturnItemReference;