@flowio/types 11.24.13 → 11.24.15

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/dist/api.d.ts CHANGED
@@ -1581,555 +1581,6 @@ declare namespace io.flow.shopify.external.v0.models {
1581
1581
  readonly webhook: io.flow.shopify.external.v0.models.Webhook;
1582
1582
  }
1583
1583
  }
1584
- declare namespace io.flow.channel.internal.v0.enums {
1585
- type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
1586
- type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card';
1587
- type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review';
1588
- }
1589
- declare namespace io.flow.channel.internal.v0.models {
1590
- interface Channel {
1591
- readonly id: string;
1592
- readonly name: string;
1593
- readonly environment: io.flow.common.v0.enums.Environment;
1594
- readonly organization_id_prefix?: string;
1595
- }
1596
- interface ChannelCurrency {
1597
- readonly id: string;
1598
- readonly currency: string;
1599
- readonly channel: io.flow.common.v0.models.ChannelReference;
1600
- readonly capabilities: io.flow.channel.internal.v0.enums.ChannelCurrencyCapability[];
1601
- }
1602
- interface ChannelCurrencyForm {
1603
- readonly currency: string;
1604
- readonly channel_id: string;
1605
- readonly capabilities: io.flow.channel.internal.v0.enums.ChannelCurrencyCapability[];
1606
- }
1607
- interface ChannelForm {
1608
- readonly name: string;
1609
- readonly environment: io.flow.common.v0.enums.Environment;
1610
- readonly organization_id_prefix?: string;
1611
- }
1612
- interface ChannelMembership {
1613
- readonly id: string;
1614
- readonly channel: io.flow.common.v0.models.ChannelReference;
1615
- readonly user: io.flow.common.v0.unions.ExpandableUser;
1616
- readonly role?: io.flow.common.v0.enums.Role;
1617
- }
1618
- interface ChannelMembershipForm {
1619
- readonly channel_id: string;
1620
- readonly user_id: string;
1621
- readonly role?: io.flow.common.v0.enums.Role;
1622
- }
1623
- interface ChannelMembershipPutForm {
1624
- readonly role?: io.flow.common.v0.enums.Role;
1625
- }
1626
- interface ChannelOrderAcceptance {
1627
- readonly id: string;
1628
- readonly organization_id: string;
1629
- readonly order_number: string;
1630
- readonly channel_id: string;
1631
- readonly external_order_reference: string;
1632
- readonly payment_request_id?: string;
1633
- readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
1634
- readonly reasons: io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason[];
1635
- }
1636
- interface ChannelOrderAcceptanceForm {
1637
- readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
1638
- }
1639
- interface ChannelOrderAcceptanceReason {
1640
- readonly description: string;
1641
- readonly rejection_reason?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
1642
- }
1643
- }
1644
- declare namespace io.flow.common.v0.enums {
1645
- type AttributeDataType = 'boolean' | 'integer' | 'decimal' | 'string' | 'json_array';
1646
- type AvailabilityStatus = 'enabled' | 'disabled';
1647
- type Calendar = 'weekdays' | 'everyday';
1648
- type Capability = 'crossdock';
1649
- type ChangeType = 'insert' | 'update' | 'delete';
1650
- type CurrencyLabelFormatter = 'strip_trailing_zeros' | 'symbol_prefix' | 'symbol_suffix';
1651
- type CurrencySymbolFormat = 'narrow' | 'primary';
1652
- type DayOfWeek = 'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday';
1653
- type DeliveredDuty = 'paid' | 'unpaid';
1654
- type DiscountTarget = 'item' | 'shipping';
1655
- type EntityIdentifierType = 'ioss' | 'voec';
1656
- type Environment = 'sandbox' | 'production';
1657
- type ExceptionType = 'open' | 'closed';
1658
- type GoodsSupply = 'export' | 'intra_community' | 'local';
1659
- type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
1660
- type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
1661
- type Incoterm = 'EXW' | 'FCA' | 'CPT' | 'CIP' | 'DAT' | 'DAP' | 'DDP' | 'FAS' | 'FOB' | 'CFR' | 'CIF' | 'DAF' | 'DES' | 'DEQ' | 'DDU';
1662
- type InputSpecificationType = 'text' | 'number';
1663
- type MarginType = 'fixed' | 'percent';
1664
- type MeasurementSystem = 'imperial' | 'metric';
1665
- type MerchantOfRecord = 'flow' | 'organization';
1666
- type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
1667
- type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
1668
- type PriceBookStatus = 'draft' | 'published' | 'archived';
1669
- type Role = 'admin' | 'member';
1670
- type RoundingMethod = 'up' | 'down' | 'nearest';
1671
- type RoundingType = 'pattern' | 'multiple';
1672
- type ScheduleExceptionStatus = 'Open' | 'Closed';
1673
- type SortDirection = 'ascending' | 'descending';
1674
- type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
1675
- type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
1676
- type UserStatus = 'pending' | 'active' | 'inactive';
1677
- type ValueAddedService = 'Hazardous Material';
1678
- type Visibility = 'public' | 'private';
1679
- }
1680
- declare namespace io.flow.common.v0.models {
1681
- interface Address {
1682
- readonly text?: string;
1683
- readonly streets?: string[];
1684
- readonly street_number?: string;
1685
- readonly city?: string;
1686
- readonly province?: string;
1687
- readonly postal?: string;
1688
- readonly country?: string;
1689
- readonly latitude?: string;
1690
- readonly longitude?: string;
1691
- }
1692
- interface BillingAddress {
1693
- readonly name?: io.flow.common.v0.models.Name;
1694
- readonly streets?: string[];
1695
- readonly city?: string;
1696
- readonly province?: string;
1697
- readonly postal?: string;
1698
- readonly country?: string;
1699
- readonly company?: string;
1700
- }
1701
- interface CatalogItemReference {
1702
- readonly id: string;
1703
- readonly number: string;
1704
- }
1705
- interface CatalogItemSummary {
1706
- readonly number: string;
1707
- readonly name: string;
1708
- readonly attributes: Record<string, string>;
1709
- }
1710
- interface ChannelReference {
1711
- readonly id: string;
1712
- }
1713
- interface CheckoutReference {
1714
- readonly id: string;
1715
- }
1716
- interface Contact {
1717
- readonly name: io.flow.common.v0.models.Name;
1718
- readonly company?: string;
1719
- readonly email?: string;
1720
- readonly phone?: string;
1721
- }
1722
- interface CustomerInvoice {
1723
- readonly address?: io.flow.common.v0.models.BillingAddress;
1724
- }
1725
- interface CustomerReference {
1726
- readonly number: string;
1727
- }
1728
- interface DatetimeRange {
1729
- readonly from: string;
1730
- readonly to: string;
1731
- }
1732
- interface Dimension {
1733
- readonly depth?: io.flow.common.v0.models.Measurement;
1734
- readonly diameter?: io.flow.common.v0.models.Measurement;
1735
- readonly length?: io.flow.common.v0.models.Measurement;
1736
- readonly weight?: io.flow.common.v0.models.Measurement;
1737
- readonly width?: io.flow.common.v0.models.Measurement;
1738
- }
1739
- interface Dimensions {
1740
- readonly product?: io.flow.common.v0.models.Dimension;
1741
- readonly packaging?: io.flow.common.v0.models.Dimension;
1742
- }
1743
- interface DiscountForm {
1744
- readonly offer: io.flow.common.v0.unions.DiscountOffer;
1745
- readonly target?: io.flow.common.v0.enums.DiscountTarget;
1746
- readonly label?: string;
1747
- }
1748
- interface DiscountOfferFixed {
1749
- readonly discriminator: 'discount_offer_fixed';
1750
- readonly money: io.flow.common.v0.models.Money;
1751
- }
1752
- interface DiscountOfferPercent {
1753
- readonly discriminator: 'discount_offer_percent';
1754
- readonly percent: number;
1755
- }
1756
- interface DiscountsForm {
1757
- readonly discounts: io.flow.common.v0.models.DiscountForm[];
1758
- }
1759
- interface Duration {
1760
- readonly unit: io.flow.common.v0.enums.UnitOfTime;
1761
- readonly value: number;
1762
- }
1763
- interface EntityIdentifier {
1764
- readonly name: io.flow.common.v0.enums.EntityIdentifierType;
1765
- readonly number: string;
1766
- readonly issuing_country?: string;
1767
- }
1768
- interface Exception {
1769
- readonly type: io.flow.common.v0.enums.ExceptionType;
1770
- readonly datetime_range: io.flow.common.v0.models.DatetimeRange;
1771
- }
1772
- interface ExperienceSummary {
1773
- readonly id: string;
1774
- readonly key: string;
1775
- readonly name: string;
1776
- readonly country?: string;
1777
- readonly currency?: string;
1778
- readonly language?: string;
1779
- }
1780
- interface IncludedLevies {
1781
- readonly key: io.flow.common.v0.enums.IncludedLevyKey;
1782
- readonly label: string;
1783
- }
1784
- interface InputForm {
1785
- readonly values?: Record<string, string>;
1786
- }
1787
- interface InputFormSpecification {
1788
- readonly inputs?: io.flow.common.v0.models.InputSpecification[];
1789
- readonly limitations?: io.flow.common.v0.models.InputSpecificationLimitations;
1790
- }
1791
- interface InputSpecification {
1792
- readonly type: io.flow.common.v0.enums.InputSpecificationType;
1793
- readonly name: string;
1794
- readonly display_text?: string;
1795
- }
1796
- interface InputSpecificationLimitationMax {
1797
- readonly discriminator: 'input_specification_limitation_max';
1798
- readonly max: number;
1799
- }
1800
- interface InputSpecificationLimitations {
1801
- readonly limitations?: io.flow.common.v0.unions.InputSpecificationLimitation[];
1802
- }
1803
- interface ItemReference {
1804
- readonly number: string;
1805
- }
1806
- interface LineItem {
1807
- readonly number: string;
1808
- readonly quantity: number;
1809
- readonly price: io.flow.common.v0.models.Money;
1810
- readonly attributes: Record<string, string>;
1811
- readonly center?: string;
1812
- readonly discount?: io.flow.common.v0.models.Money;
1813
- }
1814
- interface LineItemAttributesForm {
1815
- readonly attributes: Record<string, string>;
1816
- }
1817
- interface LineItemForm {
1818
- readonly number: string;
1819
- readonly quantity: number;
1820
- readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
1821
- readonly price?: io.flow.common.v0.models.Money;
1822
- readonly attributes?: Record<string, string>;
1823
- readonly center?: string;
1824
- readonly discount?: io.flow.common.v0.models.Money;
1825
- readonly discounts?: io.flow.common.v0.models.DiscountsForm;
1826
- }
1827
- interface LineItemQuantityForm {
1828
- readonly quantity: number;
1829
- }
1830
- interface Margin {
1831
- readonly type: io.flow.common.v0.enums.MarginType;
1832
- readonly value: number;
1833
- }
1834
- interface Measurement {
1835
- readonly value: string;
1836
- readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
1837
- }
1838
- interface MerchantOfRecordEntity {
1839
- readonly organization: io.flow.common.v0.models.OrganizationReference;
1840
- readonly name: string;
1841
- readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
1842
- readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
1843
- readonly streets: string[];
1844
- readonly city: string;
1845
- readonly province?: string;
1846
- readonly postal?: string;
1847
- readonly country: string;
1848
- readonly phone?: string;
1849
- readonly email?: string;
1850
- }
1851
- interface MerchantOfRecordEntityRegistration {
1852
- readonly number: string;
1853
- readonly country: string;
1854
- }
1855
- interface Money {
1856
- readonly amount: number;
1857
- readonly currency: string;
1858
- }
1859
- interface MoneyWithBase {
1860
- readonly currency: string;
1861
- readonly amount: number;
1862
- readonly base: io.flow.common.v0.models.Money;
1863
- }
1864
- interface MoneyWithOptionalBase {
1865
- readonly currency: string;
1866
- readonly amount: number;
1867
- readonly base?: io.flow.common.v0.models.Money;
1868
- }
1869
- interface Name {
1870
- readonly first?: string;
1871
- readonly last?: string;
1872
- }
1873
- interface OrderCustomer {
1874
- readonly name: io.flow.common.v0.models.Name;
1875
- readonly number?: string;
1876
- readonly phone?: string;
1877
- readonly email?: string;
1878
- readonly address?: io.flow.common.v0.models.BillingAddress;
1879
- readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
1880
- }
1881
- interface OrderCustomerForm {
1882
- readonly name?: io.flow.common.v0.models.Name;
1883
- readonly number?: string;
1884
- readonly phone?: string;
1885
- readonly email?: string;
1886
- readonly address?: io.flow.common.v0.models.BillingAddress;
1887
- readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
1888
- }
1889
- interface Organization {
1890
- readonly discriminator: 'organization';
1891
- readonly id: string;
1892
- readonly name: string;
1893
- readonly environment: io.flow.common.v0.enums.Environment;
1894
- readonly parent?: io.flow.common.v0.models.OrganizationReference;
1895
- readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
1896
- readonly created_at?: string;
1897
- readonly status?: io.flow.common.v0.enums.OrganizationStatus;
1898
- }
1899
- interface OrganizationDefaults {
1900
- readonly country: string;
1901
- readonly base_currency: string;
1902
- readonly language: string;
1903
- readonly locale: string;
1904
- readonly timezone: string;
1905
- }
1906
- interface OrganizationReference {
1907
- readonly discriminator: 'organization_reference';
1908
- readonly id: string;
1909
- }
1910
- interface OrganizationSummary {
1911
- readonly id: string;
1912
- readonly name: string;
1913
- readonly environment: io.flow.common.v0.enums.Environment;
1914
- }
1915
- interface PartnerReference {
1916
- readonly id: string;
1917
- }
1918
- interface Price {
1919
- readonly amount: number;
1920
- readonly currency: string;
1921
- readonly label: string;
1922
- }
1923
- interface PriceForm {
1924
- readonly amount: number;
1925
- readonly currency: string;
1926
- }
1927
- interface PriceSourceCatalog {
1928
- readonly discriminator: 'catalog';
1929
- readonly price: io.flow.common.v0.models.Money;
1930
- }
1931
- interface PriceSourcePriceBook {
1932
- readonly discriminator: 'price_book';
1933
- readonly price: io.flow.common.v0.models.Money;
1934
- readonly includes: io.flow.common.v0.models.IncludedLevies;
1935
- readonly price_book_reference: io.flow.common.v0.models.PriceSourcePriceBookReference;
1936
- }
1937
- interface PriceSourcePriceBookReference {
1938
- readonly id: string;
1939
- readonly key: string;
1940
- }
1941
- interface PriceSourceProvided {
1942
- readonly discriminator: 'provided';
1943
- readonly price: io.flow.common.v0.models.Money;
1944
- }
1945
- interface PriceWithBase {
1946
- readonly currency: string;
1947
- readonly amount: number;
1948
- readonly label: string;
1949
- readonly base?: io.flow.common.v0.models.Price;
1950
- }
1951
- interface RepeatDaily {
1952
- readonly discriminator: 'repeat_daily';
1953
- readonly interval: number;
1954
- }
1955
- interface RepeatHourly {
1956
- readonly discriminator: 'repeat_hourly';
1957
- readonly interval: number;
1958
- }
1959
- interface RepeatMonthly {
1960
- readonly discriminator: 'repeat_monthly';
1961
- readonly interval: number;
1962
- readonly days: number[];
1963
- }
1964
- interface RepeatWeekly {
1965
- readonly discriminator: 'repeat_weekly';
1966
- readonly interval: number;
1967
- readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
1968
- }
1969
- interface Rounding {
1970
- readonly type: io.flow.common.v0.enums.RoundingType;
1971
- readonly method: io.flow.common.v0.enums.RoundingMethod;
1972
- readonly value: number;
1973
- }
1974
- interface Schedule {
1975
- readonly calendar?: io.flow.common.v0.enums.Calendar;
1976
- readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
1977
- readonly exception: io.flow.common.v0.models.Exception[];
1978
- readonly cutoff?: string;
1979
- readonly min_lead_time?: number;
1980
- readonly max_lead_time?: number;
1981
- }
1982
- interface SessionReference {
1983
- readonly id: string;
1984
- }
1985
- interface User {
1986
- readonly discriminator: 'user';
1987
- readonly id: string;
1988
- readonly email?: string;
1989
- readonly name: io.flow.common.v0.models.Name;
1990
- readonly status: io.flow.common.v0.enums.UserStatus;
1991
- }
1992
- interface UserReference {
1993
- readonly discriminator: 'user_reference';
1994
- readonly id: string;
1995
- }
1996
- interface Zone {
1997
- readonly postals?: string[];
1998
- readonly provinces?: string[];
1999
- readonly country: string;
2000
- }
2001
- }
2002
- declare namespace io.flow.common.v0.unions {
2003
- type DiscountOffer = io.flow.common.v0.models.DiscountOfferFixed | io.flow.common.v0.models.DiscountOfferPercent;
2004
- type ExpandableOrganization = io.flow.common.v0.models.Organization | io.flow.common.v0.models.OrganizationReference;
2005
- type ExpandableUser = io.flow.common.v0.models.User | io.flow.common.v0.models.UserReference;
2006
- type InputSpecificationLimitation = io.flow.common.v0.models.InputSpecificationLimitationMax;
2007
- type PriceSource = io.flow.common.v0.models.PriceSourcePriceBook | io.flow.common.v0.models.PriceSourceCatalog | io.flow.common.v0.models.PriceSourceProvided;
2008
- type RepeatSchedule = io.flow.common.v0.models.RepeatHourly | io.flow.common.v0.models.RepeatDaily | io.flow.common.v0.models.RepeatWeekly | io.flow.common.v0.models.RepeatMonthly;
2009
- }
2010
- declare namespace io.flow.token.v0.models {
2011
- interface ChannelToken {
2012
- readonly discriminator: 'channel_token';
2013
- readonly id: string;
2014
- readonly channel: io.flow.common.v0.models.ChannelReference;
2015
- readonly user: io.flow.common.v0.models.UserReference;
2016
- readonly partial: string;
2017
- readonly cleartext?: string;
2018
- readonly created_at: string;
2019
- readonly description?: string;
2020
- }
2021
- interface ChannelTokenForm {
2022
- readonly channel_id: string;
2023
- readonly description?: string;
2024
- }
2025
- interface ChannelTokenReference {
2026
- readonly discriminator: 'channel_token_reference';
2027
- readonly id: string;
2028
- readonly channel: io.flow.common.v0.models.ChannelReference;
2029
- readonly user: io.flow.common.v0.models.UserReference;
2030
- }
2031
- interface Cleartext {
2032
- readonly value: string;
2033
- }
2034
- interface OrganizationToken {
2035
- readonly discriminator: 'organization_token';
2036
- readonly id: string;
2037
- readonly organization: io.flow.common.v0.models.OrganizationReference;
2038
- readonly user: io.flow.common.v0.models.UserReference;
2039
- readonly environment: io.flow.common.v0.enums.Environment;
2040
- readonly partial: string;
2041
- readonly created_at: string;
2042
- readonly description?: string;
2043
- }
2044
- interface OrganizationTokenForm {
2045
- readonly environment: io.flow.common.v0.enums.Environment;
2046
- readonly description?: string;
2047
- }
2048
- interface OrganizationTokenFormV2 {
2049
- readonly organization_id: string;
2050
- readonly description?: string;
2051
- }
2052
- interface OrganizationTokenReference {
2053
- readonly discriminator: 'organization_token_reference';
2054
- readonly id: string;
2055
- readonly organization: io.flow.common.v0.models.OrganizationReference;
2056
- readonly environment: io.flow.common.v0.enums.Environment;
2057
- readonly user: io.flow.common.v0.models.UserReference;
2058
- }
2059
- interface OrganizationTokenV2 {
2060
- readonly discriminator: 'organization_token_v2';
2061
- readonly id: string;
2062
- readonly organization: io.flow.common.v0.models.OrganizationReference;
2063
- readonly user: io.flow.common.v0.models.UserReference;
2064
- readonly partial: string;
2065
- readonly cleartext?: string;
2066
- readonly created_at: string;
2067
- readonly description?: string;
2068
- }
2069
- interface OrganizationTokenV2Reference {
2070
- readonly discriminator: 'organization_token_v2_reference';
2071
- readonly id: string;
2072
- readonly organization: io.flow.common.v0.models.OrganizationReference;
2073
- }
2074
- interface PartnerToken {
2075
- readonly discriminator: 'partner_token';
2076
- readonly id: string;
2077
- readonly partner: io.flow.token.v0.models.TokenPartnerReference;
2078
- readonly user: io.flow.common.v0.models.UserReference;
2079
- readonly environment: io.flow.common.v0.enums.Environment;
2080
- readonly partial: string;
2081
- readonly created_at: string;
2082
- readonly description?: string;
2083
- }
2084
- interface PartnerTokenForm {
2085
- readonly environment: io.flow.common.v0.enums.Environment;
2086
- readonly description?: string;
2087
- }
2088
- interface PartnerTokenReference {
2089
- readonly discriminator: 'partner_token_reference';
2090
- readonly id: string;
2091
- readonly partner: io.flow.token.v0.models.TokenPartnerReference;
2092
- readonly environment: io.flow.common.v0.enums.Environment;
2093
- readonly user: io.flow.common.v0.models.UserReference;
2094
- }
2095
- interface TokenAuthenticationForm {
2096
- readonly token: string;
2097
- }
2098
- interface TokenPartnerReference {
2099
- readonly id: string;
2100
- }
2101
- interface TokenRbacAuthenticationForm {
2102
- readonly token: string;
2103
- readonly method: string;
2104
- readonly path_pattern: string;
2105
- readonly path: string;
2106
- }
2107
- interface TokenValidation {
2108
- readonly status: string;
2109
- }
2110
- interface TokenValidationForm {
2111
- readonly token: string;
2112
- }
2113
- }
2114
- declare namespace io.flow.token.v0.unions {
2115
- type Token = io.flow.token.v0.models.ChannelToken | io.flow.token.v0.models.OrganizationToken | io.flow.token.v0.models.OrganizationTokenV2 | io.flow.token.v0.models.PartnerToken;
2116
- type TokenReference = io.flow.token.v0.models.ChannelTokenReference | io.flow.token.v0.models.OrganizationTokenReference | io.flow.token.v0.models.OrganizationTokenV2Reference | io.flow.token.v0.models.PartnerTokenReference;
2117
- }
2118
- declare namespace io.flow.error.v0.enums {
2119
- type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
2120
- }
2121
- declare namespace io.flow.error.v0.models {
2122
- interface GenericError {
2123
- readonly code: io.flow.error.v0.enums.GenericErrorCode;
2124
- readonly messages: string[];
2125
- }
2126
- }
2127
- declare namespace io.flow.token.internal.v0.models {
2128
- interface ChannelTokenForm {
2129
- readonly channel_id: string;
2130
- readonly description?: string;
2131
- }
2132
- }
2133
1584
  declare namespace io.flow.apple.pay.v0.enums {
2134
1585
  type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
2135
1586
  type ApplePayLineItemType = 'final' | 'pending';
@@ -2219,6 +1670,7 @@ declare namespace io.flow.v0.enums {
2219
1670
  type CardType = 'american_express' | 'cartes_bancaires' | 'china_union_pay' | 'dankort' | 'diners_club' | 'discover' | 'jcb' | 'maestro' | 'mastercard' | 'visa';
2220
1671
  type CenterCapability = 'international' | 'domestic' | 'crossdock' | 'commercial_invoice';
2221
1672
  type ChangeType = 'insert' | 'update' | 'delete';
1673
+ type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
2222
1674
  type ConsumerInvoiceCustomerType = 'business_eu_verified' | 'business_non_verified' | 'individual';
2223
1675
  type ConsumerInvoiceDocumentType = 'pdf';
2224
1676
  type ConsumerInvoiceStatus = 'pending' | 'available' | 'invalid';
@@ -2253,7 +1705,7 @@ declare namespace io.flow.v0.enums {
2253
1705
  type ExperienceStatus = 'draft' | 'active' | 'archiving' | 'archived';
2254
1706
  type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
2255
1707
  type ExporterOfRecord = 'flow' | 'organization';
2256
- type FeeDeductionType = 'mor' | 'fx' | 'processing' | 'rate_lock' | 'duty_guarantee' | 'revenue_share' | 'transfer';
1708
+ type FeeDeductionType = 'duty_guarantee' | 'mor' | 'fraud' | 'fx' | 'processing' | 'rate_lock' | 'transfer';
2257
1709
  type FlowBehavior = 'view_consumer_data';
2258
1710
  type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
2259
1711
  type FlowRole = 'organization_admin' | 'organization_merchant' | 'organization_customer_service' | 'organization_fulfillment' | 'organization_marketing' | 'organization_finance' | 'flow_operations' | 'channel_admin' | 'channel_organization_admin';
@@ -2289,7 +1741,7 @@ declare namespace io.flow.v0.enums {
2289
1741
  type MerchantGiftCardErrorCode = 'invalid' | 'expired' | 'empty' | 'insufficient_funds' | 'unsupported_currency';
2290
1742
  type MerchantOfRecord = 'flow' | 'organization';
2291
1743
  type Method = 'post';
2292
- type OnboardingTradeSector = 'apparel' | 'accessories' | 'arts_and_entertainment' | 'animals_and_pet_supplies' | 'baby_and_toddler' | 'business_and_industrial' | 'camera_and_optics' | 'electronics' | 'furniture' | 'food_beverages_and_tobacco' | 'health_and_beauty' | 'home_and_garden' | 'hardware' | 'jewelry' | 'luggage_and_bags' | 'media' | 'office_supplies' | 'sporting_goods' | 'toys_and_games' | 'vehicles_and_parts' | 'paper_and_art' | 'sports_and_fitness' | 'toys_hobbies_gifts' | 'other';
1744
+ type OnboardingTradeSector = 'accessories' | 'animals_and_pet_supplies' | 'apparel' | 'apparel_and_accessories' | 'arts_and_entertainment' | 'baby_and_toddler' | 'business_and_industrial' | 'cameras_and_optics' | 'electronics' | 'food_beverages_and_tobacco' | 'furniture' | 'gift_cards' | 'hardware' | 'health_and_beauty' | 'home_and_garden' | 'jewelry' | 'luggage_and_bags' | 'mature' | 'media' | 'office_supplies' | 'paper_and_art' | 'religious_and_ceremonial' | 'software' | 'sporting_goods' | 'sports_and_fitness' | 'toys_and_games' | 'toys_hobbies_gifts' | 'vehicles_and_parts' | 'other';
2293
1745
  type OptinResponseType = 'not_shown' | 'opted_in' | 'opted_out';
2294
1746
  type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
2295
1747
  type OrderErrorCode = 'generic_error' | 'order_item_not_available' | 'order_identifier_error' | 'authorization_invalid' | 'domestic_shipping_unavailable' | 'shipping_unavailable' | 'value_threshold_exceeded' | 'invalid_currency' | 'invalid_country' | 'invalid_region' | 'invalid_language' | 'item_out_of_stock' | 'gift_card_not_accepted' | 'total_changed';
@@ -2373,7 +1825,7 @@ declare namespace io.flow.v0.enums {
2373
1825
  type TrackingStatus = 'label_created' | 'pending' | 'info_received' | 'picked_up' | 'in_transit' | 'out_for_delivery' | 'attempt_fail' | 'delivered' | 'exception' | 'returned' | 'expired';
2374
1826
  type TradeAgreementName = 'USMCA' | 'T-MEC' | 'CUSMA' | 'TCA';
2375
1827
  type TradeAgreementStatus = 'supported' | 'not_supported';
2376
- type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'shipping_label';
1828
+ type TransactionSource = 'capture' | 'refund' | 'dispute' | 'adjustment' | 'shipping_label' | 'platform_fee' | 'other_adjustment' | 'tax_adjustment' | 'channel' | 'order' | 'virtual_card_capture' | 'virtual_card_refund';
2377
1829
  type UnitOfMeasurement = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'cubic_inch' | 'cubic_meter' | 'gram' | 'kilogram' | 'meter' | 'ounce' | 'pound';
2378
1830
  type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
2379
1831
  type UpdatePolicy = 'auto' | 'queue' | 'discard';
@@ -3490,12 +2942,24 @@ declare namespace io.flow.v0.models {
3490
2942
  readonly type: io.flow.v0.enums.ChangeType;
3491
2943
  readonly center: io.flow.v0.models.Center;
3492
2944
  }
2945
+ interface Channel {
2946
+ readonly id: string;
2947
+ readonly name: string;
2948
+ readonly environment: io.flow.v0.enums.Environment;
2949
+ readonly organization_id_prefix?: string;
2950
+ }
3493
2951
  interface ChannelAuthorization {
3494
2952
  readonly placeholder?: string;
3495
2953
  }
3496
2954
  interface ChannelAuthorizationForm {
3497
2955
  readonly channel_id: string;
3498
2956
  }
2957
+ interface ChannelCurrency {
2958
+ readonly id: string;
2959
+ readonly currency: string;
2960
+ readonly channel: io.flow.v0.models.ChannelReference;
2961
+ readonly capabilities: io.flow.v0.enums.ChannelCurrencyCapability[];
2962
+ }
3499
2963
  interface ChannelCurrencyDeleted {
3500
2964
  readonly discriminator: 'channel_currency_deleted';
3501
2965
  readonly event_id: string;
@@ -3506,7 +2970,7 @@ declare namespace io.flow.v0.models {
3506
2970
  readonly discriminator: 'channel_currency_upserted';
3507
2971
  readonly event_id: string;
3508
2972
  readonly timestamp: string;
3509
- readonly channel_currency: io.flow.channel.internal.v0.models.ChannelCurrency;
2973
+ readonly channel_currency: io.flow.v0.models.ChannelCurrency;
3510
2974
  }
3511
2975
  interface ChannelDeleted {
3512
2976
  readonly discriminator: 'channel_deleted';
@@ -3586,7 +3050,7 @@ declare namespace io.flow.v0.models {
3586
3050
  readonly discriminator: 'channel_upserted';
3587
3051
  readonly event_id: string;
3588
3052
  readonly timestamp: string;
3589
- readonly channel: io.flow.channel.internal.v0.models.Channel;
3053
+ readonly channel: io.flow.v0.models.Channel;
3590
3054
  }
3591
3055
  interface ChannelViesRegistration {
3592
3056
  readonly id: string;
@@ -6159,8 +5623,8 @@ declare namespace io.flow.v0.models {
6159
5623
  interface MerchantInfo {
6160
5624
  readonly legal_name?: string;
6161
5625
  readonly country: string;
6162
- readonly region: io.flow.v0.enums.RegionType;
6163
- readonly region_value: string;
5626
+ readonly region?: io.flow.v0.enums.RegionType;
5627
+ readonly region_value?: string;
6164
5628
  }
6165
5629
  interface MerchantOfRecordAuthorizationForm {
6166
5630
  readonly discriminator: 'merchant_of_record_authorization_form';
@@ -6201,6 +5665,14 @@ declare namespace io.flow.v0.models {
6201
5665
  readonly amount: number;
6202
5666
  readonly currency: string;
6203
5667
  }
5668
+ interface MerchantOnboardingAddress {
5669
+ readonly full_name?: string;
5670
+ readonly streets?: string[];
5671
+ readonly city?: string;
5672
+ readonly province?: string;
5673
+ readonly postal?: string;
5674
+ readonly country?: string;
5675
+ }
6204
5676
  interface Money {
6205
5677
  readonly amount: number;
6206
5678
  readonly currency: string;
@@ -6259,6 +5731,20 @@ declare namespace io.flow.v0.models {
6259
5731
  readonly min: number;
6260
5732
  readonly max: number;
6261
5733
  }
5734
+ interface OnboardingMerchantPickupWindow {
5735
+ readonly from: io.flow.v0.models.OnboardingMerchantTime;
5736
+ readonly to: io.flow.v0.models.OnboardingMerchantTime;
5737
+ }
5738
+ interface OnboardingMerchantScheduledPickup {
5739
+ readonly day_of_week: io.flow.v0.enums.DayOfWeek;
5740
+ readonly window: io.flow.v0.models.OnboardingMerchantPickupWindow;
5741
+ readonly instructions?: string;
5742
+ }
5743
+ interface OnboardingMerchantTime {
5744
+ readonly hour_of_day: string;
5745
+ readonly minute_of_hour: string;
5746
+ readonly timezone?: string;
5747
+ }
6262
5748
  interface OnlineAuthorization {
6263
5749
  readonly discriminator: 'online_authorization';
6264
5750
  readonly id: string;
@@ -9301,6 +8787,7 @@ declare namespace io.flow.v0.models {
9301
8787
  interface ShopifyMerchantApplication {
9302
8788
  readonly discriminator: 'shopify_merchant_application';
9303
8789
  readonly id: string;
8790
+ readonly organization_id: string;
9304
8791
  readonly company?: io.flow.v0.models.MerchantInfo;
9305
8792
  readonly indirect_tax_number?: string;
9306
8793
  readonly parent_company?: io.flow.v0.models.MerchantInfo;
@@ -9769,17 +9256,12 @@ declare namespace io.flow.v0.models {
9769
9256
  readonly email_recipients?: string[];
9770
9257
  }
9771
9258
  interface ThirdPartyLogisticsPartner {
9772
- readonly warehouse_address: io.flow.v0.models.BillingAddress;
9259
+ readonly warehouse_address: io.flow.v0.models.MerchantOnboardingAddress;
9773
9260
  readonly warehouse_url?: string;
9774
- readonly third_party_logistics_pick_up_time_window?: io.flow.v0.models.ThirdPartyLogisticsPickUpTimeWindow;
9775
- readonly pickup_location?: io.flow.v0.models.BillingAddress;
9776
- readonly pickup_instructions?: string;
9261
+ readonly location?: io.flow.v0.models.MerchantOnboardingAddress;
9262
+ readonly scheduled_pickups?: io.flow.v0.models.OnboardingMerchantScheduledPickup[];
9777
9263
  readonly operations_contact: io.flow.v0.models.OperationsContact;
9778
9264
  }
9779
- interface ThirdPartyLogisticsPickUpTimeWindow {
9780
- readonly from: string;
9781
- readonly to: string;
9782
- }
9783
9265
  interface ThreeDSecure {
9784
9266
  readonly code: io.flow.v0.enums.ThreeDSecureCode;
9785
9267
  readonly description?: string;
@@ -10583,8 +10065,11 @@ export declare type CenterSummary = io.flow.v0.models.CenterSummary;
10583
10065
  export declare type CenterUpserted = io.flow.v0.models.CenterUpserted;
10584
10066
  export declare type CenterVersion = io.flow.v0.models.CenterVersion;
10585
10067
  export declare type ChangeType = io.flow.v0.enums.ChangeType;
10068
+ export declare type Channel = io.flow.v0.models.Channel;
10586
10069
  export declare type ChannelAuthorization = io.flow.v0.models.ChannelAuthorization;
10587
10070
  export declare type ChannelAuthorizationForm = io.flow.v0.models.ChannelAuthorizationForm;
10071
+ export declare type ChannelCurrency = io.flow.v0.models.ChannelCurrency;
10072
+ export declare type ChannelCurrencyCapability = io.flow.v0.enums.ChannelCurrencyCapability;
10588
10073
  export declare type ChannelCurrencyDeleted = io.flow.v0.models.ChannelCurrencyDeleted;
10589
10074
  export declare type ChannelCurrencyUpserted = io.flow.v0.models.ChannelCurrencyUpserted;
10590
10075
  export declare type ChannelDeleted = io.flow.v0.models.ChannelDeleted;
@@ -11138,6 +10623,7 @@ export declare type MerchantOfRecordAuthorizationForm = io.flow.v0.models.Mercha
11138
10623
  export declare type MerchantOfRecordEntity = io.flow.v0.models.MerchantOfRecordEntity;
11139
10624
  export declare type MerchantOfRecordEntityRegistration = io.flow.v0.models.MerchantOfRecordEntityRegistration;
11140
10625
  export declare type MerchantOfRecordPaymentForm = io.flow.v0.models.MerchantOfRecordPaymentForm;
10626
+ export declare type MerchantOnboardingAddress = io.flow.v0.models.MerchantOnboardingAddress;
11141
10627
  export declare type Method = io.flow.v0.enums.Method;
11142
10628
  export declare type Money = io.flow.v0.models.Money;
11143
10629
  export declare type MoneyWithBase = io.flow.v0.models.MoneyWithBase;
@@ -11151,6 +10637,9 @@ export declare type NoInventoryReservationErrorItem = io.flow.v0.models.NoInvent
11151
10637
  export declare type NotificationDeletedV2 = io.flow.v0.models.NotificationDeletedV2;
11152
10638
  export declare type NotificationUpsertedV2 = io.flow.v0.models.NotificationUpsertedV2;
11153
10639
  export declare type NumberRange = io.flow.v0.models.NumberRange;
10640
+ export declare type OnboardingMerchantPickupWindow = io.flow.v0.models.OnboardingMerchantPickupWindow;
10641
+ export declare type OnboardingMerchantScheduledPickup = io.flow.v0.models.OnboardingMerchantScheduledPickup;
10642
+ export declare type OnboardingMerchantTime = io.flow.v0.models.OnboardingMerchantTime;
11154
10643
  export declare type OnboardingTradeSector = io.flow.v0.enums.OnboardingTradeSector;
11155
10644
  export declare type OnlineAuthorization = io.flow.v0.models.OnlineAuthorization;
11156
10645
  export declare type OnlineAuthorizationDeletedV2 = io.flow.v0.models.OnlineAuthorizationDeletedV2;
@@ -11831,7 +11320,6 @@ export declare type TaxVerificationResult = io.flow.v0.enums.TaxVerificationResu
11831
11320
  export declare type TaxabilityType = io.flow.v0.enums.TaxabilityType;
11832
11321
  export declare type TaxabilityValue = io.flow.v0.enums.TaxabilityValue;
11833
11322
  export declare type ThirdPartyLogisticsPartner = io.flow.v0.models.ThirdPartyLogisticsPartner;
11834
- export declare type ThirdPartyLogisticsPickUpTimeWindow = io.flow.v0.models.ThirdPartyLogisticsPickUpTimeWindow;
11835
11323
  export declare type ThreeDSecure = io.flow.v0.models.ThreeDSecure;
11836
11324
  export declare type ThreeDSecureCode = io.flow.v0.enums.ThreeDSecureCode;
11837
11325
  export declare type ThreedsChallengeAction = io.flow.v0.unions.ThreedsChallengeAction;