@flowio/types 11.24.26 → 11.24.28

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.
@@ -10006,7 +10006,7 @@ declare namespace io.flow.internal.v0.enums {
10006
10006
  type LabelBillingStrategy = 'quote' | 'carrier';
10007
10007
  type LabelCancellationErrorCode = 'already_used' | 'carrier_unsupported';
10008
10008
  type LabelCreationStatus = 'success' | 'error' | 'pending' | 'cancelled';
10009
- type LabelTransactionType = 'billable_label' | 'fee' | 'revenue_share';
10009
+ type LabelTransactionType = 'adjustment' | 'billable_label' | 'fee' | 'revenue_share';
10010
10010
  type LiabilityType = 'full_value_tax' | 'low_value_goods_tax' | 'high_value_goods_tax' | 'duties';
10011
10011
  type MainTransactionStatus = 'scheduled' | 'pending_fulfillment_proof';
10012
10012
  type ManualReviewRuleStatus = 'active' | 'archived';
@@ -10025,7 +10025,7 @@ declare namespace io.flow.internal.v0.enums {
10025
10025
  type NoLiabilityReasonCode = 'zero_basis' | 'zero_rate_on_goods' | 'zero_rate_on_sale' | 'goods_above_value_threshold' | 'goods_below_value_threshold' | 'order_below_de_minimis_threshold' | 'amount_below_de_minimis_threshold' | 'delivered_unpaid' | 'duty_free_domestic' | 'duty_free_intra_community' | 'duty_free_by_trade_agreement';
10026
10026
  type OnboardingAuditMessageLevel = 'info' | 'warning' | 'error';
10027
10027
  type OnboardingAuditResult = 'pass' | 'warning' | 'fail';
10028
- type OnboardingAuditThemeKey = 'billing' | 'b2b_invoicing' | 'catalog' | 'checkout' | 'fraud' | 'logistics' | 'payments' | 'shopify_markets' | 'integration_partner' | 'dtce' | 'miscellaneous';
10028
+ type OnboardingAuditThemeKey = 'billing' | 'b2b_invoicing' | 'catalog' | 'currency' | 'checkout' | 'fraud' | 'logistics' | 'payments' | 'shopify_markets' | 'integration_partner' | 'dtce' | 'miscellaneous';
10029
10029
  type OnboardingAutomationProcessState = 'not_started' | 'in_progress' | 'success' | 'failed';
10030
10030
  type OnboardingAutomationTaskState = 'not_started' | 'in_progress' | 'success' | 'failed';
10031
10031
  type OrderAction = 'consumer_submit' | 'fraud_review_accept' | 'fraud_review_decline' | 'payment_fully_authorize' | 'payment_fully_capture';
@@ -10310,6 +10310,14 @@ declare namespace io.flow.internal.v0.models {
10310
10310
  interface AddressConfigurationSettingForm {
10311
10311
  readonly province_code: io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
10312
10312
  }
10313
+ interface AdjustmentAmountFixed {
10314
+ readonly discriminator: 'fixed';
10315
+ readonly amount: io.flow.common.v0.models.Money;
10316
+ }
10317
+ interface AdjustmentAmountPercentage {
10318
+ readonly discriminator: 'percentage';
10319
+ readonly percentage: number;
10320
+ }
10313
10321
  interface AdyenAccount {
10314
10322
  readonly discriminator: 'adyen_account';
10315
10323
  readonly id: string;
@@ -17427,18 +17435,6 @@ declare namespace io.flow.internal.v0.models {
17427
17435
  readonly revenue_share?: io.flow.common.v0.models.Price;
17428
17436
  readonly disposition?: io.flow.internal.v0.enums.BillingStatementReviewStatus;
17429
17437
  }
17430
- interface ProcessingTransactionAdjustment {
17431
- readonly id: string;
17432
- readonly original_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
17433
- readonly adjustment_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
17434
- readonly description: string;
17435
- readonly percentage: number;
17436
- }
17437
- interface ProcessingTransactionAdjustmentForm {
17438
- readonly original_transaction_id: string;
17439
- readonly description: string;
17440
- readonly percentage: number;
17441
- }
17442
17438
  interface ProcessingTransactionDeleted {
17443
17439
  readonly discriminator: 'processing_transaction_deleted';
17444
17440
  readonly event_id: string;
@@ -17533,6 +17529,10 @@ declare namespace io.flow.internal.v0.models {
17533
17529
  interface ProductListSettingsForm {
17534
17530
  readonly column_settings: io.flow.internal.v0.models.HarmonizationColumnSetting[];
17535
17531
  }
17532
+ interface ProductReviewHistory {
17533
+ readonly product_id: string;
17534
+ readonly reviews: io.flow.internal.v0.models.RestrictionHistoryItemReviewDecision[];
17535
+ }
17536
17536
  interface QuoteRequest {
17537
17537
  readonly id: string;
17538
17538
  readonly request_type: io.flow.internal.v0.enums.QuoteRequestType;
@@ -17859,6 +17859,16 @@ declare namespace io.flow.internal.v0.models {
17859
17859
  interface RestrictionCategory {
17860
17860
  readonly category: string;
17861
17861
  }
17862
+ interface RestrictionHistoryItemReviewDecision {
17863
+ readonly id: string;
17864
+ readonly product_restriction_id: string;
17865
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
17866
+ readonly keywords: io.flow.internal.v0.models.RestrictionKeywords;
17867
+ readonly status: io.flow.internal.v0.enums.RestrictionStatus;
17868
+ readonly created_at: string;
17869
+ readonly updated_at: string;
17870
+ readonly updated_by: io.flow.common.v0.models.User;
17871
+ }
17862
17872
  interface RestrictionItem {
17863
17873
  readonly id: string;
17864
17874
  readonly organization_id: string;
@@ -19036,6 +19046,18 @@ declare namespace io.flow.internal.v0.models {
19036
19046
  readonly organization: string;
19037
19047
  readonly tracking: io.flow.tracking.v0.models.Tracking;
19038
19048
  }
19049
+ interface TransactionAdjustment {
19050
+ readonly id: string;
19051
+ readonly original_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
19052
+ readonly adjustment_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
19053
+ readonly description: string;
19054
+ readonly amount: io.flow.internal.v0.unions.AdjustmentAmount;
19055
+ }
19056
+ interface TransactionAdjustmentForm {
19057
+ readonly original_transaction_id: string;
19058
+ readonly description: string;
19059
+ readonly amount: io.flow.internal.v0.unions.AdjustmentAmount;
19060
+ }
19039
19061
  interface TransactionReference {
19040
19062
  readonly id: string;
19041
19063
  }
@@ -19291,6 +19313,7 @@ declare namespace io.flow.internal.v0.models {
19291
19313
  }
19292
19314
  }
19293
19315
  declare namespace io.flow.internal.v0.unions {
19316
+ type AdjustmentAmount = io.flow.internal.v0.models.AdjustmentAmountPercentage | io.flow.internal.v0.models.AdjustmentAmountFixed;
19294
19317
  type AuthorizationPayload = io.flow.internal.v0.models.ApplePayAuthorizationPayload | io.flow.internal.v0.models.PaypalAuthorizationPayload;
19295
19318
  type AuthorizedOrderCharge = io.flow.internal.v0.models.AuthorizedShippingCharge;
19296
19319
  type BlazeConsumerMessage = io.flow.internal.v0.models.BlazeAddOrderAttributesMessage | io.flow.internal.v0.models.BlazeAddToCartMessage | io.flow.internal.v0.models.BlazeCreateByCartToken | io.flow.internal.v0.models.BlazeInitializeByOrderQuoteMessage | io.flow.internal.v0.models.BlazeInitializeBySessionMessage | io.flow.internal.v0.models.BlazeInitializeMessage | io.flow.internal.v0.models.BlazeSetCartItemsMessage | io.flow.internal.v0.models.BlazeSetCheckoutIdMessage | io.flow.internal.v0.models.BlazeStartCheckoutMessage | io.flow.internal.v0.models.BlazeUpdateCartItemsMessage | io.flow.internal.v0.models.BlazeApplepayAvailabilityResponse | io.flow.internal.v0.models.BlazeSetPromotionCodeMessage;
@@ -19473,6 +19496,9 @@ export declare type AddressConfigurationProvinceSetting = io.flow.internal.v0.mo
19473
19496
  export declare type AddressConfigurationSetting = io.flow.internal.v0.models.AddressConfigurationSetting;
19474
19497
  export declare type AddressConfigurationSettingForm = io.flow.internal.v0.models.AddressConfigurationSettingForm;
19475
19498
  export declare type AddressConfigurationSettingProvinceCode = io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
19499
+ export declare type AdjustmentAmount = io.flow.internal.v0.unions.AdjustmentAmount;
19500
+ export declare type AdjustmentAmountFixed = io.flow.internal.v0.models.AdjustmentAmountFixed;
19501
+ export declare type AdjustmentAmountPercentage = io.flow.internal.v0.models.AdjustmentAmountPercentage;
19476
19502
  export declare type AdyenAccount = io.flow.internal.v0.models.AdyenAccount;
19477
19503
  export declare type AdyenAccountModificationForm = io.flow.internal.v0.models.AdyenAccountModificationForm;
19478
19504
  export declare type AdyenAccountPutForm = io.flow.internal.v0.models.AdyenAccountPutForm;
@@ -20962,8 +20988,6 @@ export declare type PricingIndicatorDynamo = io.flow.internal.v0.models.PricingI
20962
20988
  export declare type PricingIndicatorStatus = io.flow.internal.v0.enums.PricingIndicatorStatus;
20963
20989
  export declare type PrioritizedCenterReference = io.flow.internal.v0.models.PrioritizedCenterReference;
20964
20990
  export declare type ProcessingTransaction = io.flow.internal.v0.models.ProcessingTransaction;
20965
- export declare type ProcessingTransactionAdjustment = io.flow.internal.v0.models.ProcessingTransactionAdjustment;
20966
- export declare type ProcessingTransactionAdjustmentForm = io.flow.internal.v0.models.ProcessingTransactionAdjustmentForm;
20967
20991
  export declare type ProcessingTransactionDeleted = io.flow.internal.v0.models.ProcessingTransactionDeleted;
20968
20992
  export declare type ProcessingTransactionReference = io.flow.internal.v0.models.ProcessingTransactionReference;
20969
20993
  export declare type ProcessingTransactionType = io.flow.internal.v0.enums.ProcessingTransactionType;
@@ -20989,6 +21013,7 @@ export declare type ProductHarmonization = io.flow.internal.v0.models.ProductHar
20989
21013
  export declare type ProductHarmonizationForm = io.flow.internal.v0.models.ProductHarmonizationForm;
20990
21014
  export declare type ProductLabels = io.flow.internal.v0.models.ProductLabels;
20991
21015
  export declare type ProductListSettingsForm = io.flow.internal.v0.models.ProductListSettingsForm;
21016
+ export declare type ProductReviewHistory = io.flow.internal.v0.models.ProductReviewHistory;
20992
21017
  export declare type PromptAction = io.flow.internal.v0.enums.PromptAction;
20993
21018
  export declare type PromptCheckoutDisplayPosition = io.flow.internal.v0.enums.PromptCheckoutDisplayPosition;
20994
21019
  export declare type PromptOptions = io.flow.internal.v0.enums.PromptOptions;
@@ -21051,6 +21076,7 @@ export declare type ResponsibleParty = io.flow.internal.v0.enums.ResponsiblePart
21051
21076
  export declare type RestrictionAction = io.flow.internal.v0.enums.RestrictionAction;
21052
21077
  export declare type RestrictionCategory = io.flow.internal.v0.models.RestrictionCategory;
21053
21078
  export declare type RestrictionDecision = io.flow.internal.v0.enums.RestrictionDecision;
21079
+ export declare type RestrictionHistoryItemReviewDecision = io.flow.internal.v0.models.RestrictionHistoryItemReviewDecision;
21054
21080
  export declare type RestrictionItem = io.flow.internal.v0.models.RestrictionItem;
21055
21081
  export declare type RestrictionItemReview = io.flow.internal.v0.models.RestrictionItemReview;
21056
21082
  export declare type RestrictionItemReviewDecisionForm = io.flow.internal.v0.models.RestrictionItemReviewDecisionForm;
@@ -21289,6 +21315,8 @@ export declare type TrackingResponse = io.flow.internal.v0.models.TrackingRespon
21289
21315
  export declare type TrackingResponseUpserted = io.flow.internal.v0.models.TrackingResponseUpserted;
21290
21316
  export declare type TrackingUpserted = io.flow.internal.v0.models.TrackingUpserted;
21291
21317
  export declare type Transaction = io.flow.internal.v0.unions.Transaction;
21318
+ export declare type TransactionAdjustment = io.flow.internal.v0.models.TransactionAdjustment;
21319
+ export declare type TransactionAdjustmentForm = io.flow.internal.v0.models.TransactionAdjustmentForm;
21292
21320
  export declare type TransactionPostingMethod = io.flow.internal.v0.enums.TransactionPostingMethod;
21293
21321
  export declare type TransactionReference = io.flow.internal.v0.models.TransactionReference;
21294
21322
  export declare type TransactionSummary = io.flow.internal.v0.unions.TransactionSummary;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.24.26",
3
+ "version": "11.24.28",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "2710854f614efa1b51bc3d826818b082d7a90a61"
28
+ "gitHead": "ff651fefde62162c873a8140da058ee29b956e40"
29
29
  }
@@ -13573,7 +13573,11 @@ declare namespace io.flow.internal.v0.enums {
13573
13573
  type LabelBillingStrategy = 'quote' | 'carrier';
13574
13574
  type LabelCancellationErrorCode = 'already_used' | 'carrier_unsupported';
13575
13575
  type LabelCreationStatus = 'success' | 'error' | 'pending' | 'cancelled';
13576
- type LabelTransactionType = 'billable_label' | 'fee' | 'revenue_share';
13576
+ type LabelTransactionType =
13577
+ | 'adjustment'
13578
+ | 'billable_label'
13579
+ | 'fee'
13580
+ | 'revenue_share';
13577
13581
  type LiabilityType =
13578
13582
  | 'full_value_tax'
13579
13583
  | 'low_value_goods_tax'
@@ -13664,6 +13668,7 @@ declare namespace io.flow.internal.v0.enums {
13664
13668
  | 'billing'
13665
13669
  | 'b2b_invoicing'
13666
13670
  | 'catalog'
13671
+ | 'currency'
13667
13672
  | 'checkout'
13668
13673
  | 'fraud'
13669
13674
  | 'logistics'
@@ -14111,6 +14116,16 @@ declare namespace io.flow.internal.v0.models {
14111
14116
  readonly province_code: io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
14112
14117
  }
14113
14118
 
14119
+ interface AdjustmentAmountFixed {
14120
+ readonly discriminator: 'fixed';
14121
+ readonly amount: io.flow.common.v0.models.Money;
14122
+ }
14123
+
14124
+ interface AdjustmentAmountPercentage {
14125
+ readonly discriminator: 'percentage';
14126
+ readonly percentage: number;
14127
+ }
14128
+
14114
14129
  interface AdyenAccount {
14115
14130
  readonly discriminator: 'adyen_account';
14116
14131
  readonly id: string;
@@ -22433,20 +22448,6 @@ declare namespace io.flow.internal.v0.models {
22433
22448
  readonly disposition?: io.flow.internal.v0.enums.BillingStatementReviewStatus;
22434
22449
  }
22435
22450
 
22436
- interface ProcessingTransactionAdjustment {
22437
- readonly id: string;
22438
- readonly original_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
22439
- readonly adjustment_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
22440
- readonly description: string;
22441
- readonly percentage: number;
22442
- }
22443
-
22444
- interface ProcessingTransactionAdjustmentForm {
22445
- readonly original_transaction_id: string;
22446
- readonly description: string;
22447
- readonly percentage: number;
22448
- }
22449
-
22450
22451
  interface ProcessingTransactionDeleted {
22451
22452
  readonly discriminator: 'processing_transaction_deleted';
22452
22453
  readonly event_id: string;
@@ -22556,6 +22557,11 @@ declare namespace io.flow.internal.v0.models {
22556
22557
  readonly column_settings: io.flow.internal.v0.models.HarmonizationColumnSetting[];
22557
22558
  }
22558
22559
 
22560
+ interface ProductReviewHistory {
22561
+ readonly product_id: string;
22562
+ readonly reviews: io.flow.internal.v0.models.RestrictionHistoryItemReviewDecision[];
22563
+ }
22564
+
22559
22565
  interface QuoteRequest {
22560
22566
  readonly id: string;
22561
22567
  readonly request_type: io.flow.internal.v0.enums.QuoteRequestType;
@@ -22931,6 +22937,17 @@ declare namespace io.flow.internal.v0.models {
22931
22937
  readonly category: string;
22932
22938
  }
22933
22939
 
22940
+ interface RestrictionHistoryItemReviewDecision {
22941
+ readonly id: string;
22942
+ readonly product_restriction_id: string;
22943
+ readonly rule: io.flow.internal.v0.models.RestrictionRuleSummary;
22944
+ readonly keywords: io.flow.internal.v0.models.RestrictionKeywords;
22945
+ readonly status: io.flow.internal.v0.enums.RestrictionStatus;
22946
+ readonly created_at: string;
22947
+ readonly updated_at: string;
22948
+ readonly updated_by: io.flow.common.v0.models.User;
22949
+ }
22950
+
22934
22951
  interface RestrictionItem {
22935
22952
  readonly id: string;
22936
22953
  readonly organization_id: string;
@@ -24303,6 +24320,20 @@ declare namespace io.flow.internal.v0.models {
24303
24320
  readonly tracking: io.flow.tracking.v0.models.Tracking;
24304
24321
  }
24305
24322
 
24323
+ interface TransactionAdjustment {
24324
+ readonly id: string;
24325
+ readonly original_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
24326
+ readonly adjustment_transaction: io.flow.internal.v0.models.ProcessingTransactionReference;
24327
+ readonly description: string;
24328
+ readonly amount: io.flow.internal.v0.unions.AdjustmentAmount;
24329
+ }
24330
+
24331
+ interface TransactionAdjustmentForm {
24332
+ readonly original_transaction_id: string;
24333
+ readonly description: string;
24334
+ readonly amount: io.flow.internal.v0.unions.AdjustmentAmount;
24335
+ }
24336
+
24306
24337
  interface TransactionReference {
24307
24338
  readonly id: string;
24308
24339
  }
@@ -24599,6 +24630,9 @@ declare namespace io.flow.internal.v0.models {
24599
24630
  }
24600
24631
 
24601
24632
  declare namespace io.flow.internal.v0.unions {
24633
+ type AdjustmentAmount =
24634
+ | io.flow.internal.v0.models.AdjustmentAmountPercentage
24635
+ | io.flow.internal.v0.models.AdjustmentAmountFixed;
24602
24636
  type AuthorizationPayload =
24603
24637
  | io.flow.internal.v0.models.ApplePayAuthorizationPayload
24604
24638
  | io.flow.internal.v0.models.PaypalAuthorizationPayload;
@@ -25567,6 +25601,11 @@ export type AddressConfigurationSettingForm =
25567
25601
  io.flow.internal.v0.models.AddressConfigurationSettingForm;
25568
25602
  export type AddressConfigurationSettingProvinceCode =
25569
25603
  io.flow.internal.v0.enums.AddressConfigurationSettingProvinceCode;
25604
+ export type AdjustmentAmount = io.flow.internal.v0.unions.AdjustmentAmount;
25605
+ export type AdjustmentAmountFixed =
25606
+ io.flow.internal.v0.models.AdjustmentAmountFixed;
25607
+ export type AdjustmentAmountPercentage =
25608
+ io.flow.internal.v0.models.AdjustmentAmountPercentage;
25570
25609
  export type AdyenAccount = io.flow.internal.v0.models.AdyenAccount;
25571
25610
  export type AdyenAccountModificationForm =
25572
25611
  io.flow.internal.v0.models.AdyenAccountModificationForm;
@@ -28175,10 +28214,6 @@ export type PrioritizedCenterReference =
28175
28214
  io.flow.internal.v0.models.PrioritizedCenterReference;
28176
28215
  export type ProcessingTransaction =
28177
28216
  io.flow.internal.v0.models.ProcessingTransaction;
28178
- export type ProcessingTransactionAdjustment =
28179
- io.flow.internal.v0.models.ProcessingTransactionAdjustment;
28180
- export type ProcessingTransactionAdjustmentForm =
28181
- io.flow.internal.v0.models.ProcessingTransactionAdjustmentForm;
28182
28217
  export type ProcessingTransactionDeleted =
28183
28218
  io.flow.internal.v0.models.ProcessingTransactionDeleted;
28184
28219
  export type ProcessingTransactionReference =
@@ -28225,6 +28260,8 @@ export type ProductHarmonizationForm =
28225
28260
  export type ProductLabels = io.flow.internal.v0.models.ProductLabels;
28226
28261
  export type ProductListSettingsForm =
28227
28262
  io.flow.internal.v0.models.ProductListSettingsForm;
28263
+ export type ProductReviewHistory =
28264
+ io.flow.internal.v0.models.ProductReviewHistory;
28228
28265
  export type PromptAction = io.flow.internal.v0.enums.PromptAction;
28229
28266
  export type PromptCheckoutDisplayPosition =
28230
28267
  io.flow.internal.v0.enums.PromptCheckoutDisplayPosition;
@@ -28321,6 +28358,8 @@ export type RestrictionAction = io.flow.internal.v0.enums.RestrictionAction;
28321
28358
  export type RestrictionCategory =
28322
28359
  io.flow.internal.v0.models.RestrictionCategory;
28323
28360
  export type RestrictionDecision = io.flow.internal.v0.enums.RestrictionDecision;
28361
+ export type RestrictionHistoryItemReviewDecision =
28362
+ io.flow.internal.v0.models.RestrictionHistoryItemReviewDecision;
28324
28363
  export type RestrictionItem = io.flow.internal.v0.models.RestrictionItem;
28325
28364
  export type RestrictionItemReview =
28326
28365
  io.flow.internal.v0.models.RestrictionItemReview;
@@ -28706,6 +28745,10 @@ export type TrackingResponseUpserted =
28706
28745
  io.flow.internal.v0.models.TrackingResponseUpserted;
28707
28746
  export type TrackingUpserted = io.flow.internal.v0.models.TrackingUpserted;
28708
28747
  export type Transaction = io.flow.internal.v0.unions.Transaction;
28748
+ export type TransactionAdjustment =
28749
+ io.flow.internal.v0.models.TransactionAdjustment;
28750
+ export type TransactionAdjustmentForm =
28751
+ io.flow.internal.v0.models.TransactionAdjustmentForm;
28709
28752
  export type TransactionPostingMethod =
28710
28753
  io.flow.internal.v0.enums.TransactionPostingMethod;
28711
28754
  export type TransactionReference =