@flowio/types 11.24.101 → 11.24.102

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'
@@ -3851,6 +3861,19 @@ declare namespace io.flow.v0.enums {
3851
3861
  | 'shipping_unavailable';
3852
3862
  type RatecardOwner = 'flow' | 'organization';
3853
3863
  type RefundDeclineCode = 'expired' | 'insufficient_funds' | 'unknown';
3864
+ type RefundFailureCategory =
3865
+ | 'amount_too_high'
3866
+ | 'amount_too_low'
3867
+ | 'not_enough_balance'
3868
+ | 'insufficient_funds'
3869
+ | 'refund_period_expired'
3870
+ | 'dispute'
3871
+ | 'not_captured'
3872
+ | 'unsupported_payment_method'
3873
+ | 'unsupported_partial_refund'
3874
+ | 'invalid_currency'
3875
+ | 'card_no_longer_valid'
3876
+ | 'general';
3854
3877
  type RefundStatus = 'pending' | 'succeeded' | 'failed' | 'canceled';
3855
3878
  type RegionType = 'state' | 'province' | 'jurisdiction';
3856
3879
  type RestrictedReviewStatus = 'in_review' | 'reviewed';
@@ -3995,7 +4018,8 @@ declare namespace io.flow.v0.enums {
3995
4018
  | 'order_service'
3996
4019
  | 'virtual_card_capture'
3997
4020
  | 'virtual_card_refund'
3998
- | 'failed_payout';
4021
+ | 'failed_payout'
4022
+ | 'tax_refund';
3999
4023
  type TrueupSource = 'flow' | 'channel' | 'dhl-parcel' | 'dhl' | 'ups';
4000
4024
  type TrueupSurchargeType =
4001
4025
  | 'fuel'
@@ -8261,6 +8285,14 @@ declare namespace io.flow.v0.models {
8261
8285
  readonly attributes: Record<string, string>;
8262
8286
  }
8263
8287
 
8288
+ interface ItemDeleted {
8289
+ readonly discriminator: 'item_deleted';
8290
+ readonly event_id: string;
8291
+ readonly timestamp: string;
8292
+ readonly organization: string;
8293
+ readonly item: io.flow.v0.models.Item;
8294
+ }
8295
+
8264
8296
  interface ItemForm {
8265
8297
  readonly number: string;
8266
8298
  readonly locale: string;
@@ -8299,6 +8331,14 @@ declare namespace io.flow.v0.models {
8299
8331
  readonly images?: io.flow.v0.models.ImageForm[];
8300
8332
  }
8301
8333
 
8334
+ interface ItemInserted {
8335
+ readonly discriminator: 'item_inserted';
8336
+ readonly event_id: string;
8337
+ readonly timestamp: string;
8338
+ readonly organization: string;
8339
+ readonly item: io.flow.v0.models.Item;
8340
+ }
8341
+
8302
8342
  interface ItemMargin {
8303
8343
  readonly id: string;
8304
8344
  readonly key: string;
@@ -8423,6 +8463,14 @@ declare namespace io.flow.v0.models {
8423
8463
  readonly categories: number;
8424
8464
  }
8425
8465
 
8466
+ interface ItemUpdated {
8467
+ readonly discriminator: 'item_updated';
8468
+ readonly event_id: string;
8469
+ readonly timestamp: string;
8470
+ readonly organization: string;
8471
+ readonly item: io.flow.v0.models.Item;
8472
+ }
8473
+
8426
8474
  interface ItemVersion {
8427
8475
  readonly id: string;
8428
8476
  readonly timestamp: string;
@@ -10605,12 +10653,22 @@ declare namespace io.flow.v0.models {
10605
10653
  readonly reference?: string;
10606
10654
  }
10607
10655
 
10656
+ interface PaymentMethodDataInitGrabpay {
10657
+ readonly type: 'init_grabpay';
10658
+ readonly reference?: string;
10659
+ }
10660
+
10608
10661
  interface PaymentMethodDataInitIdeal {
10609
10662
  readonly type: 'init_ideal';
10610
10663
  readonly issuer?: string;
10611
10664
  readonly reference?: string;
10612
10665
  }
10613
10666
 
10667
+ interface PaymentMethodDataInitKcpCreditcard {
10668
+ readonly type: 'init_kcp_creditcard';
10669
+ readonly reference?: string;
10670
+ }
10671
+
10614
10672
  interface PaymentMethodDataInitKlarna {
10615
10673
  readonly type: 'init_klarna';
10616
10674
  readonly reference?: string;
@@ -10641,6 +10699,11 @@ declare namespace io.flow.v0.models {
10641
10699
  readonly reference?: string;
10642
10700
  }
10643
10701
 
10702
+ interface PaymentMethodDataInitVipps {
10703
+ readonly type: 'init_vipps';
10704
+ readonly reference?: string;
10705
+ }
10706
+
10644
10707
  interface PaymentMethodDataOptionLogoSvg {
10645
10708
  readonly type: 'svg';
10646
10709
  readonly url: string;
@@ -10736,12 +10799,22 @@ declare namespace io.flow.v0.models {
10736
10799
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10737
10800
  }
10738
10801
 
10802
+ interface PaymentMethodSummaryGrabpay {
10803
+ readonly type: 'grabpay';
10804
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10805
+ }
10806
+
10739
10807
  interface PaymentMethodSummaryIdeal {
10740
10808
  readonly type: 'ideal';
10741
10809
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10742
10810
  readonly issuer?: string;
10743
10811
  }
10744
10812
 
10813
+ interface PaymentMethodSummaryKcpCreditcard {
10814
+ readonly type: 'kcp_creditcard';
10815
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10816
+ }
10817
+
10745
10818
  interface PaymentMethodSummaryKlarna {
10746
10819
  readonly type: 'klarna';
10747
10820
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
@@ -10772,6 +10845,11 @@ declare namespace io.flow.v0.models {
10772
10845
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10773
10846
  }
10774
10847
 
10848
+ interface PaymentMethodSummaryVipps {
10849
+ readonly type: 'vipps';
10850
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10851
+ }
10852
+
10775
10853
  interface PaymentOrderDetailsLineItem {
10776
10854
  readonly id?: string;
10777
10855
  readonly description: string;
@@ -11447,6 +11525,8 @@ declare namespace io.flow.v0.models {
11447
11525
  readonly review_status?: io.flow.v0.enums.ReviewStatus;
11448
11526
  readonly rules?: io.flow.v0.enums.ProductRestrictionRule[];
11449
11527
  readonly updated_by?: string;
11528
+ readonly product_restriction_id?: string;
11529
+ readonly hs_code?: string;
11450
11530
  }
11451
11531
 
11452
11532
  interface ProductRestrictionResultDeleted {
@@ -11947,6 +12027,8 @@ declare namespace io.flow.v0.models {
11947
12027
  readonly attributes?: Record<string, string>;
11948
12028
  readonly status?: io.flow.v0.enums.RefundStatus;
11949
12029
  readonly base?: io.flow.v0.models.Money;
12030
+ readonly failure_category?: io.flow.v0.enums.RefundFailureCategory;
12031
+ readonly failure_psp_reason?: string;
11950
12032
  }
11951
12033
 
11952
12034
  interface RefundCapture {
@@ -14545,6 +14627,9 @@ declare namespace io.flow.v0.unions {
14545
14627
  | io.flow.v0.models.SubcatalogItemDeleted
14546
14628
  | io.flow.v0.models.CatalogStatisticsUpserted
14547
14629
  | io.flow.v0.models.CatalogStatisticsDeleted
14630
+ | io.flow.v0.models.ItemInserted
14631
+ | io.flow.v0.models.ItemUpdated
14632
+ | io.flow.v0.models.ItemDeleted
14548
14633
  | io.flow.v0.models.ChannelUpserted
14549
14634
  | io.flow.v0.models.ChannelDeleted
14550
14635
  | io.flow.v0.models.ChannelCurrencyUpserted
@@ -14853,7 +14938,10 @@ declare namespace io.flow.v0.unions {
14853
14938
  | io.flow.v0.models.PaymentMethodDataInitTwint
14854
14939
  | io.flow.v0.models.PaymentMethodDataInitPrzelewy24
14855
14940
  | io.flow.v0.models.PaymentMethodDataInitMobilepay
14941
+ | io.flow.v0.models.PaymentMethodDataInitKcpCreditcard
14856
14942
  | io.flow.v0.models.PaymentMethodDataInitBancontact
14943
+ | io.flow.v0.models.PaymentMethodDataInitGrabpay
14944
+ | io.flow.v0.models.PaymentMethodDataInitVipps
14857
14945
  | io.flow.v0.models.PaymentMethodDataValidateApplepay
14858
14946
  | io.flow.v0.models.PaymentMethodDataAuthorizeCard
14859
14947
  | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay
@@ -14882,10 +14970,13 @@ declare namespace io.flow.v0.unions {
14882
14970
  | io.flow.v0.models.PaymentMethodSummaryPaypal
14883
14971
  | io.flow.v0.models.PaymentMethodSummaryIdeal
14884
14972
  | io.flow.v0.models.PaymentMethodSummaryTwint
14973
+ | io.flow.v0.models.PaymentMethodSummaryVipps
14885
14974
  | io.flow.v0.models.PaymentMethodSummaryPrzelewy24
14886
14975
  | io.flow.v0.models.PaymentMethodSummaryMobilepay
14976
+ | io.flow.v0.models.PaymentMethodSummaryKcpCreditcard
14887
14977
  | io.flow.v0.models.PaymentMethodSummarySofort
14888
- | io.flow.v0.models.PaymentMethodSummaryBancontact;
14978
+ | io.flow.v0.models.PaymentMethodSummaryBancontact
14979
+ | io.flow.v0.models.PaymentMethodSummaryGrabpay;
14889
14980
 
14890
14981
  type PaymentMethodTag =
14891
14982
  | {
@@ -15975,10 +16066,12 @@ export type IssuerV1 = io.flow.v0.models.IssuerV1;
15975
16066
  export type Item = io.flow.v0.models.Item;
15976
16067
  export type ItemAttributesPatchForm = io.flow.v0.models.ItemAttributesPatchForm;
15977
16068
  export type ItemAvailabilityStatus = io.flow.v0.enums.ItemAvailabilityStatus;
16069
+ export type ItemDeleted = io.flow.v0.models.ItemDeleted;
15978
16070
  export type ItemForm = io.flow.v0.models.ItemForm;
15979
16071
  export type ItemFormOverlay = io.flow.v0.models.ItemFormOverlay;
15980
16072
  export type ItemFormOverlayForm = io.flow.v0.models.ItemFormOverlayForm;
15981
16073
  export type ItemIdentifier = io.flow.v0.enums.ItemIdentifier;
16074
+ export type ItemInserted = io.flow.v0.models.ItemInserted;
15982
16075
  export type ItemMargin = io.flow.v0.models.ItemMargin;
15983
16076
  export type ItemMarginDeletedV2 = io.flow.v0.models.ItemMarginDeletedV2;
15984
16077
  export type ItemMarginPostForm = io.flow.v0.models.ItemMarginPostForm;
@@ -15995,6 +16088,7 @@ export type ItemSalesMarginDeleted = io.flow.v0.models.ItemSalesMarginDeleted;
15995
16088
  export type ItemSalesMarginUpserted = io.flow.v0.models.ItemSalesMarginUpserted;
15996
16089
  export type ItemShippingPricing = io.flow.v0.models.ItemShippingPricing;
15997
16090
  export type ItemStatistics = io.flow.v0.models.ItemStatistics;
16091
+ export type ItemUpdated = io.flow.v0.models.ItemUpdated;
15998
16092
  export type ItemVersion = io.flow.v0.models.ItemVersion;
15999
16093
  export type JsonpResponse = io.flow.v0.models.JsonpResponse;
16000
16094
  export type KlarnaPaymentCategory = io.flow.v0.models.KlarnaPaymentCategory;
@@ -16477,8 +16571,12 @@ export type PaymentMethodDataInitBancontact =
16477
16571
  io.flow.v0.models.PaymentMethodDataInitBancontact;
16478
16572
  export type PaymentMethodDataInitGooglepay =
16479
16573
  io.flow.v0.models.PaymentMethodDataInitGooglepay;
16574
+ export type PaymentMethodDataInitGrabpay =
16575
+ io.flow.v0.models.PaymentMethodDataInitGrabpay;
16480
16576
  export type PaymentMethodDataInitIdeal =
16481
16577
  io.flow.v0.models.PaymentMethodDataInitIdeal;
16578
+ export type PaymentMethodDataInitKcpCreditcard =
16579
+ io.flow.v0.models.PaymentMethodDataInitKcpCreditcard;
16482
16580
  export type PaymentMethodDataInitKlarna =
16483
16581
  io.flow.v0.models.PaymentMethodDataInitKlarna;
16484
16582
  export type PaymentMethodDataInitMobilepay =
@@ -16491,6 +16589,8 @@ export type PaymentMethodDataInitSofort =
16491
16589
  io.flow.v0.models.PaymentMethodDataInitSofort;
16492
16590
  export type PaymentMethodDataInitTwint =
16493
16591
  io.flow.v0.models.PaymentMethodDataInitTwint;
16592
+ export type PaymentMethodDataInitVipps =
16593
+ io.flow.v0.models.PaymentMethodDataInitVipps;
16494
16594
  export type PaymentMethodDataOptionLogo =
16495
16595
  io.flow.v0.unions.PaymentMethodDataOptionLogo;
16496
16596
  export type PaymentMethodDataOptionLogoSvg =
@@ -16528,8 +16628,12 @@ export type PaymentMethodSummaryCard =
16528
16628
  io.flow.v0.models.PaymentMethodSummaryCard;
16529
16629
  export type PaymentMethodSummaryGooglepay =
16530
16630
  io.flow.v0.models.PaymentMethodSummaryGooglepay;
16631
+ export type PaymentMethodSummaryGrabpay =
16632
+ io.flow.v0.models.PaymentMethodSummaryGrabpay;
16531
16633
  export type PaymentMethodSummaryIdeal =
16532
16634
  io.flow.v0.models.PaymentMethodSummaryIdeal;
16635
+ export type PaymentMethodSummaryKcpCreditcard =
16636
+ io.flow.v0.models.PaymentMethodSummaryKcpCreditcard;
16533
16637
  export type PaymentMethodSummaryKlarna =
16534
16638
  io.flow.v0.models.PaymentMethodSummaryKlarna;
16535
16639
  export type PaymentMethodSummaryMobilepay =
@@ -16542,6 +16646,8 @@ export type PaymentMethodSummarySofort =
16542
16646
  io.flow.v0.models.PaymentMethodSummarySofort;
16543
16647
  export type PaymentMethodSummaryTwint =
16544
16648
  io.flow.v0.models.PaymentMethodSummaryTwint;
16649
+ export type PaymentMethodSummaryVipps =
16650
+ io.flow.v0.models.PaymentMethodSummaryVipps;
16545
16651
  export type PaymentMethodTag = io.flow.v0.unions.PaymentMethodTag;
16546
16652
  export type PaymentMethodType = io.flow.v0.enums.PaymentMethodType;
16547
16653
  export type PaymentOrderDetailsLineItem =
@@ -16780,6 +16886,7 @@ export type RefundCaptureUpsertedV2 = io.flow.v0.models.RefundCaptureUpsertedV2;
16780
16886
  export type RefundDeclineCode = io.flow.v0.enums.RefundDeclineCode;
16781
16887
  export type RefundDeletedV2 = io.flow.v0.models.RefundDeletedV2;
16782
16888
  export type RefundError = io.flow.v0.models.RefundError;
16889
+ export type RefundFailureCategory = io.flow.v0.enums.RefundFailureCategory;
16783
16890
  export type RefundForm = io.flow.v0.models.RefundForm;
16784
16891
  export type RefundIdentifier = io.flow.v0.models.RefundIdentifier;
16785
16892
  export type RefundIdentifierDeleted = io.flow.v0.models.RefundIdentifierDeleted;