maxio-advanced-billing-sdk 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -40
  3. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +6 -4
  4. data/lib/advanced_billing/controllers/base_controller.rb +1 -1
  5. data/lib/advanced_billing/controllers/components_controller.rb +9 -58
  6. data/lib/advanced_billing/controllers/coupons_controller.rb +6 -115
  7. data/lib/advanced_billing/controllers/custom_fields_controller.rb +4 -4
  8. data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +5 -22
  9. data/lib/advanced_billing/controllers/insights_controller.rb +3 -4
  10. data/lib/advanced_billing/controllers/invoices_controller.rb +11 -0
  11. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +26 -0
  12. data/lib/advanced_billing/controllers/product_families_controller.rb +5 -14
  13. data/lib/advanced_billing/controllers/product_price_points_controller.rb +3 -40
  14. data/lib/advanced_billing/controllers/products_controller.rb +5 -14
  15. data/lib/advanced_billing/controllers/subscription_components_controller.rb +16 -66
  16. data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +5 -15
  17. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +6 -6
  18. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +13 -20
  19. data/lib/advanced_billing/controllers/subscriptions_controller.rb +49 -14
  20. data/lib/advanced_billing/models/ach_agreement.rb +10 -0
  21. data/lib/advanced_billing/models/address_change.rb +0 -22
  22. data/lib/advanced_billing/models/agreement_acceptance.rb +10 -0
  23. data/lib/advanced_billing/models/allocation.rb +1 -3
  24. data/lib/advanced_billing/models/applied_credit_note_data.rb +10 -0
  25. data/lib/advanced_billing/models/apply_credit_note_event.rb +139 -0
  26. data/lib/advanced_billing/models/apply_credit_note_event_data.rb +3 -1
  27. data/lib/advanced_billing/models/apply_debit_note_event.rb +139 -0
  28. data/lib/advanced_billing/models/apply_debit_note_event_data.rb +36 -2
  29. data/lib/advanced_billing/models/apply_payment_event.rb +139 -0
  30. data/lib/advanced_billing/models/apply_payment_event_data.rb +21 -7
  31. data/lib/advanced_billing/models/backport_invoice_event.rb +139 -0
  32. data/lib/advanced_billing/models/bank_account_attributes.rb +10 -0
  33. data/lib/advanced_billing/models/billing_manifest.rb +5 -1
  34. data/lib/advanced_billing/models/billing_schedule.rb +10 -0
  35. data/lib/advanced_billing/models/change_chargeback_status_event.rb +141 -0
  36. data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +73 -0
  37. data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +141 -0
  38. data/lib/advanced_billing/models/change_invoice_status_event.rb +141 -0
  39. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +131 -0
  40. data/lib/advanced_billing/models/chargeback_status.rb +29 -0
  41. data/lib/advanced_billing/models/component.rb +3 -13
  42. data/lib/advanced_billing/models/component_cost_data.rb +10 -0
  43. data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +10 -0
  44. data/lib/advanced_billing/models/component_custom_price.rb +10 -0
  45. data/lib/advanced_billing/models/component_price_point.rb +2 -13
  46. data/lib/advanced_billing/models/component_price_point_item.rb +10 -0
  47. data/lib/advanced_billing/models/coupon.rb +4 -14
  48. data/lib/advanced_billing/models/create_component_price_point.rb +6 -2
  49. data/lib/advanced_billing/models/create_component_price_point_request.rb +1 -1
  50. data/lib/advanced_billing/models/create_component_price_points_request.rb +1 -1
  51. data/lib/advanced_billing/models/create_credit_note_event.rb +139 -0
  52. data/lib/advanced_billing/models/create_debit_note_event.rb +139 -0
  53. data/lib/advanced_billing/models/create_invoice_payment_application.rb +22 -0
  54. data/lib/advanced_billing/models/create_multi_invoice_payment.rb +6 -2
  55. data/lib/advanced_billing/models/create_offer_component.rb +11 -0
  56. data/lib/advanced_billing/models/create_payment_profile.rb +4 -4
  57. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +10 -4
  58. data/lib/advanced_billing/models/create_product_family.rb +14 -4
  59. data/lib/advanced_billing/models/create_subscription.rb +2 -2
  60. data/lib/advanced_billing/models/credit_card_attributes.rb +10 -0
  61. data/lib/advanced_billing/models/credit_note_application.rb +10 -0
  62. data/lib/advanced_billing/models/credit_note_line_item.rb +10 -0
  63. data/lib/advanced_billing/models/customer.rb +13 -1
  64. data/lib/advanced_billing/models/customer_attributes.rb +10 -0
  65. data/lib/advanced_billing/models/customer_change.rb +7 -22
  66. data/lib/advanced_billing/models/customer_custom_fields_change.rb +0 -22
  67. data/lib/advanced_billing/models/customer_payer_change.rb +0 -22
  68. data/lib/advanced_billing/models/debit_note.rb +351 -0
  69. data/lib/advanced_billing/models/debit_note_role.rb +23 -0
  70. data/lib/advanced_billing/models/debit_note_status.rb +29 -0
  71. data/lib/advanced_billing/models/deduct_service_credit.rb +10 -16
  72. data/lib/advanced_billing/models/dunner_data.rb +38 -0
  73. data/lib/advanced_billing/models/dunning_step_data.rb +34 -0
  74. data/lib/advanced_billing/models/dunning_step_reached.rb +12 -6
  75. data/lib/advanced_billing/models/failed_payment_event.rb +139 -0
  76. data/lib/advanced_billing/models/failed_payment_event_data.rb +132 -0
  77. data/lib/advanced_billing/models/group_billing.rb +10 -0
  78. data/lib/advanced_billing/models/group_settings.rb +4 -2
  79. data/lib/advanced_billing/models/group_target.rb +14 -0
  80. data/lib/advanced_billing/models/historic_usage.rb +109 -0
  81. data/lib/advanced_billing/models/include_null_or_not_null.rb +23 -0
  82. data/lib/advanced_billing/models/invoice.rb +18 -8
  83. data/lib/advanced_billing/models/invoice_address.rb +10 -0
  84. data/lib/advanced_billing/models/invoice_balance_item.rb +10 -0
  85. data/lib/advanced_billing/models/invoice_credit.rb +10 -0
  86. data/lib/advanced_billing/models/invoice_custom_field.rb +10 -0
  87. data/lib/advanced_billing/models/invoice_customer.rb +10 -0
  88. data/lib/advanced_billing/models/invoice_discount.rb +10 -0
  89. data/lib/advanced_billing/models/invoice_discount_breakout.rb +10 -0
  90. data/lib/advanced_billing/models/invoice_display_settings.rb +10 -0
  91. data/lib/advanced_billing/models/invoice_event_type.rb +3 -0
  92. data/lib/advanced_billing/models/invoice_issued.rb +6 -2
  93. data/lib/advanced_billing/models/invoice_line_item.rb +3 -3
  94. data/lib/advanced_billing/models/invoice_line_item_event_data.rb +10 -0
  95. data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +10 -0
  96. data/lib/advanced_billing/models/invoice_payer.rb +10 -0
  97. data/lib/advanced_billing/models/invoice_payment.rb +10 -0
  98. data/lib/advanced_billing/models/invoice_payment_method.rb +10 -0
  99. data/lib/advanced_billing/models/invoice_pre_payment.rb +0 -10
  100. data/lib/advanced_billing/models/invoice_previous_balance.rb +10 -0
  101. data/lib/advanced_billing/models/invoice_refund.rb +10 -0
  102. data/lib/advanced_billing/models/invoice_seller.rb +10 -0
  103. data/lib/advanced_billing/models/invoice_status.rb +2 -2
  104. data/lib/advanced_billing/models/invoice_tax.rb +10 -0
  105. data/lib/advanced_billing/models/invoice_tax_breakout.rb +10 -0
  106. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +10 -0
  107. data/lib/advanced_billing/models/issue_invoice_event.rb +139 -0
  108. data/lib/advanced_billing/models/issue_invoice_event_data.rb +6 -6
  109. data/lib/advanced_billing/models/issue_service_credit.rb +10 -16
  110. data/lib/advanced_billing/models/item_price_point_changed.rb +8 -4
  111. data/lib/advanced_billing/models/item_price_point_data.rb +10 -0
  112. data/lib/advanced_billing/models/list_components_filter.rb +74 -0
  113. data/lib/advanced_billing/models/list_coupons_filter.rb +168 -0
  114. data/lib/advanced_billing/models/list_invoice_events_response.rb +14 -11
  115. data/lib/advanced_billing/models/{refund_prepayment_aggregated_error.rb → list_mrr_filter.rb} +14 -12
  116. data/lib/advanced_billing/models/{list_subscription_group_prepayment_date_field.rb → list_prepayment_date_field.rb} +4 -4
  117. data/lib/advanced_billing/models/list_prepayments_filter.rb +88 -0
  118. data/lib/advanced_billing/models/list_price_points_filter.rb +163 -0
  119. data/lib/advanced_billing/models/list_products_filter.rb +81 -0
  120. data/lib/advanced_billing/models/list_segments_filter.rb +103 -0
  121. data/lib/advanced_billing/models/list_subscription_components_filter.rb +74 -0
  122. data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +84 -0
  123. data/lib/advanced_billing/models/list_subscription_components_include.rb +4 -1
  124. data/lib/advanced_billing/models/metafield_scope.rb +10 -0
  125. data/lib/advanced_billing/models/nested_subscription_group.rb +0 -10
  126. data/lib/advanced_billing/models/origin_invoice.rb +10 -0
  127. data/lib/advanced_billing/models/overage_pricing.rb +14 -0
  128. data/lib/advanced_billing/models/paid_invoice.rb +2 -2
  129. data/lib/advanced_billing/models/payer_attributes.rb +10 -0
  130. data/lib/advanced_billing/models/prepaid_component_price_point.rb +10 -0
  131. data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +56 -0
  132. data/lib/advanced_billing/models/prepaid_usage.rb +6 -2
  133. data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +10 -0
  134. data/lib/advanced_billing/models/product.rb +5 -16
  135. data/lib/advanced_billing/models/product_price_point.rb +9 -0
  136. data/lib/advanced_billing/models/proforma_invoice.rb +2 -2
  137. data/lib/advanced_billing/models/proforma_invoice_issued.rb +6 -2
  138. data/lib/advanced_billing/models/reactivation_billing.rb +10 -0
  139. data/lib/advanced_billing/models/record_payment_response.rb +1 -13
  140. data/lib/advanced_billing/models/refund_invoice_event.rb +139 -0
  141. data/lib/advanced_billing/models/refund_invoice_event_data.rb +4 -2
  142. data/lib/advanced_billing/models/refund_invoice_request.rb +1 -1
  143. data/lib/advanced_billing/models/refund_prepayment.rb +3 -1
  144. data/lib/advanced_billing/models/remove_payment_event.rb +139 -0
  145. data/lib/advanced_billing/models/remove_payment_event_data.rb +1 -1
  146. data/lib/advanced_billing/models/segment_price.rb +10 -0
  147. data/lib/advanced_billing/models/subscription.rb +10 -16
  148. data/lib/advanced_billing/models/subscription_component.rb +26 -7
  149. data/lib/advanced_billing/models/subscription_component_subscription.rb +10 -0
  150. data/lib/advanced_billing/models/subscription_filter.rb +153 -0
  151. data/lib/advanced_billing/models/subscription_group.rb +2 -2
  152. data/lib/advanced_billing/models/subscription_group_bank_account.rb +10 -0
  153. data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +10 -0
  154. data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +3 -1
  155. data/lib/advanced_billing/models/subscription_group_signup.rb +2 -2
  156. data/lib/advanced_billing/models/subscription_group_signup_failure.rb +4 -2
  157. data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +10 -0
  158. data/lib/advanced_billing/models/subscription_group_signup_item.rb +10 -0
  159. data/lib/advanced_billing/models/subscription_group_signup_response.rb +2 -2
  160. data/lib/advanced_billing/models/subscription_group_signup_success.rb +8 -4
  161. data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +50 -0
  162. data/lib/advanced_billing/models/update_customer.rb +12 -0
  163. data/lib/advanced_billing/models/update_subscription_component.rb +10 -0
  164. data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +10 -0
  165. data/lib/advanced_billing/models/usage.rb +3 -1
  166. data/lib/advanced_billing/models/void_invoice_event.rb +139 -0
  167. data/lib/advanced_billing/models/void_invoice_event_data.rb +8 -7
  168. data/lib/advanced_billing/models/void_remainder_event.rb +139 -0
  169. data/lib/advanced_billing/models/void_remainder_event_data.rb +4 -2
  170. data/lib/advanced_billing/utilities/union_type_lookup.rb +69 -199
  171. data/lib/advanced_billing.rb +42 -18
  172. metadata +38 -17
  173. data/lib/advanced_billing/exceptions/refund_prepayment_aggregated_errors_response_exception.rb +0 -33
  174. data/lib/advanced_billing/models/billing_address.rb +0 -117
  175. data/lib/advanced_billing/models/credit_note1.rb +0 -419
  176. data/lib/advanced_billing/models/customer1.rb +0 -125
  177. data/lib/advanced_billing/models/invoice_event.rb +0 -124
  178. data/lib/advanced_billing/models/invoice_event_data.rb +0 -447
  179. data/lib/advanced_billing/models/invoice_event_payment.rb +0 -168
  180. data/lib/advanced_billing/models/invoice_event_payment1.rb +0 -160
  181. data/lib/advanced_billing/models/prepayment_aggregated_error.rb +0 -81
  182. data/lib/advanced_billing/models/price_point.rb +0 -216
  183. data/lib/advanced_billing/models/refund.rb +0 -138
  184. data/lib/advanced_billing/models/seller.rb +0 -92
  185. data/lib/advanced_billing/models/shipping_address.rb +0 -117
@@ -5,6 +5,7 @@
5
5
 
6
6
  require 'date'
7
7
  require 'json'
8
+
8
9
  require 'apimatic_core_interfaces'
9
10
  require 'apimatic_core'
10
11
  require 'apimatic_faraday_client_adapter'
@@ -22,16 +23,34 @@ require_relative 'advanced_billing/http/http_call_back'
22
23
  require_relative 'advanced_billing/http/http_method_enum'
23
24
  require_relative 'advanced_billing/http/http_request'
24
25
  require_relative 'advanced_billing/http/http_response'
26
+
27
+ # Logger
25
28
  require_relative 'advanced_billing/http/auth/basic_auth'
26
29
 
27
30
  # Models
28
31
  require_relative 'advanced_billing/models/base_model'
29
- require_relative 'advanced_billing/models/invoice_event_payment'
30
32
  require_relative 'advanced_billing/models/payment_method_apple_pay'
31
33
  require_relative 'advanced_billing/models/payment_method_bank_account'
32
34
  require_relative 'advanced_billing/models/payment_method_credit_card'
33
35
  require_relative 'advanced_billing/models/payment_method_external'
34
36
  require_relative 'advanced_billing/models/payment_method_paypal'
37
+ require_relative 'advanced_billing/models/apply_credit_note_event'
38
+ require_relative 'advanced_billing/models/apply_debit_note_event'
39
+ require_relative 'advanced_billing/models/apply_payment_event'
40
+ require_relative 'advanced_billing/models/backport_invoice_event'
41
+ require_relative 'advanced_billing/models/change_chargeback_status_event'
42
+ require_relative 'advanced_billing/models/' \
43
+ 'change_invoice_collection_method_event'
44
+ require_relative 'advanced_billing/models/change_invoice_status_event'
45
+ require_relative 'advanced_billing/models/create_credit_note_event'
46
+ require_relative 'advanced_billing/models/create_debit_note_event'
47
+ require_relative 'advanced_billing/models/failed_payment_event'
48
+ require_relative 'advanced_billing/models/issue_invoice_event'
49
+ require_relative 'advanced_billing/models/refund_invoice_event'
50
+ require_relative 'advanced_billing/models/remove_payment_event'
51
+ require_relative 'advanced_billing/models/void_invoice_event'
52
+ require_relative 'advanced_billing/models/void_remainder_event'
53
+ require_relative 'advanced_billing/models/list_invoice_events_response'
35
54
  require_relative 'advanced_billing/models/account_balance'
36
55
  require_relative 'advanced_billing/models/account_balances'
37
56
  require_relative 'advanced_billing/models/ach_agreement'
@@ -67,7 +86,6 @@ require_relative 'advanced_billing/models/batch_job'
67
86
  require_relative 'advanced_billing/models/billing_manifest'
68
87
  require_relative 'advanced_billing/models/billing_manifest_item'
69
88
  require_relative 'advanced_billing/models/billing_schedule'
70
- require_relative 'advanced_billing/models/billing_address'
71
89
  require_relative 'advanced_billing/models/breakouts'
72
90
  require_relative 'advanced_billing/models/' \
73
91
  'bulk_components_price_point_assignment'
@@ -82,8 +100,10 @@ require_relative 'advanced_billing/models/calendar_billing'
82
100
  require_relative 'advanced_billing/models/cancel_grouped_subscriptions_request'
83
101
  require_relative 'advanced_billing/models/cancellation_options'
84
102
  require_relative 'advanced_billing/models/cancellation_request'
103
+ require_relative 'advanced_billing/models/change_chargeback_status_event_data'
85
104
  require_relative 'advanced_billing/models/' \
86
105
  'change_invoice_collection_method_event_data'
106
+ require_relative 'advanced_billing/models/change_invoice_status_event_data'
87
107
  require_relative 'advanced_billing/models/chargify_ebb'
88
108
  require_relative 'advanced_billing/models/component'
89
109
  require_relative 'advanced_billing/models/component_allocation_change'
@@ -184,7 +204,6 @@ require_relative 'advanced_billing/models/credit_card_payment_profile'
184
204
  require_relative 'advanced_billing/models/credit_note'
185
205
  require_relative 'advanced_billing/models/credit_note_application'
186
206
  require_relative 'advanced_billing/models/credit_note_line_item'
187
- require_relative 'advanced_billing/models/credit_note1'
188
207
  require_relative 'advanced_billing/models/credit_scheme_request'
189
208
  require_relative 'advanced_billing/models/currency_price'
190
209
  require_relative 'advanced_billing/models/currency_prices_response'
@@ -197,7 +216,7 @@ require_relative 'advanced_billing/models/customer_custom_fields_change'
197
216
  require_relative 'advanced_billing/models/customer_error'
198
217
  require_relative 'advanced_billing/models/customer_payer_change'
199
218
  require_relative 'advanced_billing/models/customer_response'
200
- require_relative 'advanced_billing/models/customer1'
219
+ require_relative 'advanced_billing/models/debit_note'
201
220
  require_relative 'advanced_billing/models/deduct_service_credit'
202
221
  require_relative 'advanced_billing/models/deduct_service_credit_request'
203
222
  require_relative 'advanced_billing/models/delayed_cancellation_response'
@@ -215,12 +234,14 @@ require_relative 'advanced_billing/models/errors'
215
234
  require_relative 'advanced_billing/models/event'
216
235
  require_relative 'advanced_billing/models/event_based_billing_segment_error'
217
236
  require_relative 'advanced_billing/models/event_response'
237
+ require_relative 'advanced_billing/models/failed_payment_event_data'
218
238
  require_relative 'advanced_billing/models/full_subscription_group_response'
219
239
  require_relative 'advanced_billing/models/get_one_time_token_payment_profile'
220
240
  require_relative 'advanced_billing/models/get_one_time_token_request'
221
241
  require_relative 'advanced_billing/models/group_billing'
222
242
  require_relative 'advanced_billing/models/group_settings'
223
243
  require_relative 'advanced_billing/models/group_target'
244
+ require_relative 'advanced_billing/models/historic_usage'
224
245
  require_relative 'advanced_billing/models/invoice'
225
246
  require_relative 'advanced_billing/models/invoice_address'
226
247
  require_relative 'advanced_billing/models/invoice_balance_item'
@@ -230,9 +251,6 @@ require_relative 'advanced_billing/models/invoice_customer'
230
251
  require_relative 'advanced_billing/models/invoice_discount'
231
252
  require_relative 'advanced_billing/models/invoice_discount_breakout'
232
253
  require_relative 'advanced_billing/models/invoice_display_settings'
233
- require_relative 'advanced_billing/models/invoice_event'
234
- require_relative 'advanced_billing/models/invoice_event_data'
235
- require_relative 'advanced_billing/models/invoice_event_payment1'
236
254
  require_relative 'advanced_billing/models/invoice_issued'
237
255
  require_relative 'advanced_billing/models/invoice_line_item'
238
256
  require_relative 'advanced_billing/models/invoice_line_item_component_cost_data'
@@ -258,23 +276,32 @@ require_relative 'advanced_billing/models/issue_service_credit'
258
276
  require_relative 'advanced_billing/models/issue_service_credit_request'
259
277
  require_relative 'advanced_billing/models/item_price_point_changed'
260
278
  require_relative 'advanced_billing/models/item_price_point_data'
279
+ require_relative 'advanced_billing/models/list_components_filter'
261
280
  require_relative 'advanced_billing/models/list_components_price_points_response'
281
+ require_relative 'advanced_billing/models/list_coupons_filter'
262
282
  require_relative 'advanced_billing/models/list_credit_notes_response'
263
- require_relative 'advanced_billing/models/list_invoice_events_response'
264
283
  require_relative 'advanced_billing/models/list_invoices_response'
265
284
  require_relative 'advanced_billing/models/list_metafields_response'
285
+ require_relative 'advanced_billing/models/list_mrr_filter'
266
286
  require_relative 'advanced_billing/models/list_mrr_response'
267
287
  require_relative 'advanced_billing/models/list_mrr_response_result'
268
288
  require_relative 'advanced_billing/models/list_offers_response'
289
+ require_relative 'advanced_billing/models/list_prepayments_filter'
290
+ require_relative 'advanced_billing/models/list_price_points_filter'
269
291
  require_relative 'advanced_billing/models/list_product_price_points_response'
292
+ require_relative 'advanced_billing/models/list_products_filter'
270
293
  require_relative 'advanced_billing/models/list_proforma_invoices_meta'
271
294
  require_relative 'advanced_billing/models/list_proforma_invoices_response'
272
295
  require_relative 'advanced_billing/models/list_public_keys_meta'
273
296
  require_relative 'advanced_billing/models/list_public_keys_response'
274
297
  require_relative 'advanced_billing/models/list_sale_rep_item'
298
+ require_relative 'advanced_billing/models/list_segments_filter'
275
299
  require_relative 'advanced_billing/models/list_segments_response'
276
300
  require_relative 'advanced_billing/models/' \
277
301
  'list_subcription_group_prepayment_item'
302
+ require_relative 'advanced_billing/models/list_subscription_components_filter'
303
+ require_relative 'advanced_billing/models/' \
304
+ 'list_subscription_components_for_site_filter'
278
305
  require_relative 'advanced_billing/models/list_subscription_components_response'
279
306
  require_relative 'advanced_billing/models/list_subscription_group_prepayment'
280
307
  require_relative 'advanced_billing/models/' \
@@ -322,18 +349,17 @@ require_relative 'advanced_billing/models/portal_management_link'
322
349
  require_relative 'advanced_billing/models/prepaid_component_price_point'
323
350
  require_relative 'advanced_billing/models/prepaid_configuration'
324
351
  require_relative 'advanced_billing/models/prepaid_configuration_response'
352
+ require_relative 'advanced_billing/models/prepaid_product_price_point_filter'
325
353
  require_relative 'advanced_billing/models/prepaid_subscription_balance_changed'
326
354
  require_relative 'advanced_billing/models/prepaid_usage'
327
355
  require_relative 'advanced_billing/models/prepaid_usage_allocation_detail'
328
356
  require_relative 'advanced_billing/models/prepaid_usage_component'
329
357
  require_relative 'advanced_billing/models/prepayment'
330
358
  require_relative 'advanced_billing/models/prepayment_account_balance_changed'
331
- require_relative 'advanced_billing/models/prepayment_aggregated_error'
332
359
  require_relative 'advanced_billing/models/prepayment_response'
333
360
  require_relative 'advanced_billing/models/prepayments_response'
334
361
  require_relative 'advanced_billing/models/preview_allocations_request'
335
362
  require_relative 'advanced_billing/models/price'
336
- require_relative 'advanced_billing/models/price_point'
337
363
  require_relative 'advanced_billing/models/product'
338
364
  require_relative 'advanced_billing/models/product_family'
339
365
  require_relative 'advanced_billing/models/product_family_response'
@@ -364,13 +390,11 @@ require_relative 'advanced_billing/models/record_payment_request'
364
390
  require_relative 'advanced_billing/models/record_payment_response'
365
391
  require_relative 'advanced_billing/models/referral_code'
366
392
  require_relative 'advanced_billing/models/referral_validation_response'
367
- require_relative 'advanced_billing/models/refund'
368
393
  require_relative 'advanced_billing/models/refund_consolidated_invoice'
369
394
  require_relative 'advanced_billing/models/refund_invoice'
370
395
  require_relative 'advanced_billing/models/refund_invoice_event_data'
371
396
  require_relative 'advanced_billing/models/refund_invoice_request'
372
397
  require_relative 'advanced_billing/models/refund_prepayment'
373
- require_relative 'advanced_billing/models/refund_prepayment_aggregated_error'
374
398
  require_relative 'advanced_billing/models/refund_prepayment_base_refund_error'
375
399
  require_relative 'advanced_billing/models/refund_prepayment_request'
376
400
  require_relative 'advanced_billing/models/refund_success'
@@ -392,11 +416,9 @@ require_relative 'advanced_billing/models/sale_rep_subscription'
392
416
  require_relative 'advanced_billing/models/segment'
393
417
  require_relative 'advanced_billing/models/segment_price'
394
418
  require_relative 'advanced_billing/models/segment_response'
395
- require_relative 'advanced_billing/models/seller'
396
419
  require_relative 'advanced_billing/models/send_invoice_request'
397
420
  require_relative 'advanced_billing/models/service_credit'
398
421
  require_relative 'advanced_billing/models/service_credit_response'
399
- require_relative 'advanced_billing/models/shipping_address'
400
422
  require_relative 'advanced_billing/models/signup_proforma_preview'
401
423
  require_relative 'advanced_billing/models/signup_proforma_preview_response'
402
424
  require_relative 'advanced_billing/models/site'
@@ -410,6 +432,7 @@ require_relative 'advanced_billing/models/' \
410
432
  require_relative 'advanced_billing/models/subscription_component_response'
411
433
  require_relative 'advanced_billing/models/subscription_component_subscription'
412
434
  require_relative 'advanced_billing/models/subscription_custom_price'
435
+ require_relative 'advanced_billing/models/subscription_filter'
413
436
  require_relative 'advanced_billing/models/subscription_group'
414
437
  require_relative 'advanced_billing/models/subscription_group_balances'
415
438
  require_relative 'advanced_billing/models/subscription_group_bank_account'
@@ -515,6 +538,7 @@ require_relative 'advanced_billing/models/basic_date_field'
515
538
  require_relative 'advanced_billing/models/billing_manifest_line_item_kind'
516
539
  require_relative 'advanced_billing/models/cancellation_method'
517
540
  require_relative 'advanced_billing/models/card_type'
541
+ require_relative 'advanced_billing/models/chargeback_status'
518
542
  require_relative 'advanced_billing/models/cleanup_scope'
519
543
  require_relative 'advanced_billing/models/collection_method'
520
544
  require_relative 'advanced_billing/models/component_kind'
@@ -529,6 +553,8 @@ require_relative 'advanced_billing/models/credit_type'
529
553
  require_relative 'advanced_billing/models/currency_price_role'
530
554
  require_relative 'advanced_billing/models/current_vault'
531
555
  require_relative 'advanced_billing/models/custom_field_owner'
556
+ require_relative 'advanced_billing/models/debit_note_role'
557
+ require_relative 'advanced_billing/models/debit_note_status'
532
558
  require_relative 'advanced_billing/models/direction'
533
559
  require_relative 'advanced_billing/models/discount_type'
534
560
  require_relative 'advanced_billing/models/event_type'
@@ -538,6 +564,7 @@ require_relative 'advanced_billing/models/first_charge_type'
538
564
  require_relative 'advanced_billing/models/group_target_type'
539
565
  require_relative 'advanced_billing/models/group_type'
540
566
  require_relative 'advanced_billing/models/include_not_null'
567
+ require_relative 'advanced_billing/models/include_null_or_not_null'
541
568
  require_relative 'advanced_billing/models/include_option'
542
569
  require_relative 'advanced_billing/models/interval_unit'
543
570
  require_relative 'advanced_billing/models/invoice_consolidation_level'
@@ -556,12 +583,11 @@ require_relative 'advanced_billing/models/line_item_kind'
556
583
  require_relative 'advanced_billing/models/line_item_transaction_type'
557
584
  require_relative 'advanced_billing/models/list_components_price_points_include'
558
585
  require_relative 'advanced_billing/models/list_events_date_field'
586
+ require_relative 'advanced_billing/models/list_prepayment_date_field'
559
587
  require_relative 'advanced_billing/models/list_products_include'
560
588
  require_relative 'advanced_billing/models/list_products_price_points_include'
561
589
  require_relative 'advanced_billing/models/list_subscription_components_include'
562
590
  require_relative 'advanced_billing/models/list_subscription_components_sort'
563
- require_relative 'advanced_billing/models/' \
564
- 'list_subscription_group_prepayment_date_field'
565
591
  require_relative 'advanced_billing/models/metafield_input'
566
592
  require_relative 'advanced_billing/models/payment_type'
567
593
  require_relative 'advanced_billing/models/prepayment_method'
@@ -618,8 +644,6 @@ require_relative 'advanced_billing/exceptions/' \
618
644
  'product_price_point_error_response_exception'
619
645
  require_relative 'advanced_billing/exceptions/' \
620
646
  'proforma_bad_request_error_response_exception'
621
- require_relative 'advanced_billing/exceptions/' \
622
- 'refund_prepayment_aggregated_errors_response_exception'
623
647
  require_relative 'advanced_billing/exceptions/' \
624
648
  'refund_prepayment_base_errors_response_exception'
625
649
  require_relative 'advanced_billing/exceptions/single_error_response_exception'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxio-advanced-billing-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxio SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-21 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -111,7 +111,6 @@ files:
111
111
  - lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb
112
112
  - lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb
113
113
  - lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb
114
- - lib/advanced_billing/exceptions/refund_prepayment_aggregated_errors_response_exception.rb
115
114
  - lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb
116
115
  - lib/advanced_billing/exceptions/single_error_response_exception.rb
117
116
  - lib/advanced_billing/exceptions/single_string_error_response_exception.rb
@@ -148,12 +147,16 @@ files:
148
147
  - lib/advanced_billing/models/allocation_response.rb
149
148
  - lib/advanced_billing/models/allocation_settings.rb
150
149
  - lib/advanced_billing/models/applied_credit_note_data.rb
150
+ - lib/advanced_billing/models/apply_credit_note_event.rb
151
151
  - lib/advanced_billing/models/apply_credit_note_event_data.rb
152
+ - lib/advanced_billing/models/apply_debit_note_event.rb
152
153
  - lib/advanced_billing/models/apply_debit_note_event_data.rb
154
+ - lib/advanced_billing/models/apply_payment_event.rb
153
155
  - lib/advanced_billing/models/apply_payment_event_data.rb
154
156
  - lib/advanced_billing/models/attribute_error.rb
155
157
  - lib/advanced_billing/models/auto_invite.rb
156
158
  - lib/advanced_billing/models/auto_resume.rb
159
+ - lib/advanced_billing/models/backport_invoice_event.rb
157
160
  - lib/advanced_billing/models/bank_account_attributes.rb
158
161
  - lib/advanced_billing/models/bank_account_holder_type.rb
159
162
  - lib/advanced_billing/models/bank_account_payment_profile.rb
@@ -168,7 +171,6 @@ files:
168
171
  - lib/advanced_billing/models/basic_date_field.rb
169
172
  - lib/advanced_billing/models/batch_job.rb
170
173
  - lib/advanced_billing/models/batch_job_response.rb
171
- - lib/advanced_billing/models/billing_address.rb
172
174
  - lib/advanced_billing/models/billing_manifest.rb
173
175
  - lib/advanced_billing/models/billing_manifest_item.rb
174
176
  - lib/advanced_billing/models/billing_manifest_line_item_kind.rb
@@ -186,7 +188,13 @@ files:
186
188
  - lib/advanced_billing/models/cancellation_options.rb
187
189
  - lib/advanced_billing/models/cancellation_request.rb
188
190
  - lib/advanced_billing/models/card_type.rb
191
+ - lib/advanced_billing/models/change_chargeback_status_event.rb
192
+ - lib/advanced_billing/models/change_chargeback_status_event_data.rb
193
+ - lib/advanced_billing/models/change_invoice_collection_method_event.rb
189
194
  - lib/advanced_billing/models/change_invoice_collection_method_event_data.rb
195
+ - lib/advanced_billing/models/change_invoice_status_event.rb
196
+ - lib/advanced_billing/models/change_invoice_status_event_data.rb
197
+ - lib/advanced_billing/models/chargeback_status.rb
190
198
  - lib/advanced_billing/models/chargify_ebb.rb
191
199
  - lib/advanced_billing/models/cleanup_scope.rb
192
200
  - lib/advanced_billing/models/collection_method.rb
@@ -224,10 +232,12 @@ files:
224
232
  - lib/advanced_billing/models/create_component_price_point.rb
225
233
  - lib/advanced_billing/models/create_component_price_point_request.rb
226
234
  - lib/advanced_billing/models/create_component_price_points_request.rb
235
+ - lib/advanced_billing/models/create_credit_note_event.rb
227
236
  - lib/advanced_billing/models/create_currency_price.rb
228
237
  - lib/advanced_billing/models/create_currency_prices_request.rb
229
238
  - lib/advanced_billing/models/create_customer.rb
230
239
  - lib/advanced_billing/models/create_customer_request.rb
240
+ - lib/advanced_billing/models/create_debit_note_event.rb
231
241
  - lib/advanced_billing/models/create_ebb_component.rb
232
242
  - lib/advanced_billing/models/create_invoice.rb
233
243
  - lib/advanced_billing/models/create_invoice_address.rb
@@ -290,7 +300,6 @@ files:
290
300
  - lib/advanced_billing/models/credit_card_attributes.rb
291
301
  - lib/advanced_billing/models/credit_card_payment_profile.rb
292
302
  - lib/advanced_billing/models/credit_note.rb
293
- - lib/advanced_billing/models/credit_note1.rb
294
303
  - lib/advanced_billing/models/credit_note_application.rb
295
304
  - lib/advanced_billing/models/credit_note_line_item.rb
296
305
  - lib/advanced_billing/models/credit_note_status.rb
@@ -304,7 +313,6 @@ files:
304
313
  - lib/advanced_billing/models/custom_field_owner.rb
305
314
  - lib/advanced_billing/models/custom_field_value_change.rb
306
315
  - lib/advanced_billing/models/customer.rb
307
- - lib/advanced_billing/models/customer1.rb
308
316
  - lib/advanced_billing/models/customer_attributes.rb
309
317
  - lib/advanced_billing/models/customer_change.rb
310
318
  - lib/advanced_billing/models/customer_changes_preview_response.rb
@@ -312,6 +320,9 @@ files:
312
320
  - lib/advanced_billing/models/customer_error.rb
313
321
  - lib/advanced_billing/models/customer_payer_change.rb
314
322
  - lib/advanced_billing/models/customer_response.rb
323
+ - lib/advanced_billing/models/debit_note.rb
324
+ - lib/advanced_billing/models/debit_note_role.rb
325
+ - lib/advanced_billing/models/debit_note_status.rb
315
326
  - lib/advanced_billing/models/deduct_service_credit.rb
316
327
  - lib/advanced_billing/models/deduct_service_credit_request.rb
317
328
  - lib/advanced_billing/models/delayed_cancellation_response.rb
@@ -334,6 +345,8 @@ files:
334
345
  - lib/advanced_billing/models/event_type.rb
335
346
  - lib/advanced_billing/models/extended_interval_unit.rb
336
347
  - lib/advanced_billing/models/failed_payment_action.rb
348
+ - lib/advanced_billing/models/failed_payment_event.rb
349
+ - lib/advanced_billing/models/failed_payment_event_data.rb
337
350
  - lib/advanced_billing/models/first_charge_type.rb
338
351
  - lib/advanced_billing/models/full_subscription_group_response.rb
339
352
  - lib/advanced_billing/models/get_one_time_token_payment_profile.rb
@@ -343,7 +356,9 @@ files:
343
356
  - lib/advanced_billing/models/group_target.rb
344
357
  - lib/advanced_billing/models/group_target_type.rb
345
358
  - lib/advanced_billing/models/group_type.rb
359
+ - lib/advanced_billing/models/historic_usage.rb
346
360
  - lib/advanced_billing/models/include_not_null.rb
361
+ - lib/advanced_billing/models/include_null_or_not_null.rb
347
362
  - lib/advanced_billing/models/include_option.rb
348
363
  - lib/advanced_billing/models/interval_unit.rb
349
364
  - lib/advanced_billing/models/invoice.rb
@@ -359,10 +374,6 @@ files:
359
374
  - lib/advanced_billing/models/invoice_discount_source_type.rb
360
375
  - lib/advanced_billing/models/invoice_discount_type.rb
361
376
  - lib/advanced_billing/models/invoice_display_settings.rb
362
- - lib/advanced_billing/models/invoice_event.rb
363
- - lib/advanced_billing/models/invoice_event_data.rb
364
- - lib/advanced_billing/models/invoice_event_payment.rb
365
- - lib/advanced_billing/models/invoice_event_payment1.rb
366
377
  - lib/advanced_billing/models/invoice_event_payment_method.rb
367
378
  - lib/advanced_billing/models/invoice_event_type.rb
368
379
  - lib/advanced_billing/models/invoice_issued.rb
@@ -389,6 +400,7 @@ files:
389
400
  - lib/advanced_billing/models/invoice_tax_breakout.rb
390
401
  - lib/advanced_billing/models/invoice_tax_component_breakout.rb
391
402
  - lib/advanced_billing/models/issue_advance_invoice_request.rb
403
+ - lib/advanced_billing/models/issue_invoice_event.rb
392
404
  - lib/advanced_billing/models/issue_invoice_event_data.rb
393
405
  - lib/advanced_billing/models/issue_invoice_request.rb
394
406
  - lib/advanced_billing/models/issue_service_credit.rb
@@ -398,17 +410,24 @@ files:
398
410
  - lib/advanced_billing/models/item_price_point_data.rb
399
411
  - lib/advanced_billing/models/line_item_kind.rb
400
412
  - lib/advanced_billing/models/line_item_transaction_type.rb
413
+ - lib/advanced_billing/models/list_components_filter.rb
401
414
  - lib/advanced_billing/models/list_components_price_points_include.rb
402
415
  - lib/advanced_billing/models/list_components_price_points_response.rb
416
+ - lib/advanced_billing/models/list_coupons_filter.rb
403
417
  - lib/advanced_billing/models/list_credit_notes_response.rb
404
418
  - lib/advanced_billing/models/list_events_date_field.rb
405
419
  - lib/advanced_billing/models/list_invoice_events_response.rb
406
420
  - lib/advanced_billing/models/list_invoices_response.rb
407
421
  - lib/advanced_billing/models/list_metafields_response.rb
422
+ - lib/advanced_billing/models/list_mrr_filter.rb
408
423
  - lib/advanced_billing/models/list_mrr_response.rb
409
424
  - lib/advanced_billing/models/list_mrr_response_result.rb
410
425
  - lib/advanced_billing/models/list_offers_response.rb
426
+ - lib/advanced_billing/models/list_prepayment_date_field.rb
427
+ - lib/advanced_billing/models/list_prepayments_filter.rb
428
+ - lib/advanced_billing/models/list_price_points_filter.rb
411
429
  - lib/advanced_billing/models/list_product_price_points_response.rb
430
+ - lib/advanced_billing/models/list_products_filter.rb
412
431
  - lib/advanced_billing/models/list_products_include.rb
413
432
  - lib/advanced_billing/models/list_products_price_points_include.rb
414
433
  - lib/advanced_billing/models/list_proforma_invoices_meta.rb
@@ -416,13 +435,15 @@ files:
416
435
  - lib/advanced_billing/models/list_public_keys_meta.rb
417
436
  - lib/advanced_billing/models/list_public_keys_response.rb
418
437
  - lib/advanced_billing/models/list_sale_rep_item.rb
438
+ - lib/advanced_billing/models/list_segments_filter.rb
419
439
  - lib/advanced_billing/models/list_segments_response.rb
420
440
  - lib/advanced_billing/models/list_subcription_group_prepayment_item.rb
441
+ - lib/advanced_billing/models/list_subscription_components_filter.rb
442
+ - lib/advanced_billing/models/list_subscription_components_for_site_filter.rb
421
443
  - lib/advanced_billing/models/list_subscription_components_include.rb
422
444
  - lib/advanced_billing/models/list_subscription_components_response.rb
423
445
  - lib/advanced_billing/models/list_subscription_components_sort.rb
424
446
  - lib/advanced_billing/models/list_subscription_group_prepayment.rb
425
- - lib/advanced_billing/models/list_subscription_group_prepayment_date_field.rb
426
447
  - lib/advanced_billing/models/list_subscription_group_prepayment_response.rb
427
448
  - lib/advanced_billing/models/list_subscription_groups_item.rb
428
449
  - lib/advanced_billing/models/list_subscription_groups_meta.rb
@@ -474,19 +495,18 @@ files:
474
495
  - lib/advanced_billing/models/prepaid_component_price_point.rb
475
496
  - lib/advanced_billing/models/prepaid_configuration.rb
476
497
  - lib/advanced_billing/models/prepaid_configuration_response.rb
498
+ - lib/advanced_billing/models/prepaid_product_price_point_filter.rb
477
499
  - lib/advanced_billing/models/prepaid_subscription_balance_changed.rb
478
500
  - lib/advanced_billing/models/prepaid_usage.rb
479
501
  - lib/advanced_billing/models/prepaid_usage_allocation_detail.rb
480
502
  - lib/advanced_billing/models/prepaid_usage_component.rb
481
503
  - lib/advanced_billing/models/prepayment.rb
482
504
  - lib/advanced_billing/models/prepayment_account_balance_changed.rb
483
- - lib/advanced_billing/models/prepayment_aggregated_error.rb
484
505
  - lib/advanced_billing/models/prepayment_method.rb
485
506
  - lib/advanced_billing/models/prepayment_response.rb
486
507
  - lib/advanced_billing/models/prepayments_response.rb
487
508
  - lib/advanced_billing/models/preview_allocations_request.rb
488
509
  - lib/advanced_billing/models/price.rb
489
- - lib/advanced_billing/models/price_point.rb
490
510
  - lib/advanced_billing/models/price_point_type.rb
491
511
  - lib/advanced_billing/models/pricing_scheme.rb
492
512
  - lib/advanced_billing/models/product.rb
@@ -524,16 +544,16 @@ files:
524
544
  - lib/advanced_billing/models/recurring_scheme.rb
525
545
  - lib/advanced_billing/models/referral_code.rb
526
546
  - lib/advanced_billing/models/referral_validation_response.rb
527
- - lib/advanced_billing/models/refund.rb
528
547
  - lib/advanced_billing/models/refund_consolidated_invoice.rb
529
548
  - lib/advanced_billing/models/refund_invoice.rb
549
+ - lib/advanced_billing/models/refund_invoice_event.rb
530
550
  - lib/advanced_billing/models/refund_invoice_event_data.rb
531
551
  - lib/advanced_billing/models/refund_invoice_request.rb
532
552
  - lib/advanced_billing/models/refund_prepayment.rb
533
- - lib/advanced_billing/models/refund_prepayment_aggregated_error.rb
534
553
  - lib/advanced_billing/models/refund_prepayment_base_refund_error.rb
535
554
  - lib/advanced_billing/models/refund_prepayment_request.rb
536
555
  - lib/advanced_billing/models/refund_success.rb
556
+ - lib/advanced_billing/models/remove_payment_event.rb
537
557
  - lib/advanced_billing/models/remove_payment_event_data.rb
538
558
  - lib/advanced_billing/models/renewal_preview.rb
539
559
  - lib/advanced_billing/models/renewal_preview_component.rb
@@ -555,12 +575,10 @@ files:
555
575
  - lib/advanced_billing/models/segment.rb
556
576
  - lib/advanced_billing/models/segment_price.rb
557
577
  - lib/advanced_billing/models/segment_response.rb
558
- - lib/advanced_billing/models/seller.rb
559
578
  - lib/advanced_billing/models/send_invoice_request.rb
560
579
  - lib/advanced_billing/models/service_credit.rb
561
580
  - lib/advanced_billing/models/service_credit_response.rb
562
581
  - lib/advanced_billing/models/service_credit_type.rb
563
- - lib/advanced_billing/models/shipping_address.rb
564
582
  - lib/advanced_billing/models/signup_proforma_preview.rb
565
583
  - lib/advanced_billing/models/signup_proforma_preview_response.rb
566
584
  - lib/advanced_billing/models/site.rb
@@ -576,6 +594,7 @@ files:
576
594
  - lib/advanced_billing/models/subscription_component_subscription.rb
577
595
  - lib/advanced_billing/models/subscription_custom_price.rb
578
596
  - lib/advanced_billing/models/subscription_date_field.rb
597
+ - lib/advanced_billing/models/subscription_filter.rb
579
598
  - lib/advanced_billing/models/subscription_group.rb
580
599
  - lib/advanced_billing/models/subscription_group_balances.rb
581
600
  - lib/advanced_billing/models/subscription_group_bank_account.rb
@@ -669,8 +688,10 @@ files:
669
688
  - lib/advanced_billing/models/usage.rb
670
689
  - lib/advanced_billing/models/usage_response.rb
671
690
  - lib/advanced_billing/models/void_invoice.rb
691
+ - lib/advanced_billing/models/void_invoice_event.rb
672
692
  - lib/advanced_billing/models/void_invoice_event_data.rb
673
693
  - lib/advanced_billing/models/void_invoice_request.rb
694
+ - lib/advanced_billing/models/void_remainder_event.rb
674
695
  - lib/advanced_billing/models/void_remainder_event_data.rb
675
696
  - lib/advanced_billing/models/webhook.rb
676
697
  - lib/advanced_billing/models/webhook_order.rb
@@ -1,33 +0,0 @@
1
- # advanced_billing
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module AdvancedBilling
7
- # Errors returned on creating a refund prepayment, grouped by field, as arrays
8
- # of strings.
9
- class RefundPrepaymentAggregatedErrorsResponseException < APIException
10
- SKIP = Object.new
11
- private_constant :SKIP
12
-
13
- # TODO: Write general description for this method
14
- # @return [RefundPrepaymentAggregatedError]
15
- attr_accessor :errors
16
-
17
- # The constructor.
18
- # @param [String] The reason for raising an exception.
19
- # @param [HttpResponse] The HttpReponse of the API call.
20
- def initialize(reason, response)
21
- super(reason, response)
22
- hash = APIHelper.json_deserialize(@response.raw_body)
23
- unbox(hash)
24
- end
25
-
26
- # Populates this object by extracting properties from a hash.
27
- # @param [Hash] The deserialized response sent by the server in the
28
- # response body.
29
- def unbox(hash)
30
- @errors = RefundPrepaymentAggregatedError.from_hash(hash['errors']) if hash['errors']
31
- end
32
- end
33
- end
@@ -1,117 +0,0 @@
1
- # advanced_billing
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- module AdvancedBilling
7
- # BillingAddress Model.
8
- class BillingAddress < BaseModel
9
- SKIP = Object.new
10
- private_constant :SKIP
11
-
12
- # TODO: Write general description for this method
13
- # @return [String]
14
- attr_accessor :street
15
-
16
- # TODO: Write general description for this method
17
- # @return [String]
18
- attr_accessor :line2
19
-
20
- # TODO: Write general description for this method
21
- # @return [String]
22
- attr_accessor :city
23
-
24
- # TODO: Write general description for this method
25
- # @return [String]
26
- attr_accessor :state
27
-
28
- # TODO: Write general description for this method
29
- # @return [String]
30
- attr_accessor :zip
31
-
32
- # TODO: Write general description for this method
33
- # @return [String]
34
- attr_accessor :country
35
-
36
- # A mapping from model property names to API property names.
37
- def self.names
38
- @_hash = {} if @_hash.nil?
39
- @_hash['street'] = 'street'
40
- @_hash['line2'] = 'line2'
41
- @_hash['city'] = 'city'
42
- @_hash['state'] = 'state'
43
- @_hash['zip'] = 'zip'
44
- @_hash['country'] = 'country'
45
- @_hash
46
- end
47
-
48
- # An array for optional fields
49
- def self.optionals
50
- %w[
51
- street
52
- line2
53
- city
54
- state
55
- zip
56
- country
57
- ]
58
- end
59
-
60
- # An array for nullable fields
61
- def self.nullables
62
- %w[
63
- street
64
- line2
65
- city
66
- state
67
- zip
68
- country
69
- ]
70
- end
71
-
72
- def initialize(street = SKIP,
73
- line2 = SKIP,
74
- city = SKIP,
75
- state = SKIP,
76
- zip = SKIP,
77
- country = SKIP,
78
- additional_properties = {})
79
- @street = street unless street == SKIP
80
- @line2 = line2 unless line2 == SKIP
81
- @city = city unless city == SKIP
82
- @state = state unless state == SKIP
83
- @zip = zip unless zip == SKIP
84
- @country = country unless country == SKIP
85
-
86
- # Add additional model properties to the instance.
87
- additional_properties.each do |_name, _value|
88
- instance_variable_set("@#{_name}", _value)
89
- end
90
- end
91
-
92
- # Creates an instance of the object from a hash.
93
- def self.from_hash(hash)
94
- return nil unless hash
95
-
96
- # Extract variables from the hash.
97
- street = hash.key?('street') ? hash['street'] : SKIP
98
- line2 = hash.key?('line2') ? hash['line2'] : SKIP
99
- city = hash.key?('city') ? hash['city'] : SKIP
100
- state = hash.key?('state') ? hash['state'] : SKIP
101
- zip = hash.key?('zip') ? hash['zip'] : SKIP
102
- country = hash.key?('country') ? hash['country'] : SKIP
103
-
104
- # Clean out expected properties from Hash.
105
- names.each_value { |k| hash.delete(k) }
106
-
107
- # Create object from extracted values.
108
- BillingAddress.new(street,
109
- line2,
110
- city,
111
- state,
112
- zip,
113
- country,
114
- hash)
115
- end
116
- end
117
- end