@flowio/types 11.24.97 → 11.24.98

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
@@ -153,6 +153,47 @@ declare namespace io.flow.google.pay.v0.unions {
153
153
  declare namespace io.flow.stripe.v0.enums {
154
154
  type AccountType = 'platform' | 'custom' | 'standard' | 'express';
155
155
  type ApplePayType = 'apple_pay' | 'apple_pay_later';
156
+ type BalanceTransactionType =
157
+ | 'adjustment'
158
+ | 'advance'
159
+ | 'advance_funding'
160
+ | 'anticipation_repayment'
161
+ | 'application_fee'
162
+ | 'application_fee_refund'
163
+ | 'charge'
164
+ | 'climate_order_purchase'
165
+ | 'climate_order_refund'
166
+ | 'connect_collection_transfer'
167
+ | 'contribution'
168
+ | 'issuing_authorization_hold'
169
+ | 'issuing_authorization_release'
170
+ | 'issuing_dispute'
171
+ | 'issuing_transaction'
172
+ | 'obligation_outbound'
173
+ | 'obligation_reversal_inbound'
174
+ | 'payment'
175
+ | 'payment_failure_refund'
176
+ | 'payment_network_reserve_hold'
177
+ | 'payment_network_reserve_release'
178
+ | 'payment_refund'
179
+ | 'payment_reversal'
180
+ | 'payment_unreconciled'
181
+ | 'payout'
182
+ | 'payout_cancel'
183
+ | 'payout_failure'
184
+ | 'refund'
185
+ | 'refund_failure'
186
+ | 'reserve_transaction'
187
+ | 'reserved_funds'
188
+ | 'stripe_fee'
189
+ | 'stripe_fx_fee'
190
+ | 'tax_fee'
191
+ | 'topup'
192
+ | 'topup_reversal'
193
+ | 'transfer'
194
+ | 'transfer_cancel'
195
+ | 'transfer_failure'
196
+ | 'transfer_refund';
156
197
  type BankIdeal =
157
198
  | 'abn_amro'
158
199
  | 'asn_bank'
@@ -778,13 +819,13 @@ declare namespace io.flow.stripe.v0.models {
778
819
  readonly amount: number;
779
820
  readonly charge: string;
780
821
  readonly currency: string;
781
- readonly evidence: any /*object*/;
822
+ readonly evidence: io.flow.stripe.v0.models.DisputeEvidence;
782
823
  readonly metadata: Record<string, string>;
783
824
  readonly payment_intent?: string;
784
825
  readonly reason: io.flow.stripe.v0.enums.DisputeReason;
785
826
  readonly status: io.flow.stripe.v0.enums.DisputeStatus;
786
827
  readonly object: string;
787
- readonly balance_transactions: any /*object*/[];
828
+ readonly balance_transactions: io.flow.stripe.v0.models.DisputeBalanceTransaction[];
788
829
  readonly created: number;
789
830
  readonly evidence_details: io.flow.stripe.v0.models.DisputeEvidenceDetails;
790
831
  readonly is_charge_refundable: boolean;
@@ -792,6 +833,63 @@ declare namespace io.flow.stripe.v0.models {
792
833
  readonly payment_method_details?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
793
834
  }
794
835
 
836
+ interface DisputeBalanceTransaction {
837
+ readonly payment_intent?: string;
838
+ readonly id: string;
839
+ readonly object: string;
840
+ readonly amount: number;
841
+ readonly available_on: number;
842
+ readonly created: number;
843
+ readonly currency: string;
844
+ readonly description?: string;
845
+ readonly exchange_rate?: number;
846
+ readonly fee?: number;
847
+ readonly fee_details: io.flow.stripe.v0.models.DisputeBalanceTransactionFeeDetails[];
848
+ readonly net: number;
849
+ readonly reporting_category: string;
850
+ readonly source?: string;
851
+ readonly status: string;
852
+ readonly type: io.flow.stripe.v0.enums.BalanceTransactionType;
853
+ }
854
+
855
+ interface DisputeBalanceTransactionFeeDetails {
856
+ readonly amount: number;
857
+ readonly application?: string;
858
+ readonly currency: string;
859
+ readonly description?: string;
860
+ readonly type: string;
861
+ }
862
+
863
+ interface DisputeEvidence {
864
+ readonly access_activity_log?: string;
865
+ readonly billing_address?: string;
866
+ readonly cancellation_policy?: string;
867
+ readonly cancellation_policy_disclosure?: string;
868
+ readonly cancellation_rebuttal?: string;
869
+ readonly customer_communication?: string;
870
+ readonly customer_email_address?: string;
871
+ readonly customer_name?: string;
872
+ readonly 'evidence.customer_purchase_ip'?: string;
873
+ readonly customer_signature?: string;
874
+ readonly duplicate_charge_documentation?: string;
875
+ readonly duplicate_charge_explanation?: string;
876
+ readonly duplicate_charge_id?: string;
877
+ readonly product_description?: string;
878
+ readonly receipt?: string;
879
+ readonly refund_policy?: string;
880
+ readonly refund_policy_disclosure?: string;
881
+ readonly refund_refusal_explanation?: string;
882
+ readonly service_date?: string;
883
+ readonly service_documentation?: string;
884
+ readonly shipping_address?: string;
885
+ readonly shipping_carrier?: string;
886
+ readonly shipping_date?: string;
887
+ readonly shipping_documentation?: string;
888
+ readonly shipping_tracking_number?: string;
889
+ readonly uncategorized_file?: string;
890
+ readonly uncategorized_text?: string;
891
+ }
892
+
795
893
  interface DisputeEvidenceDetails {
796
894
  readonly due_by?: number;
797
895
  readonly has_evidence: boolean;
@@ -1670,6 +1768,7 @@ declare namespace io.flow.shopify.external.v0.enums {
1670
1768
  type Format = 'json' | 'xml';
1671
1769
  type FulfillmentService = 'manual' | 'gift_card';
1672
1770
  type FulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
1771
+ type GraphqlWeightUnit = 'GRAMS' | 'KILOGRAMS' | 'OUNCES' | 'POUNDS';
1673
1772
  type InventoryBehaviour =
1674
1773
  | 'bypass'
1675
1774
  | 'decrement_ignoring_policy'
@@ -1813,6 +1912,74 @@ declare namespace io.flow.shopify.external.v0.models {
1813
1912
  readonly count: number;
1814
1913
  }
1815
1914
 
1915
+ interface GraphqlInventoryItem {
1916
+ readonly id: string;
1917
+ readonly tracked: boolean;
1918
+ readonly requiresShipping?: boolean;
1919
+ readonly measurement: io.flow.shopify.external.v0.models.GraphqlMeasurement;
1920
+ }
1921
+
1922
+ interface GraphqlMeasurement {
1923
+ readonly weight: io.flow.shopify.external.v0.models.GraphqlWeight;
1924
+ }
1925
+
1926
+ interface GraphqlOption {
1927
+ readonly id: string;
1928
+ readonly values: string[];
1929
+ readonly name: string;
1930
+ readonly position: number;
1931
+ }
1932
+
1933
+ interface GraphqlProduct {
1934
+ readonly id: string;
1935
+ readonly legacyResourceId: string;
1936
+ readonly handle: string;
1937
+ readonly variants?: io.flow.shopify.external.v0.models.GraphqlProductVariant[];
1938
+ readonly images: io.flow.shopify.external.v0.models.GraphqlProductImage[];
1939
+ readonly title: string;
1940
+ readonly vendor?: string;
1941
+ readonly descriptionHtml?: string;
1942
+ readonly productType?: string;
1943
+ readonly status?: string;
1944
+ readonly options: io.flow.shopify.external.v0.models.GraphqlOption[];
1945
+ readonly tags?: string[];
1946
+ readonly templateSuffix?: string;
1947
+ readonly publishedAt?: string;
1948
+ readonly createdAt: string;
1949
+ readonly updatedAt: string;
1950
+ readonly hasVariantsThatRequiresComponents?: boolean;
1951
+ }
1952
+
1953
+ interface GraphqlProductImage {
1954
+ readonly id: string;
1955
+ readonly url: string;
1956
+ readonly altText?: string;
1957
+ }
1958
+
1959
+ interface GraphqlProductVariant {
1960
+ readonly id: string;
1961
+ readonly legacyResourceId: string;
1962
+ readonly sku?: string;
1963
+ readonly price: string;
1964
+ readonly title: string;
1965
+ readonly taxable: boolean;
1966
+ readonly compareAtPrice?: string;
1967
+ readonly barcode?: string;
1968
+ readonly inventoryPolicy: io.flow.shopify.external.v0.enums.InventoryPolicy;
1969
+ readonly inventoryQuantity?: number;
1970
+ readonly image?: io.flow.shopify.external.v0.models.GraphqlVariantImage;
1971
+ readonly inventoryItem: io.flow.shopify.external.v0.models.GraphqlInventoryItem;
1972
+ }
1973
+
1974
+ interface GraphqlVariantImage {
1975
+ readonly id: string;
1976
+ }
1977
+
1978
+ interface GraphqlWeight {
1979
+ readonly unit: io.flow.shopify.external.v0.enums.GraphqlWeightUnit;
1980
+ readonly value: number;
1981
+ }
1982
+
1816
1983
  interface Metafield {
1817
1984
  readonly id: number;
1818
1985
  readonly key: string;
@@ -1916,7 +2083,7 @@ declare namespace io.flow.shopify.external.v0.models {
1916
2083
  readonly options: io.flow.shopify.external.v0.models.Option[];
1917
2084
  readonly tags?: string;
1918
2085
  readonly template_suffix?: string;
1919
- readonly published_scope: io.flow.shopify.external.v0.enums.PublishedScope;
2086
+ readonly published_scope?: io.flow.shopify.external.v0.enums.PublishedScope;
1920
2087
  readonly published_at?: string;
1921
2088
  readonly created_at: string;
1922
2089
  readonly updated_at: string;
@@ -1932,9 +2099,9 @@ declare namespace io.flow.shopify.external.v0.models {
1932
2099
  readonly product_id: number;
1933
2100
  readonly variant_ids: number[];
1934
2101
  readonly src?: string;
1935
- readonly position: number;
1936
- readonly created_at: string;
1937
- readonly updated_at: string;
2102
+ readonly position?: number;
2103
+ readonly created_at?: string;
2104
+ readonly updated_at?: string;
1938
2105
  readonly alt?: string;
1939
2106
  }
1940
2107
 
@@ -1960,7 +2127,7 @@ declare namespace io.flow.shopify.external.v0.models {
1960
2127
  readonly option1?: string;
1961
2128
  readonly option2?: string;
1962
2129
  readonly option3?: string;
1963
- readonly requires_shipping: boolean;
2130
+ readonly requires_shipping?: boolean;
1964
2131
  readonly metafields?: io.flow.shopify.external.v0.models.Metafield[];
1965
2132
  }
1966
2133
 
@@ -2101,6 +2268,11 @@ declare namespace io.flow.shopify.external.v0.models {
2101
2268
  readonly user_agent?: string;
2102
2269
  }
2103
2270
 
2271
+ interface ShopifyCountryHarmonizedSystemCode {
2272
+ readonly country_code: string;
2273
+ readonly harmonized_system_code: string;
2274
+ }
2275
+
2104
2276
  interface ShopifyCustomer {
2105
2277
  readonly id: number;
2106
2278
  readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
@@ -2321,6 +2493,14 @@ declare namespace io.flow.shopify.external.v0.models {
2321
2493
  readonly id: number;
2322
2494
  }
2323
2495
 
2496
+ interface ShopifyInventoryItemSummary {
2497
+ readonly country_code_of_origin?: string;
2498
+ readonly country_harmonized_system_codes?: io.flow.shopify.external.v0.models.ShopifyCountryHarmonizedSystemCode[];
2499
+ readonly harmonized_system_code?: string;
2500
+ readonly updated_at: string;
2501
+ readonly requires_shipping: boolean;
2502
+ }
2503
+
2324
2504
  interface ShopifyInventoryLevel {
2325
2505
  readonly inventory_item_id: number;
2326
2506
  readonly location_id: number;
@@ -3554,7 +3734,9 @@ declare namespace io.flow.v0.enums {
3554
3734
  | 'ideal'
3555
3735
  | 'sofort'
3556
3736
  | 'afterpay'
3557
- | 'bancontact';
3737
+ | 'bancontact'
3738
+ | 'twint'
3739
+ | 'przelewy24';
3558
3740
  type PayoutAttachmentType = 'transactions';
3559
3741
  type PayoutStatusFailureCode =
3560
3742
  | 'invalid_account_number'
@@ -10436,11 +10618,21 @@ declare namespace io.flow.v0.models {
10436
10618
  readonly reference?: string;
10437
10619
  }
10438
10620
 
10621
+ interface PaymentMethodDataInitPrzelewy24 {
10622
+ readonly type: 'init_przelewy24';
10623
+ readonly reference?: string;
10624
+ }
10625
+
10439
10626
  interface PaymentMethodDataInitSofort {
10440
10627
  readonly type: 'init_sofort';
10441
10628
  readonly reference?: string;
10442
10629
  }
10443
10630
 
10631
+ interface PaymentMethodDataInitTwint {
10632
+ readonly type: 'init_twint';
10633
+ readonly reference?: string;
10634
+ }
10635
+
10444
10636
  interface PaymentMethodDataOptionLogoSvg {
10445
10637
  readonly type: 'svg';
10446
10638
  readonly url: string;
@@ -10552,11 +10744,21 @@ declare namespace io.flow.v0.models {
10552
10744
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10553
10745
  }
10554
10746
 
10747
+ interface PaymentMethodSummaryPrzelewy24 {
10748
+ readonly type: 'przelewy24';
10749
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10750
+ }
10751
+
10555
10752
  interface PaymentMethodSummarySofort {
10556
10753
  readonly type: 'sofort';
10557
10754
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10558
10755
  }
10559
10756
 
10757
+ interface PaymentMethodSummaryTwint {
10758
+ readonly type: 'twint';
10759
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
10760
+ }
10761
+
10560
10762
  interface PaymentOrderDetailsLineItem {
10561
10763
  readonly id?: string;
10562
10764
  readonly description: string;
@@ -14633,6 +14835,8 @@ declare namespace io.flow.v0.unions {
14633
14835
  | io.flow.v0.models.PaymentMethodDataInitPaypal
14634
14836
  | io.flow.v0.models.PaymentMethodDataInitIdeal
14635
14837
  | io.flow.v0.models.PaymentMethodDataInitSofort
14838
+ | io.flow.v0.models.PaymentMethodDataInitTwint
14839
+ | io.flow.v0.models.PaymentMethodDataInitPrzelewy24
14636
14840
  | io.flow.v0.models.PaymentMethodDataInitBancontact
14637
14841
  | io.flow.v0.models.PaymentMethodDataValidateApplepay
14638
14842
  | io.flow.v0.models.PaymentMethodDataAuthorizeCard
@@ -14661,6 +14865,8 @@ declare namespace io.flow.v0.unions {
14661
14865
  | io.flow.v0.models.PaymentMethodSummaryGooglepay
14662
14866
  | io.flow.v0.models.PaymentMethodSummaryPaypal
14663
14867
  | io.flow.v0.models.PaymentMethodSummaryIdeal
14868
+ | io.flow.v0.models.PaymentMethodSummaryTwint
14869
+ | io.flow.v0.models.PaymentMethodSummaryPrzelewy24
14664
14870
  | io.flow.v0.models.PaymentMethodSummarySofort
14665
14871
  | io.flow.v0.models.PaymentMethodSummaryBancontact;
14666
14872
 
@@ -16260,8 +16466,12 @@ export type PaymentMethodDataInitKlarna =
16260
16466
  io.flow.v0.models.PaymentMethodDataInitKlarna;
16261
16467
  export type PaymentMethodDataInitPaypal =
16262
16468
  io.flow.v0.models.PaymentMethodDataInitPaypal;
16469
+ export type PaymentMethodDataInitPrzelewy24 =
16470
+ io.flow.v0.models.PaymentMethodDataInitPrzelewy24;
16263
16471
  export type PaymentMethodDataInitSofort =
16264
16472
  io.flow.v0.models.PaymentMethodDataInitSofort;
16473
+ export type PaymentMethodDataInitTwint =
16474
+ io.flow.v0.models.PaymentMethodDataInitTwint;
16265
16475
  export type PaymentMethodDataOptionLogo =
16266
16476
  io.flow.v0.unions.PaymentMethodDataOptionLogo;
16267
16477
  export type PaymentMethodDataOptionLogoSvg =
@@ -16305,8 +16515,12 @@ export type PaymentMethodSummaryKlarna =
16305
16515
  io.flow.v0.models.PaymentMethodSummaryKlarna;
16306
16516
  export type PaymentMethodSummaryPaypal =
16307
16517
  io.flow.v0.models.PaymentMethodSummaryPaypal;
16518
+ export type PaymentMethodSummaryPrzelewy24 =
16519
+ io.flow.v0.models.PaymentMethodSummaryPrzelewy24;
16308
16520
  export type PaymentMethodSummarySofort =
16309
16521
  io.flow.v0.models.PaymentMethodSummarySofort;
16522
+ export type PaymentMethodSummaryTwint =
16523
+ io.flow.v0.models.PaymentMethodSummaryTwint;
16310
16524
  export type PaymentMethodTag = io.flow.v0.unions.PaymentMethodTag;
16311
16525
  export type PaymentMethodType = io.flow.v0.enums.PaymentMethodType;
16312
16526
  export type PaymentOrderDetailsLineItem =