flowcommerce 0.1.13 → 0.1.14
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.
- checksums.yaml +4 -4
- data/lib/flow_commerce/flow_api_v0_client.rb +370 -44
- metadata +9 -9
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 12119d978f2deee70dc8299d5cd954452c038316
         | 
| 4 | 
            +
              data.tar.gz: 446ca57c544600bddc38db355f8ddac6cdd4feab
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4f8c92863bfb7e0f974d648c599ec475b38711580879d457e3c80bd7532af2a6e9186d38920065e59253dcb4811ecaf966b6c857105c005adec76fe1fd2f2b5a
         | 
| 7 | 
            +
              data.tar.gz: 74d351ba4cf1b6156d019150c8377dc13678443e462d16f0cbaed4d328ea1e0b1e971de4722f4d88462c6319293a4a4d28c2b129bde7e00fdd2c36a17515f915
         | 
| @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            # Generated by apidoc - http://www.apidoc.me
         | 
| 2 | 
            -
            # Service version: 0.2. | 
| 3 | 
            -
            # apidoc:0.11. | 
| 2 | 
            +
            # Service version: 0.2.50
         | 
| 3 | 
            +
            # apidoc:0.11.52 http://www.apidoc.me/flow/api/0.2.49/ruby_client
         | 
| 4 4 |  | 
| 5 5 | 
             
            require 'cgi'
         | 
| 6 6 | 
             
            require 'net/http'
         | 
| @@ -25,8 +25,8 @@ module Io | |
| 25 25 |  | 
| 26 26 | 
             
                      BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
         | 
| 27 27 | 
             
                      NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
         | 
| 28 | 
            -
                      USER_AGENT = 'apidoc:0.11. | 
| 29 | 
            -
                      VERSION = '0.2. | 
| 28 | 
            +
                      USER_AGENT = 'apidoc:0.11.52 http://www.apidoc.me/flow/api/0.2.49/ruby_client' unless defined?(Constants::USER_AGENT)
         | 
| 29 | 
            +
                      VERSION = '0.2.50' unless defined?(Constants::VERSION)
         | 
| 30 30 | 
             
                      VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
         | 
| 31 31 |  | 
| 32 32 | 
             
                    end
         | 
| @@ -93,6 +93,10 @@ module Io | |
| 93 93 | 
             
                      @order_estimates ||= ::Io::Flow::V0::Clients::OrderEstimates.new(self)
         | 
| 94 94 | 
             
                    end
         | 
| 95 95 |  | 
| 96 | 
            +
                    def order_identifiers
         | 
| 97 | 
            +
                      @order_identifiers ||= ::Io::Flow::V0::Clients::OrderIdentifiers.new(self)
         | 
| 98 | 
            +
                    end
         | 
| 99 | 
            +
             | 
| 96 100 | 
             
                    def organizations
         | 
| 97 101 | 
             
                      @organizations ||= ::Io::Flow::V0::Clients::Organizations.new(self)
         | 
| 98 102 | 
             
                    end
         | 
| @@ -822,6 +826,7 @@ module Io | |
| 822 826 | 
             
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 823 827 | 
             
                        query = {
         | 
| 824 828 | 
             
                          :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
         | 
| 829 | 
            +
                          :identifier => (x = opts.delete(:identifier); x.nil? ? nil : HttpClient::Preconditions.assert_class('identifier', x, Array).map { |v| HttpClient::Preconditions.assert_class('identifier', v, String) }),
         | 
| 825 830 | 
             
                          :number => (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, Array).map { |v| HttpClient::Preconditions.assert_class('number', v, String) }),
         | 
| 826 831 | 
             
                          :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
         | 
| 827 832 | 
             
                          :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
         | 
| @@ -897,6 +902,14 @@ module Io | |
| 897 902 | 
             
                        ::Io::Flow::V0::Models::Order.new(r)
         | 
| 898 903 | 
             
                      end
         | 
| 899 904 |  | 
| 905 | 
            +
                      # Returns information about a specific order using an identifier number
         | 
| 906 | 
            +
                      def get_identifier_by_identifier_number(organization, identifier_number)
         | 
| 907 | 
            +
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| 908 | 
            +
                        HttpClient::Preconditions.assert_class('identifier_number', identifier_number, String)
         | 
| 909 | 
            +
                        r = @client.request("/#{CGI.escape(organization)}/orders/identifier/#{CGI.escape(identifier_number)}").get
         | 
| 910 | 
            +
                        ::Io::Flow::V0::Models::Order.new(r)
         | 
| 911 | 
            +
                      end
         | 
| 912 | 
            +
             | 
| 900 913 | 
             
                      # Provides visibility into recent changes of each order, including deletion
         | 
| 901 914 | 
             
                      def get_versions(organization, incoming={})
         | 
| 902 915 | 
             
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| @@ -964,6 +977,65 @@ module Io | |
| 964 977 |  | 
| 965 978 | 
             
                    end
         | 
| 966 979 |  | 
| 980 | 
            +
                    class OrderIdentifiers
         | 
| 981 | 
            +
             | 
| 982 | 
            +
                      def initialize(client)
         | 
| 983 | 
            +
                        @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::V0::Client)
         | 
| 984 | 
            +
                      end
         | 
| 985 | 
            +
             | 
| 986 | 
            +
                      def get(organization, incoming={})
         | 
| 987 | 
            +
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| 988 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 989 | 
            +
                        query = {
         | 
| 990 | 
            +
                          :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
         | 
| 991 | 
            +
                          :number => (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, Array).map { |v| HttpClient::Preconditions.assert_class('number', v, String) }),
         | 
| 992 | 
            +
                          :order_number => (x = opts.delete(:order_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('order_number', x, Array).map { |v| HttpClient::Preconditions.assert_class('order_number', v, String) }),
         | 
| 993 | 
            +
                          :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
         | 
| 994 | 
            +
                          :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
         | 
| 995 | 
            +
                          :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "-created_at" : x), String)
         | 
| 996 | 
            +
                        }.delete_if { |k, v| v.nil? }
         | 
| 997 | 
            +
                        r = @client.request("/#{CGI.escape(organization)}/order-identifiers").with_query(query).get
         | 
| 998 | 
            +
                        r.map { |x| ::Io::Flow::V0::Models::OrderIdentifier.new(x) }
         | 
| 999 | 
            +
                      end
         | 
| 1000 | 
            +
             | 
| 1001 | 
            +
                      def post(organization, order_identifier_form)
         | 
| 1002 | 
            +
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| 1003 | 
            +
                        HttpClient::Preconditions.assert_class('order_identifier_form', order_identifier_form, ::Io::Flow::V0::Models::OrderIdentifierForm)
         | 
| 1004 | 
            +
                        r = @client.request("/#{CGI.escape(organization)}/order-identifiers").with_json(order_identifier_form.to_json).post
         | 
| 1005 | 
            +
                        ::Io::Flow::V0::Models::OrderIdentifier.new(r)
         | 
| 1006 | 
            +
                      end
         | 
| 1007 | 
            +
             | 
| 1008 | 
            +
                      def get_by_number(organization, number)
         | 
| 1009 | 
            +
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| 1010 | 
            +
                        HttpClient::Preconditions.assert_class('number', number, String)
         | 
| 1011 | 
            +
                        r = @client.request("/#{CGI.escape(organization)}/order-identifiers/#{CGI.escape(number)}").get
         | 
| 1012 | 
            +
                        ::Io::Flow::V0::Models::OrderIdentifier.new(r)
         | 
| 1013 | 
            +
                      end
         | 
| 1014 | 
            +
             | 
| 1015 | 
            +
                      def delete_by_number(organization, number)
         | 
| 1016 | 
            +
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| 1017 | 
            +
                        HttpClient::Preconditions.assert_class('number', number, String)
         | 
| 1018 | 
            +
                        r = @client.request("/#{CGI.escape(organization)}/order-identifiers/#{CGI.escape(number)}").delete
         | 
| 1019 | 
            +
                        nil
         | 
| 1020 | 
            +
                      end
         | 
| 1021 | 
            +
             | 
| 1022 | 
            +
                      def get_versions(organization, incoming={})
         | 
| 1023 | 
            +
                        HttpClient::Preconditions.assert_class('organization', organization, String)
         | 
| 1024 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 1025 | 
            +
                        query = {
         | 
| 1026 | 
            +
                          :id => (x = opts.delete(:id); x.nil? ? nil : HttpClient::Preconditions.assert_class('id', x, Array).map { |v| HttpClient::Preconditions.assert_class('id', v, String) }),
         | 
| 1027 | 
            +
                          :number => (x = opts.delete(:number); x.nil? ? nil : HttpClient::Preconditions.assert_class('number', x, Array).map { |v| HttpClient::Preconditions.assert_class('number', v, String) }),
         | 
| 1028 | 
            +
                          :order_number => (x = opts.delete(:order_number); x.nil? ? nil : HttpClient::Preconditions.assert_class('order_number', x, Array).map { |v| HttpClient::Preconditions.assert_class('order_number', v, String) }),
         | 
| 1029 | 
            +
                          :limit => HttpClient::Preconditions.assert_class('limit', (x = opts.delete(:limit); x.nil? ? 25 : x), Integer),
         | 
| 1030 | 
            +
                          :offset => HttpClient::Preconditions.assert_class('offset', (x = opts.delete(:offset); x.nil? ? 0 : x), Integer),
         | 
| 1031 | 
            +
                          :sort => HttpClient::Preconditions.assert_class('sort', (x = opts.delete(:sort); x.nil? ? "journal_timestamp" : x), String)
         | 
| 1032 | 
            +
                        }.delete_if { |k, v| v.nil? }
         | 
| 1033 | 
            +
                        r = @client.request("/#{CGI.escape(organization)}/order-identifiers/versions").with_query(query).get
         | 
| 1034 | 
            +
                        r.map { |x| ::Io::Flow::V0::Models::OrderIdentifierVersion.new(x) }
         | 
| 1035 | 
            +
                      end
         | 
| 1036 | 
            +
             | 
| 1037 | 
            +
                    end
         | 
| 1038 | 
            +
             | 
| 967 1039 | 
             
                    class Organizations
         | 
| 968 1040 |  | 
| 969 1041 | 
             
                      def initialize(client)
         | 
| @@ -4168,6 +4240,8 @@ module Io | |
| 4168 4240 | 
             
                        ITEM_ORIGIN_DELETED = 'item_origin_deleted' unless defined?(ITEM_ORIGIN_DELETED)
         | 
| 4169 4241 | 
             
                        HARMONIZED_ITEM_UPSERTED = 'harmonized_item_upserted' unless defined?(HARMONIZED_ITEM_UPSERTED)
         | 
| 4170 4242 | 
             
                        HARMONIZED_ITEM_DELETED = 'harmonized_item_deleted' unless defined?(HARMONIZED_ITEM_DELETED)
         | 
| 4243 | 
            +
                        SNAPSHOT_UPSERTED = 'snapshot_upserted' unless defined?(SNAPSHOT_UPSERTED)
         | 
| 4244 | 
            +
                        SNAPSHOT_DELETED = 'snapshot_deleted' unless defined?(SNAPSHOT_DELETED)
         | 
| 4171 4245 | 
             
                        LABEL_UPSERTED = 'label_upserted' unless defined?(LABEL_UPSERTED)
         | 
| 4172 4246 | 
             
                        NOTIFICATION_UPSERTED = 'notification_upserted' unless defined?(NOTIFICATION_UPSERTED)
         | 
| 4173 4247 | 
             
                        NOTIFICATION_DELETED = 'notification_deleted' unless defined?(NOTIFICATION_DELETED)
         | 
| @@ -4198,7 +4272,7 @@ module Io | |
| 4198 4272 | 
             
                      end
         | 
| 4199 4273 |  | 
| 4200 4274 | 
             
                      def subtype_to_hash
         | 
| 4201 | 
            -
                        raise 'Cannot serialize an instance of event directly - must use one of the specific types: catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, label_upserted, notification_upserted, notification_deleted, rma_upserted, rma_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
         | 
| 4275 | 
            +
                        raise 'Cannot serialize an instance of event directly - must use one of the specific types: catalog_upserted, catalog_deleted, subcatalog_upserted, subcatalog_deleted, catalog_item_upserted, catalog_item_deleted, subcatalog_item_upserted, subcatalog_item_deleted, rate_deleted, rate_upserted, experience_deleted, experience_upserted, item_margin_deleted, item_margin_upserted, label_format_deleted, label_format_upserted, order_deleted, order_upserted, hs6_code_upserted, hs6_code_deleted, hs10_code_upserted, hs10_code_deleted, item_origin_upserted, item_origin_deleted, harmonized_item_upserted, harmonized_item_deleted, snapshot_upserted, snapshot_deleted, label_upserted, notification_upserted, notification_deleted, rma_upserted, rma_deleted, localized_item_upserted, localized_item_deleted, localized_item_snapshot, organization_upserted, organization_deleted, authorization_upserted, authorization_deleted, capture_upserted, card_upserted, card_deleted, refund_upserted, targeting_item_upserted, targeting_item_deleted, tracking_label_event_upserted'
         | 
| 4202 4276 | 
             
                      end
         | 
| 4203 4277 |  | 
| 4204 4278 | 
             
                      def to_hash
         | 
| @@ -4238,6 +4312,8 @@ module Io | |
| 4238 4312 | 
             
                          when Types::ITEM_ORIGIN_DELETED; ItemOriginDeleted.new(hash)
         | 
| 4239 4313 | 
             
                          when Types::HARMONIZED_ITEM_UPSERTED; HarmonizedItemUpserted.new(hash)
         | 
| 4240 4314 | 
             
                          when Types::HARMONIZED_ITEM_DELETED; HarmonizedItemDeleted.new(hash)
         | 
| 4315 | 
            +
                          when Types::SNAPSHOT_UPSERTED; SnapshotUpserted.new(hash)
         | 
| 4316 | 
            +
                          when Types::SNAPSHOT_DELETED; SnapshotDeleted.new(hash)
         | 
| 4241 4317 | 
             
                          when Types::LABEL_UPSERTED; LabelUpserted.new(hash)
         | 
| 4242 4318 | 
             
                          when Types::NOTIFICATION_UPSERTED; NotificationUpserted.new(hash)
         | 
| 4243 4319 | 
             
                          when Types::NOTIFICATION_DELETED; NotificationDeleted.new(hash)
         | 
| @@ -5878,7 +5954,7 @@ module Io | |
| 5878 5954 | 
             
                      end
         | 
| 5879 5955 |  | 
| 5880 5956 | 
             
                      def EventType.ALL
         | 
| 5881 | 
            -
                        @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.rate_deleted, EventType.rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.rma_upserted, EventType.rma_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
         | 
| 5957 | 
            +
                        @@all ||= [EventType.catalog_upserted, EventType.catalog_deleted, EventType.subcatalog_upserted, EventType.subcatalog_deleted, EventType.catalog_item_upserted, EventType.catalog_item_deleted, EventType.subcatalog_item_upserted, EventType.subcatalog_item_deleted, EventType.rate_deleted, EventType.rate_upserted, EventType.experience_deleted, EventType.experience_upserted, EventType.item_margin_deleted, EventType.item_margin_upserted, EventType.label_format_deleted, EventType.label_format_upserted, EventType.order_deleted, EventType.order_upserted, EventType.hs6_code_upserted, EventType.hs6_code_deleted, EventType.hs10_code_upserted, EventType.hs10_code_deleted, EventType.item_origin_upserted, EventType.item_origin_deleted, EventType.harmonized_item_upserted, EventType.harmonized_item_deleted, EventType.snapshot_upserted, EventType.snapshot_deleted, EventType.label_upserted, EventType.notification_upserted, EventType.notification_deleted, EventType.rma_upserted, EventType.rma_deleted, EventType.localized_item_upserted, EventType.localized_item_deleted, EventType.localized_item_snapshot, EventType.organization_upserted, EventType.organization_deleted, EventType.authorization_upserted, EventType.authorization_deleted, EventType.capture_upserted, EventType.card_upserted, EventType.card_deleted, EventType.refund_upserted, EventType.targeting_item_upserted, EventType.targeting_item_deleted, EventType.tracking_label_event_upserted]
         | 
| 5882 5958 | 
             
                      end
         | 
| 5883 5959 |  | 
| 5884 5960 | 
             
                      def EventType.catalog_upserted
         | 
| @@ -5985,6 +6061,14 @@ module Io | |
| 5985 6061 | 
             
                        @@_harmonized_item_deleted ||= EventType.new('harmonized_item_deleted')
         | 
| 5986 6062 | 
             
                      end
         | 
| 5987 6063 |  | 
| 6064 | 
            +
                      def EventType.snapshot_upserted
         | 
| 6065 | 
            +
                        @@_snapshot_upserted ||= EventType.new('snapshot_upserted')
         | 
| 6066 | 
            +
                      end
         | 
| 6067 | 
            +
             | 
| 6068 | 
            +
                      def EventType.snapshot_deleted
         | 
| 6069 | 
            +
                        @@_snapshot_deleted ||= EventType.new('snapshot_deleted')
         | 
| 6070 | 
            +
                      end
         | 
| 6071 | 
            +
             | 
| 5988 6072 | 
             
                      def EventType.label_upserted
         | 
| 5989 6073 | 
             
                        @@_label_upserted ||= EventType.new('label_upserted')
         | 
| 5990 6074 | 
             
                      end
         | 
| @@ -7113,6 +7197,49 @@ module Io | |
| 7113 7197 |  | 
| 7114 7198 | 
             
                    end
         | 
| 7115 7199 |  | 
| 7200 | 
            +
                    class QuoteErrorCode
         | 
| 7201 | 
            +
             | 
| 7202 | 
            +
                      attr_reader :value
         | 
| 7203 | 
            +
             | 
| 7204 | 
            +
                      def initialize(value)
         | 
| 7205 | 
            +
                        @value = HttpClient::Preconditions.assert_class('value', value, String)
         | 
| 7206 | 
            +
                      end
         | 
| 7207 | 
            +
             | 
| 7208 | 
            +
                      # Returns the instance of QuoteErrorCode for this value, creating a new instance for an unknown value
         | 
| 7209 | 
            +
                      def QuoteErrorCode.apply(value)
         | 
| 7210 | 
            +
                        if value.instance_of?(QuoteErrorCode)
         | 
| 7211 | 
            +
                          value
         | 
| 7212 | 
            +
                        else
         | 
| 7213 | 
            +
                          HttpClient::Preconditions.assert_class_or_nil('value', value, String)
         | 
| 7214 | 
            +
                          value.nil? ? nil : (from_string(value) || QuoteErrorCode.new(value))
         | 
| 7215 | 
            +
                        end
         | 
| 7216 | 
            +
                      end
         | 
| 7217 | 
            +
             | 
| 7218 | 
            +
                      # Returns the instance of QuoteErrorCode for this value, or nil if not found
         | 
| 7219 | 
            +
                      def QuoteErrorCode.from_string(value)
         | 
| 7220 | 
            +
                        HttpClient::Preconditions.assert_class('value', value, String)
         | 
| 7221 | 
            +
                        QuoteErrorCode.ALL.find { |v| v.value == value }
         | 
| 7222 | 
            +
                      end
         | 
| 7223 | 
            +
             | 
| 7224 | 
            +
                      def QuoteErrorCode.ALL
         | 
| 7225 | 
            +
                        @@all ||= [QuoteErrorCode.generic_error, QuoteErrorCode.items_not_available]
         | 
| 7226 | 
            +
                      end
         | 
| 7227 | 
            +
             | 
| 7228 | 
            +
                      def QuoteErrorCode.generic_error
         | 
| 7229 | 
            +
                        @@_generic_error ||= QuoteErrorCode.new('generic_error')
         | 
| 7230 | 
            +
                      end
         | 
| 7231 | 
            +
             | 
| 7232 | 
            +
                      # Item numbers are not available in inventory
         | 
| 7233 | 
            +
                      def QuoteErrorCode.items_not_available
         | 
| 7234 | 
            +
                        @@_items_not_available ||= QuoteErrorCode.new('items_not_available')
         | 
| 7235 | 
            +
                      end
         | 
| 7236 | 
            +
             | 
| 7237 | 
            +
                      def to_hash
         | 
| 7238 | 
            +
                        value
         | 
| 7239 | 
            +
                      end
         | 
| 7240 | 
            +
             | 
| 7241 | 
            +
                    end
         | 
| 7242 | 
            +
             | 
| 7116 7243 | 
             
                    class RefundDeclineCode
         | 
| 7117 7244 |  | 
| 7118 7245 | 
             
                      attr_reader :value
         | 
| @@ -10377,7 +10504,7 @@ module Io | |
| 10377 10504 | 
             
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 10378 10505 | 
             
                        HttpClient::Preconditions.require_keys(opts, [:id, :cost, :delivered_duty, :price, :service, :tier, :window], 'DeliveryOption')
         | 
| 10379 10506 | 
             
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 10380 | 
            -
                        @cost = (x = opts.delete(:cost); x.is_a?(::Io::Flow::V0::Models:: | 
| 10507 | 
            +
                        @cost = (x = opts.delete(:cost); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
         | 
| 10381 10508 | 
             
                        @delivered_duty = (x = opts.delete(:delivered_duty); x.is_a?(::Io::Flow::V0::Models::DeliveredDuty) ? x : ::Io::Flow::V0::Models::DeliveredDuty.apply(x))
         | 
| 10382 10509 | 
             
                        @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
         | 
| 10383 10510 | 
             
                        @service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x))
         | 
| @@ -15122,7 +15249,7 @@ module Io | |
| 15122 15249 | 
             
                    # payment authorization for an order.
         | 
| 15123 15250 | 
             
                    class Order
         | 
| 15124 15251 |  | 
| 15125 | 
            -
                      attr_reader :id, :number, :customer, :expires_at, :items, :destination, :deliveries, :selections, :prices, :total, :attributes, :submitted_at, :lines
         | 
| 15252 | 
            +
                      attr_reader :id, :number, :customer, :expires_at, :items, :destination, :deliveries, :selections, :prices, :total, :attributes, :submitted_at, :lines, :identifiers
         | 
| 15126 15253 |  | 
| 15127 15254 | 
             
                      def initialize(incoming={})
         | 
| 15128 15255 | 
             
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| @@ -15140,6 +15267,7 @@ module Io | |
| 15140 15267 | 
             
                        @attributes = HttpClient::Preconditions.assert_class('attributes', opts.delete(:attributes), Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h }
         | 
| 15141 15268 | 
             
                        @submitted_at = (x = opts.delete(:submitted_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('submitted_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
         | 
| 15142 15269 | 
             
                        @lines = (x = opts.delete(:lines); x.nil? ? nil : HttpClient::Preconditions.assert_class('lines', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Line) ? x : ::Io::Flow::V0::Models::Line.new(x)) })
         | 
| 15270 | 
            +
                        @identifiers = (x = opts.delete(:identifiers); x.nil? ? nil : HttpClient::Preconditions.assert_class('identifiers', x, Array).map { |v| HttpClient::Preconditions.assert_class('identifiers', v, String) })
         | 
| 15143 15271 | 
             
                      end
         | 
| 15144 15272 |  | 
| 15145 15273 | 
             
                      def to_json
         | 
| @@ -15164,7 +15292,8 @@ module Io | |
| 15164 15292 | 
             
                          :total => total.to_hash,
         | 
| 15165 15293 | 
             
                          :attributes => attributes,
         | 
| 15166 15294 | 
             
                          :submitted_at => submitted_at,
         | 
| 15167 | 
            -
                          :lines => lines.nil? ? nil : lines.map { |o| o.to_hash }
         | 
| 15295 | 
            +
                          :lines => lines.nil? ? nil : lines.map { |o| o.to_hash },
         | 
| 15296 | 
            +
                          :identifiers => identifiers.nil? ? nil : identifiers
         | 
| 15168 15297 | 
             
                        }
         | 
| 15169 15298 | 
             
                      end
         | 
| 15170 15299 |  | 
| @@ -15386,6 +15515,97 @@ module Io | |
| 15386 15515 |  | 
| 15387 15516 | 
             
                    end
         | 
| 15388 15517 |  | 
| 15518 | 
            +
                    # Represents alternate numbers with which to identify an order.
         | 
| 15519 | 
            +
                    class OrderIdentifier
         | 
| 15520 | 
            +
             | 
| 15521 | 
            +
                      attr_reader :id, :order, :number
         | 
| 15522 | 
            +
             | 
| 15523 | 
            +
                      def initialize(incoming={})
         | 
| 15524 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 15525 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:id, :order, :number], 'OrderIdentifier')
         | 
| 15526 | 
            +
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 15527 | 
            +
                        @order = (x = opts.delete(:order); x.is_a?(::Io::Flow::V0::Models::OrderReference) ? x : ::Io::Flow::V0::Models::OrderReference.new(x))
         | 
| 15528 | 
            +
                        @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
         | 
| 15529 | 
            +
                      end
         | 
| 15530 | 
            +
             | 
| 15531 | 
            +
                      def to_json
         | 
| 15532 | 
            +
                        JSON.dump(to_hash)
         | 
| 15533 | 
            +
                      end
         | 
| 15534 | 
            +
             | 
| 15535 | 
            +
                      def copy(incoming={})
         | 
| 15536 | 
            +
                        OrderIdentifier.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 15537 | 
            +
                      end
         | 
| 15538 | 
            +
             | 
| 15539 | 
            +
                      def to_hash
         | 
| 15540 | 
            +
                        {
         | 
| 15541 | 
            +
                          :id => id,
         | 
| 15542 | 
            +
                          :order => order.to_hash,
         | 
| 15543 | 
            +
                          :number => number
         | 
| 15544 | 
            +
                        }
         | 
| 15545 | 
            +
                      end
         | 
| 15546 | 
            +
             | 
| 15547 | 
            +
                    end
         | 
| 15548 | 
            +
             | 
| 15549 | 
            +
                    class OrderIdentifierForm
         | 
| 15550 | 
            +
             | 
| 15551 | 
            +
                      attr_reader :order, :number
         | 
| 15552 | 
            +
             | 
| 15553 | 
            +
                      def initialize(incoming={})
         | 
| 15554 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 15555 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:order, :number], 'OrderIdentifierForm')
         | 
| 15556 | 
            +
                        @order = HttpClient::Preconditions.assert_class('order', opts.delete(:order), String)
         | 
| 15557 | 
            +
                        @number = HttpClient::Preconditions.assert_class('number', opts.delete(:number), String)
         | 
| 15558 | 
            +
                      end
         | 
| 15559 | 
            +
             | 
| 15560 | 
            +
                      def to_json
         | 
| 15561 | 
            +
                        JSON.dump(to_hash)
         | 
| 15562 | 
            +
                      end
         | 
| 15563 | 
            +
             | 
| 15564 | 
            +
                      def copy(incoming={})
         | 
| 15565 | 
            +
                        OrderIdentifierForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 15566 | 
            +
                      end
         | 
| 15567 | 
            +
             | 
| 15568 | 
            +
                      def to_hash
         | 
| 15569 | 
            +
                        {
         | 
| 15570 | 
            +
                          :order => order,
         | 
| 15571 | 
            +
                          :number => number
         | 
| 15572 | 
            +
                        }
         | 
| 15573 | 
            +
                      end
         | 
| 15574 | 
            +
             | 
| 15575 | 
            +
                    end
         | 
| 15576 | 
            +
             | 
| 15577 | 
            +
                    class OrderIdentifierVersion
         | 
| 15578 | 
            +
             | 
| 15579 | 
            +
                      attr_reader :id, :timestamp, :type, :order_identifier
         | 
| 15580 | 
            +
             | 
| 15581 | 
            +
                      def initialize(incoming={})
         | 
| 15582 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 15583 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:id, :timestamp, :type, :order_identifier], 'OrderIdentifierVersion')
         | 
| 15584 | 
            +
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 15585 | 
            +
                        @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
         | 
| 15586 | 
            +
                        @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::ChangeType) ? x : ::Io::Flow::V0::Models::ChangeType.apply(x))
         | 
| 15587 | 
            +
                        @order_identifier = (x = opts.delete(:order_identifier); x.is_a?(::Io::Flow::V0::Models::OrderIdentifier) ? x : ::Io::Flow::V0::Models::OrderIdentifier.new(x))
         | 
| 15588 | 
            +
                      end
         | 
| 15589 | 
            +
             | 
| 15590 | 
            +
                      def to_json
         | 
| 15591 | 
            +
                        JSON.dump(to_hash)
         | 
| 15592 | 
            +
                      end
         | 
| 15593 | 
            +
             | 
| 15594 | 
            +
                      def copy(incoming={})
         | 
| 15595 | 
            +
                        OrderIdentifierVersion.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 15596 | 
            +
                      end
         | 
| 15597 | 
            +
             | 
| 15598 | 
            +
                      def to_hash
         | 
| 15599 | 
            +
                        {
         | 
| 15600 | 
            +
                          :id => id,
         | 
| 15601 | 
            +
                          :timestamp => timestamp,
         | 
| 15602 | 
            +
                          :type => type.value,
         | 
| 15603 | 
            +
                          :order_identifier => order_identifier.to_hash
         | 
| 15604 | 
            +
                        }
         | 
| 15605 | 
            +
                      end
         | 
| 15606 | 
            +
             | 
| 15607 | 
            +
                    end
         | 
| 15608 | 
            +
             | 
| 15389 15609 | 
             
                    # Represents a top-level order price detail, e.g. 'Subtotal' or 'VAT'.
         | 
| 15390 15610 | 
             
                    class OrderPriceDetail
         | 
| 15391 15611 |  | 
| @@ -15529,7 +15749,7 @@ module Io | |
| 15529 15749 |  | 
| 15530 15750 | 
             
                    class OrderUpserted < Event
         | 
| 15531 15751 |  | 
| 15532 | 
            -
                      attr_reader :event_id, :timestamp, :organization, :number, :environment, :experience_id, :expires_at, :customer, :selections, :items, :destination, :deliveries, :prices, :discount, :total, :created_at, :updated_at, :submitted_at, :lines
         | 
| 15752 | 
            +
                      attr_reader :event_id, :timestamp, :organization, :number, :environment, :experience_id, :expires_at, :customer, :selections, :items, :destination, :deliveries, :prices, :discount, :total, :created_at, :updated_at, :submitted_at, :lines, :attributes
         | 
| 15533 15753 |  | 
| 15534 15754 | 
             
                      def initialize(incoming={})
         | 
| 15535 15755 | 
             
                        super(:discriminator => Event::Types::ORDER_UPSERTED)
         | 
| @@ -15554,6 +15774,7 @@ module Io | |
| 15554 15774 | 
             
                        @updated_at = (x = opts.delete(:updated_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('updated_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
         | 
| 15555 15775 | 
             
                        @submitted_at = (x = opts.delete(:submitted_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('submitted_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
         | 
| 15556 15776 | 
             
                        @lines = (x = opts.delete(:lines); x.nil? ? nil : HttpClient::Preconditions.assert_class('lines', x, Array).map { |v| HttpClient::Preconditions.assert_class('lines', HttpClient::Helper.to_object(v), Hash) })
         | 
| 15777 | 
            +
                        @attributes = (x = opts.delete(:attributes); x.nil? ? nil : HttpClient::Preconditions.assert_class('attributes', x, Hash).inject({}) { |h, d| h[d[0]] = HttpClient::Preconditions.assert_class('attributes', d[1], String); h })
         | 
| 15557 15778 | 
             
                      end
         | 
| 15558 15779 |  | 
| 15559 15780 | 
             
                      def to_json
         | 
| @@ -15584,7 +15805,8 @@ module Io | |
| 15584 15805 | 
             
                          :created_at => created_at,
         | 
| 15585 15806 | 
             
                          :updated_at => updated_at,
         | 
| 15586 15807 | 
             
                          :submitted_at => submitted_at,
         | 
| 15587 | 
            -
                          :lines => lines.nil? ? nil : lines
         | 
| 15808 | 
            +
                          :lines => lines.nil? ? nil : lines,
         | 
| 15809 | 
            +
                          :attributes => attributes.nil? ? nil : attributes
         | 
| 15588 15810 | 
             
                        }
         | 
| 15589 15811 | 
             
                      end
         | 
| 15590 15812 |  | 
| @@ -16067,7 +16289,7 @@ module Io | |
| 16067 16289 |  | 
| 16068 16290 | 
             
                    class OrganizationUpserted < Event
         | 
| 16069 16291 |  | 
| 16070 | 
            -
                      attr_reader :event_id, :timestamp, :id, :name, :environment, : | 
| 16292 | 
            +
                      attr_reader :event_id, :timestamp, :id, :name, :environment, :default_base_currency, :parent_id, :currencies
         | 
| 16071 16293 |  | 
| 16072 16294 | 
             
                      def initialize(incoming={})
         | 
| 16073 16295 | 
             
                        super(:discriminator => Event::Types::ORGANIZATION_UPSERTED)
         | 
| @@ -16078,8 +16300,9 @@ module Io | |
| 16078 16300 | 
             
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 16079 16301 | 
             
                        @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
         | 
| 16080 16302 | 
             
                        @environment = HttpClient::Preconditions.assert_class('environment', opts.delete(:environment), String)
         | 
| 16081 | 
            -
                        @ | 
| 16303 | 
            +
                        @default_base_currency = (x = opts.delete(:default_base_currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('default_base_currency', x, String))
         | 
| 16082 16304 | 
             
                        @parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
         | 
| 16305 | 
            +
                        @currencies = HttpClient::Preconditions.assert_class('currencies', opts.delete(:currencies), Array).map { |v| HttpClient::Preconditions.assert_class('currencies', v, String) }
         | 
| 16083 16306 | 
             
                      end
         | 
| 16084 16307 |  | 
| 16085 16308 | 
             
                      def to_json
         | 
| @@ -16097,8 +16320,9 @@ module Io | |
| 16097 16320 | 
             
                          :id => id,
         | 
| 16098 16321 | 
             
                          :name => name,
         | 
| 16099 16322 | 
             
                          :environment => environment,
         | 
| 16100 | 
            -
                          : | 
| 16101 | 
            -
                          :parent_id => parent_id
         | 
| 16323 | 
            +
                          :default_base_currency => default_base_currency,
         | 
| 16324 | 
            +
                          :parent_id => parent_id,
         | 
| 16325 | 
            +
                          :currencies => currencies
         | 
| 16102 16326 | 
             
                        }
         | 
| 16103 16327 | 
             
                      end
         | 
| 16104 16328 |  | 
| @@ -16167,32 +16391,6 @@ module Io | |
| 16167 16391 |  | 
| 16168 16392 | 
             
                    end
         | 
| 16169 16393 |  | 
| 16170 | 
            -
                    class PartnerReference
         | 
| 16171 | 
            -
             | 
| 16172 | 
            -
                      attr_reader :id
         | 
| 16173 | 
            -
             | 
| 16174 | 
            -
                      def initialize(incoming={})
         | 
| 16175 | 
            -
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 16176 | 
            -
                        HttpClient::Preconditions.require_keys(opts, [:id], 'PartnerReference')
         | 
| 16177 | 
            -
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 16178 | 
            -
                      end
         | 
| 16179 | 
            -
             | 
| 16180 | 
            -
                      def to_json
         | 
| 16181 | 
            -
                        JSON.dump(to_hash)
         | 
| 16182 | 
            -
                      end
         | 
| 16183 | 
            -
             | 
| 16184 | 
            -
                      def copy(incoming={})
         | 
| 16185 | 
            -
                        PartnerReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 16186 | 
            -
                      end
         | 
| 16187 | 
            -
             | 
| 16188 | 
            -
                      def to_hash
         | 
| 16189 | 
            -
                        {
         | 
| 16190 | 
            -
                          :id => id
         | 
| 16191 | 
            -
                        }
         | 
| 16192 | 
            -
                      end
         | 
| 16193 | 
            -
             | 
| 16194 | 
            -
                    end
         | 
| 16195 | 
            -
             | 
| 16196 16394 | 
             
                    # All of the metadata associated with a given token.
         | 
| 16197 16395 | 
             
                    class PartnerToken < Token
         | 
| 16198 16396 |  | 
| @@ -16203,7 +16401,7 @@ module Io | |
| 16203 16401 | 
             
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 16204 16402 | 
             
                        HttpClient::Preconditions.require_keys(opts, [:id, :partner, :user, :environment, :partial, :created_at], 'PartnerToken')
         | 
| 16205 16403 | 
             
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 16206 | 
            -
                        @partner = (x = opts.delete(:partner); x.is_a?(::Io::Flow::V0::Models:: | 
| 16404 | 
            +
                        @partner = (x = opts.delete(:partner); x.is_a?(::Io::Flow::V0::Models::TokenPartnerReference) ? x : ::Io::Flow::V0::Models::TokenPartnerReference.new(x))
         | 
| 16207 16405 | 
             
                        @user = (x = opts.delete(:user); x.is_a?(::Io::Flow::V0::Models::UserReference) ? x : ::Io::Flow::V0::Models::UserReference.new(x))
         | 
| 16208 16406 | 
             
                        @environment = (x = opts.delete(:environment); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
         | 
| 16209 16407 | 
             
                        @partial = HttpClient::Preconditions.assert_class('partial', opts.delete(:partial), String)
         | 
| @@ -16276,7 +16474,7 @@ module Io | |
| 16276 16474 | 
             
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 16277 16475 | 
             
                        HttpClient::Preconditions.require_keys(opts, [:id, :partner, :environment, :user], 'PartnerTokenReference')
         | 
| 16278 16476 | 
             
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 16279 | 
            -
                        @partner = (x = opts.delete(:partner); x.is_a?(::Io::Flow::V0::Models:: | 
| 16477 | 
            +
                        @partner = (x = opts.delete(:partner); x.is_a?(::Io::Flow::V0::Models::TokenPartnerReference) ? x : ::Io::Flow::V0::Models::TokenPartnerReference.new(x))
         | 
| 16280 16478 | 
             
                        @environment = (x = opts.delete(:environment); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
         | 
| 16281 16479 | 
             
                        @user = (x = opts.delete(:user); x.is_a?(::Io::Flow::V0::Models::UserReference) ? x : ::Io::Flow::V0::Models::UserReference.new(x))
         | 
| 16282 16480 | 
             
                      end
         | 
| @@ -16871,6 +17069,36 @@ module Io | |
| 16871 17069 |  | 
| 16872 17070 | 
             
                    end
         | 
| 16873 17071 |  | 
| 17072 | 
            +
                    class QuoteError
         | 
| 17073 | 
            +
             | 
| 17074 | 
            +
                      attr_reader :code, :messages, :item_numbers
         | 
| 17075 | 
            +
             | 
| 17076 | 
            +
                      def initialize(incoming={})
         | 
| 17077 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 17078 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:code, :messages], 'QuoteError')
         | 
| 17079 | 
            +
                        @code = (x = opts.delete(:code); x.is_a?(::Io::Flow::V0::Models::QuoteErrorCode) ? x : ::Io::Flow::V0::Models::QuoteErrorCode.apply(x))
         | 
| 17080 | 
            +
                        @messages = HttpClient::Preconditions.assert_class('messages', opts.delete(:messages), Array).map { |v| HttpClient::Preconditions.assert_class('messages', v, String) }
         | 
| 17081 | 
            +
                        @item_numbers = (x = opts.delete(:item_numbers); x.nil? ? nil : HttpClient::Preconditions.assert_class('item_numbers', x, Array).map { |v| HttpClient::Preconditions.assert_class('item_numbers', v, String) })
         | 
| 17082 | 
            +
                      end
         | 
| 17083 | 
            +
             | 
| 17084 | 
            +
                      def to_json
         | 
| 17085 | 
            +
                        JSON.dump(to_hash)
         | 
| 17086 | 
            +
                      end
         | 
| 17087 | 
            +
             | 
| 17088 | 
            +
                      def copy(incoming={})
         | 
| 17089 | 
            +
                        QuoteError.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 17090 | 
            +
                      end
         | 
| 17091 | 
            +
             | 
| 17092 | 
            +
                      def to_hash
         | 
| 17093 | 
            +
                        {
         | 
| 17094 | 
            +
                          :code => code.value,
         | 
| 17095 | 
            +
                          :messages => messages,
         | 
| 17096 | 
            +
                          :item_numbers => item_numbers.nil? ? nil : item_numbers
         | 
| 17097 | 
            +
                        }
         | 
| 17098 | 
            +
                      end
         | 
| 17099 | 
            +
             | 
| 17100 | 
            +
                    end
         | 
| 17101 | 
            +
             | 
| 16874 17102 | 
             
                    class QuoteForm
         | 
| 16875 17103 |  | 
| 16876 17104 | 
             
                      attr_reader :destination, :experience, :items
         | 
| @@ -18125,6 +18353,78 @@ module Io | |
| 18125 18353 |  | 
| 18126 18354 | 
             
                    end
         | 
| 18127 18355 |  | 
| 18356 | 
            +
                    class SnapshotDeleted < Event
         | 
| 18357 | 
            +
             | 
| 18358 | 
            +
                      attr_reader :event_id, :timestamp, :snapshot_id
         | 
| 18359 | 
            +
             | 
| 18360 | 
            +
                      def initialize(incoming={})
         | 
| 18361 | 
            +
                        super(:discriminator => Event::Types::SNAPSHOT_DELETED)
         | 
| 18362 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 18363 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :snapshot_id], 'SnapshotDeleted')
         | 
| 18364 | 
            +
                        @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
         | 
| 18365 | 
            +
                        @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
         | 
| 18366 | 
            +
                        @snapshot_id = HttpClient::Preconditions.assert_class('snapshot_id', opts.delete(:snapshot_id), String)
         | 
| 18367 | 
            +
                      end
         | 
| 18368 | 
            +
             | 
| 18369 | 
            +
                      def to_json
         | 
| 18370 | 
            +
                        JSON.dump(to_hash)
         | 
| 18371 | 
            +
                      end
         | 
| 18372 | 
            +
             | 
| 18373 | 
            +
                      def copy(incoming={})
         | 
| 18374 | 
            +
                        SnapshotDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 18375 | 
            +
                      end
         | 
| 18376 | 
            +
             | 
| 18377 | 
            +
                      def subtype_to_hash
         | 
| 18378 | 
            +
                        {
         | 
| 18379 | 
            +
                          :event_id => event_id,
         | 
| 18380 | 
            +
                          :timestamp => timestamp,
         | 
| 18381 | 
            +
                          :snapshot_id => snapshot_id
         | 
| 18382 | 
            +
                        }
         | 
| 18383 | 
            +
                      end
         | 
| 18384 | 
            +
             | 
| 18385 | 
            +
                    end
         | 
| 18386 | 
            +
             | 
| 18387 | 
            +
                    class SnapshotUpserted < Event
         | 
| 18388 | 
            +
             | 
| 18389 | 
            +
                      attr_reader :event_id, :timestamp, :snapshot_id, :organization, :available, :center_key, :item_number, :quantity
         | 
| 18390 | 
            +
             | 
| 18391 | 
            +
                      def initialize(incoming={})
         | 
| 18392 | 
            +
                        super(:discriminator => Event::Types::SNAPSHOT_UPSERTED)
         | 
| 18393 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 18394 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :snapshot_id, :organization, :available, :center_key, :item_number, :quantity], 'SnapshotUpserted')
         | 
| 18395 | 
            +
                        @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String)
         | 
| 18396 | 
            +
                        @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
         | 
| 18397 | 
            +
                        @snapshot_id = HttpClient::Preconditions.assert_class('snapshot_id', opts.delete(:snapshot_id), String)
         | 
| 18398 | 
            +
                        @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String)
         | 
| 18399 | 
            +
                        @available = HttpClient::Preconditions.assert_class('available', opts.delete(:available), Integer)
         | 
| 18400 | 
            +
                        @center_key = HttpClient::Preconditions.assert_class('center_key', opts.delete(:center_key), String)
         | 
| 18401 | 
            +
                        @item_number = HttpClient::Preconditions.assert_class('item_number', opts.delete(:item_number), String)
         | 
| 18402 | 
            +
                        @quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
         | 
| 18403 | 
            +
                      end
         | 
| 18404 | 
            +
             | 
| 18405 | 
            +
                      def to_json
         | 
| 18406 | 
            +
                        JSON.dump(to_hash)
         | 
| 18407 | 
            +
                      end
         | 
| 18408 | 
            +
             | 
| 18409 | 
            +
                      def copy(incoming={})
         | 
| 18410 | 
            +
                        SnapshotUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 18411 | 
            +
                      end
         | 
| 18412 | 
            +
             | 
| 18413 | 
            +
                      def subtype_to_hash
         | 
| 18414 | 
            +
                        {
         | 
| 18415 | 
            +
                          :event_id => event_id,
         | 
| 18416 | 
            +
                          :timestamp => timestamp,
         | 
| 18417 | 
            +
                          :snapshot_id => snapshot_id,
         | 
| 18418 | 
            +
                          :organization => organization,
         | 
| 18419 | 
            +
                          :available => available,
         | 
| 18420 | 
            +
                          :center_key => center_key,
         | 
| 18421 | 
            +
                          :item_number => item_number,
         | 
| 18422 | 
            +
                          :quantity => quantity
         | 
| 18423 | 
            +
                        }
         | 
| 18424 | 
            +
                      end
         | 
| 18425 | 
            +
             | 
| 18426 | 
            +
                    end
         | 
| 18427 | 
            +
             | 
| 18128 18428 | 
             
                    # Exports product level data for import into solidus
         | 
| 18129 18429 | 
             
                    class SolidusProductExportType < ExportType
         | 
| 18130 18430 |  | 
| @@ -19459,6 +19759,32 @@ module Io | |
| 19459 19759 |  | 
| 19460 19760 | 
             
                    end
         | 
| 19461 19761 |  | 
| 19762 | 
            +
                    class TokenPartnerReference
         | 
| 19763 | 
            +
             | 
| 19764 | 
            +
                      attr_reader :id
         | 
| 19765 | 
            +
             | 
| 19766 | 
            +
                      def initialize(incoming={})
         | 
| 19767 | 
            +
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         | 
| 19768 | 
            +
                        HttpClient::Preconditions.require_keys(opts, [:id], 'TokenPartnerReference')
         | 
| 19769 | 
            +
                        @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
         | 
| 19770 | 
            +
                      end
         | 
| 19771 | 
            +
             | 
| 19772 | 
            +
                      def to_json
         | 
| 19773 | 
            +
                        JSON.dump(to_hash)
         | 
| 19774 | 
            +
                      end
         | 
| 19775 | 
            +
             | 
| 19776 | 
            +
                      def copy(incoming={})
         | 
| 19777 | 
            +
                        TokenPartnerReference.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
         | 
| 19778 | 
            +
                      end
         | 
| 19779 | 
            +
             | 
| 19780 | 
            +
                      def to_hash
         | 
| 19781 | 
            +
                        {
         | 
| 19782 | 
            +
                          :id => id
         | 
| 19783 | 
            +
                        }
         | 
| 19784 | 
            +
                      end
         | 
| 19785 | 
            +
             | 
| 19786 | 
            +
                    end
         | 
| 19787 | 
            +
             | 
| 19462 19788 | 
             
                    # Model used to report whether or not a given token is valid
         | 
| 19463 19789 | 
             
                    class TokenValidation
         | 
| 19464 19790 |  | 
| @@ -20608,7 +20934,7 @@ module Io | |
| 20608 20934 | 
             
                      private
         | 
| 20609 20935 | 
             
                      def to_query(params={})
         | 
| 20610 20936 | 
             
                        parts = (params || {}).map { |k,v|
         | 
| 20611 | 
            -
                          if v. | 
| 20937 | 
            +
                          if v.is_a?(Enumerable)
         | 
| 20612 20938 | 
             
                            v.map { |el| "%s=%s" % [k, CGI.escape(el.to_s)] }
         | 
| 20613 20939 | 
             
                          else
         | 
| 20614 20940 | 
             
                            "%s=%s" % [k, CGI.escape(v.to_s)]
         | 
    
        metadata
    CHANGED
    
    | @@ -1,41 +1,41 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: flowcommerce
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.14
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Flow Commerce, Inc.
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2017-01-17 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: json
         | 
| 15 15 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 16 | 
             
                requirements:
         | 
| 17 | 
            -
                - -  | 
| 17 | 
            +
                - - ">="
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 19 | 
             
                    version: '0'
         | 
| 20 20 | 
             
              type: :runtime
         | 
| 21 21 | 
             
              prerelease: false
         | 
| 22 22 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 23 | 
             
                requirements:
         | 
| 24 | 
            -
                - -  | 
| 24 | 
            +
                - - ">="
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 26 | 
             
                    version: '0'
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: bigdecimal
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 30 | 
             
                requirements:
         | 
| 31 | 
            -
                - -  | 
| 31 | 
            +
                - - ">="
         | 
| 32 32 | 
             
                  - !ruby/object:Gem::Version
         | 
| 33 33 | 
             
                    version: '0'
         | 
| 34 34 | 
             
              type: :runtime
         | 
| 35 35 | 
             
              prerelease: false
         | 
| 36 36 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 37 | 
             
                requirements:
         | 
| 38 | 
            -
                - -  | 
| 38 | 
            +
                - - ">="
         | 
| 39 39 | 
             
                  - !ruby/object:Gem::Version
         | 
| 40 40 | 
             
                    version: '0'
         | 
| 41 41 | 
             
            description: Native ruby client for the Flow REST API. Detailed information at http://apidoc.me/flow
         | 
| @@ -58,17 +58,17 @@ require_paths: | |
| 58 58 | 
             
            - lib
         | 
| 59 59 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 60 60 | 
             
              requirements:
         | 
| 61 | 
            -
              - -  | 
| 61 | 
            +
              - - ">="
         | 
| 62 62 | 
             
                - !ruby/object:Gem::Version
         | 
| 63 63 | 
             
                  version: '0'
         | 
| 64 64 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 65 65 | 
             
              requirements:
         | 
| 66 | 
            -
              - -  | 
| 66 | 
            +
              - - ">="
         | 
| 67 67 | 
             
                - !ruby/object:Gem::Version
         | 
| 68 68 | 
             
                  version: '0'
         | 
| 69 69 | 
             
            requirements: []
         | 
| 70 70 | 
             
            rubyforge_project: 
         | 
| 71 | 
            -
            rubygems_version: 2. | 
| 71 | 
            +
            rubygems_version: 2.6.8
         | 
| 72 72 | 
             
            signing_key: 
         | 
| 73 73 | 
             
            specification_version: 4
         | 
| 74 74 | 
             
            summary: Native ruby client for the Flow REST API.
         |