flowcommerce 0.2.88 → 0.2.89
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 +5 -5
- data/lib/flow_commerce/flow_api_v0_client.rb +69 -10
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9870871fa06f875aa06baf8d7184cc177c6fb41cf76b4d300be4813b52a8a8e7
|
4
|
+
data.tar.gz: 9f2d4c6d58ed7bcb0df6939923b516fd3f604eecd77c9ad86633b3f4ba9c813a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f857bebfcc2045c6e8e1e57b3b8ccf43f56171ddaefe86ff09cd3522e6447e499e2ae0fb557fa9585de0aed1d849bf32e8b3a9daf7169fd41e0ab0dab80df3a5
|
7
|
+
data.tar.gz: 7cc64ae8548c01741245fc9eebcd69034009e259e8ead0b35d29e56a8b695247c879c63d9ea84846ce4479976c701a3e489093925dbd1f03577b303961eb0638
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by API Builder - https://www.apibuilder.io
|
2
|
-
# Service version: 0.9.
|
2
|
+
# Service version: 0.9.78
|
3
3
|
# apibuilder 0.15.11 app.apibuilder.io/flow/api/latest/ruby_client
|
4
4
|
|
5
5
|
require 'cgi'
|
@@ -26,7 +26,7 @@ module Io
|
|
26
26
|
BASE_URL = 'https://api.flow.io' unless defined?(Constants::BASE_URL)
|
27
27
|
NAMESPACE = 'io.flow.v0' unless defined?(Constants::NAMESPACE)
|
28
28
|
USER_AGENT = 'apibuilder 0.15.11 app.apibuilder.io/flow/api/latest/ruby_client' unless defined?(Constants::USER_AGENT)
|
29
|
-
VERSION = '0.9.
|
29
|
+
VERSION = '0.9.78' unless defined?(Constants::VERSION)
|
30
30
|
VERSION_MAJOR = 0 unless defined?(VERSION_MAJOR)
|
31
31
|
|
32
32
|
end
|
@@ -18392,6 +18392,55 @@ module Io
|
|
18392
18392
|
|
18393
18393
|
end
|
18394
18394
|
|
18395
|
+
class OrganizationStatus
|
18396
|
+
|
18397
|
+
attr_reader :value
|
18398
|
+
|
18399
|
+
def initialize(value)
|
18400
|
+
@value = HttpClient::Preconditions.assert_class('value', value, String)
|
18401
|
+
end
|
18402
|
+
|
18403
|
+
# Returns the instance of OrganizationStatus for this value, creating a new instance for an unknown value
|
18404
|
+
def OrganizationStatus.apply(value)
|
18405
|
+
if value.instance_of?(OrganizationStatus)
|
18406
|
+
value
|
18407
|
+
else
|
18408
|
+
HttpClient::Preconditions.assert_class_or_nil('value', value, String)
|
18409
|
+
value.nil? ? nil : (from_string(value) || OrganizationStatus.new(value))
|
18410
|
+
end
|
18411
|
+
end
|
18412
|
+
|
18413
|
+
# Returns the instance of OrganizationStatus for this value, or nil if not found
|
18414
|
+
def OrganizationStatus.from_string(value)
|
18415
|
+
HttpClient::Preconditions.assert_class('value', value, String)
|
18416
|
+
OrganizationStatus.ALL.find { |v| v.value == value }
|
18417
|
+
end
|
18418
|
+
|
18419
|
+
def OrganizationStatus.ALL
|
18420
|
+
@@all ||= [OrganizationStatus.active, OrganizationStatus.inactive, OrganizationStatus.deactivated]
|
18421
|
+
end
|
18422
|
+
|
18423
|
+
def OrganizationStatus.active
|
18424
|
+
@@_active ||= OrganizationStatus.new('active')
|
18425
|
+
end
|
18426
|
+
|
18427
|
+
# Determined by usage: ex: orders placed, experience updated, catalog items
|
18428
|
+
# updated, etc...
|
18429
|
+
def OrganizationStatus.inactive
|
18430
|
+
@@_inactive ||= OrganizationStatus.new('inactive')
|
18431
|
+
end
|
18432
|
+
|
18433
|
+
# Manually deactivated
|
18434
|
+
def OrganizationStatus.deactivated
|
18435
|
+
@@_deactivated ||= OrganizationStatus.new('deactivated')
|
18436
|
+
end
|
18437
|
+
|
18438
|
+
def to_hash
|
18439
|
+
value
|
18440
|
+
end
|
18441
|
+
|
18442
|
+
end
|
18443
|
+
|
18395
18444
|
class PaymentErrorCode
|
18396
18445
|
|
18397
18446
|
attr_reader :value
|
@@ -36136,7 +36185,7 @@ module Io
|
|
36136
36185
|
# many clients, this will map to a Sku.
|
36137
36186
|
class Item
|
36138
36187
|
|
36139
|
-
attr_reader :id, :number, :locale, :name, :price, :categories, :description, :attributes, :dimensions, :images, :local
|
36188
|
+
attr_reader :id, :number, :locale, :name, :price, :categories, :description, :attributes, :dimensions, :images, :local, :created_at, :updated_at
|
36140
36189
|
|
36141
36190
|
def initialize(incoming={})
|
36142
36191
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -36152,6 +36201,8 @@ module Io
|
|
36152
36201
|
@dimensions = (x = opts.delete(:dimensions); x.is_a?(::Io::Flow::V0::Models::Dimensions) ? x : ::Io::Flow::V0::Models::Dimensions.new(x))
|
36153
36202
|
@images = HttpClient::Preconditions.assert_class('images', (x = opts.delete(:images); x.nil? ? [] : x), Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::Image) ? x : ::Io::Flow::V0::Models::Image.new(x)) }
|
36154
36203
|
@local = (x = opts.delete(:local); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Local) ? x : ::Io::Flow::V0::Models::Local.new(x)))
|
36204
|
+
@created_at = (x = opts.delete(:created_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
|
36205
|
+
@updated_at = (x = opts.delete(:updated_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('updated_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
|
36155
36206
|
end
|
36156
36207
|
|
36157
36208
|
def to_json
|
@@ -36174,7 +36225,9 @@ module Io
|
|
36174
36225
|
:attributes => attributes,
|
36175
36226
|
:dimensions => dimensions.to_hash,
|
36176
36227
|
:images => images.map { |o| o.to_hash },
|
36177
|
-
:local => local.nil? ? nil : local.to_hash
|
36228
|
+
:local => local.nil? ? nil : local.to_hash,
|
36229
|
+
:created_at => created_at,
|
36230
|
+
:updated_at => updated_at
|
36178
36231
|
}
|
36179
36232
|
end
|
36180
36233
|
|
@@ -41852,7 +41905,7 @@ module Io
|
|
41852
41905
|
# currently operating in.
|
41853
41906
|
class Organization < ExpandableOrganization
|
41854
41907
|
|
41855
|
-
attr_reader :id, :name, :environment, :parent, :defaults, :created_at
|
41908
|
+
attr_reader :id, :name, :environment, :parent, :defaults, :created_at, :status
|
41856
41909
|
|
41857
41910
|
def initialize(incoming={})
|
41858
41911
|
super(:discriminator => ExpandableOrganization::Types::ORGANIZATION)
|
@@ -41864,6 +41917,7 @@ module Io
|
|
41864
41917
|
@parent = (x = opts.delete(:parent); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationReference) ? x : ::Io::Flow::V0::Models::OrganizationReference.new(x)))
|
41865
41918
|
@defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
|
41866
41919
|
@created_at = (x = opts.delete(:created_at); x.nil? ? nil : HttpClient::Preconditions.assert_class('created_at', HttpClient::Helper.to_date_time_iso8601(x), DateTime))
|
41920
|
+
@status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::OrganizationStatus) ? x : ::Io::Flow::V0::Models::OrganizationStatus.apply(x))
|
41867
41921
|
end
|
41868
41922
|
|
41869
41923
|
def to_json
|
@@ -41881,7 +41935,8 @@ module Io
|
|
41881
41935
|
:environment => environment.value,
|
41882
41936
|
:parent => parent.nil? ? nil : parent.to_hash,
|
41883
41937
|
:defaults => defaults.nil? ? nil : defaults.to_hash,
|
41884
|
-
:created_at => created_at
|
41938
|
+
:created_at => created_at,
|
41939
|
+
:status => status.value
|
41885
41940
|
}
|
41886
41941
|
end
|
41887
41942
|
|
@@ -42285,7 +42340,7 @@ module Io
|
|
42285
42340
|
# Either id or name is required.
|
42286
42341
|
class OrganizationForm
|
42287
42342
|
|
42288
|
-
attr_reader :id, :name, :environment, :parent_id, :defaults
|
42343
|
+
attr_reader :id, :name, :environment, :parent_id, :defaults, :status
|
42289
42344
|
|
42290
42345
|
def initialize(incoming={})
|
42291
42346
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -42294,6 +42349,7 @@ module Io
|
|
42294
42349
|
@environment = (x = (x = opts.delete(:environment); x.nil? ? "production" : x); x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x))
|
42295
42350
|
@parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
|
42296
42351
|
@defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
|
42352
|
+
@status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::OrganizationStatus) ? x : ::Io::Flow::V0::Models::OrganizationStatus.apply(x))
|
42297
42353
|
end
|
42298
42354
|
|
42299
42355
|
def to_json
|
@@ -42310,7 +42366,8 @@ module Io
|
|
42310
42366
|
:name => name,
|
42311
42367
|
:environment => environment.value,
|
42312
42368
|
:parent_id => parent_id,
|
42313
|
-
:defaults => defaults.nil? ? nil : defaults.to_hash
|
42369
|
+
:defaults => defaults.nil? ? nil : defaults.to_hash,
|
42370
|
+
:status => status.value
|
42314
42371
|
}
|
42315
42372
|
end
|
42316
42373
|
|
@@ -42319,7 +42376,7 @@ module Io
|
|
42319
42376
|
# Data required to upsert an organization.
|
42320
42377
|
class OrganizationPutForm
|
42321
42378
|
|
42322
|
-
attr_reader :name, :environment, :parent_id, :defaults
|
42379
|
+
attr_reader :name, :environment, :parent_id, :defaults, :status
|
42323
42380
|
|
42324
42381
|
def initialize(incoming={})
|
42325
42382
|
opts = HttpClient::Helper.symbolize_keys(incoming)
|
@@ -42327,6 +42384,7 @@ module Io
|
|
42327
42384
|
@environment = (x = opts.delete(:environment); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::Environment) ? x : ::Io::Flow::V0::Models::Environment.apply(x)))
|
42328
42385
|
@parent_id = (x = opts.delete(:parent_id); x.nil? ? nil : HttpClient::Preconditions.assert_class('parent_id', x, String))
|
42329
42386
|
@defaults = (x = opts.delete(:defaults); x.nil? ? nil : (x = x; x.is_a?(::Io::Flow::V0::Models::OrganizationDefaults) ? x : ::Io::Flow::V0::Models::OrganizationDefaults.new(x)))
|
42387
|
+
@status = (x = (x = opts.delete(:status); x.nil? ? "active" : x); x.is_a?(::Io::Flow::V0::Models::OrganizationStatus) ? x : ::Io::Flow::V0::Models::OrganizationStatus.apply(x))
|
42330
42388
|
end
|
42331
42389
|
|
42332
42390
|
def to_json
|
@@ -42342,7 +42400,8 @@ module Io
|
|
42342
42400
|
:name => name,
|
42343
42401
|
:environment => environment.nil? ? nil : environment.value,
|
42344
42402
|
:parent_id => parent_id,
|
42345
|
-
:defaults => defaults.nil? ? nil : defaults.to_hash
|
42403
|
+
:defaults => defaults.nil? ? nil : defaults.to_hash,
|
42404
|
+
:status => status.value
|
42346
42405
|
}
|
42347
42406
|
end
|
42348
42407
|
|
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.89
|
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: 2021-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -54,8 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
|
58
|
-
rubygems_version: 2.5.2.3
|
57
|
+
rubygems_version: 3.0.3
|
59
58
|
signing_key:
|
60
59
|
specification_version: 4
|
61
60
|
summary: Native ruby client for the Flow REST API.
|