flowcommerce 0.0.74 → 0.0.75
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 +67 -6
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 959c5c78019df93e922ce26e50933173e2c5e560
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b3809dab351a969d201a5d24da09a4e82ed6e772
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 227792b98e5eb492540587d4a39509679e383448ccbb86073078bfb0e96425862519d5cfd8ecc6db7bff976db0f76528080126794933fe75a9cab6c9fbd2f524
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 0f8ff19374bd6cf2b2938094faef846ad9ba4dc34dd7d74c54c6a0bfa35132ad8735b149cebe6c5bdd108f89fdc050d1b9d20c2957359b88bfb4a67698168e23
         
     | 
| 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # Generated by apidoc - http://www.apidoc.me
         
     | 
| 
       2 
2 
     | 
    
         
             
            # Service version: 0.1.77
         
     | 
| 
       3 
     | 
    
         
            -
            # apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1. 
     | 
| 
      
 3 
     | 
    
         
            +
            # apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.81/ruby_client
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
            require 'cgi'
         
     | 
| 
       6 
6 
     | 
    
         
             
            require 'net/http'
         
     | 
| 
         @@ -25,7 +25,7 @@ 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.38 http://www.apidoc.me/flow/api/0.1. 
     | 
| 
      
 28 
     | 
    
         
            +
                      USER_AGENT = 'apidoc:0.11.38 http://www.apidoc.me/flow/api/0.1.81/ruby_client' unless defined?(Constants::USER_AGENT)
         
     | 
| 
       29 
29 
     | 
    
         
             
                      VERSION = '0.1.77' unless defined?(Constants::VERSION)
         
     | 
| 
       30 
30 
     | 
    
         
             
                      VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
         @@ -4595,7 +4595,7 @@ module Io 
     | 
|
| 
       4595 
4595 
     | 
    
         
             
                      end
         
     | 
| 
       4596 
4596 
     | 
    
         | 
| 
       4597 
4597 
     | 
    
         
             
                      def AuthorizationDeclineCode.ALL
         
     | 
| 
       4598 
     | 
    
         
            -
                        @@all ||= [AuthorizationDeclineCode.expired, AuthorizationDeclineCode.invalid_number, AuthorizationDeclineCode.invalid_expiration, AuthorizationDeclineCode.no_account, AuthorizationDeclineCode.avs, AuthorizationDeclineCode.cvv, AuthorizationDeclineCode.fraud, AuthorizationDeclineCode.duplicate, AuthorizationDeclineCode.unknown]
         
     | 
| 
      
 4598 
     | 
    
         
            +
                        @@all ||= [AuthorizationDeclineCode.expired, AuthorizationDeclineCode.invalid_number, AuthorizationDeclineCode.invalid_expiration, AuthorizationDeclineCode.no_account, AuthorizationDeclineCode.avs, AuthorizationDeclineCode.cvv, AuthorizationDeclineCode.fraud, AuthorizationDeclineCode.duplicate, AuthorizationDeclineCode.not_supported, AuthorizationDeclineCode.unknown]
         
     | 
| 
       4599 
4599 
     | 
    
         
             
                      end
         
     | 
| 
       4600 
4600 
     | 
    
         | 
| 
       4601 
4601 
     | 
    
         
             
                      # Payment method has expired
         
     | 
| 
         @@ -4639,6 +4639,11 @@ module Io 
     | 
|
| 
       4639 
4639 
     | 
    
         
             
                        @@_duplicate ||= AuthorizationDeclineCode.new('duplicate')
         
     | 
| 
       4640 
4640 
     | 
    
         
             
                      end
         
     | 
| 
       4641 
4641 
     | 
    
         | 
| 
      
 4642 
     | 
    
         
            +
                      # Declined as payment method is not supported
         
     | 
| 
      
 4643 
     | 
    
         
            +
                      def AuthorizationDeclineCode.not_supported
         
     | 
| 
      
 4644 
     | 
    
         
            +
                        @@_not_supported ||= AuthorizationDeclineCode.new('not_supported')
         
     | 
| 
      
 4645 
     | 
    
         
            +
                      end
         
     | 
| 
      
 4646 
     | 
    
         
            +
             
     | 
| 
       4642 
4647 
     | 
    
         
             
                      # Declined due to another reason (details not known)
         
     | 
| 
       4643 
4648 
     | 
    
         
             
                      def AuthorizationDeclineCode.unknown
         
     | 
| 
       4644 
4649 
     | 
    
         
             
                        @@_unknown ||= AuthorizationDeclineCode.new('unknown')
         
     | 
| 
         @@ -4876,7 +4881,7 @@ module Io 
     | 
|
| 
       4876 
4881 
     | 
    
         
             
                      end
         
     | 
| 
       4877 
4882 
     | 
    
         | 
| 
       4878 
4883 
     | 
    
         
             
                      def CaptureDeclineCode.ALL
         
     | 
| 
       4879 
     | 
    
         
            -
                        @@all ||= [CaptureDeclineCode.expired, CaptureDeclineCode.unknown]
         
     | 
| 
      
 4884 
     | 
    
         
            +
                        @@all ||= [CaptureDeclineCode.expired, CaptureDeclineCode.insufficient_funds, CaptureDeclineCode.unknown]
         
     | 
| 
       4880 
4885 
     | 
    
         
             
                      end
         
     | 
| 
       4881 
4886 
     | 
    
         | 
| 
       4882 
4887 
     | 
    
         
             
                      # Payment authorization has expired
         
     | 
| 
         @@ -4884,6 +4889,11 @@ module Io 
     | 
|
| 
       4884 
4889 
     | 
    
         
             
                        @@_expired ||= CaptureDeclineCode.new('expired')
         
     | 
| 
       4885 
4890 
     | 
    
         
             
                      end
         
     | 
| 
       4886 
4891 
     | 
    
         | 
| 
      
 4892 
     | 
    
         
            +
                      # The amount to capture exceeded the amount authorized and not yet captured
         
     | 
| 
      
 4893 
     | 
    
         
            +
                      def CaptureDeclineCode.insufficient_funds
         
     | 
| 
      
 4894 
     | 
    
         
            +
                        @@_insufficient_funds ||= CaptureDeclineCode.new('insufficient_funds')
         
     | 
| 
      
 4895 
     | 
    
         
            +
                      end
         
     | 
| 
      
 4896 
     | 
    
         
            +
             
     | 
| 
       4887 
4897 
     | 
    
         
             
                      # Failed due to another reason (details not known)
         
     | 
| 
       4888 
4898 
     | 
    
         
             
                      def CaptureDeclineCode.unknown
         
     | 
| 
       4889 
4899 
     | 
    
         
             
                        @@_unknown ||= CaptureDeclineCode.new('unknown')
         
     | 
| 
         @@ -6268,6 +6278,55 @@ module Io 
     | 
|
| 
       6268 
6278 
     | 
    
         | 
| 
       6269 
6279 
     | 
    
         
             
                    end
         
     | 
| 
       6270 
6280 
     | 
    
         | 
| 
      
 6281 
     | 
    
         
            +
                    class RefundDeclineCode
         
     | 
| 
      
 6282 
     | 
    
         
            +
             
     | 
| 
      
 6283 
     | 
    
         
            +
                      attr_reader :value
         
     | 
| 
      
 6284 
     | 
    
         
            +
             
     | 
| 
      
 6285 
     | 
    
         
            +
                      def initialize(value)
         
     | 
| 
      
 6286 
     | 
    
         
            +
                        @value = HttpClient::Preconditions.assert_class('value', value, String)
         
     | 
| 
      
 6287 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6288 
     | 
    
         
            +
             
     | 
| 
      
 6289 
     | 
    
         
            +
                      # Returns the instance of RefundDeclineCode for this value, creating a new instance for an unknown value
         
     | 
| 
      
 6290 
     | 
    
         
            +
                      def RefundDeclineCode.apply(value)
         
     | 
| 
      
 6291 
     | 
    
         
            +
                        if value.instance_of?(RefundDeclineCode)
         
     | 
| 
      
 6292 
     | 
    
         
            +
                          value
         
     | 
| 
      
 6293 
     | 
    
         
            +
                        else
         
     | 
| 
      
 6294 
     | 
    
         
            +
                          HttpClient::Preconditions.assert_class_or_nil('value', value, String)
         
     | 
| 
      
 6295 
     | 
    
         
            +
                          value.nil? ? nil : (from_string(value) || RefundDeclineCode.new(value))
         
     | 
| 
      
 6296 
     | 
    
         
            +
                        end
         
     | 
| 
      
 6297 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6298 
     | 
    
         
            +
             
     | 
| 
      
 6299 
     | 
    
         
            +
                      # Returns the instance of RefundDeclineCode for this value, or nil if not found
         
     | 
| 
      
 6300 
     | 
    
         
            +
                      def RefundDeclineCode.from_string(value)
         
     | 
| 
      
 6301 
     | 
    
         
            +
                        HttpClient::Preconditions.assert_class('value', value, String)
         
     | 
| 
      
 6302 
     | 
    
         
            +
                        RefundDeclineCode.ALL.find { |v| v.value == value }
         
     | 
| 
      
 6303 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6304 
     | 
    
         
            +
             
     | 
| 
      
 6305 
     | 
    
         
            +
                      def RefundDeclineCode.ALL
         
     | 
| 
      
 6306 
     | 
    
         
            +
                        @@all ||= [RefundDeclineCode.expired, RefundDeclineCode.insufficient_funds, RefundDeclineCode.unknown]
         
     | 
| 
      
 6307 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6308 
     | 
    
         
            +
             
     | 
| 
      
 6309 
     | 
    
         
            +
                      # All associated payment captures have expired; refunds can no longer be issued
         
     | 
| 
      
 6310 
     | 
    
         
            +
                      def RefundDeclineCode.expired
         
     | 
| 
      
 6311 
     | 
    
         
            +
                        @@_expired ||= RefundDeclineCode.new('expired')
         
     | 
| 
      
 6312 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6313 
     | 
    
         
            +
             
     | 
| 
      
 6314 
     | 
    
         
            +
                      # The requested refund amount exceeded the amount of remaining unrefunded funds
         
     | 
| 
      
 6315 
     | 
    
         
            +
                      def RefundDeclineCode.insufficient_funds
         
     | 
| 
      
 6316 
     | 
    
         
            +
                        @@_insufficient_funds ||= RefundDeclineCode.new('insufficient_funds')
         
     | 
| 
      
 6317 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6318 
     | 
    
         
            +
             
     | 
| 
      
 6319 
     | 
    
         
            +
                      # Failed due to another reason (details not known)
         
     | 
| 
      
 6320 
     | 
    
         
            +
                      def RefundDeclineCode.unknown
         
     | 
| 
      
 6321 
     | 
    
         
            +
                        @@_unknown ||= RefundDeclineCode.new('unknown')
         
     | 
| 
      
 6322 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6323 
     | 
    
         
            +
             
     | 
| 
      
 6324 
     | 
    
         
            +
                      def to_hash
         
     | 
| 
      
 6325 
     | 
    
         
            +
                        value
         
     | 
| 
      
 6326 
     | 
    
         
            +
                      end
         
     | 
| 
      
 6327 
     | 
    
         
            +
             
     | 
| 
      
 6328 
     | 
    
         
            +
                    end
         
     | 
| 
      
 6329 
     | 
    
         
            +
             
     | 
| 
       6271 
6330 
     | 
    
         
             
                    class Role
         
     | 
| 
       6272 
6331 
     | 
    
         | 
| 
       6273 
6332 
     | 
    
         
             
                      attr_reader :value
         
     | 
| 
         @@ -14485,17 +14544,18 @@ module Io 
     | 
|
| 
       14485 
14544 
     | 
    
         
             
                    # Detailed information for the pricing of a given item within an experience.
         
     | 
| 
       14486 
14545 
     | 
    
         
             
                    class PriceDetails
         
     | 
| 
       14487 
14546 
     | 
    
         | 
| 
       14488 
     | 
    
         
            -
                      attr_reader :currency, :item_price, :margins, :vat, :duty, :rounding, :total
         
     | 
| 
      
 14547 
     | 
    
         
            +
                      attr_reader :currency, :item_price, :margins, :vat, :duty, :rounding, :price, :total
         
     | 
| 
       14489 
14548 
     | 
    
         | 
| 
       14490 
14549 
     | 
    
         
             
                      def initialize(incoming={})
         
     | 
| 
       14491 
14550 
     | 
    
         
             
                        opts = HttpClient::Helper.symbolize_keys(incoming)
         
     | 
| 
       14492 
     | 
    
         
            -
                        HttpClient::Preconditions.require_keys(opts, [:currency, :item_price, :margins, :vat, :duty, :rounding, :total], 'PriceDetails')
         
     | 
| 
      
 14551 
     | 
    
         
            +
                        HttpClient::Preconditions.require_keys(opts, [:currency, :item_price, :margins, :vat, :duty, :rounding, :price, :total], 'PriceDetails')
         
     | 
| 
       14493 
14552 
     | 
    
         
             
                        @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String)
         
     | 
| 
       14494 
14553 
     | 
    
         
             
                        @item_price = (x = opts.delete(:item_price); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
         
     | 
| 
       14495 
14554 
     | 
    
         
             
                        @margins = (x = opts.delete(:margins); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
         
     | 
| 
       14496 
14555 
     | 
    
         
             
                        @vat = (x = opts.delete(:vat); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
         
     | 
| 
       14497 
14556 
     | 
    
         
             
                        @duty = (x = opts.delete(:duty); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
         
     | 
| 
       14498 
14557 
     | 
    
         
             
                        @rounding = (x = opts.delete(:rounding); x.is_a?(::Io::Flow::V0::Models::PriceDetail) ? x : ::Io::Flow::V0::Models::PriceDetail.new(x))
         
     | 
| 
      
 14558 
     | 
    
         
            +
                        @price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
         
     | 
| 
       14499 
14559 
     | 
    
         
             
                        @total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::Price) ? x : ::Io::Flow::V0::Models::Price.new(x))
         
     | 
| 
       14500 
14560 
     | 
    
         
             
                      end
         
     | 
| 
       14501 
14561 
     | 
    
         | 
| 
         @@ -14515,6 +14575,7 @@ module Io 
     | 
|
| 
       14515 
14575 
     | 
    
         
             
                          :vat => vat.to_hash,
         
     | 
| 
       14516 
14576 
     | 
    
         
             
                          :duty => duty.to_hash,
         
     | 
| 
       14517 
14577 
     | 
    
         
             
                          :rounding => rounding.to_hash,
         
     | 
| 
      
 14578 
     | 
    
         
            +
                          :price => price.to_hash,
         
     | 
| 
       14518 
14579 
     | 
    
         
             
                          :total => total.to_hash
         
     | 
| 
       14519 
14580 
     | 
    
         
             
                        }
         
     | 
| 
       14520 
14581 
     | 
    
         
             
                      end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: flowcommerce
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.75
         
     | 
| 
       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: 2016-10- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-10-02 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: json
         
     |