solifyn 1.1.1 → 1.1.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.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/Brand.md +2 -2
  4. data/docs/CheckoutLinkResponseDto.md +3 -3
  5. data/docs/CollectionDetailResponseDto.md +3 -3
  6. data/docs/CollectionProductDto.md +3 -3
  7. data/docs/CollectionResponseDto.md +3 -3
  8. data/docs/CustomerResponseDto.md +2 -2
  9. data/docs/CustomerSharedInviteResponseDto.md +1 -1
  10. data/docs/Dispute.md +3 -3
  11. data/docs/EntitlementGrantResponseDto.md +5 -5
  12. data/docs/Invoice.md +1 -1
  13. data/docs/MeterDetailResponseDto.md +3 -3
  14. data/docs/MeterResponseDto.md +2 -2
  15. data/docs/MeterUsageEventDto.md +2 -2
  16. data/docs/Order.md +2 -2
  17. data/docs/OrderRefund.md +1 -1
  18. data/docs/Product.md +5 -5
  19. data/docs/ProductCreate.md +1 -1
  20. data/docs/ProductUpdate.md +2 -2
  21. data/docs/Refund.md +5 -5
  22. data/docs/Subscription.md +3 -3
  23. data/docs/UpdateCustomerDto.md +1 -1
  24. data/docs/WebhookEntitlementGrantPayload.md +5 -5
  25. data/lib/solifyn/models/addon.rb +2 -10
  26. data/lib/solifyn/models/brand.rb +6 -0
  27. data/lib/solifyn/models/brand_create.rb +6 -5
  28. data/lib/solifyn/models/brand_update.rb +6 -5
  29. data/lib/solifyn/models/checkout_link_response_dto.rb +12 -0
  30. data/lib/solifyn/models/checkout_session_details_dto.rb +1 -0
  31. data/lib/solifyn/models/collection_detail_response_dto.rb +2 -0
  32. data/lib/solifyn/models/collection_product_dto.rb +17 -80
  33. data/lib/solifyn/models/collection_response_dto.rb +2 -0
  34. data/lib/solifyn/models/customer_response_dto.rb +6 -0
  35. data/lib/solifyn/models/discount.rb +2 -10
  36. data/lib/solifyn/models/discount_create.rb +3 -0
  37. data/lib/solifyn/models/discount_update.rb +3 -0
  38. data/lib/solifyn/models/dispute.rb +10 -0
  39. data/lib/solifyn/models/dispute_evidence_dto.rb +4 -0
  40. data/lib/solifyn/models/instance.rb +4 -20
  41. data/lib/solifyn/models/license.rb +8 -40
  42. data/lib/solifyn/models/license_sub_dto.rb +3 -15
  43. data/lib/solifyn/models/meter_detail_response_dto.rb +4 -0
  44. data/lib/solifyn/models/meter_response_dto.rb +4 -0
  45. data/lib/solifyn/models/meter_usage_event_dto.rb +1 -0
  46. data/lib/solifyn/models/product.rb +17 -80
  47. data/lib/solifyn/models/product_create.rb +2 -2
  48. data/lib/solifyn/models/product_sub_dto.rb +1 -5
  49. data/lib/solifyn/models/product_update.rb +2 -0
  50. data/lib/solifyn/models/refund.rb +5 -0
  51. data/lib/solifyn/models/resolved_addon.rb +1 -5
  52. data/lib/solifyn/models/subscription.rb +10 -35
  53. data/lib/solifyn/models/subscription_detail.rb +1 -5
  54. data/lib/solifyn/models/webhook_dispute_payload.rb +5 -0
  55. data/lib/solifyn/models/webhook_entitlement_grant_payload.rb +6 -0
  56. data/lib/solifyn/models/webhook_license_payload.rb +8 -40
  57. data/lib/solifyn/models/webhook_payment_payload.rb +40 -0
  58. data/lib/solifyn/models/webhook_refund_payload.rb +4 -0
  59. data/lib/solifyn/models/webhook_subscription_payload.rb +9 -0
  60. data/lib/solifyn/version.rb +1 -1
  61. metadata +160 -160
@@ -187,6 +187,8 @@ module Solifyn
187
187
  # List of attributes with nullable: true
188
188
  def self.openapi_nullable
189
189
  Set.new([
190
+ :'activation_limit',
191
+ :'brand_id',
190
192
  ])
191
193
  end
192
194
 
@@ -122,6 +122,11 @@ module Solifyn
122
122
  # List of attributes with nullable: true
123
123
  def self.openapi_nullable
124
124
  Set.new([
125
+ :'idempotency_key',
126
+ :'provider',
127
+ :'reason',
128
+ :'reference_value',
129
+ :'provider_created_at',
125
130
  ])
126
131
  end
127
132
 
@@ -55,6 +55,7 @@ module Solifyn
55
55
  # List of attributes with nullable: true
56
56
  def self.openapi_nullable
57
57
  Set.new([
58
+ :'image_url',
58
59
  ])
59
60
  end
60
61
 
@@ -111,10 +112,6 @@ module Solifyn
111
112
  invalid_properties.push('invalid value for "name", name cannot be nil.')
112
113
  end
113
114
 
114
- if @image_url.nil?
115
- invalid_properties.push('invalid value for "image_url", image_url cannot be nil.')
116
- end
117
-
118
115
  if @quantity.nil?
119
116
  invalid_properties.push('invalid value for "quantity", quantity cannot be nil.')
120
117
  end
@@ -128,7 +125,6 @@ module Solifyn
128
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
129
126
  return false if @product_id.nil?
130
127
  return false if @name.nil?
131
- return false if @image_url.nil?
132
128
  return false if @quantity.nil?
133
129
  true
134
130
  end
@@ -166,6 +166,16 @@ module Solifyn
166
166
  # List of attributes with nullable: true
167
167
  def self.openapi_nullable
168
168
  Set.new([
169
+ :'renewal_period_start',
170
+ :'renewal_period_end',
171
+ :'cancel_option',
172
+ :'cancellation_reason',
173
+ :'canceled_at',
174
+ :'promo_code',
175
+ :'license_key',
176
+ :'price',
177
+ :'type',
178
+ :'customer_id'
169
179
  ])
170
180
  end
171
181
 
@@ -372,30 +382,10 @@ module Solifyn
372
382
  invalid_properties.push('invalid value for "user", user cannot be nil.')
373
383
  end
374
384
 
375
- if @renewal_period_start.nil?
376
- invalid_properties.push('invalid value for "renewal_period_start", renewal_period_start cannot be nil.')
377
- end
378
-
379
- if @renewal_period_end.nil?
380
- invalid_properties.push('invalid value for "renewal_period_end", renewal_period_end cannot be nil.')
381
- end
382
-
383
385
  if @cancel_at_period_end.nil?
384
386
  invalid_properties.push('invalid value for "cancel_at_period_end", cancel_at_period_end cannot be nil.')
385
387
  end
386
388
 
387
- if @cancel_option.nil?
388
- invalid_properties.push('invalid value for "cancel_option", cancel_option cannot be nil.')
389
- end
390
-
391
- if @cancellation_reason.nil?
392
- invalid_properties.push('invalid value for "cancellation_reason", cancellation_reason cannot be nil.')
393
- end
394
-
395
- if @canceled_at.nil?
396
- invalid_properties.push('invalid value for "canceled_at", canceled_at cannot be nil.')
397
- end
398
-
399
389
  if @currency.nil?
400
390
  invalid_properties.push('invalid value for "currency", currency cannot be nil.')
401
391
  end
@@ -408,18 +398,10 @@ module Solifyn
408
398
  invalid_properties.push('invalid value for "plan", plan cannot be nil.')
409
399
  end
410
400
 
411
- if @promo_code.nil?
412
- invalid_properties.push('invalid value for "promo_code", promo_code cannot be nil.')
413
- end
414
-
415
401
  if @product.nil?
416
402
  invalid_properties.push('invalid value for "product", product cannot be nil.')
417
403
  end
418
404
 
419
- if @license_key.nil?
420
- invalid_properties.push('invalid value for "license_key", license_key cannot be nil.')
421
- end
422
-
423
405
  if @metadata.nil?
424
406
  invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
425
407
  end
@@ -447,18 +429,11 @@ module Solifyn
447
429
  return false if @manage_url.nil?
448
430
  return false if @member.nil?
449
431
  return false if @user.nil?
450
- return false if @renewal_period_start.nil?
451
- return false if @renewal_period_end.nil?
452
432
  return false if @cancel_at_period_end.nil?
453
- return false if @cancel_option.nil?
454
- return false if @cancellation_reason.nil?
455
- return false if @canceled_at.nil?
456
433
  return false if @currency.nil?
457
434
  return false if @company.nil?
458
435
  return false if @plan.nil?
459
- return false if @promo_code.nil?
460
436
  return false if @product.nil?
461
- return false if @license_key.nil?
462
437
  return false if @metadata.nil?
463
438
  return false if @payment_collection_paused.nil?
464
439
  return false if @checkout_configuration_id.nil?
@@ -56,6 +56,7 @@ module Solifyn
56
56
  # List of attributes with nullable: true
57
57
  def self.openapi_nullable
58
58
  Set.new([
59
+ :'product'
59
60
  ])
60
61
  end
61
62
 
@@ -120,10 +121,6 @@ module Solifyn
120
121
  invalid_properties.push('invalid value for "purchased_addons", purchased_addons cannot be nil.')
121
122
  end
122
123
 
123
- if @product.nil?
124
- invalid_properties.push('invalid value for "product", product cannot be nil.')
125
- end
126
-
127
124
  invalid_properties
128
125
  end
129
126
 
@@ -134,7 +131,6 @@ module Solifyn
134
131
  return false if @subscription.nil?
135
132
  return false if @payments.nil?
136
133
  return false if @purchased_addons.nil?
137
- return false if @product.nil?
138
134
  true
139
135
  end
140
136
 
@@ -89,6 +89,11 @@ module Solifyn
89
89
  # List of attributes with nullable: true
90
90
  def self.openapi_nullable
91
91
  Set.new([
92
+ :'reason',
93
+ :'needs_response_by',
94
+ :'customer_name',
95
+ :'customer_email',
96
+ :'notes',
92
97
  ])
93
98
  end
94
99
 
@@ -103,6 +103,12 @@ module Solifyn
103
103
  # List of attributes with nullable: true
104
104
  def self.openapi_nullable
105
105
  Set.new([
106
+ :'payment_id',
107
+ :'github_repo',
108
+ :'github_permission',
109
+ :'github_username',
110
+ :'oauth_url',
111
+ :'error_details',
106
112
  ])
107
113
  end
108
114
 
@@ -138,6 +138,14 @@ module Solifyn
138
138
  # List of attributes with nullable: true
139
139
  def self.openapi_nullable
140
140
  Set.new([
141
+ :'product_id',
142
+ :'payment_id',
143
+ :'customer_id',
144
+ :'activation_limit',
145
+ :'activation_message',
146
+ :'expiry_hours',
147
+ :'expires_at',
148
+ :'filters',
141
149
  ])
142
150
  end
143
151
 
@@ -274,42 +282,10 @@ module Solifyn
274
282
  invalid_properties.push('invalid value for "business_id", business_id cannot be nil.')
275
283
  end
276
284
 
277
- if @product_id.nil?
278
- invalid_properties.push('invalid value for "product_id", product_id cannot be nil.')
279
- end
280
-
281
- if @payment_id.nil?
282
- invalid_properties.push('invalid value for "payment_id", payment_id cannot be nil.')
283
- end
284
-
285
- if @customer_id.nil?
286
- invalid_properties.push('invalid value for "customer_id", customer_id cannot be nil.')
287
- end
288
-
289
- if @activation_limit.nil?
290
- invalid_properties.push('invalid value for "activation_limit", activation_limit cannot be nil.')
291
- end
292
-
293
- if @activation_message.nil?
294
- invalid_properties.push('invalid value for "activation_message", activation_message cannot be nil.')
295
- end
296
-
297
285
  if @instances_count.nil?
298
286
  invalid_properties.push('invalid value for "instances_count", instances_count cannot be nil.')
299
287
  end
300
288
 
301
- if @expiry_hours.nil?
302
- invalid_properties.push('invalid value for "expiry_hours", expiry_hours cannot be nil.')
303
- end
304
-
305
- if @expires_at.nil?
306
- invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.')
307
- end
308
-
309
- if @filters.nil?
310
- invalid_properties.push('invalid value for "filters", filters cannot be nil.')
311
- end
312
-
313
289
  if @archived.nil?
314
290
  invalid_properties.push('invalid value for "archived", archived cannot be nil.')
315
291
  end
@@ -335,15 +311,7 @@ module Solifyn
335
311
  status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DISABLED", "REVOKED"])
336
312
  return false unless status_validator.valid?(@status)
337
313
  return false if @business_id.nil?
338
- return false if @product_id.nil?
339
- return false if @payment_id.nil?
340
- return false if @customer_id.nil?
341
- return false if @activation_limit.nil?
342
- return false if @activation_message.nil?
343
314
  return false if @instances_count.nil?
344
- return false if @expiry_hours.nil?
345
- return false if @expires_at.nil?
346
- return false if @filters.nil?
347
315
  return false if @archived.nil?
348
316
  return false if @created_at.nil?
349
317
  return false if @updated_at.nil?
@@ -237,6 +237,46 @@ module Solifyn
237
237
  # List of attributes with nullable: true
238
238
  def self.openapi_nullable
239
239
  Set.new([
240
+ :'substatus',
241
+ :'customer_id',
242
+ :'customer_email',
243
+ :'customer_name',
244
+ :'customer_username',
245
+ :'product_title',
246
+ :'product_route',
247
+ :'plan_id',
248
+ :'membership_id',
249
+ :'membership_status',
250
+ :'billing_reason',
251
+ :'amount',
252
+ :'subtotal',
253
+ :'usd_total',
254
+ :'fee_amount',
255
+ :'amount_after_fees',
256
+ :'tax_amount',
257
+ :'tax_behavior',
258
+ :'tax_refunded_amount',
259
+ :'settlement_amount',
260
+ :'settlement_currency',
261
+ :'settlement_exchange_rate',
262
+ :'payment_method',
263
+ :'card_brand',
264
+ :'card_last4',
265
+ :'card_exp_month',
266
+ :'card_exp_year',
267
+ :'billing_address',
268
+ :'license_key',
269
+ :'files_snapshot',
270
+ :'checkout_id',
271
+ :'discount_code',
272
+ :'failure_message',
273
+ :'paid_at',
274
+ :'refunded_at',
275
+ :'dispute_alerted_at',
276
+ :'last_payment_attempt',
277
+ :'next_payment_attempt',
278
+ :'payment_event_type',
279
+ :'last_event_type',
240
280
  ])
241
281
  end
242
282
 
@@ -81,6 +81,10 @@ module Solifyn
81
81
  # List of attributes with nullable: true
82
82
  def self.openapi_nullable
83
83
  Set.new([
84
+ :'reason',
85
+ :'reference_value',
86
+ :'provider',
87
+ :'provider_created_at',
84
88
  ])
85
89
  end
86
90
 
@@ -93,6 +93,15 @@ module Solifyn
93
93
  # List of attributes with nullable: true
94
94
  def self.openapi_nullable
95
95
  Set.new([
96
+ :'renewal_period_start',
97
+ :'renewal_period_end',
98
+ :'customer_id',
99
+ :'customer_email',
100
+ :'customer_name',
101
+ :'product_id',
102
+ :'product_title',
103
+ :'created_at',
104
+ :'updated_at'
96
105
  ])
97
106
  end
98
107
 
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module Solifyn
14
- VERSION = '1.1.1'
14
+ VERSION = '1.1.2'
15
15
  end