flowcommerce 0.2.48 → 0.2.49
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 +14 -8
- 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: d1906ff79977c217acf4de6618588aa50d2965b3
|
4
|
+
data.tar.gz: 4610a02b82a1d2351d6b8190dbc7a516f51cc317
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 279e895178e1429b84c3d77180d026c44f462acea100f31da55baeee3994566681942fd349e5a597184ab2d828366655f1ae6ec779cf695553f3669b24b3dbd5
|
7
|
+
data.tar.gz: 7e1575941167b209aec641bafe56738ea9756865d3b4721163ff08431a393795e93ebc8817828b4e03b15d1a587244835455121424d5a77131d889feba84e944
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
2
|
# Service version: 0.4.11
|
3
|
-
# apibuilder:0.12.87 https://app.apibuilder.io/flow/api/0.4.
|
3
|
+
# apibuilder:0.12.87 https://app.apibuilder.io/flow/api/0.4.31/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 = 'apibuilder:0.12.87 https://app.apibuilder.io/flow/api/0.4.
|
28
|
+
USER_AGENT = 'apibuilder:0.12.87 https://app.apibuilder.io/flow/api/0.4.31/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
29
|
VERSION = '0.4.11' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
@@ -1466,6 +1466,7 @@ module Io
|
|
1466
1466
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
1467
1467
|
query = {
|
1468
1468
|
:country => (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, Array).map { |v| HttpClient::Preconditions.assert_class('country', v, String) }),
|
1469
|
+
:amount => (x = opts.delete(:amount); x.nil? ? nil : HttpClient::Preconditions.assert_class('amount', x, String)),
|
1469
1470
|
:currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)),
|
1470
1471
|
:experience => (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)),
|
1471
1472
|
:ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
|
@@ -1482,6 +1483,7 @@ module Io
|
|
1482
1483
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
1483
1484
|
query = {
|
1484
1485
|
:country => (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, Array).map { |v| HttpClient::Preconditions.assert_class('country', v, String) }),
|
1486
|
+
:amount => (x = opts.delete(:amount); x.nil? ? nil : HttpClient::Preconditions.assert_class('amount', x, String)),
|
1485
1487
|
:currency => (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)),
|
1486
1488
|
:experience => (x = opts.delete(:experience); x.nil? ? nil : HttpClient::Preconditions.assert_class('experience', x, String)),
|
1487
1489
|
:ip => (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)),
|
@@ -8962,7 +8964,7 @@ module Io
|
|
8962
8964
|
attr_reader :value
|
8963
8965
|
|
8964
8966
|
def initialize(value)
|
8965
|
-
super(:name => PaymentMethodTag::Types::EXPERIENCE_PAYMENT_METHOD_TAG)
|
8967
|
+
super(:name => PaymentMethodTag::Types::EXPERIENCE_PAYMENT_METHOD_TAG, :discriminator => 'experience_payment_method_tag')
|
8966
8968
|
@value = HttpClient::Preconditions.assert_class('value', value, String)
|
8967
8969
|
end
|
8968
8970
|
|
@@ -10393,7 +10395,7 @@ module Io
|
|
10393
10395
|
attr_reader :value
|
10394
10396
|
|
10395
10397
|
def initialize(value)
|
10396
|
-
super(:name => PaymentMethodTag::Types::ORGANIZATION_PAYMENT_METHOD_TAG)
|
10398
|
+
super(:name => PaymentMethodTag::Types::ORGANIZATION_PAYMENT_METHOD_TAG, :discriminator => 'organization_payment_method_tag')
|
10397
10399
|
@value = HttpClient::Preconditions.assert_class('value', value, String)
|
10398
10400
|
end
|
10399
10401
|
|
@@ -16757,7 +16759,7 @@ module Io
|
|
16757
16759
|
|
16758
16760
|
class ExperienceUpserted < Event
|
16759
16761
|
|
16760
|
-
attr_reader :event_id, :timestamp, :organization, :key, :name, :delivered_duty, :subcatalog_id, :region_id, :country, :currency, :language, :measurement_system, :position
|
16762
|
+
attr_reader :event_id, :timestamp, :organization, :key, :name, :delivered_duty, :subcatalog_id, :region_id, :country, :currency, :language, :measurement_system, :position, :status
|
16761
16763
|
|
16762
16764
|
def initialize(incoming={})
|
16763
16765
|
super(:discriminator => Event::Types::EXPERIENCE_UPSERTED)
|
@@ -16776,6 +16778,7 @@ module Io
|
|
16776
16778
|
@language = HttpClient::Preconditions.assert_class('language', opts.delete(:language), String)
|
16777
16779
|
@measurement_system = HttpClient::Preconditions.assert_class('measurement_system', opts.delete(:measurement_system), String)
|
16778
16780
|
@position = HttpClient::Preconditions.assert_class('position', opts.delete(:position), Integer)
|
16781
|
+
@status = (x = opts.delete(:status); x.nil? ? nil : HttpClient::Preconditions.assert_class('status', x, String))
|
16779
16782
|
end
|
16780
16783
|
|
16781
16784
|
def to_json
|
@@ -16800,7 +16803,8 @@ module Io
|
|
16800
16803
|
:currency => currency,
|
16801
16804
|
:language => language,
|
16802
16805
|
:measurement_system => measurement_system,
|
16803
|
-
:position => position
|
16806
|
+
:position => position,
|
16807
|
+
:status => status
|
16804
16808
|
}
|
16805
16809
|
end
|
16806
16810
|
|
@@ -20549,7 +20553,7 @@ module Io
|
|
20549
20553
|
# Provides display data for a line item.
|
20550
20554
|
class Line
|
20551
20555
|
|
20552
|
-
attr_reader :item_number, :quantity, :price, :total
|
20556
|
+
attr_reader :item_number, :quantity, :price, :total, :attributes
|
20553
20557
|
|
20554
20558
|
def initialize(incoming={})
|
20555
20559
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -20558,6 +20562,7 @@ module Io
|
|
20558
20562
|
@quantity = HttpClient::Preconditions.assert_class('quantity', opts.delete(:quantity), Integer)
|
20559
20563
|
@price = (x = opts.delete(:price); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
|
20560
20564
|
@total = (x = opts.delete(:total); x.is_a?(::Io::Flow::V0::Models::PriceWithBase) ? x : ::Io::Flow::V0::Models::PriceWithBase.new(x))
|
20565
|
+
@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 })
|
20561
20566
|
end
|
20562
20567
|
|
20563
20568
|
def to_json
|
@@ -20573,7 +20578,8 @@ module Io
|
|
20573
20578
|
:item_number => item_number,
|
20574
20579
|
:quantity => quantity,
|
20575
20580
|
:price => price.to_hash,
|
20576
|
-
:total => total.to_hash
|
20581
|
+
:total => total.to_hash,
|
20582
|
+
:attributes => attributes.nil? ? nil : attributes
|
20577
20583
|
}
|
20578
20584
|
end
|
20579
20585
|
|
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.2.
|
4
|
+
version: 0.2.49
|
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: 2017-11-
|
11
|
+
date: 2017-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|