fountain_partner_api_client 0.0.1 → 0.0.3

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.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -23
  3. data/docs/DefaultApi.md +1 -229
  4. data/docs/V1PartnersIdGet200Response1DataAttributes.md +2 -2
  5. data/docs/V1PartnersIdGet200ResponseDataAttributes.md +2 -2
  6. data/docs/V1PartnersIdGetRequest.md +2 -0
  7. data/docs/V1PartnersIdGetRequestPartner.md +1 -1
  8. data/docs/V1PartnersIdPut200Response.md +18 -0
  9. data/docs/V1PartnersIdPut200ResponseData.md +22 -0
  10. data/docs/V1PartnersIdPut200ResponseDataAttributes.md +38 -0
  11. data/docs/V1PartnersIdPutRequest.md +20 -0
  12. data/docs/V1PartnersIdPutRequestPartner.md +36 -0
  13. data/fountain_partner_api_client-0.0.2.gem +0 -0
  14. data/fountain_partner_api_client.gemspec +1 -1
  15. data/lib/fountain_partner_api_client/api/default_api.rb +0 -222
  16. data/lib/fountain_partner_api_client/configuration.rb +3 -3
  17. data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response1_data_attributes.rb +8 -4
  18. data/lib/fountain_partner_api_client/models/v1_partners_id_get200_response_data_attributes.rb +8 -4
  19. data/lib/fountain_partner_api_client/models/v1_partners_id_get_request.rb +10 -1
  20. data/lib/fountain_partner_api_client/models/v1_partners_id_get_request_partner.rb +4 -2
  21. data/lib/{openapi_client/models/v1_partners_id_get200_response1.rb → fountain_partner_api_client/models/v1_partners_id_put200_response.rb} +6 -6
  22. data/lib/{openapi_client/models/v1_partners_id_get200_response_data.rb → fountain_partner_api_client/models/v1_partners_id_put200_response_data.rb} +6 -6
  23. data/lib/{openapi_client/models/v1_partners_id_get200_response1_data_attributes.rb → fountain_partner_api_client/models/v1_partners_id_put200_response_data_attributes.rb} +6 -24
  24. data/lib/{openapi_client/models/v1_partners_id_get_request.rb → fountain_partner_api_client/models/v1_partners_id_put_request.rb} +16 -7
  25. data/lib/{openapi_client/models/v1_partners_id_get_request_partner.rb → fountain_partner_api_client/models/v1_partners_id_put_request_partner.rb} +6 -15
  26. data/lib/fountain_partner_api_client/version.rb +1 -1
  27. data/lib/fountain_partner_api_client.rb +0 -10
  28. data/spec/api/default_api_spec.rb +5 -57
  29. data/spec/configuration_spec.rb +3 -3
  30. data/spec/models/v1_partners_id_get200_response1_data_attributes_spec.rb +4 -4
  31. data/spec/models/v1_partners_id_get200_response1_data_spec.rb +4 -4
  32. data/spec/models/v1_partners_id_get200_response1_spec.rb +4 -4
  33. data/spec/models/v1_partners_id_get200_response_data_attributes_spec.rb +4 -4
  34. data/spec/models/v1_partners_id_get200_response_data_spec.rb +4 -4
  35. data/spec/models/v1_partners_id_get200_response_spec.rb +4 -4
  36. data/spec/models/v1_partners_id_get_request_partner_spec.rb +4 -4
  37. data/spec/models/v1_partners_id_get_request_spec.rb +10 -4
  38. data/spec/models/v1_partners_id_put200_response_data_attributes_spec.rb +94 -0
  39. data/spec/models/v1_partners_id_put200_response_data_spec.rb +46 -0
  40. data/spec/models/{v1_partners_id_applicants_applicant_id_put_request_spec.rb → v1_partners_id_put200_response_spec.rb} +7 -7
  41. data/spec/models/v1_partners_id_put_request_partner_spec.rb +88 -0
  42. data/spec/models/{v1_partners_id_applicants_applicant_id_put200_response_spec.rb → v1_partners_id_put_request_spec.rb} +8 -8
  43. metadata +24 -68
  44. data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequest.md +0 -18
  45. data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicant.md +0 -18
  46. data/docs/V1PartnersIdApplicantsApplicantIdDetailsPostRequestApplicantPartnerDetails.md +0 -26
  47. data/docs/V1PartnersIdApplicantsApplicantIdPut200Response.md +0 -20
  48. data/docs/V1PartnersIdApplicantsApplicantIdPutRequest.md +0 -18
  49. data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicant.md +0 -18
  50. data/docs/V1PartnersIdApplicantsApplicantIdPutRequestApplicantLabelsInner.md +0 -18
  51. data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequest.md +0 -18
  52. data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicant.md +0 -18
  53. data/docs/V1PartnersIdApplicantsApplicantIdStatusPostRequestApplicantPartnerStatus.md +0 -26
  54. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +0 -219
  55. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +0 -219
  56. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +0 -255
  57. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +0 -230
  58. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +0 -219
  59. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +0 -221
  60. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +0 -219
  61. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +0 -219
  62. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +0 -219
  63. data/lib/fountain_partner_api_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +0 -255
  64. data/lib/openapi_client/api/default_api.rb +0 -379
  65. data/lib/openapi_client/api_client.rb +0 -392
  66. data/lib/openapi_client/api_error.rb +0 -57
  67. data/lib/openapi_client/configuration.rb +0 -279
  68. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request.rb +0 -219
  69. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant.rb +0 -219
  70. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details.rb +0 -255
  71. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response.rb +0 -230
  72. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request.rb +0 -219
  73. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant.rb +0 -221
  74. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner.rb +0 -219
  75. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request.rb +0 -219
  76. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant.rb +0 -219
  77. data/lib/openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status.rb +0 -255
  78. data/lib/openapi_client/models/v1_partners_id_get200_response.rb +0 -219
  79. data/lib/openapi_client/models/v1_partners_id_get200_response1_data.rb +0 -237
  80. data/lib/openapi_client/models/v1_partners_id_get200_response_data_attributes.rb +0 -309
  81. data/lib/openapi_client/version.rb +0 -15
  82. data/lib/openapi_client.rb +0 -58
  83. data/openapi_client.gemspec +0 -38
  84. data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details_spec.rb +0 -58
  85. data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_spec.rb +0 -34
  86. data/spec/models/v1_partners_id_applicants_applicant_id_details_post_request_spec.rb +0 -34
  87. data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner_spec.rb +0 -34
  88. data/spec/models/v1_partners_id_applicants_applicant_id_put_request_applicant_spec.rb +0 -34
  89. data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status_spec.rb +0 -58
  90. data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_spec.rb +0 -34
  91. data/spec/models/v1_partners_id_applicants_applicant_id_status_post_request_spec.rb +0 -34
@@ -1,237 +0,0 @@
1
- =begin
2
- #Fountain Partner Docs
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: v1
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module OpenapiClient
17
- class V1PartnersIdGet200Response1Data
18
- attr_accessor :attributes
19
-
20
- attr_accessor :id
21
-
22
- attr_accessor :type
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'attributes' => :'attributes',
28
- :'id' => :'id',
29
- :'type' => :'type'
30
- }
31
- end
32
-
33
- # Returns all the JSON keys this model knows about
34
- def self.acceptable_attributes
35
- attribute_map.values
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.openapi_types
40
- {
41
- :'attributes' => :'V1PartnersIdGet200Response1DataAttributes',
42
- :'id' => :'String',
43
- :'type' => :'String'
44
- }
45
- end
46
-
47
- # List of attributes with nullable: true
48
- def self.openapi_nullable
49
- Set.new([
50
- ])
51
- end
52
-
53
- # Initializes the object
54
- # @param [Hash] attributes Model attributes in the form of hash
55
- def initialize(attributes = {})
56
- if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGet200Response1Data` initialize method"
58
- end
59
-
60
- # check to see if the attribute exists and convert string to symbol for hash key
61
- attributes = attributes.each_with_object({}) { |(k, v), h|
62
- if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGet200Response1Data`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
- end
65
- h[k.to_sym] = v
66
- }
67
-
68
- if attributes.key?(:'attributes')
69
- self.attributes = attributes[:'attributes']
70
- end
71
-
72
- if attributes.key?(:'id')
73
- self.id = attributes[:'id']
74
- end
75
-
76
- if attributes.key?(:'type')
77
- self.type = attributes[:'type']
78
- end
79
- end
80
-
81
- # Show invalid properties with the reasons. Usually used together with valid?
82
- # @return Array for valid properties with the reasons
83
- def list_invalid_properties
84
- invalid_properties = Array.new
85
- invalid_properties
86
- end
87
-
88
- # Check to see if the all the properties in the model are valid
89
- # @return true if the model is valid
90
- def valid?
91
- true
92
- end
93
-
94
- # Checks equality by comparing each attribute.
95
- # @param [Object] Object to be compared
96
- def ==(o)
97
- return true if self.equal?(o)
98
- self.class == o.class &&
99
- attributes == o.attributes &&
100
- id == o.id &&
101
- type == o.type
102
- end
103
-
104
- # @see the `==` method
105
- # @param [Object] Object to be compared
106
- def eql?(o)
107
- self == o
108
- end
109
-
110
- # Calculates hash code according to all attributes.
111
- # @return [Integer] Hash code
112
- def hash
113
- [attributes, id, type].hash
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def self.build_from_hash(attributes)
120
- new.build_from_hash(attributes)
121
- end
122
-
123
- # Builds the object from hash
124
- # @param [Hash] attributes Model attributes in the form of hash
125
- # @return [Object] Returns the model itself
126
- def build_from_hash(attributes)
127
- return nil unless attributes.is_a?(Hash)
128
- attributes = attributes.transform_keys(&:to_sym)
129
- self.class.openapi_types.each_pair do |key, type|
130
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
131
- self.send("#{key}=", nil)
132
- elsif type =~ /\AArray<(.*)>/i
133
- # check to ensure the input is an array given that the attribute
134
- # is documented as an array but the input is not
135
- if attributes[self.class.attribute_map[key]].is_a?(Array)
136
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
- end
138
- elsif !attributes[self.class.attribute_map[key]].nil?
139
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
- end
141
- end
142
-
143
- self
144
- end
145
-
146
- # Deserializes the data based on type
147
- # @param string type Data type
148
- # @param string value Value to be deserialized
149
- # @return [Object] Deserialized data
150
- def _deserialize(type, value)
151
- case type.to_sym
152
- when :Time
153
- Time.parse(value)
154
- when :Date
155
- Date.parse(value)
156
- when :String
157
- value.to_s
158
- when :Integer
159
- value.to_i
160
- when :Float
161
- value.to_f
162
- when :Boolean
163
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
- true
165
- else
166
- false
167
- end
168
- when :Object
169
- # generic object (usually a Hash), return directly
170
- value
171
- when /\AArray<(?<inner_type>.+)>\z/
172
- inner_type = Regexp.last_match[:inner_type]
173
- value.map { |v| _deserialize(inner_type, v) }
174
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
- k_type = Regexp.last_match[:k_type]
176
- v_type = Regexp.last_match[:v_type]
177
- {}.tap do |hash|
178
- value.each do |k, v|
179
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
- end
181
- end
182
- else # model
183
- # models (e.g. Pet) or oneOf
184
- klass = OpenapiClient.const_get(type)
185
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
- end
187
- end
188
-
189
- # Returns the string representation of the object
190
- # @return [String] String presentation of the object
191
- def to_s
192
- to_hash.to_s
193
- end
194
-
195
- # to_body is an alias to to_hash (backward compatibility)
196
- # @return [Hash] Returns the object in the form of hash
197
- def to_body
198
- to_hash
199
- end
200
-
201
- # Returns the object in the form of hash
202
- # @return [Hash] Returns the object in the form of hash
203
- def to_hash
204
- hash = {}
205
- self.class.attribute_map.each_pair do |attr, param|
206
- value = self.send(attr)
207
- if value.nil?
208
- is_nullable = self.class.openapi_nullable.include?(attr)
209
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
- end
211
-
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
-
237
- end
@@ -1,309 +0,0 @@
1
- =begin
2
- #Fountain Partner Docs
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: v1
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module OpenapiClient
17
- class V1PartnersIdGet200ResponseDataAttributes
18
- attr_accessor :api_key
19
-
20
- attr_accessor :applicant_redirect_url
21
-
22
- attr_accessor :applicant_webhook
23
-
24
- attr_accessor :install_webhook
25
-
26
- attr_accessor :label_keys
27
-
28
- attr_accessor :name
29
-
30
- attr_accessor :requested_attributes
31
-
32
- attr_accessor :settings_auth_header
33
-
34
- attr_accessor :settings_auth_method
35
-
36
- attr_accessor :settings_webhook
37
-
38
- attr_accessor :uninstall_webhook
39
-
40
- # Attribute mapping from ruby-style variable name to JSON key.
41
- def self.attribute_map
42
- {
43
- :'api_key' => :'api_key',
44
- :'applicant_redirect_url' => :'applicant_redirect_url',
45
- :'applicant_webhook' => :'applicant_webhook',
46
- :'install_webhook' => :'install_webhook',
47
- :'label_keys' => :'label_keys',
48
- :'name' => :'name',
49
- :'requested_attributes' => :'requested_attributes',
50
- :'settings_auth_header' => :'settings_auth_header',
51
- :'settings_auth_method' => :'settings_auth_method',
52
- :'settings_webhook' => :'settings_webhook',
53
- :'uninstall_webhook' => :'uninstall_webhook'
54
- }
55
- end
56
-
57
- # Returns all the JSON keys this model knows about
58
- def self.acceptable_attributes
59
- attribute_map.values
60
- end
61
-
62
- # Attribute type mapping.
63
- def self.openapi_types
64
- {
65
- :'api_key' => :'String',
66
- :'applicant_redirect_url' => :'String',
67
- :'applicant_webhook' => :'String',
68
- :'install_webhook' => :'String',
69
- :'label_keys' => :'Array',
70
- :'name' => :'String',
71
- :'requested_attributes' => :'Array',
72
- :'settings_auth_header' => :'String',
73
- :'settings_auth_method' => :'String',
74
- :'settings_webhook' => :'String',
75
- :'uninstall_webhook' => :'String'
76
- }
77
- end
78
-
79
- # List of attributes with nullable: true
80
- def self.openapi_nullable
81
- Set.new([
82
- ])
83
- end
84
-
85
- # Initializes the object
86
- # @param [Hash] attributes Model attributes in the form of hash
87
- def initialize(attributes = {})
88
- if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::V1PartnersIdGet200ResponseDataAttributes` initialize method"
90
- end
91
-
92
- # check to see if the attribute exists and convert string to symbol for hash key
93
- attributes = attributes.each_with_object({}) { |(k, v), h|
94
- if (!self.class.attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::V1PartnersIdGet200ResponseDataAttributes`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
- end
97
- h[k.to_sym] = v
98
- }
99
-
100
- if attributes.key?(:'api_key')
101
- self.api_key = attributes[:'api_key']
102
- end
103
-
104
- if attributes.key?(:'applicant_redirect_url')
105
- self.applicant_redirect_url = attributes[:'applicant_redirect_url']
106
- end
107
-
108
- if attributes.key?(:'applicant_webhook')
109
- self.applicant_webhook = attributes[:'applicant_webhook']
110
- end
111
-
112
- if attributes.key?(:'install_webhook')
113
- self.install_webhook = attributes[:'install_webhook']
114
- end
115
-
116
- if attributes.key?(:'label_keys')
117
- self.label_keys = attributes[:'label_keys']
118
- end
119
-
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
122
- end
123
-
124
- if attributes.key?(:'requested_attributes')
125
- self.requested_attributes = attributes[:'requested_attributes']
126
- end
127
-
128
- if attributes.key?(:'settings_auth_header')
129
- self.settings_auth_header = attributes[:'settings_auth_header']
130
- end
131
-
132
- if attributes.key?(:'settings_auth_method')
133
- self.settings_auth_method = attributes[:'settings_auth_method']
134
- end
135
-
136
- if attributes.key?(:'settings_webhook')
137
- self.settings_webhook = attributes[:'settings_webhook']
138
- end
139
-
140
- if attributes.key?(:'uninstall_webhook')
141
- self.uninstall_webhook = attributes[:'uninstall_webhook']
142
- end
143
- end
144
-
145
- # Show invalid properties with the reasons. Usually used together with valid?
146
- # @return Array for valid properties with the reasons
147
- def list_invalid_properties
148
- invalid_properties = Array.new
149
- invalid_properties
150
- end
151
-
152
- # Check to see if the all the properties in the model are valid
153
- # @return true if the model is valid
154
- def valid?
155
- true
156
- end
157
-
158
- # Checks equality by comparing each attribute.
159
- # @param [Object] Object to be compared
160
- def ==(o)
161
- return true if self.equal?(o)
162
- self.class == o.class &&
163
- api_key == o.api_key &&
164
- applicant_redirect_url == o.applicant_redirect_url &&
165
- applicant_webhook == o.applicant_webhook &&
166
- install_webhook == o.install_webhook &&
167
- label_keys == o.label_keys &&
168
- name == o.name &&
169
- requested_attributes == o.requested_attributes &&
170
- settings_auth_header == o.settings_auth_header &&
171
- settings_auth_method == o.settings_auth_method &&
172
- settings_webhook == o.settings_webhook &&
173
- uninstall_webhook == o.uninstall_webhook
174
- end
175
-
176
- # @see the `==` method
177
- # @param [Object] Object to be compared
178
- def eql?(o)
179
- self == o
180
- end
181
-
182
- # Calculates hash code according to all attributes.
183
- # @return [Integer] Hash code
184
- def hash
185
- [api_key, applicant_redirect_url, applicant_webhook, install_webhook, label_keys, name, requested_attributes, settings_auth_header, settings_auth_method, settings_webhook, uninstall_webhook].hash
186
- end
187
-
188
- # Builds the object from hash
189
- # @param [Hash] attributes Model attributes in the form of hash
190
- # @return [Object] Returns the model itself
191
- def self.build_from_hash(attributes)
192
- new.build_from_hash(attributes)
193
- end
194
-
195
- # Builds the object from hash
196
- # @param [Hash] attributes Model attributes in the form of hash
197
- # @return [Object] Returns the model itself
198
- def build_from_hash(attributes)
199
- return nil unless attributes.is_a?(Hash)
200
- attributes = attributes.transform_keys(&:to_sym)
201
- self.class.openapi_types.each_pair do |key, type|
202
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
203
- self.send("#{key}=", nil)
204
- elsif type =~ /\AArray<(.*)>/i
205
- # check to ensure the input is an array given that the attribute
206
- # is documented as an array but the input is not
207
- if attributes[self.class.attribute_map[key]].is_a?(Array)
208
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
209
- end
210
- elsif !attributes[self.class.attribute_map[key]].nil?
211
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
212
- end
213
- end
214
-
215
- self
216
- end
217
-
218
- # Deserializes the data based on type
219
- # @param string type Data type
220
- # @param string value Value to be deserialized
221
- # @return [Object] Deserialized data
222
- def _deserialize(type, value)
223
- case type.to_sym
224
- when :Time
225
- Time.parse(value)
226
- when :Date
227
- Date.parse(value)
228
- when :String
229
- value.to_s
230
- when :Integer
231
- value.to_i
232
- when :Float
233
- value.to_f
234
- when :Boolean
235
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
236
- true
237
- else
238
- false
239
- end
240
- when :Object
241
- # generic object (usually a Hash), return directly
242
- value
243
- when /\AArray<(?<inner_type>.+)>\z/
244
- inner_type = Regexp.last_match[:inner_type]
245
- value.map { |v| _deserialize(inner_type, v) }
246
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
247
- k_type = Regexp.last_match[:k_type]
248
- v_type = Regexp.last_match[:v_type]
249
- {}.tap do |hash|
250
- value.each do |k, v|
251
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
252
- end
253
- end
254
- else # model
255
- # models (e.g. Pet) or oneOf
256
- klass = OpenapiClient.const_get(type)
257
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
258
- end
259
- end
260
-
261
- # Returns the string representation of the object
262
- # @return [String] String presentation of the object
263
- def to_s
264
- to_hash.to_s
265
- end
266
-
267
- # to_body is an alias to to_hash (backward compatibility)
268
- # @return [Hash] Returns the object in the form of hash
269
- def to_body
270
- to_hash
271
- end
272
-
273
- # Returns the object in the form of hash
274
- # @return [Hash] Returns the object in the form of hash
275
- def to_hash
276
- hash = {}
277
- self.class.attribute_map.each_pair do |attr, param|
278
- value = self.send(attr)
279
- if value.nil?
280
- is_nullable = self.class.openapi_nullable.include?(attr)
281
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
282
- end
283
-
284
- hash[param] = _to_hash(value)
285
- end
286
- hash
287
- end
288
-
289
- # Outputs non-array value in the form of hash
290
- # For object, use to_hash. Otherwise, just return the value
291
- # @param [Object] value Any valid value
292
- # @return [Hash] Returns the value in the form of hash
293
- def _to_hash(value)
294
- if value.is_a?(Array)
295
- value.compact.map { |v| _to_hash(v) }
296
- elsif value.is_a?(Hash)
297
- {}.tap do |hash|
298
- value.each { |k, v| hash[k] = _to_hash(v) }
299
- end
300
- elsif value.respond_to? :to_hash
301
- value.to_hash
302
- else
303
- value
304
- end
305
- end
306
-
307
- end
308
-
309
- end
@@ -1,15 +0,0 @@
1
- =begin
2
- #Fountain Partner Docs
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: v1
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
10
-
11
- =end
12
-
13
- module OpenapiClient
14
- VERSION = '1.0.0'
15
- end
@@ -1,58 +0,0 @@
1
- =begin
2
- #Fountain Partner Docs
3
-
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
-
6
- The version of the OpenAPI document: v1
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
10
-
11
- =end
12
-
13
- # Common files
14
- require 'openapi_client/api_client'
15
- require 'openapi_client/api_error'
16
- require 'openapi_client/version'
17
- require 'openapi_client/configuration'
18
-
19
- # Models
20
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request'
21
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant'
22
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_details_post_request_applicant_partner_details'
23
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put200_response'
24
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put_request'
25
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant'
26
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_put_request_applicant_labels_inner'
27
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request'
28
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant'
29
- require 'openapi_client/models/v1_partners_id_applicants_applicant_id_status_post_request_applicant_partner_status'
30
- require 'openapi_client/models/v1_partners_id_get200_response'
31
- require 'openapi_client/models/v1_partners_id_get200_response1'
32
- require 'openapi_client/models/v1_partners_id_get200_response1_data'
33
- require 'openapi_client/models/v1_partners_id_get200_response1_data_attributes'
34
- require 'openapi_client/models/v1_partners_id_get200_response_data'
35
- require 'openapi_client/models/v1_partners_id_get200_response_data_attributes'
36
- require 'openapi_client/models/v1_partners_id_get_request'
37
- require 'openapi_client/models/v1_partners_id_get_request_partner'
38
-
39
- # APIs
40
- require 'openapi_client/api/default_api'
41
-
42
- module OpenapiClient
43
- class << self
44
- # Customize default settings for the SDK using block.
45
- # OpenapiClient.configure do |config|
46
- # config.username = "xxx"
47
- # config.password = "xxx"
48
- # end
49
- # If no block given, return the default Configuration object.
50
- def configure
51
- if block_given?
52
- yield(Configuration.default)
53
- else
54
- Configuration.default
55
- end
56
- end
57
- end
58
- end
@@ -1,38 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- =begin
4
- #Fountain Partner Docs
5
-
6
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
-
8
- The version of the OpenAPI document: v1
9
-
10
- Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 6.2.1
12
-
13
- =end
14
-
15
- $:.push File.expand_path("../lib", __FILE__)
16
- require "openapi_client/version"
17
-
18
- Gem::Specification.new do |s|
19
- s.name = "openapi_client"
20
- s.version = OpenapiClient::VERSION
21
- s.platform = Gem::Platform::RUBY
22
- s.authors = ["James Thullbery"]
23
- s.email = ["info@fountain.com"]
24
- s.homepage = "https://openapi-generator.tech"
25
- s.summary = "Fountain Partner Docs Ruby Gem"
26
- s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
27
- s.license = "Unlicense"
28
- s.required_ruby_version = ">= 2.4"
29
-
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
-
32
- s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
-
34
- s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
- s.test_files = `find spec/*`.split("\n")
36
- s.executables = []
37
- s.require_paths = ["lib"]
38
- end