@flowio/types 11.24.101 → 11.24.103

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
@@ -533,8 +533,12 @@ declare namespace io.flow.stripe.v0.enums {
533
533
  | 'it-CH'
534
534
  | 'en-CH';
535
535
  type RefundFailureReason =
536
- | 'lost_or_stolen_card'
536
+ | 'charge_for_pending_refund_disputed'
537
+ | 'declined'
537
538
  | 'expired_or_canceled_card'
539
+ | 'insufficient_funds'
540
+ | 'lost_or_stolen_card'
541
+ | 'merchant_request'
538
542
  | 'unknown';
539
543
  type RefundReason = 'duplicate' | 'fraudulent' | 'requested_by_customer';
540
544
  type RefundStatus = 'succeeded' | 'failed' | 'pending' | 'canceled';
@@ -1920,7 +1924,7 @@ declare namespace io.flow.shopify.external.v0.models {
1920
1924
  }
1921
1925
 
1922
1926
  interface GraphqlMeasurement {
1923
- readonly weight: io.flow.shopify.external.v0.models.GraphqlWeight;
1927
+ readonly weight?: io.flow.shopify.external.v0.models.GraphqlWeight;
1924
1928
  }
1925
1929
 
1926
1930
  interface GraphqlOption {
@@ -3229,6 +3233,9 @@ declare namespace io.flow.v0.enums {
3229
3233
  | 'subcatalog_item_deleted'
3230
3234
  | 'catalog_statistics_upserted'
3231
3235
  | 'catalog_statistics_deleted'
3236
+ | 'item_inserted'
3237
+ | 'item_updated'
3238
+ | 'item_deleted'
3232
3239
  | 'channel_upserted'
3233
3240
  | 'channel_deleted'
3234
3241
  | 'channel_currency_upserted'
@@ -3737,7 +3744,10 @@ declare namespace io.flow.v0.enums {
3737
3744
  | 'bancontact'
3738
3745
  | 'twint'
3739
3746
  | 'przelewy24'
3740
- | 'mobilepay';
3747
+ | 'mobilepay'
3748
+ | 'grabpay'
3749
+ | 'vipps'
3750
+ | 'kcp_creditcard';
3741
3751
  type PayoutAttachmentType = 'transactions';
3742
3752
  type PayoutStatusFailureCode =
3743
3753
  | 'invalid_account_number'
@@ -3749,7 +3759,9 @@ declare namespace io.flow.v0.enums {
3749
3759
  | 'waiting_for_in_transit'
3750
3760
  | 'waiting_for_next_payout_date'
3751
3761
  | 'waiting_for_tracking_info'
3752
- | 'waiting_for_positive_account_balance';
3762
+ | 'waiting_for_positive_account_balance'
3763
+ | 'unfulfilled_amount_greater_than_negative_balance'
3764
+ | 'account_payment_hold';
3753
3765
  type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
3754
3766
  type PhysicalDeliverySpecialSerivce =
3755
3767
  | 'cold_storage'
@@ -3851,6 +3863,19 @@ declare namespace io.flow.v0.enums {
3851
3863
  | 'shipping_unavailable';
3852
3864
  type RatecardOwner = 'flow' | 'organization';
3853
3865
  type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
3866
+ type RefundFailureCategory =
3867
+ | 'amount_too_high'
3868
+ | 'amount_too_low'
3869
+ | 'not_enough_balance'
3870
+ | 'insufficient_funds'
3871
+ | 'refund_period_expired'
3872
+ | 'dispute'
3873
+ | 'not_captured'
3874
+ | 'unsupported_payment_method'
3875
+ | 'unsupported_partial_refund'
3876
+ | 'invalid_currency'
3877
+ | 'card_no_longer_valid'
3878
+ | 'general';
3854
3879
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
3855
3880
  type RegionType = 'state' | 'province' | 'jurisdiction';
3856
3881
  type RestrictedReviewStatus = 'in_review' | 'reviewed';
@@ -3995,7 +4020,8 @@ declare namespace io.flow.v0.enums {
3995
4020
  | 'order_service'
3996
4021
  | 'virtual_card_capture'
3997
4022
  | 'virtual_card_refund'
3998
- | 'failed_payout';
4023
+ | 'failed_payout'
4024
+ | 'tax_refund';
3999
4025
  type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
4000
4026
  type TrueupSurchargeType =
4001
4027
  | 'fuel'
@@ -6568,6 +6594,12 @@ declare namespace io.flow.v0.models {
6568
6594
  readonly minimum?: number;
6569
6595
  }
6570
6596
 
6597
+ interface DestinationContactDetail {
6598
+ readonly title: string;
6599
+ readonly country: string;
6600
+ readonly import_identifier: string;
6601
+ }
6602
+
6571
6603
  interface DetailedShippingLabelForm {
6572
6604
  readonly discriminator: 'detailed_shipping_label_form';
6573
6605
  readonly destination: io.flow.v0.models.ShippingAddress;
@@ -8255,12 +8287,21 @@ declare namespace io.flow.v0.models {
8255
8287
  readonly local?: io.flow.v0.models.Local;
8256
8288
  readonly created_at?: string;
8257
8289
  readonly updated_at?: string;
8290
+ readonly deleted_at?: string;
8258
8291
  }
8259
8292
 
8260
8293
  interface ItemAttributesPatchForm {
8261
8294
  readonly attributes: Record<string, string>;
8262
8295
  }
8263
8296
 
8297
+ interface ItemDeleted {
8298
+ readonly discriminator: 'item_deleted';
8299
+ readonly event_id: string;
8300
+ readonly timestamp: string;
8301
+ readonly organization: string;
8302
+ readonly item: io.flow.v0.models.Item;
8303
+ }
8304
+
8264
8305
  interface ItemForm {
8265
8306
  readonly number: string;
8266
8307
  readonly locale: string;
@@ -8272,6 +8313,7 @@ declare namespace io.flow.v0.models {
8272
8313
  readonly attributes?: Record<string, string>;
8273
8314
  readonly dimensions?: io.flow.v0.models.Dimensions;
8274
8315
  readonly images?: io.flow.v0.models.ImageForm[];
8316
+ readonly deleted_at?: string;
8275
8317
  }
8276
8318
 
8277
8319
  interface ItemFormOverlay {
@@ -8285,6 +8327,7 @@ declare namespace io.flow.v0.models {
8285
8327
  readonly attributes?: Record<string, string>;
8286
8328
  readonly dimensions?: io.flow.v0.models.Dimensions;
8287
8329
  readonly images?: io.flow.v0.models.ImageForm[];
8330
+ readonly deleted_at?: string;
8288
8331
  }
8289
8332
 
8290
8333
  interface ItemFormOverlayForm {
@@ -8297,6 +8340,15 @@ declare namespace io.flow.v0.models {
8297
8340
  readonly attributes?: Record<string, string>;
8298
8341
  readonly dimensions?: io.flow.v0.models.Dimensions;
8299
8342
  readonly images?: io.flow.v0.models.ImageForm[];
8343
+ readonly deleted_at?: string;
8344
+ }
8345
+
8346
+ interface ItemInserted {
8347
+ readonly discriminator: 'item_inserted';
8348
+ readonly event_id: string;
8349
+ readonly timestamp: string;
8350
+ readonly organization: string;
8351
+ readonly item: io.flow.v0.models.Item;
8300
8352
  }
8301
8353
 
8302
8354
  interface ItemMargin {
@@ -8423,6 +8475,14 @@ declare namespace io.flow.v0.models {
8423
8475
  readonly categories: number;
8424
8476
  }
8425
8477
 
8478
+ interface ItemUpdated {
8479
+ readonly discriminator: 'item_updated';
8480
+ readonly event_id: string;
8481
+ readonly timestamp: string;
8482
+ readonly organization: string;
8483
+ readonly item: io.flow.v0.models.Item;
8484
+ }
8485
+
8426
8486
  interface ItemVersion {
8427
8487
  readonly id: string;
8428
8488
  readonly timestamp: string;
@@ -8603,6 +8663,7 @@ declare namespace io.flow.v0.models {
8603
8663
  readonly in_transit: io.flow.v0.models.LabelTrackingSummaryUpdate;
8604
8664
  readonly delivered?: io.flow.v0.models.LabelTrackingSummaryUpdate;
8605
8665
  readonly rejected?: io.flow.v0.models.LabelTrackingSummaryUpdate;
8666
+ readonly returned?: io.flow.v0.models.LabelTrackingSummaryUpdate;
8606
8667
  }
8607
8668
 
8608
8669
  interface LabelTrackingSummaryUpdate {
@@ -9341,6 +9402,7 @@ declare namespace io.flow.v0.models {
9341
9402
  readonly tax_registration?: io.flow.v0.models.TaxRegistration;
9342
9403
  readonly geo?: io.flow.v0.models.OrderGeo;
9343
9404
  readonly device_details?: io.flow.v0.unions.DeviceDetails;
9405
+ readonly destination_contact_details?: io.flow.v0.models.DestinationContactDetail[];
9344
9406
  }
9345
9407
 
9346
9408
  interface OrderAddress {
@@ -10605,12 +10667,22 @@ declare namespace io.flow.v0.models {
10605
10667
  readonly reference?: string;
10606
10668
  }
10607
10669
 
10670
+ interface PaymentMethodDataInitGrabpay {
10671
+ readonly type: 'init_grabpay';
10672
+ readonly reference?: string;
10673
+ }
10674
+
10608
10675
  interface PaymentMethodDataInitIdeal {
10609
10676
  readonly type: 'init_ideal';
10610
10677
  readonly issuer?: string;
10611
10678
  readonly reference?: string;
10612
10679
  }
10613
10680
 
10681
+ interface PaymentMethodDataInitKcpCreditcard {
10682
+ readonly type: 'init_kcp_creditcard';
10683
+ readonly reference?: string;
10684
+ }
10685
+
10614
10686
  interface PaymentMethodDataInitKlarna {
10615
10687
  readonly type: 'init_klarna';
10616
10688
  readonly reference?: string;
@@ -10641,6 +10713,11 @@ declare namespace io.flow.v0.models {
10641
10713
  readonly reference?: string;
10642
10714
  }
10643
10715
 
10716
+ interface PaymentMethodDataInitVipps {
10717
+ readonly type: 'init_vipps';
10718
+ readonly reference?: string;
10719
+ }
10720
+
10644
10721
  interface PaymentMethodDataOptionLogoSvg {
10645
10722
  readonly type: 'svg';
10646
10723
  readonly url: string;
@@ -10736,12 +10813,22 @@ declare namespace io.flow.v0.models {
10736
10813
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10737
10814
  }
10738
10815
 
10816
+ interface PaymentMethodSummaryGrabpay {
10817
+ readonly type: 'grabpay';
10818
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10819
+ }
10820
+
10739
10821
  interface PaymentMethodSummaryIdeal {
10740
10822
  readonly type: 'ideal';
10741
10823
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10742
10824
  readonly issuer?: string;
10743
10825
  }
10744
10826
 
10827
+ interface PaymentMethodSummaryKcpCreditcard {
10828
+ readonly type: 'kcp_creditcard';
10829
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10830
+ }
10831
+
10745
10832
  interface PaymentMethodSummaryKlarna {
10746
10833
  readonly type: 'klarna';
10747
10834
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
@@ -10772,6 +10859,11 @@ declare namespace io.flow.v0.models {
10772
10859
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10773
10860
  }
10774
10861
 
10862
+ interface PaymentMethodSummaryVipps {
10863
+ readonly type: 'vipps';
10864
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10865
+ }
10866
+
10775
10867
  interface PaymentOrderDetailsLineItem {
10776
10868
  readonly id?: string;
10777
10869
  readonly description: string;
@@ -11447,6 +11539,8 @@ declare namespace io.flow.v0.models {
11447
11539
  readonly review_status?: io.flow.v0.enums.ReviewStatus;
11448
11540
  readonly rules?: io.flow.v0.enums.ProductRestrictionRule[];
11449
11541
  readonly updated_by?: string;
11542
+ readonly product_restriction_id?: string;
11543
+ readonly hs_code?: string;
11450
11544
  }
11451
11545
 
11452
11546
  interface ProductRestrictionResultDeleted {
@@ -11947,6 +12041,8 @@ declare namespace io.flow.v0.models {
11947
12041
  readonly attributes?: Record<string, string>;
11948
12042
  readonly status?: io.flow.v0.enums.RefundStatus;
11949
12043
  readonly base?: io.flow.v0.models.Money;
12044
+ readonly failure_category?: io.flow.v0.enums.RefundFailureCategory;
12045
+ readonly failure_psp_reason?: string;
11950
12046
  }
11951
12047
 
11952
12048
  interface RefundCapture {
@@ -14545,6 +14641,9 @@ declare namespace io.flow.v0.unions {
14545
14641
  | io.flow.v0.models.SubcatalogItemDeleted
14546
14642
  | io.flow.v0.models.CatalogStatisticsUpserted
14547
14643
  | io.flow.v0.models.CatalogStatisticsDeleted
14644
+ | io.flow.v0.models.ItemInserted
14645
+ | io.flow.v0.models.ItemUpdated
14646
+ | io.flow.v0.models.ItemDeleted
14548
14647
  | io.flow.v0.models.ChannelUpserted
14549
14648
  | io.flow.v0.models.ChannelDeleted
14550
14649
  | io.flow.v0.models.ChannelCurrencyUpserted
@@ -14853,7 +14952,10 @@ declare namespace io.flow.v0.unions {
14853
14952
  | io.flow.v0.models.PaymentMethodDataInitTwint
14854
14953
  | io.flow.v0.models.PaymentMethodDataInitPrzelewy24
14855
14954
  | io.flow.v0.models.PaymentMethodDataInitMobilepay
14955
+ | io.flow.v0.models.PaymentMethodDataInitKcpCreditcard
14856
14956
  | io.flow.v0.models.PaymentMethodDataInitBancontact
14957
+ | io.flow.v0.models.PaymentMethodDataInitGrabpay
14958
+ | io.flow.v0.models.PaymentMethodDataInitVipps
14857
14959
  | io.flow.v0.models.PaymentMethodDataValidateApplepay
14858
14960
  | io.flow.v0.models.PaymentMethodDataAuthorizeCard
14859
14961
  | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay
@@ -14882,10 +14984,13 @@ declare namespace io.flow.v0.unions {
14882
14984
  | io.flow.v0.models.PaymentMethodSummaryPaypal
14883
14985
  | io.flow.v0.models.PaymentMethodSummaryIdeal
14884
14986
  | io.flow.v0.models.PaymentMethodSummaryTwint
14987
+ | io.flow.v0.models.PaymentMethodSummaryVipps
14885
14988
  | io.flow.v0.models.PaymentMethodSummaryPrzelewy24
14886
14989
  | io.flow.v0.models.PaymentMethodSummaryMobilepay
14990
+ | io.flow.v0.models.PaymentMethodSummaryKcpCreditcard
14887
14991
  | io.flow.v0.models.PaymentMethodSummarySofort
14888
- | io.flow.v0.models.PaymentMethodSummaryBancontact;
14992
+ | io.flow.v0.models.PaymentMethodSummaryBancontact
14993
+ | io.flow.v0.models.PaymentMethodSummaryGrabpay;
14889
14994
 
14890
14995
  type PaymentMethodTag =
14891
14996
  | {
@@ -15569,6 +15674,8 @@ export type DeliveryWindowSummary = io.flow.v0.models.DeliveryWindowSummary;
15569
15674
  export type Deminimis = io.flow.v0.unions.Deminimis;
15570
15675
  export type DeminimisPerItem = io.flow.v0.models.DeminimisPerItem;
15571
15676
  export type DeminimisSimple = io.flow.v0.models.DeminimisSimple;
15677
+ export type DestinationContactDetail =
15678
+ io.flow.v0.models.DestinationContactDetail;
15572
15679
  export type DetailedShippingLabelForm =
15573
15680
  io.flow.v0.models.DetailedShippingLabelForm;
15574
15681
  export type DetailedShippingNotificationForm =
@@ -15975,10 +16082,12 @@ export type IssuerV1 = io.flow.v0.models.IssuerV1;
15975
16082
  export type Item = io.flow.v0.models.Item;
15976
16083
  export type ItemAttributesPatchForm = io.flow.v0.models.ItemAttributesPatchForm;
15977
16084
  export type ItemAvailabilityStatus = io.flow.v0.enums.ItemAvailabilityStatus;
16085
+ export type ItemDeleted = io.flow.v0.models.ItemDeleted;
15978
16086
  export type ItemForm = io.flow.v0.models.ItemForm;
15979
16087
  export type ItemFormOverlay = io.flow.v0.models.ItemFormOverlay;
15980
16088
  export type ItemFormOverlayForm = io.flow.v0.models.ItemFormOverlayForm;
15981
16089
  export type ItemIdentifier = io.flow.v0.enums.ItemIdentifier;
16090
+ export type ItemInserted = io.flow.v0.models.ItemInserted;
15982
16091
  export type ItemMargin = io.flow.v0.models.ItemMargin;
15983
16092
  export type ItemMarginDeletedV2 = io.flow.v0.models.ItemMarginDeletedV2;
15984
16093
  export type ItemMarginPostForm = io.flow.v0.models.ItemMarginPostForm;
@@ -15995,6 +16104,7 @@ export type ItemSalesMarginDeleted = io.flow.v0.models.ItemSalesMarginDeleted;
15995
16104
  export type ItemSalesMarginUpserted = io.flow.v0.models.ItemSalesMarginUpserted;
15996
16105
  export type ItemShippingPricing = io.flow.v0.models.ItemShippingPricing;
15997
16106
  export type ItemStatistics = io.flow.v0.models.ItemStatistics;
16107
+ export type ItemUpdated = io.flow.v0.models.ItemUpdated;
15998
16108
  export type ItemVersion = io.flow.v0.models.ItemVersion;
15999
16109
  export type JsonpResponse = io.flow.v0.models.JsonpResponse;
16000
16110
  export type KlarnaPaymentCategory = io.flow.v0.models.KlarnaPaymentCategory;
@@ -16477,8 +16587,12 @@ export type PaymentMethodDataInitBancontact =
16477
16587
  io.flow.v0.models.PaymentMethodDataInitBancontact;
16478
16588
  export type PaymentMethodDataInitGooglepay =
16479
16589
  io.flow.v0.models.PaymentMethodDataInitGooglepay;
16590
+ export type PaymentMethodDataInitGrabpay =
16591
+ io.flow.v0.models.PaymentMethodDataInitGrabpay;
16480
16592
  export type PaymentMethodDataInitIdeal =
16481
16593
  io.flow.v0.models.PaymentMethodDataInitIdeal;
16594
+ export type PaymentMethodDataInitKcpCreditcard =
16595
+ io.flow.v0.models.PaymentMethodDataInitKcpCreditcard;
16482
16596
  export type PaymentMethodDataInitKlarna =
16483
16597
  io.flow.v0.models.PaymentMethodDataInitKlarna;
16484
16598
  export type PaymentMethodDataInitMobilepay =
@@ -16491,6 +16605,8 @@ export type PaymentMethodDataInitSofort =
16491
16605
  io.flow.v0.models.PaymentMethodDataInitSofort;
16492
16606
  export type PaymentMethodDataInitTwint =
16493
16607
  io.flow.v0.models.PaymentMethodDataInitTwint;
16608
+ export type PaymentMethodDataInitVipps =
16609
+ io.flow.v0.models.PaymentMethodDataInitVipps;
16494
16610
  export type PaymentMethodDataOptionLogo =
16495
16611
  io.flow.v0.unions.PaymentMethodDataOptionLogo;
16496
16612
  export type PaymentMethodDataOptionLogoSvg =
@@ -16528,8 +16644,12 @@ export type PaymentMethodSummaryCard =
16528
16644
  io.flow.v0.models.PaymentMethodSummaryCard;
16529
16645
  export type PaymentMethodSummaryGooglepay =
16530
16646
  io.flow.v0.models.PaymentMethodSummaryGooglepay;
16647
+ export type PaymentMethodSummaryGrabpay =
16648
+ io.flow.v0.models.PaymentMethodSummaryGrabpay;
16531
16649
  export type PaymentMethodSummaryIdeal =
16532
16650
  io.flow.v0.models.PaymentMethodSummaryIdeal;
16651
+ export type PaymentMethodSummaryKcpCreditcard =
16652
+ io.flow.v0.models.PaymentMethodSummaryKcpCreditcard;
16533
16653
  export type PaymentMethodSummaryKlarna =
16534
16654
  io.flow.v0.models.PaymentMethodSummaryKlarna;
16535
16655
  export type PaymentMethodSummaryMobilepay =
@@ -16542,6 +16662,8 @@ export type PaymentMethodSummarySofort =
16542
16662
  io.flow.v0.models.PaymentMethodSummarySofort;
16543
16663
  export type PaymentMethodSummaryTwint =
16544
16664
  io.flow.v0.models.PaymentMethodSummaryTwint;
16665
+ export type PaymentMethodSummaryVipps =
16666
+ io.flow.v0.models.PaymentMethodSummaryVipps;
16545
16667
  export type PaymentMethodTag = io.flow.v0.unions.PaymentMethodTag;
16546
16668
  export type PaymentMethodType = io.flow.v0.enums.PaymentMethodType;
16547
16669
  export type PaymentOrderDetailsLineItem =
@@ -16780,6 +16902,7 @@ export type RefundCaptureUpsertedV2 = io.flow.v0.models.RefundCaptureUpsertedV2;
16780
16902
  export type RefundDeclineCode = io.flow.v0.enums.RefundDeclineCode;
16781
16903
  export type RefundDeletedV2 = io.flow.v0.models.RefundDeletedV2;
16782
16904
  export type RefundError = io.flow.v0.models.RefundError;
16905
+ export type RefundFailureCategory = io.flow.v0.enums.RefundFailureCategory;
16783
16906
  export type RefundForm = io.flow.v0.models.RefundForm;
16784
16907
  export type RefundIdentifier = io.flow.v0.models.RefundIdentifier;
16785
16908
  export type RefundIdentifierDeleted = io.flow.v0.models.RefundIdentifierDeleted;