flowcommerce-reference 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30bd29625543ff5bac7a45f82270d4247068d193
4
- data.tar.gz: 58e797a4114de98b84b43796658dd88c12115997
3
+ metadata.gz: 3b7afea601c5fd3bd938184ccff581a338aa50c8
4
+ data.tar.gz: b161bf9a3bb216d10b220e98878f8250851a8e1d
5
5
  SHA512:
6
- metadata.gz: 6d306d35323c5c387c2a7fa5c735af975f42523d9fbcbaa83d40e6d96eb39e59f5d202333283ee334062b2b448a743b32094bbcf4a8ef898a570ea16d91cecfc
7
- data.tar.gz: b7f709ec3f6bf5dfae9fb13f21b226586b51fe53685d20f07d1e49bcd4653bc18478497eb1118a8d09ce469fad0ca87935a21c6bf4481a11ceab1189c20b6ba2
6
+ metadata.gz: e17157852afaafe7f3c5cfb3ccdeb64a147d0acfd28b9cfb1aa19053c87ed966ae279198fd03a5b3bb2292c8e14d9ac7325883f8e7fad7ff27a6d1f50ae8ba6c
7
+ data.tar.gz: 1dda0942bf4d6f8d35ab84a95aaf01fd9143eb613942d49774764cf3dd92bc8440101cd69c1ed92faea05fce3c666cddf685eb37eb71c54d2055c0beb172d510
@@ -1,6 +1,6 @@
1
1
  # Generated by API Builder - https://www.apibuilder.io
2
- # Service version: 0.5.9
3
- # apibuilder 0.14.3 app.apibuilder.io/flow/reference/0.5.9/ruby_client
2
+ # Service version: 0.5.43
3
+ # apibuilder 0.14.3 app.apibuilder.io/flow/reference/0.5.43/ruby_client
4
4
 
5
5
  require 'cgi'
6
6
  require 'net/http'
@@ -16,7 +16,7 @@ require 'bigdecimal'
16
16
  # Reference data that changes infrequently including countries, currencies,
17
17
  # languages, etc.
18
18
  module Io
19
- module FlowCommerce
19
+ module Flow
20
20
  module Reference
21
21
  module V0
22
22
 
@@ -24,10 +24,10 @@ module Io
24
24
 
25
25
  module Constants
26
26
 
27
- BASE_URL = 'https://api.flow.io/reference' unless defined?(Constants::BASE_URL)
27
+ BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
28
28
  NAMESPACE = 'io.flow.reference.v0' unless defined?(Constants::NAMESPACE)
29
- USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/reference/0.5.9/ruby_client' unless defined?(Constants::USER_AGENT)
30
- VERSION = '0.5.9' unless defined?(Constants::VERSION)
29
+ USER_AGENT = 'apibuilder 0.14.3 app.apibuilder.io/flow/reference/0.5.43/ruby_client' unless defined?(Constants::USER_AGENT)
30
+ VERSION = '0.5.43' unless defined?(Constants::VERSION)
31
31
  VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
32
32
 
33
33
  end
@@ -66,35 +66,35 @@ module Io
66
66
  end
67
67
 
68
68
  def countries
69
- @countries ||= ::Io::FlowCommerce::Reference::V0::Clients::Countries.new(self)
69
+ @countries ||= ::Io::Flow::Reference::V0::Clients::Countries.new(self)
70
70
  end
71
71
 
72
72
  def currencies
73
- @currencies ||= ::Io::FlowCommerce::Reference::V0::Clients::Currencies.new(self)
73
+ @currencies ||= ::Io::Flow::Reference::V0::Clients::Currencies.new(self)
74
74
  end
75
75
 
76
76
  def languages
77
- @languages ||= ::Io::FlowCommerce::Reference::V0::Clients::Languages.new(self)
77
+ @languages ||= ::Io::Flow::Reference::V0::Clients::Languages.new(self)
78
78
  end
79
79
 
80
80
  def locales
81
- @locales ||= ::Io::FlowCommerce::Reference::V0::Clients::Locales.new(self)
81
+ @locales ||= ::Io::Flow::Reference::V0::Clients::Locales.new(self)
82
82
  end
83
83
 
84
84
  def payment_methods
85
- @payment_methods ||= ::Io::FlowCommerce::Reference::V0::Clients::PaymentMethods.new(self)
85
+ @payment_methods ||= ::Io::Flow::Reference::V0::Clients::PaymentMethods.new(self)
86
86
  end
87
87
 
88
88
  def provinces
89
- @provinces ||= ::Io::FlowCommerce::Reference::V0::Clients::Provinces.new(self)
89
+ @provinces ||= ::Io::Flow::Reference::V0::Clients::Provinces.new(self)
90
90
  end
91
91
 
92
92
  def regions
93
- @regions ||= ::Io::FlowCommerce::Reference::V0::Clients::Regions.new(self)
93
+ @regions ||= ::Io::Flow::Reference::V0::Clients::Regions.new(self)
94
94
  end
95
95
 
96
96
  def timezones
97
- @timezones ||= ::Io::FlowCommerce::Reference::V0::Clients::Timezones.new(self)
97
+ @timezones ||= ::Io::Flow::Reference::V0::Clients::Timezones.new(self)
98
98
  end
99
99
  end
100
100
 
@@ -103,7 +103,7 @@ module Io
103
103
  class Countries
104
104
 
105
105
  def initialize(client)
106
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
106
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
107
107
  end
108
108
 
109
109
  # Returns a list of countries.
@@ -113,7 +113,7 @@ module Io
113
113
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
114
114
  }.delete_if { |k, v| v.nil? }
115
115
  r = @client.request("/reference/countries").with_query(query).get
116
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Country.new(x) }
116
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Country.new(x) }
117
117
  end
118
118
 
119
119
  end
@@ -121,7 +121,7 @@ module Io
121
121
  class Currencies
122
122
 
123
123
  def initialize(client)
124
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
124
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
125
125
  end
126
126
 
127
127
  # Returns a list of currencies.
@@ -131,7 +131,7 @@ module Io
131
131
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
132
132
  }.delete_if { |k, v| v.nil? }
133
133
  r = @client.request("/reference/currencies").with_query(query).get
134
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Currency.new(x) }
134
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Currency.new(x) }
135
135
  end
136
136
 
137
137
  end
@@ -139,7 +139,7 @@ module Io
139
139
  class Languages
140
140
 
141
141
  def initialize(client)
142
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
142
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
143
143
  end
144
144
 
145
145
  # Returns a list of languages.
@@ -149,7 +149,7 @@ module Io
149
149
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
150
150
  }.delete_if { |k, v| v.nil? }
151
151
  r = @client.request("/reference/languages").with_query(query).get
152
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Language.new(x) }
152
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Language.new(x) }
153
153
  end
154
154
 
155
155
  end
@@ -157,7 +157,7 @@ module Io
157
157
  class Locales
158
158
 
159
159
  def initialize(client)
160
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
160
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
161
161
  end
162
162
 
163
163
  # Returns a list of locales.
@@ -167,14 +167,14 @@ module Io
167
167
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
168
168
  }.delete_if { |k, v| v.nil? }
169
169
  r = @client.request("/reference/locales").with_query(query).get
170
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Locale.new(x) }
170
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Locale.new(x) }
171
171
  end
172
172
 
173
173
  # Returns the locale with the specifed id.
174
174
  def get_by_id(id)
175
175
  HttpClient::Preconditions.assert_class('id', id, String)
176
176
  r = @client.request("/reference/locales/#{CGI.escape(id)}").get
177
- ::Io::FlowCommerce::Reference::V0::Models::Locale.new(r)
177
+ ::Io::Flow::Reference::V0::Models::Locale.new(r)
178
178
  end
179
179
 
180
180
  end
@@ -182,7 +182,7 @@ module Io
182
182
  class PaymentMethods
183
183
 
184
184
  def initialize(client)
185
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
185
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
186
186
  end
187
187
 
188
188
  # Returns a list of payment methods supported by Flow.
@@ -192,7 +192,7 @@ module Io
192
192
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
193
193
  }.delete_if { |k, v| v.nil? }
194
194
  r = @client.request("/reference/payment-methods").with_query(query).get
195
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::PaymentMethod.new(x) }
195
+ r.map { |x| ::Io::Flow::Reference::V0::Models::PaymentMethod.new(x) }
196
196
  end
197
197
 
198
198
  end
@@ -200,7 +200,7 @@ module Io
200
200
  class Provinces
201
201
 
202
202
  def initialize(client)
203
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
203
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
204
204
  end
205
205
 
206
206
  # Returns a list of provinces.
@@ -211,14 +211,14 @@ module Io
211
211
  :countries => (x = opts.delete(:countries); x.nil? ? nil : HttpClient::Preconditions.assert_class('countries', x, Array).map { |v| HttpClient::Preconditions.assert_class('countries', v, String) })
212
212
  }.delete_if { |k, v| v.nil? }
213
213
  r = @client.request("/reference/provinces").with_query(query).get
214
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Province.new(x) }
214
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Province.new(x) }
215
215
  end
216
216
 
217
217
  # Returns the province with the specifed id.
218
218
  def get_by_id(id)
219
219
  HttpClient::Preconditions.assert_class('id', id, String)
220
220
  r = @client.request("/reference/provinces/#{CGI.escape(id)}").get
221
- ::Io::FlowCommerce::Reference::V0::Models::Province.new(r)
221
+ ::Io::Flow::Reference::V0::Models::Province.new(r)
222
222
  end
223
223
 
224
224
  end
@@ -226,7 +226,7 @@ module Io
226
226
  class Regions
227
227
 
228
228
  def initialize(client)
229
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
229
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
230
230
  end
231
231
 
232
232
  # Returns a list of regions.
@@ -236,14 +236,14 @@ module Io
236
236
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
237
237
  }.delete_if { |k, v| v.nil? }
238
238
  r = @client.request("/reference/regions").with_query(query).get
239
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Region.new(x) }
239
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Region.new(x) }
240
240
  end
241
241
 
242
242
  # Returns the region with the specifed id.
243
243
  def get_by_id(id)
244
244
  HttpClient::Preconditions.assert_class('id', id, String)
245
245
  r = @client.request("/reference/regions/#{CGI.escape(id)}").get
246
- ::Io::FlowCommerce::Reference::V0::Models::Region.new(r)
246
+ ::Io::Flow::Reference::V0::Models::Region.new(r)
247
247
  end
248
248
 
249
249
  end
@@ -251,7 +251,7 @@ module Io
251
251
  class Timezones
252
252
 
253
253
  def initialize(client)
254
- @client = HttpClient::Preconditions.assert_class('client', client, ::Io::FlowCommerce::Reference::V0::Client)
254
+ @client = HttpClient::Preconditions.assert_class('client', client, ::Io::Flow::Reference::V0::Client)
255
255
  end
256
256
 
257
257
  # Returns a list of timezones.
@@ -261,7 +261,7 @@ module Io
261
261
  :q => (x = opts.delete(:q); x.nil? ? nil : HttpClient::Preconditions.assert_class('q', x, String))
262
262
  }.delete_if { |k, v| v.nil? }
263
263
  r = @client.request("/reference/timezones").with_query(query).get
264
- r.map { |x| ::Io::FlowCommerce::Reference::V0::Models::Timezone.new(x) }
264
+ r.map { |x| ::Io::Flow::Reference::V0::Models::Timezone.new(x) }
265
265
  end
266
266
 
267
267
  end
@@ -445,7 +445,7 @@ module Io
445
445
  opts = HttpClient::Helper.symbolize_keys(incoming)
446
446
  HttpClient::Preconditions.require_keys(opts, [:id, :carrier, :name], 'CarrierService')
447
447
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
448
- @carrier = (x = opts.delete(:carrier); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::Carrier) ? x : ::Io::FlowCommerce::Reference::V0::Models::Carrier.new(x))
448
+ @carrier = (x = opts.delete(:carrier); x.is_a?(::Io::Flow::Reference::V0::Models::Carrier) ? x : ::Io::Flow::Reference::V0::Models::Carrier.new(x))
449
449
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
450
450
  end
451
451
 
@@ -522,7 +522,7 @@ module Io
522
522
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
523
523
  @iso_4217_3 = HttpClient::Preconditions.assert_class('iso_4217_3', opts.delete(:iso_4217_3), String)
524
524
  @number_decimals = HttpClient::Preconditions.assert_class('number_decimals', opts.delete(:number_decimals), Integer)
525
- @symbols = (x = opts.delete(:symbols); x.nil? ? nil : (x = x; x.is_a?(::Io::FlowCommerce::Reference::V0::Models::CurrencySymbols) ? x : ::Io::FlowCommerce::Reference::V0::Models::CurrencySymbols.new(x)))
525
+ @symbols = (x = opts.delete(:symbols); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::Reference::V0::Models::CurrencySymbols) ? x : ::Io::Flow::Reference::V0::Models::CurrencySymbols.new(x)))
526
526
  @default_locale = (x = opts.delete(:default_locale); x.nil? ? nil : HttpClient::Preconditions.assert_class('default_locale', x, String))
527
527
  end
528
528
 
@@ -617,7 +617,7 @@ module Io
617
617
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
618
618
  @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
619
619
  @language = HttpClient::Preconditions.assert_class('language', opts.delete(:language), String)
620
- @numbers = (x = opts.delete(:numbers); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::LocaleNumbers) ? x : ::Io::FlowCommerce::Reference::V0::Models::LocaleNumbers.new(x))
620
+ @numbers = (x = opts.delete(:numbers); x.is_a?(::Io::Flow::Reference::V0::Models::LocaleNumbers) ? x : ::Io::Flow::Reference::V0::Models::LocaleNumbers.new(x))
621
621
  end
622
622
 
623
623
  def to_json
@@ -677,7 +677,7 @@ module Io
677
677
  def initialize(incoming={})
678
678
  opts = HttpClient::Helper.symbolize_keys(incoming)
679
679
  HttpClient::Preconditions.require_keys(opts, [:locale, :name], 'LocalizedTranslation')
680
- @locale = (x = opts.delete(:locale); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::Locale) ? x : ::Io::FlowCommerce::Reference::V0::Models::Locale.new(x))
680
+ @locale = (x = opts.delete(:locale); x.is_a?(::Io::Flow::Reference::V0::Models::Locale) ? x : ::Io::Flow::Reference::V0::Models::Locale.new(x))
681
681
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
682
682
  end
683
683
 
@@ -708,9 +708,9 @@ module Io
708
708
  opts = HttpClient::Helper.symbolize_keys(incoming)
709
709
  HttpClient::Preconditions.require_keys(opts, [:id, :type, :name, :images, :regions], 'PaymentMethod')
710
710
  @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String)
711
- @type = (x = opts.delete(:type); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::PaymentMethodType) ? x : ::Io::FlowCommerce::Reference::V0::Models::PaymentMethodType.apply(x))
711
+ @type = (x = opts.delete(:type); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodType) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodType.apply(x))
712
712
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
713
- @images = (x = opts.delete(:images); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImages) ? x : ::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImages.new(x))
713
+ @images = (x = opts.delete(:images); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImages) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImages.new(x))
714
714
  @regions = HttpClient::Preconditions.assert_class('regions', opts.delete(:regions), Array).map { |v| HttpClient::Preconditions.assert_class('regions', v, String) }
715
715
  end
716
716
 
@@ -771,9 +771,9 @@ module Io
771
771
  def initialize(incoming={})
772
772
  opts = HttpClient::Helper.symbolize_keys(incoming)
773
773
  HttpClient::Preconditions.require_keys(opts, [:small, :medium, :large], 'PaymentMethodImages')
774
- @small = (x = opts.delete(:small); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImage.new(x))
775
- @medium = (x = opts.delete(:medium); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImage.new(x))
776
- @large = (x = opts.delete(:large); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::FlowCommerce::Reference::V0::Models::PaymentMethodImage.new(x))
774
+ @small = (x = opts.delete(:small); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImage.new(x))
775
+ @medium = (x = opts.delete(:medium); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImage.new(x))
776
+ @large = (x = opts.delete(:large); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImage.new(x))
777
777
  end
778
778
 
779
779
  def to_json
@@ -807,8 +807,8 @@ module Io
807
807
  @iso_3166_2 = HttpClient::Preconditions.assert_class('iso_3166_2', opts.delete(:iso_3166_2), String)
808
808
  @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String)
809
809
  @country = HttpClient::Preconditions.assert_class('country', opts.delete(:country), String)
810
- @province_type = (x = opts.delete(:province_type); x.is_a?(::Io::FlowCommerce::Reference::V0::Models::ProvinceType) ? x : ::Io::FlowCommerce::Reference::V0::Models::ProvinceType.apply(x))
811
- @translations = (x = opts.delete(:translations); x.nil? ? nil : HttpClient::Preconditions.assert_class('translations', x, Array).map { |v| (x = v; x.is_a?(::Io::FlowCommerce::Reference::V0::Models::LocalizedTranslation) ? x : ::Io::FlowCommerce::Reference::V0::Models::LocalizedTranslation.new(x)) })
810
+ @province_type = (x = opts.delete(:province_type); x.is_a?(::Io::Flow::Reference::V0::Models::ProvinceType) ? x : ::Io::Flow::Reference::V0::Models::ProvinceType.apply(x))
811
+ @translations = (x = opts.delete(:translations); x.nil? ? nil : HttpClient::Preconditions.assert_class('translations', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::Reference::V0::Models::LocalizedTranslation) ? x : ::Io::Flow::Reference::V0::Models::LocalizedTranslation.new(x)) })
812
812
  end
813
813
 
814
814
  def to_json
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
- # Automatically generated at 2018-07-12 09:23:42 +0100
1
+ # Automatically generated at 2018-07-12 09:31:51 +0100
2
2
 
3
3
  module FlowCommerce
4
4
  module Reference
5
- VERSION = '0.4.3'
5
+ VERSION = '0.4.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flowcommerce-reference
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bryzek
@@ -18,8 +18,8 @@ executables: []
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
- - "./lib/flow-reference.rb"
22
21
  - "./lib/flow_reference_v0_client.rb"
22
+ - "./lib/flowcommerce-reference.rb"
23
23
  - "./lib/generated/continents.rb"
24
24
  - "./lib/generated/countries.rb"
25
25
  - "./lib/generated/currencies.rb"