subskribe_dev 1.2.0 → 1.3.0
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 +18 -13
- data/docs/AccountingApi.md +1 -1
- data/docs/AccountsApi.md +3 -3
- data/docs/ApprovalsApi.md +1 -1
- data/docs/AttachmentsApi.md +1 -1
- data/docs/AuthenticationApi.md +1 -1
- data/docs/AutomatedInvoiceRule.md +2 -2
- data/docs/BillingApi.md +1 -1
- data/docs/BulkInvoiceRunItem.md +2 -2
- data/docs/BulkPaymentUploadData.md +3 -3
- data/docs/BulkPaymentUploadResult.md +1 -1
- data/docs/ChargeJson.md +2 -2
- data/docs/CreditMemoApi.md +1 -1
- data/docs/CustomFieldApi.md +1 -1
- data/docs/CustomizationApi.md +1 -1
- data/docs/DefaultApi.md +1 -1
- data/docs/DiscountsApi.md +1 -1
- data/docs/ERPApi.md +21 -21
- data/docs/EntitiesApi.md +173 -1
- data/docs/ImportApi.md +1 -1
- data/docs/IntegrationsApi.md +1 -1
- data/docs/MetricsReportingApi.md +1 -1
- data/docs/NotificationsApi.md +1 -1
- data/docs/OpportunityApi.md +1 -1
- data/docs/OrderLineItemJson.md +1 -0
- data/docs/OrderLineItemRequestJson.md +1 -0
- data/docs/OrdersApi.md +1 -1
- data/docs/PaginatedAccountsResponse.md +10 -0
- data/docs/PaymentsApi.md +1 -1
- data/docs/PlanMetadataJson.md +8 -0
- data/docs/ProductCatalogApi.md +59 -1
- data/docs/RateCardApi.md +1 -1
- data/docs/RefundsApi.md +1 -1
- data/docs/ReportsApi.md +1 -1
- data/docs/RevenueRecognitionApi.md +21 -21
- data/docs/SalesRoomApi.md +1 -1
- data/docs/SettingsApi.md +1 -1
- data/docs/SubscriptionsApi.md +1 -1
- data/docs/TaxJarIntegration.md +1 -1
- data/docs/UsageApi.md +1 -1
- data/docs/UsersApi.md +1 -1
- data/lib/subskribe_dev/api/accounts_api.rb +3 -3
- data/lib/subskribe_dev/api/entities_api.rb +158 -0
- data/lib/subskribe_dev/api/erp_api.rb +20 -20
- data/lib/subskribe_dev/api/product_catalog_api.rb +58 -0
- data/lib/subskribe_dev/api/revenue_recognition_api.rb +22 -22
- data/lib/subskribe_dev/configuration.rb +1 -1
- data/lib/subskribe_dev/models/automated_invoice_rule.rb +22 -22
- data/lib/subskribe_dev/models/bulk_invoice_run_item.rb +22 -22
- data/lib/subskribe_dev/models/bulk_payment_upload_data.rb +31 -31
- data/lib/subskribe_dev/models/bulk_payment_upload_result.rb +13 -13
- data/lib/subskribe_dev/models/charge_json.rb +19 -19
- data/lib/subskribe_dev/models/order_line_item_json.rb +10 -1
- data/lib/subskribe_dev/models/order_line_item_request_json.rb +10 -1
- data/lib/subskribe_dev/models/paginated_accounts_response.rb +204 -0
- data/lib/subskribe_dev/models/plan_metadata_json.rb +187 -0
- data/lib/subskribe_dev/models/tax_jar_integration.rb +10 -10
- data/lib/subskribe_dev/version.rb +1 -1
- data/lib/subskribe_dev.rb +2 -1
- data/spec/models/paginated_accounts_response_spec.rb +53 -0
- data/spec/models/plan_metadata_json_spec.rb +41 -0
- data/subskribe_dev.gemspec +4 -4
- metadata +195 -187
@@ -1706,6 +1706,64 @@ module SubskribeDevClient
|
|
1706
1706
|
end
|
1707
1707
|
return data, status_code, headers
|
1708
1708
|
end
|
1709
|
+
# Update plan metadata
|
1710
|
+
# Update plan metadata. For now, this can be used only to change the entities assigned to a plan
|
1711
|
+
# @param plan_id plan id
|
1712
|
+
# @param body plan metadata to be updated
|
1713
|
+
# @param [Hash] opts the optional parameters
|
1714
|
+
# @return [PlanJson]
|
1715
|
+
def update_plan_metadata(plan_id, body, opts = {})
|
1716
|
+
data, _status_code, _headers = update_plan_metadata_with_http_info(plan_id, body, opts)
|
1717
|
+
data
|
1718
|
+
end
|
1719
|
+
|
1720
|
+
# Update plan metadata
|
1721
|
+
# Update plan metadata. For now, this can be used only to change the entities assigned to a plan
|
1722
|
+
# @param plan_id plan id
|
1723
|
+
# @param body plan metadata to be updated
|
1724
|
+
# @param [Hash] opts the optional parameters
|
1725
|
+
# @return [Array<(PlanJson, Fixnum, Hash)>] PlanJson data, response status code and response headers
|
1726
|
+
def update_plan_metadata_with_http_info(plan_id, body, opts = {})
|
1727
|
+
if @api_client.config.debugging
|
1728
|
+
@api_client.config.logger.debug 'Calling API: ProductCatalogApi.update_plan_metadata ...'
|
1729
|
+
end
|
1730
|
+
# verify the required parameter 'plan_id' is set
|
1731
|
+
if @api_client.config.client_side_validation && plan_id.nil?
|
1732
|
+
fail ArgumentError, "Missing the required parameter 'plan_id' when calling ProductCatalogApi.update_plan_metadata"
|
1733
|
+
end
|
1734
|
+
# verify the required parameter 'body' is set
|
1735
|
+
if @api_client.config.client_side_validation && body.nil?
|
1736
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling ProductCatalogApi.update_plan_metadata"
|
1737
|
+
end
|
1738
|
+
# resource path
|
1739
|
+
local_var_path = '/plans/{planId}/metadata'.sub('{' + 'planId' + '}', plan_id.to_s)
|
1740
|
+
|
1741
|
+
# query parameters
|
1742
|
+
query_params = {}
|
1743
|
+
|
1744
|
+
# header parameters
|
1745
|
+
header_params = {}
|
1746
|
+
# HTTP header 'Accept' (if needed)
|
1747
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1748
|
+
|
1749
|
+
# form parameters
|
1750
|
+
form_params = {}
|
1751
|
+
|
1752
|
+
# http body (model)
|
1753
|
+
post_body = @api_client.object_to_http_body(body)
|
1754
|
+
auth_names = ['ApiKeyAuth']
|
1755
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1756
|
+
:header_params => header_params,
|
1757
|
+
:query_params => query_params,
|
1758
|
+
:form_params => form_params,
|
1759
|
+
:body => post_body,
|
1760
|
+
:auth_names => auth_names,
|
1761
|
+
:return_type => 'PlanJson')
|
1762
|
+
if @api_client.config.debugging
|
1763
|
+
@api_client.config.logger.debug "API called: ProductCatalogApi#update_plan_metadata\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1764
|
+
end
|
1765
|
+
return data, status_code, headers
|
1766
|
+
end
|
1709
1767
|
# Update product details
|
1710
1768
|
# Updates the details of the specified product
|
1711
1769
|
# @param id id of the product
|
@@ -238,25 +238,31 @@ module SubskribeDevClient
|
|
238
238
|
end
|
239
239
|
return data, status_code, headers
|
240
240
|
end
|
241
|
-
# Get revenue recognition
|
242
|
-
# Get revenue recognition
|
241
|
+
# Get revenue recognition rule
|
242
|
+
# Get a revenue recognition rule using id.
|
243
|
+
# @param id id of the recognition rule
|
243
244
|
# @param [Hash] opts the optional parameters
|
244
245
|
# @return [nil]
|
245
|
-
def get_recognition_rule_by_id(opts = {})
|
246
|
-
get_recognition_rule_by_id_with_http_info(opts)
|
246
|
+
def get_recognition_rule_by_id(id, opts = {})
|
247
|
+
get_recognition_rule_by_id_with_http_info(id, opts)
|
247
248
|
nil
|
248
249
|
end
|
249
250
|
|
250
|
-
# Get revenue recognition
|
251
|
-
# Get revenue recognition
|
251
|
+
# Get revenue recognition rule
|
252
|
+
# Get a revenue recognition rule using id.
|
253
|
+
# @param id id of the recognition rule
|
252
254
|
# @param [Hash] opts the optional parameters
|
253
255
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
254
|
-
def get_recognition_rule_by_id_with_http_info(opts = {})
|
256
|
+
def get_recognition_rule_by_id_with_http_info(id, opts = {})
|
255
257
|
if @api_client.config.debugging
|
256
258
|
@api_client.config.logger.debug 'Calling API: RevenueRecognitionApi.get_recognition_rule_by_id ...'
|
257
259
|
end
|
260
|
+
# verify the required parameter 'id' is set
|
261
|
+
if @api_client.config.client_side_validation && id.nil?
|
262
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling RevenueRecognitionApi.get_recognition_rule_by_id"
|
263
|
+
end
|
258
264
|
# resource path
|
259
|
-
local_var_path = '/revrec/rules'
|
265
|
+
local_var_path = '/revrec/rules/{id}'.sub('{' + 'id' + '}', id.to_s)
|
260
266
|
|
261
267
|
# query parameters
|
262
268
|
query_params = {}
|
@@ -283,31 +289,25 @@ module SubskribeDevClient
|
|
283
289
|
end
|
284
290
|
return data, status_code, headers
|
285
291
|
end
|
286
|
-
# Get revenue recognition
|
287
|
-
# Get
|
288
|
-
# @param id id of the recognition rule
|
292
|
+
# Get revenue recognition rules
|
293
|
+
# Get revenue recognition rules.
|
289
294
|
# @param [Hash] opts the optional parameters
|
290
295
|
# @return [nil]
|
291
|
-
def get_recognition_rule_by_id1(
|
292
|
-
get_recognition_rule_by_id1_with_http_info(
|
296
|
+
def get_recognition_rule_by_id1(opts = {})
|
297
|
+
get_recognition_rule_by_id1_with_http_info(opts)
|
293
298
|
nil
|
294
299
|
end
|
295
300
|
|
296
|
-
# Get revenue recognition
|
297
|
-
# Get
|
298
|
-
# @param id id of the recognition rule
|
301
|
+
# Get revenue recognition rules
|
302
|
+
# Get revenue recognition rules.
|
299
303
|
# @param [Hash] opts the optional parameters
|
300
304
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
301
|
-
def get_recognition_rule_by_id1_with_http_info(
|
305
|
+
def get_recognition_rule_by_id1_with_http_info(opts = {})
|
302
306
|
if @api_client.config.debugging
|
303
307
|
@api_client.config.logger.debug 'Calling API: RevenueRecognitionApi.get_recognition_rule_by_id1 ...'
|
304
308
|
end
|
305
|
-
# verify the required parameter 'id' is set
|
306
|
-
if @api_client.config.client_side_validation && id.nil?
|
307
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling RevenueRecognitionApi.get_recognition_rule_by_id1"
|
308
|
-
end
|
309
309
|
# resource path
|
310
|
-
local_var_path = '/revrec/rules
|
310
|
+
local_var_path = '/revrec/rules'
|
311
311
|
|
312
312
|
# query parameters
|
313
313
|
query_params = {}
|
@@ -30,10 +30,6 @@ module SubskribeDevClient
|
|
30
30
|
|
31
31
|
attr_accessor :last_execution_date
|
32
32
|
|
33
|
-
attr_accessor :cron_expression_meaning
|
34
|
-
|
35
|
-
attr_accessor :next_execution_date
|
36
|
-
|
37
33
|
attr_accessor :target_duration
|
38
34
|
|
39
35
|
attr_accessor :invoice_duration
|
@@ -48,6 +44,10 @@ module SubskribeDevClient
|
|
48
44
|
|
49
45
|
attr_accessor :first_execution_date
|
50
46
|
|
47
|
+
attr_accessor :cron_expression_meaning
|
48
|
+
|
49
|
+
attr_accessor :next_execution_date
|
50
|
+
|
51
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
52
|
def self.attribute_map
|
53
53
|
{
|
@@ -59,15 +59,15 @@ module SubskribeDevClient
|
|
59
59
|
:'updated_on' => :'updatedOn',
|
60
60
|
:'created_on' => :'createdOn',
|
61
61
|
:'last_execution_date' => :'lastExecutionDate',
|
62
|
-
:'cron_expression_meaning' => :'cronExpressionMeaning',
|
63
|
-
:'next_execution_date' => :'nextExecutionDate',
|
64
62
|
:'target_duration' => :'targetDuration',
|
65
63
|
:'invoice_duration' => :'invoiceDuration',
|
66
64
|
:'include_usage_charge' => :'includeUsageCharge',
|
67
65
|
:'include_non_usage_charge' => :'includeNonUsageCharge',
|
68
66
|
:'auto_post_invoice' => :'autoPostInvoice',
|
69
67
|
:'auto_email_invoice' => :'autoEmailInvoice',
|
70
|
-
:'first_execution_date' => :'firstExecutionDate'
|
68
|
+
:'first_execution_date' => :'firstExecutionDate',
|
69
|
+
:'cron_expression_meaning' => :'cronExpressionMeaning',
|
70
|
+
:'next_execution_date' => :'nextExecutionDate'
|
71
71
|
}
|
72
72
|
end
|
73
73
|
|
@@ -82,15 +82,15 @@ module SubskribeDevClient
|
|
82
82
|
:'updated_on' => :'Integer',
|
83
83
|
:'created_on' => :'Integer',
|
84
84
|
:'last_execution_date' => :'Integer',
|
85
|
-
:'cron_expression_meaning' => :'String',
|
86
|
-
:'next_execution_date' => :'Integer',
|
87
85
|
:'target_duration' => :'Integer',
|
88
86
|
:'invoice_duration' => :'Integer',
|
89
87
|
:'include_usage_charge' => :'BOOLEAN',
|
90
88
|
:'include_non_usage_charge' => :'BOOLEAN',
|
91
89
|
:'auto_post_invoice' => :'BOOLEAN',
|
92
90
|
:'auto_email_invoice' => :'BOOLEAN',
|
93
|
-
:'first_execution_date' => :'Integer'
|
91
|
+
:'first_execution_date' => :'Integer',
|
92
|
+
:'cron_expression_meaning' => :'String',
|
93
|
+
:'next_execution_date' => :'Integer'
|
94
94
|
}
|
95
95
|
end
|
96
96
|
|
@@ -134,14 +134,6 @@ module SubskribeDevClient
|
|
134
134
|
self.last_execution_date = attributes[:'lastExecutionDate']
|
135
135
|
end
|
136
136
|
|
137
|
-
if attributes.has_key?(:'cronExpressionMeaning')
|
138
|
-
self.cron_expression_meaning = attributes[:'cronExpressionMeaning']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.has_key?(:'nextExecutionDate')
|
142
|
-
self.next_execution_date = attributes[:'nextExecutionDate']
|
143
|
-
end
|
144
|
-
|
145
137
|
if attributes.has_key?(:'targetDuration')
|
146
138
|
self.target_duration = attributes[:'targetDuration']
|
147
139
|
end
|
@@ -169,6 +161,14 @@ module SubskribeDevClient
|
|
169
161
|
if attributes.has_key?(:'firstExecutionDate')
|
170
162
|
self.first_execution_date = attributes[:'firstExecutionDate']
|
171
163
|
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'cronExpressionMeaning')
|
166
|
+
self.cron_expression_meaning = attributes[:'cronExpressionMeaning']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'nextExecutionDate')
|
170
|
+
self.next_execution_date = attributes[:'nextExecutionDate']
|
171
|
+
end
|
172
172
|
end
|
173
173
|
|
174
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -197,15 +197,15 @@ module SubskribeDevClient
|
|
197
197
|
updated_on == o.updated_on &&
|
198
198
|
created_on == o.created_on &&
|
199
199
|
last_execution_date == o.last_execution_date &&
|
200
|
-
cron_expression_meaning == o.cron_expression_meaning &&
|
201
|
-
next_execution_date == o.next_execution_date &&
|
202
200
|
target_duration == o.target_duration &&
|
203
201
|
invoice_duration == o.invoice_duration &&
|
204
202
|
include_usage_charge == o.include_usage_charge &&
|
205
203
|
include_non_usage_charge == o.include_non_usage_charge &&
|
206
204
|
auto_post_invoice == o.auto_post_invoice &&
|
207
205
|
auto_email_invoice == o.auto_email_invoice &&
|
208
|
-
first_execution_date == o.first_execution_date
|
206
|
+
first_execution_date == o.first_execution_date &&
|
207
|
+
cron_expression_meaning == o.cron_expression_meaning &&
|
208
|
+
next_execution_date == o.next_execution_date
|
209
209
|
end
|
210
210
|
|
211
211
|
# @see the `==` method
|
@@ -217,7 +217,7 @@ module SubskribeDevClient
|
|
217
217
|
# Calculates hash code according to all attributes.
|
218
218
|
# @return [Fixnum] Hash code
|
219
219
|
def hash
|
220
|
-
[name, id, enabled, description, cron_expression, updated_on, created_on, last_execution_date,
|
220
|
+
[name, id, enabled, description, cron_expression, updated_on, created_on, last_execution_date, target_duration, invoice_duration, include_usage_charge, include_non_usage_charge, auto_post_invoice, auto_email_invoice, first_execution_date, cron_expression_meaning, next_execution_date].hash
|
221
221
|
end
|
222
222
|
|
223
223
|
# Builds the object from hash
|
@@ -44,10 +44,6 @@ module SubskribeDevClient
|
|
44
44
|
|
45
45
|
attr_accessor :updated_on
|
46
46
|
|
47
|
-
attr_accessor :included_for_emailing
|
48
|
-
|
49
|
-
attr_accessor :invoice_posted
|
50
|
-
|
51
47
|
attr_accessor :draft_invoice_generated
|
52
48
|
|
53
49
|
attr_accessor :included_for_posting
|
@@ -56,6 +52,10 @@ module SubskribeDevClient
|
|
56
52
|
|
57
53
|
attr_accessor :draft_invoice_not_generated
|
58
54
|
|
55
|
+
attr_accessor :included_for_emailing
|
56
|
+
|
57
|
+
attr_accessor :invoice_posted
|
58
|
+
|
59
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
60
|
def self.attribute_map
|
61
61
|
{
|
@@ -74,12 +74,12 @@ module SubskribeDevClient
|
|
74
74
|
:'email_sent' => :'emailSent',
|
75
75
|
:'created_on' => :'createdOn',
|
76
76
|
:'updated_on' => :'updatedOn',
|
77
|
-
:'included_for_emailing' => :'includedForEmailing',
|
78
|
-
:'invoice_posted' => :'invoicePosted',
|
79
77
|
:'draft_invoice_generated' => :'draftInvoiceGenerated',
|
80
78
|
:'included_for_posting' => :'includedForPosting',
|
81
79
|
:'invoice_not_posted' => :'invoiceNotPosted',
|
82
|
-
:'draft_invoice_not_generated' => :'draftInvoiceNotGenerated'
|
80
|
+
:'draft_invoice_not_generated' => :'draftInvoiceNotGenerated',
|
81
|
+
:'included_for_emailing' => :'includedForEmailing',
|
82
|
+
:'invoice_posted' => :'invoicePosted'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -101,12 +101,12 @@ module SubskribeDevClient
|
|
101
101
|
:'email_sent' => :'BOOLEAN',
|
102
102
|
:'created_on' => :'Integer',
|
103
103
|
:'updated_on' => :'Integer',
|
104
|
-
:'included_for_emailing' => :'BOOLEAN',
|
105
|
-
:'invoice_posted' => :'BOOLEAN',
|
106
104
|
:'draft_invoice_generated' => :'BOOLEAN',
|
107
105
|
:'included_for_posting' => :'BOOLEAN',
|
108
106
|
:'invoice_not_posted' => :'BOOLEAN',
|
109
|
-
:'draft_invoice_not_generated' => :'BOOLEAN'
|
107
|
+
:'draft_invoice_not_generated' => :'BOOLEAN',
|
108
|
+
:'included_for_emailing' => :'BOOLEAN',
|
109
|
+
:'invoice_posted' => :'BOOLEAN'
|
110
110
|
}
|
111
111
|
end
|
112
112
|
|
@@ -178,14 +178,6 @@ module SubskribeDevClient
|
|
178
178
|
self.updated_on = attributes[:'updatedOn']
|
179
179
|
end
|
180
180
|
|
181
|
-
if attributes.has_key?(:'includedForEmailing')
|
182
|
-
self.included_for_emailing = attributes[:'includedForEmailing']
|
183
|
-
end
|
184
|
-
|
185
|
-
if attributes.has_key?(:'invoicePosted')
|
186
|
-
self.invoice_posted = attributes[:'invoicePosted']
|
187
|
-
end
|
188
|
-
|
189
181
|
if attributes.has_key?(:'draftInvoiceGenerated')
|
190
182
|
self.draft_invoice_generated = attributes[:'draftInvoiceGenerated']
|
191
183
|
end
|
@@ -201,6 +193,14 @@ module SubskribeDevClient
|
|
201
193
|
if attributes.has_key?(:'draftInvoiceNotGenerated')
|
202
194
|
self.draft_invoice_not_generated = attributes[:'draftInvoiceNotGenerated']
|
203
195
|
end
|
196
|
+
|
197
|
+
if attributes.has_key?(:'includedForEmailing')
|
198
|
+
self.included_for_emailing = attributes[:'includedForEmailing']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.has_key?(:'invoicePosted')
|
202
|
+
self.invoice_posted = attributes[:'invoicePosted']
|
203
|
+
end
|
204
204
|
end
|
205
205
|
|
206
206
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -236,12 +236,12 @@ module SubskribeDevClient
|
|
236
236
|
email_sent == o.email_sent &&
|
237
237
|
created_on == o.created_on &&
|
238
238
|
updated_on == o.updated_on &&
|
239
|
-
included_for_emailing == o.included_for_emailing &&
|
240
|
-
invoice_posted == o.invoice_posted &&
|
241
239
|
draft_invoice_generated == o.draft_invoice_generated &&
|
242
240
|
included_for_posting == o.included_for_posting &&
|
243
241
|
invoice_not_posted == o.invoice_not_posted &&
|
244
|
-
draft_invoice_not_generated == o.draft_invoice_not_generated
|
242
|
+
draft_invoice_not_generated == o.draft_invoice_not_generated &&
|
243
|
+
included_for_emailing == o.included_for_emailing &&
|
244
|
+
invoice_posted == o.invoice_posted
|
245
245
|
end
|
246
246
|
|
247
247
|
# @see the `==` method
|
@@ -253,7 +253,7 @@ module SubskribeDevClient
|
|
253
253
|
# Calculates hash code according to all attributes.
|
254
254
|
# @return [Fixnum] Hash code
|
255
255
|
def hash
|
256
|
-
[run_id, account_id, account_name, subscription_id, draft_invoice_number, posted_invoice_number, invoice_created_on, invoice_currency_code, invoice_amount, failure_reason, excluded_for_posting, excluded_for_emailing, email_sent, created_on, updated_on,
|
256
|
+
[run_id, account_id, account_name, subscription_id, draft_invoice_number, posted_invoice_number, invoice_created_on, invoice_currency_code, invoice_amount, failure_reason, excluded_for_posting, excluded_for_emailing, email_sent, created_on, updated_on, draft_invoice_generated, included_for_posting, invoice_not_posted, draft_invoice_not_generated, included_for_emailing, invoice_posted].hash
|
257
257
|
end
|
258
258
|
|
259
259
|
# Builds the object from hash
|
@@ -20,36 +20,36 @@ module SubskribeDevClient
|
|
20
20
|
|
21
21
|
attr_accessor :amount
|
22
22
|
|
23
|
-
attr_accessor :invoice_number
|
24
|
-
|
25
23
|
attr_accessor :note
|
26
24
|
|
27
|
-
attr_accessor :payment_method
|
28
|
-
|
29
25
|
attr_accessor :payment_date
|
30
26
|
|
31
27
|
attr_accessor :payment_method_id
|
32
28
|
|
33
|
-
attr_accessor :
|
29
|
+
attr_accessor :payment_method
|
34
30
|
|
35
|
-
attr_accessor :
|
31
|
+
attr_accessor :invoice_number
|
32
|
+
|
33
|
+
attr_accessor :original_invoice_balance
|
36
34
|
|
37
35
|
attr_accessor :new_invoice_balance
|
38
36
|
|
37
|
+
attr_accessor :failure_reason
|
38
|
+
|
39
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
40
|
def self.attribute_map
|
41
41
|
{
|
42
42
|
:'currency_code' => :'currencyCode',
|
43
43
|
:'failed' => :'failed',
|
44
44
|
:'amount' => :'amount',
|
45
|
-
:'invoice_number' => :'invoiceNumber',
|
46
45
|
:'note' => :'note',
|
47
|
-
:'payment_method' => :'paymentMethod',
|
48
46
|
:'payment_date' => :'paymentDate',
|
49
47
|
:'payment_method_id' => :'paymentMethodId',
|
48
|
+
:'payment_method' => :'paymentMethod',
|
49
|
+
:'invoice_number' => :'invoiceNumber',
|
50
50
|
:'original_invoice_balance' => :'originalInvoiceBalance',
|
51
|
-
:'
|
52
|
-
:'
|
51
|
+
:'new_invoice_balance' => :'newInvoiceBalance',
|
52
|
+
:'failure_reason' => :'failureReason'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -59,14 +59,14 @@ module SubskribeDevClient
|
|
59
59
|
:'currency_code' => :'String',
|
60
60
|
:'failed' => :'BOOLEAN',
|
61
61
|
:'amount' => :'Float',
|
62
|
-
:'invoice_number' => :'String',
|
63
62
|
:'note' => :'String',
|
64
|
-
:'payment_method' => :'String',
|
65
63
|
:'payment_date' => :'Integer',
|
66
64
|
:'payment_method_id' => :'String',
|
65
|
+
:'payment_method' => :'String',
|
66
|
+
:'invoice_number' => :'String',
|
67
67
|
:'original_invoice_balance' => :'Float',
|
68
|
-
:'
|
69
|
-
:'
|
68
|
+
:'new_invoice_balance' => :'Float',
|
69
|
+
:'failure_reason' => :'String'
|
70
70
|
}
|
71
71
|
end
|
72
72
|
|
@@ -90,18 +90,10 @@ module SubskribeDevClient
|
|
90
90
|
self.amount = attributes[:'amount']
|
91
91
|
end
|
92
92
|
|
93
|
-
if attributes.has_key?(:'invoiceNumber')
|
94
|
-
self.invoice_number = attributes[:'invoiceNumber']
|
95
|
-
end
|
96
|
-
|
97
93
|
if attributes.has_key?(:'note')
|
98
94
|
self.note = attributes[:'note']
|
99
95
|
end
|
100
96
|
|
101
|
-
if attributes.has_key?(:'paymentMethod')
|
102
|
-
self.payment_method = attributes[:'paymentMethod']
|
103
|
-
end
|
104
|
-
|
105
97
|
if attributes.has_key?(:'paymentDate')
|
106
98
|
self.payment_date = attributes[:'paymentDate']
|
107
99
|
end
|
@@ -110,17 +102,25 @@ module SubskribeDevClient
|
|
110
102
|
self.payment_method_id = attributes[:'paymentMethodId']
|
111
103
|
end
|
112
104
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
self.
|
105
|
+
if attributes.has_key?(:'paymentMethod')
|
106
|
+
self.payment_method = attributes[:'paymentMethod']
|
115
107
|
end
|
116
108
|
|
117
|
-
if attributes.has_key?(:'
|
118
|
-
self.
|
109
|
+
if attributes.has_key?(:'invoiceNumber')
|
110
|
+
self.invoice_number = attributes[:'invoiceNumber']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.has_key?(:'originalInvoiceBalance')
|
114
|
+
self.original_invoice_balance = attributes[:'originalInvoiceBalance']
|
119
115
|
end
|
120
116
|
|
121
117
|
if attributes.has_key?(:'newInvoiceBalance')
|
122
118
|
self.new_invoice_balance = attributes[:'newInvoiceBalance']
|
123
119
|
end
|
120
|
+
|
121
|
+
if attributes.has_key?(:'failureReason')
|
122
|
+
self.failure_reason = attributes[:'failureReason']
|
123
|
+
end
|
124
124
|
end
|
125
125
|
|
126
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -144,14 +144,14 @@ module SubskribeDevClient
|
|
144
144
|
currency_code == o.currency_code &&
|
145
145
|
failed == o.failed &&
|
146
146
|
amount == o.amount &&
|
147
|
-
invoice_number == o.invoice_number &&
|
148
147
|
note == o.note &&
|
149
|
-
payment_method == o.payment_method &&
|
150
148
|
payment_date == o.payment_date &&
|
151
149
|
payment_method_id == o.payment_method_id &&
|
150
|
+
payment_method == o.payment_method &&
|
151
|
+
invoice_number == o.invoice_number &&
|
152
152
|
original_invoice_balance == o.original_invoice_balance &&
|
153
|
-
|
154
|
-
|
153
|
+
new_invoice_balance == o.new_invoice_balance &&
|
154
|
+
failure_reason == o.failure_reason
|
155
155
|
end
|
156
156
|
|
157
157
|
# @see the `==` method
|
@@ -163,7 +163,7 @@ module SubskribeDevClient
|
|
163
163
|
# Calculates hash code according to all attributes.
|
164
164
|
# @return [Fixnum] Hash code
|
165
165
|
def hash
|
166
|
-
[currency_code, failed, amount,
|
166
|
+
[currency_code, failed, amount, note, payment_date, payment_method_id, payment_method, invoice_number, original_invoice_balance, new_invoice_balance, failure_reason].hash
|
167
167
|
end
|
168
168
|
|
169
169
|
# Builds the object from hash
|
@@ -14,27 +14,27 @@ require 'date'
|
|
14
14
|
|
15
15
|
module SubskribeDevClient
|
16
16
|
class BulkPaymentUploadResult
|
17
|
+
attr_accessor :payments_request_count
|
18
|
+
|
17
19
|
attr_accessor :failed_payments_count
|
18
20
|
|
19
21
|
attr_accessor :bulk_payment_upload_data
|
20
22
|
|
21
|
-
attr_accessor :payments_request_count
|
22
|
-
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
24
|
def self.attribute_map
|
25
25
|
{
|
26
|
+
:'payments_request_count' => :'paymentsRequestCount',
|
26
27
|
:'failed_payments_count' => :'failedPaymentsCount',
|
27
|
-
:'bulk_payment_upload_data' => :'bulkPaymentUploadData'
|
28
|
-
:'payments_request_count' => :'paymentsRequestCount'
|
28
|
+
:'bulk_payment_upload_data' => :'bulkPaymentUploadData'
|
29
29
|
}
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
+
:'payments_request_count' => :'Integer',
|
35
36
|
:'failed_payments_count' => :'Integer',
|
36
|
-
:'bulk_payment_upload_data' => :'Array<BulkPaymentUploadData>'
|
37
|
-
:'payments_request_count' => :'Integer'
|
37
|
+
:'bulk_payment_upload_data' => :'Array<BulkPaymentUploadData>'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -46,6 +46,10 @@ module SubskribeDevClient
|
|
46
46
|
# convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
48
|
|
49
|
+
if attributes.has_key?(:'paymentsRequestCount')
|
50
|
+
self.payments_request_count = attributes[:'paymentsRequestCount']
|
51
|
+
end
|
52
|
+
|
49
53
|
if attributes.has_key?(:'failedPaymentsCount')
|
50
54
|
self.failed_payments_count = attributes[:'failedPaymentsCount']
|
51
55
|
end
|
@@ -55,10 +59,6 @@ module SubskribeDevClient
|
|
55
59
|
self.bulk_payment_upload_data = value
|
56
60
|
end
|
57
61
|
end
|
58
|
-
|
59
|
-
if attributes.has_key?(:'paymentsRequestCount')
|
60
|
-
self.payments_request_count = attributes[:'paymentsRequestCount']
|
61
|
-
end
|
62
62
|
end
|
63
63
|
|
64
64
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,9 +79,9 @@ module SubskribeDevClient
|
|
79
79
|
def ==(o)
|
80
80
|
return true if self.equal?(o)
|
81
81
|
self.class == o.class &&
|
82
|
+
payments_request_count == o.payments_request_count &&
|
82
83
|
failed_payments_count == o.failed_payments_count &&
|
83
|
-
bulk_payment_upload_data == o.bulk_payment_upload_data
|
84
|
-
payments_request_count == o.payments_request_count
|
84
|
+
bulk_payment_upload_data == o.bulk_payment_upload_data
|
85
85
|
end
|
86
86
|
|
87
87
|
# @see the `==` method
|
@@ -93,7 +93,7 @@ module SubskribeDevClient
|
|
93
93
|
# Calculates hash code according to all attributes.
|
94
94
|
# @return [Fixnum] Hash code
|
95
95
|
def hash
|
96
|
-
[failed_payments_count, bulk_payment_upload_data
|
96
|
+
[payments_request_count, failed_payments_count, bulk_payment_upload_data].hash
|
97
97
|
end
|
98
98
|
|
99
99
|
# Builds the object from hash
|