app_token_api 1.0.0 → 1.0.2
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/README.md +7 -7
- data/app_token_api.gemspec +1 -1
- data/lib/admin_api/api/app_token_api.rb +2 -2
- data/lib/admin_api/api/auto_generate_app_token_api.rb +2 -2
- data/lib/admin_api/api/card_api.rb +371 -0
- data/lib/admin_api/api/client_api.rb +368 -0
- data/lib/admin_api/api_client.rb +2 -2
- data/lib/admin_api/api_error.rb +1 -1
- data/lib/admin_api/auth_configuration.rb +4 -4
- data/lib/admin_api/configuration.rb +2 -2
- data/lib/admin_api/models/app_token.rb +1 -1
- data/lib/admin_api/models/card.rb +499 -0
- data/lib/admin_api/models/card_address.rb +271 -0
- data/lib/admin_api/models/client.rb +557 -0
- data/lib/admin_api/models/client_address.rb +281 -0
- data/lib/admin_api/models/employment.rb +216 -0
- data/lib/admin_api/models/page_card.rb +261 -0
- data/lib/admin_api/models/page_client.rb +261 -0
- data/lib/admin_api/models/sort.rb +236 -0
- data/lib/admin_api/version.rb +2 -2
- data/lib/admin_api.rb +1 -1
- data/spec/api/app_token_api_spec.rb +1 -1
- data/spec/api/card_api_spec.rb +88 -0
- data/spec/api/client_api_spec.rb +20 -27
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/app_token_spec.rb +1 -1
- data/spec/models/card_address_spec.rb +77 -0
- data/spec/models/card_spec.rb +215 -0
- data/spec/models/client_address_spec.rb +83 -0
- data/spec/models/client_spec.rb +162 -6
- data/spec/models/employment_spec.rb +59 -0
- data/spec/models/page_card_spec.rb +89 -0
- data/spec/models/page_client_spec.rb +1 -1
- data/spec/models/sort_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +24 -2
@@ -0,0 +1,236 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Admin API
|
3
|
+
|
4
|
+
#The Hydrogen Admin API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.2
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module AdminApi
|
16
|
+
# Sort Object
|
17
|
+
class Sort
|
18
|
+
# ascending
|
19
|
+
attr_accessor :ascending
|
20
|
+
|
21
|
+
# descending
|
22
|
+
attr_accessor :descending
|
23
|
+
|
24
|
+
# direction
|
25
|
+
attr_accessor :direction
|
26
|
+
|
27
|
+
# ignoreCase
|
28
|
+
attr_accessor :ignore_case
|
29
|
+
|
30
|
+
# nullHandling
|
31
|
+
attr_accessor :null_handling
|
32
|
+
|
33
|
+
# property
|
34
|
+
attr_accessor :property
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'ascending' => :'ascending',
|
40
|
+
:'descending' => :'descending',
|
41
|
+
:'direction' => :'direction',
|
42
|
+
:'ignore_case' => :'ignore_case',
|
43
|
+
:'null_handling' => :'null_handling',
|
44
|
+
:'property' => :'property'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.swagger_types
|
50
|
+
{
|
51
|
+
:'ascending' => :'BOOLEAN',
|
52
|
+
:'descending' => :'BOOLEAN',
|
53
|
+
:'direction' => :'String',
|
54
|
+
:'ignore_case' => :'BOOLEAN',
|
55
|
+
:'null_handling' => :'String',
|
56
|
+
:'property' => :'String'
|
57
|
+
}
|
58
|
+
end
|
59
|
+
|
60
|
+
# Initializes the object
|
61
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
62
|
+
def initialize(attributes = {})
|
63
|
+
return unless attributes.is_a?(Hash)
|
64
|
+
|
65
|
+
# convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
|
+
|
68
|
+
if attributes.has_key?(:'ascending')
|
69
|
+
self.ascending = attributes[:'ascending']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'descending')
|
73
|
+
self.descending = attributes[:'descending']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'direction')
|
77
|
+
self.direction = attributes[:'direction']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'ignore_case')
|
81
|
+
self.ignore_case = attributes[:'ignore_case']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'null_handling')
|
85
|
+
self.null_handling = attributes[:'null_handling']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'property')
|
89
|
+
self.property = attributes[:'property']
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
94
|
+
# @return Array for valid properties with the reasons
|
95
|
+
def list_invalid_properties
|
96
|
+
invalid_properties = Array.new
|
97
|
+
invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
ascending == o.ascending &&
|
112
|
+
descending == o.descending &&
|
113
|
+
direction == o.direction &&
|
114
|
+
ignore_case == o.ignore_case &&
|
115
|
+
null_handling == o.null_handling &&
|
116
|
+
property == o.property
|
117
|
+
end
|
118
|
+
|
119
|
+
# @see the `==` method
|
120
|
+
# @param [Object] Object to be compared
|
121
|
+
def eql?(o)
|
122
|
+
self == o
|
123
|
+
end
|
124
|
+
|
125
|
+
# Calculates hash code according to all attributes.
|
126
|
+
# @return [Fixnum] Hash code
|
127
|
+
def hash
|
128
|
+
[ascending, descending, direction, ignore_case, null_handling, property].hash
|
129
|
+
end
|
130
|
+
|
131
|
+
# Builds the object from hash
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
133
|
+
# @return [Object] Returns the model itself
|
134
|
+
def build_from_hash(attributes)
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
137
|
+
if type =~ /\AArray<(.*)>/i
|
138
|
+
# check to ensure the input is an array given that the attribute
|
139
|
+
# is documented as an array but the input is not
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
142
|
+
end
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
145
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
146
|
+
end
|
147
|
+
|
148
|
+
self
|
149
|
+
end
|
150
|
+
|
151
|
+
# Deserializes the data based on type
|
152
|
+
# @param string type Data type
|
153
|
+
# @param string value Value to be deserialized
|
154
|
+
# @return [Object] Deserialized data
|
155
|
+
def _deserialize(type, value)
|
156
|
+
case type.to_sym
|
157
|
+
when :DateTime
|
158
|
+
DateTime.parse(value)
|
159
|
+
when :Date
|
160
|
+
Date.parse(value)
|
161
|
+
when :String
|
162
|
+
value.to_s
|
163
|
+
when :Integer
|
164
|
+
value.to_i
|
165
|
+
when :Float
|
166
|
+
value.to_f
|
167
|
+
when :BOOLEAN
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
169
|
+
true
|
170
|
+
else
|
171
|
+
false
|
172
|
+
end
|
173
|
+
when :Object
|
174
|
+
# generic object (usually a Hash), return directly
|
175
|
+
value
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each do |k, v|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
else # model
|
188
|
+
temp_model = AdminApi.const_get(type).new
|
189
|
+
temp_model.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
next if value.nil?
|
212
|
+
hash[param] = _to_hash(value)
|
213
|
+
end
|
214
|
+
hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Outputs non-array value in the form of hash
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
219
|
+
# @param [Object] value Any valid value
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
221
|
+
def _to_hash(value)
|
222
|
+
if value.is_a?(Array)
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
224
|
+
elsif value.is_a?(Hash)
|
225
|
+
{}.tap do |hash|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
+
end
|
228
|
+
elsif value.respond_to? :to_hash
|
229
|
+
value.to_hash
|
230
|
+
else
|
231
|
+
value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
end
|
236
|
+
end
|
data/lib/admin_api/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Hydrogen Admin API
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.0.2
|
7
7
|
Contact: info@hydrogenplatform.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.15
|
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module AdminApi
|
14
|
-
VERSION = '1.0.
|
14
|
+
VERSION = '1.0.2'
|
15
15
|
end
|
data/lib/admin_api.rb
CHANGED
@@ -0,0 +1,88 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Admin API
|
3
|
+
|
4
|
+
#The Hydrogen Admin API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.2
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AdminApi::CardApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CardApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = AdminApi::CardApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of CardApi' do
|
30
|
+
it 'should create an instance of CardApi' do
|
31
|
+
expect(@instance).to be_instance_of(AdminApi::CardApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_card_using_post
|
36
|
+
# Create a card request
|
37
|
+
# Create a new card request.
|
38
|
+
# @param card_request cardRequest
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Card]
|
41
|
+
describe 'create_card_using_post test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for get_card_all_using_get
|
48
|
+
# List all card requests
|
49
|
+
# Get the information for all card requests.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @option opts [BOOLEAN] :ascending ascending
|
52
|
+
# @option opts [String] :filter filter
|
53
|
+
# @option opts [String] :order_by order_by
|
54
|
+
# @option opts [Integer] :page page
|
55
|
+
# @option opts [Integer] :size size
|
56
|
+
# @return [PageCard]
|
57
|
+
describe 'get_card_all_using_get test' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# unit tests for get_card_using_get
|
64
|
+
# Retrieve a card request
|
65
|
+
# Retrieve the information for a card request.
|
66
|
+
# @param card_id UUID card_id
|
67
|
+
# @param [Hash] opts the optional parameters
|
68
|
+
# @return [Card]
|
69
|
+
describe 'get_card_using_get test' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for update_card_using_put
|
76
|
+
# Update a card request
|
77
|
+
# Update the information for a card request.
|
78
|
+
# @param card card
|
79
|
+
# @param card_id UUID card_id
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [Card]
|
82
|
+
describe 'update_card_using_put test' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
data/spec/api/client_api_spec.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Hydrogen Admin API
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.0.2
|
7
7
|
Contact: info@hydrogenplatform.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.15
|
@@ -32,30 +32,21 @@ describe 'ClientApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
36
|
-
#
|
37
|
-
#
|
35
|
+
# unit tests for create_client_using_post
|
36
|
+
# Create a client
|
37
|
+
# Create a new client, or register a new user, with your firm.
|
38
|
+
# @param client_request clientRequest
|
38
39
|
# @param [Hash] opts the optional parameters
|
39
40
|
# @return [Client]
|
40
|
-
describe '
|
41
|
-
it 'should work' do
|
42
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# unit tests for delete_using_delete
|
47
|
-
# delete
|
48
|
-
# @param client_id client_id
|
49
|
-
# @param [Hash] opts the optional parameters
|
50
|
-
# @return [nil]
|
51
|
-
describe 'delete_using_delete test' do
|
41
|
+
describe 'create_client_using_post test' do
|
52
42
|
it 'should work' do
|
53
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
44
|
end
|
55
45
|
end
|
56
46
|
|
57
|
-
# unit tests for
|
58
|
-
#
|
47
|
+
# unit tests for get_client_all_using_get
|
48
|
+
# List all clients
|
49
|
+
# Get details for all clients registered with your firm.
|
59
50
|
# @param [Hash] opts the optional parameters
|
60
51
|
# @option opts [BOOLEAN] :ascending ascending
|
61
52
|
# @option opts [String] :filter filter
|
@@ -63,30 +54,32 @@ describe 'ClientApi' do
|
|
63
54
|
# @option opts [Integer] :page page
|
64
55
|
# @option opts [Integer] :size size
|
65
56
|
# @return [PageClient]
|
66
|
-
describe '
|
57
|
+
describe 'get_client_all_using_get test' do
|
67
58
|
it 'should work' do
|
68
59
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
60
|
end
|
70
61
|
end
|
71
62
|
|
72
|
-
# unit tests for
|
73
|
-
#
|
74
|
-
#
|
63
|
+
# unit tests for get_client_using_get
|
64
|
+
# Retrieve a client
|
65
|
+
# Retrieve the information for a client registered with your firm.
|
66
|
+
# @param client_id UUID client_id
|
75
67
|
# @param [Hash] opts the optional parameters
|
76
68
|
# @return [Client]
|
77
|
-
describe '
|
69
|
+
describe 'get_client_using_get test' do
|
78
70
|
it 'should work' do
|
79
71
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
72
|
end
|
81
73
|
end
|
82
74
|
|
83
|
-
# unit tests for
|
84
|
-
#
|
75
|
+
# unit tests for update_client_using_put
|
76
|
+
# Update a client
|
77
|
+
# Update the information for a client registered with your firm.
|
85
78
|
# @param client client
|
86
|
-
# @param client_id client_id
|
79
|
+
# @param client_id UUID client_id
|
87
80
|
# @param [Hash] opts the optional parameters
|
88
81
|
# @return [Client]
|
89
|
-
describe '
|
82
|
+
describe 'update_client_using_put test' do
|
90
83
|
it 'should work' do
|
91
84
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
85
|
end
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Hydrogen Admin API
|
5
5
|
|
6
|
-
OpenAPI spec version: 1.
|
6
|
+
OpenAPI spec version: 1.0.2
|
7
7
|
Contact: info@hydrogenplatform.com
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.4.15
|
@@ -18,7 +18,7 @@ describe AdminApi::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("https://sandbox.hydrogenplatform.com/
|
21
|
+
# uri = URI.parse("https://sandbox.hydrogenplatform.com/component/v1")
|
22
22
|
# AdminApi.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe AdminApi::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("https://sandbox.hydrogenplatform.com/
|
31
|
+
# expect(config.base_url).to eq("https://sandbox.hydrogenplatform.com/component/v1")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("https://sandbox.hydrogenplatform.com/
|
38
|
+
# expect(config.base_url).to eq("https://sandbox.hydrogenplatform.com/component/v1")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
=begin
|
2
|
+
#Hydrogen Admin API
|
3
|
+
|
4
|
+
#The Hydrogen Admin API
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.2
|
7
|
+
Contact: info@hydrogenplatform.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AdminApi::CardAddress
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CardAddress' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = AdminApi::CardAddress.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CardAddress' do
|
31
|
+
it 'should create an instance of CardAddress' do
|
32
|
+
expect(@instance).to be_instance_of(AdminApi::CardAddress)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "address_line1"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "address_line2"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "city"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "country"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "postalcode"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "state"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "type"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|