flowcommerce 0.2.33 → 0.2.34
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.
- data/lib/flow_commerce/flow_api_v0_client.rb +13 -13
- metadata +13 -9
- checksums.yaml +0 -7
@@ -1,6 +1,6 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
2
|
# Service version: 0.3.65
|
3
|
-
# apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.
|
3
|
+
# apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.82/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.61 https://app.apibuilder.io/flow/api/0.3.
|
28
|
+
USER_AGENT = 'apibuilder:0.12.61 https://app.apibuilder.io/flow/api/0.3.82/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
29
|
VERSION = '0.3.65' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
@@ -523,7 +523,7 @@ module Io
|
|
523
523
|
r.map { |x| ::Io::Flow::V0::Models::Item.new(x) }
|
524
524
|
end
|
525
525
|
|
526
|
-
# Returns a
|
526
|
+
# Returns a specific globally restricted item.
|
527
527
|
def get_catalog_and_restrictions_by_number(organization, number)
|
528
528
|
HttpClient::Preconditions.assert_class('organization', organization, String)
|
529
529
|
HttpClient::Preconditions.assert_class('number', number, String)
|
@@ -19954,17 +19954,17 @@ module Io
|
|
19954
19954
|
# carrier for shipping
|
19955
19955
|
class Manifest
|
19956
19956
|
|
19957
|
-
attr_reader :id, :type, :
|
19957
|
+
attr_reader :id, :type, :timestamp, :shipping_labels, :pdf, :service
|
19958
19958
|
|
19959
19959
|
def initialize(incoming={})
|
19960
19960
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19961
|
-
HttpClient::Preconditions.require_keys(opts, [:id, :type, :
|
19961
|
+
HttpClient::Preconditions.require_keys(opts, [:id, :type, :timestamp, :shipping_labels], 'Manifest')
|
19962
19962
|
@id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
|
19963
19963
|
@type = (x = opts.delete(:type); x.is_a?(::Io::Flow::V0::Models::ManifestType) ? x : ::Io::Flow::V0::Models::ManifestType.apply(x))
|
19964
|
-
@service = (x = opts.delete(:service); x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x))
|
19965
19964
|
@timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime)
|
19966
19965
|
@shipping_labels = HttpClient::Preconditions.assert_class('shipping_labels', opts.delete(:shipping_labels), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::ShippingLabelSummary) ? x : ::Io::Flow::V0::Models::ShippingLabelSummary.new(x)) }
|
19967
19966
|
@pdf = (x = opts.delete(:pdf); x.nil? ? nil : HttpClient::Preconditions.assert_class('pdf', x, String))
|
19967
|
+
@service = (x = opts.delete(:service); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::ServiceSummary) ? x : ::Io::Flow::V0::Models::ServiceSummary.new(x)))
|
19968
19968
|
end
|
19969
19969
|
|
19970
19970
|
def to_json
|
@@ -19979,10 +19979,10 @@ module Io
|
|
19979
19979
|
{
|
19980
19980
|
:id => id,
|
19981
19981
|
:type => type.value,
|
19982
|
-
:service => service.to_hash,
|
19983
19982
|
:timestamp => timestamp,
|
19984
19983
|
:shipping_labels => shipping_labels.map { |o| o.to_hash },
|
19985
|
-
:pdf => pdf
|
19984
|
+
:pdf => pdf,
|
19985
|
+
:service => service.nil? ? nil : service.to_hash
|
19986
19986
|
}
|
19987
19987
|
end
|
19988
19988
|
|
@@ -19990,14 +19990,14 @@ module Io
|
|
19990
19990
|
|
19991
19991
|
class ManifestForm
|
19992
19992
|
|
19993
|
-
attr_reader :
|
19993
|
+
attr_reader :tracking_number_type, :tracking_numbers, :service
|
19994
19994
|
|
19995
19995
|
def initialize(incoming={})
|
19996
19996
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
19997
|
-
HttpClient::Preconditions.require_keys(opts, [:
|
19998
|
-
@service = HttpClient::Preconditions.assert_class('service', opts.delete(:service), String)
|
19997
|
+
HttpClient::Preconditions.require_keys(opts, [:tracking_number_type, :tracking_numbers], 'ManifestForm')
|
19999
19998
|
@tracking_number_type = (x = opts.delete(:tracking_number_type); x.is_a?(::Io::Flow::V0::Models::TrackingNumberType) ? x : ::Io::Flow::V0::Models::TrackingNumberType.apply(x))
|
20000
19999
|
@tracking_numbers = HttpClient::Preconditions.assert_class('tracking_numbers', opts.delete(:tracking_numbers), Array).map { |v| HttpClient::Preconditions.assert_class('tracking_numbers', v, String) }
|
20000
|
+
@service = (x = opts.delete(:service); x.nil? ? nil : HttpClient::Preconditions.assert_class('service', x, String))
|
20001
20001
|
end
|
20002
20002
|
|
20003
20003
|
def to_json
|
@@ -20010,9 +20010,9 @@ module Io
|
|
20010
20010
|
|
20011
20011
|
def to_hash
|
20012
20012
|
{
|
20013
|
-
:service => service,
|
20014
20013
|
:tracking_number_type => tracking_number_type.value,
|
20015
|
-
:tracking_numbers => tracking_numbers
|
20014
|
+
:tracking_numbers => tracking_numbers,
|
20015
|
+
:service => service
|
20016
20016
|
}
|
20017
20017
|
end
|
20018
20018
|
|
metadata
CHANGED
@@ -1,27 +1,30 @@
|
|
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.34
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Flow Commerce, Inc.
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: json
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
description: Native ruby client for the Flow REST API. Detailed information at https://app.apibuilder.io/flow/api
|
@@ -38,25 +41,26 @@ files:
|
|
38
41
|
homepage: https://github.com/flowcommerce/ruby-sdk
|
39
42
|
licenses:
|
40
43
|
- MIT
|
41
|
-
metadata: {}
|
42
44
|
post_install_message:
|
43
45
|
rdoc_options: []
|
44
46
|
require_paths:
|
45
47
|
- lib
|
46
48
|
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
47
50
|
requirements:
|
48
|
-
- - '>='
|
51
|
+
- - ! '>='
|
49
52
|
- !ruby/object:Gem::Version
|
50
53
|
version: '0'
|
51
54
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
52
56
|
requirements:
|
53
|
-
- - '>='
|
57
|
+
- - ! '>='
|
54
58
|
- !ruby/object:Gem::Version
|
55
59
|
version: '0'
|
56
60
|
requirements: []
|
57
61
|
rubyforge_project:
|
58
|
-
rubygems_version:
|
62
|
+
rubygems_version: 1.8.23.2
|
59
63
|
signing_key:
|
60
|
-
specification_version:
|
64
|
+
specification_version: 3
|
61
65
|
summary: Native ruby client for the Flow REST API.
|
62
66
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: f03dbedc5342ce8739cbc9933ff5bf80f3f11b05
|
4
|
-
data.tar.gz: 8f7d36365c9f451341c55340ee57024a66acc4f3
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: fbf67adb12a8ceeaed72a4b72e8a3bfaa2294e9a2e295b30840576439543a8e7ff564ba094bf2bf418eb871466c0710f8fc3281b0d022a003fad74220d1c0c69
|
7
|
-
data.tar.gz: 3092e3169873fc2d4ba60ffcf5d260f0e560ac63e49ef30ef6129a745e4974f65e01a9f0c2d062c5b9130106e9d2d9bf9862152ef28678667a72beb92d52dda0
|