maxio-advanced-billing-sdk 6.0.0 → 7.0.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.
Files changed (649) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +69 -64
  4. data/lib/advanced_billing/api_helper.rb +2 -2
  5. data/lib/advanced_billing/client.rb +2 -2
  6. data/lib/advanced_billing/configuration.rb +4 -5
  7. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +12 -10
  8. data/lib/advanced_billing/controllers/api_exports_controller.rb +20 -20
  9. data/lib/advanced_billing/controllers/base_controller.rb +4 -10
  10. data/lib/advanced_billing/controllers/billing_portal_controller.rb +10 -10
  11. data/lib/advanced_billing/controllers/component_price_points_controller.rb +34 -32
  12. data/lib/advanced_billing/controllers/components_controller.rb +40 -33
  13. data/lib/advanced_billing/controllers/coupons_controller.rb +43 -38
  14. data/lib/advanced_billing/controllers/custom_fields_controller.rb +29 -25
  15. data/lib/advanced_billing/controllers/customers_controller.rb +20 -18
  16. data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +22 -18
  17. data/lib/advanced_billing/controllers/events_controller.rb +8 -8
  18. data/lib/advanced_billing/controllers/insights_controller.rb +11 -11
  19. data/lib/advanced_billing/controllers/invoices_controller.rb +59 -92
  20. data/lib/advanced_billing/controllers/offers_controller.rb +14 -13
  21. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +32 -29
  22. data/lib/advanced_billing/controllers/product_families_controller.rb +15 -14
  23. data/lib/advanced_billing/controllers/product_price_points_controller.rb +33 -32
  24. data/lib/advanced_billing/controllers/products_controller.rb +18 -16
  25. data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +26 -23
  26. data/lib/advanced_billing/controllers/reason_codes_controller.rb +18 -16
  27. data/lib/advanced_billing/controllers/referral_codes_controller.rb +4 -4
  28. data/lib/advanced_billing/controllers/sales_commissions_controller.rb +8 -8
  29. data/lib/advanced_billing/controllers/sites_controller.rb +8 -8
  30. data/lib/advanced_billing/controllers/subscription_components_controller.rb +55 -48
  31. data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +16 -14
  32. data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +14 -14
  33. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +28 -27
  34. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +68 -18
  35. data/lib/advanced_billing/controllers/subscription_notes_controller.rb +16 -14
  36. data/lib/advanced_billing/controllers/subscription_products_controller.rb +8 -8
  37. data/lib/advanced_billing/controllers/subscription_status_controller.rb +34 -28
  38. data/lib/advanced_billing/controllers/subscriptions_controller.rb +45 -71
  39. data/lib/advanced_billing/controllers/webhooks_controller.rb +22 -18
  40. data/lib/advanced_billing/exceptions/api_exception.rb +13 -2
  41. data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +19 -5
  42. data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +19 -5
  43. data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +19 -5
  44. data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +19 -5
  45. data/lib/advanced_billing/exceptions/error_list_response_exception.rb +19 -5
  46. data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +19 -5
  47. data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +19 -5
  48. data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +19 -5
  49. data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +19 -5
  50. data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +19 -5
  51. data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +19 -5
  52. data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +19 -5
  53. data/lib/advanced_billing/exceptions/single_error_response_exception.rb +19 -5
  54. data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +19 -5
  55. data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +21 -5
  56. data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +19 -5
  57. data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +19 -5
  58. data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +19 -5
  59. data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +19 -5
  60. data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +19 -5
  61. data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +19 -5
  62. data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +19 -5
  63. data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +19 -5
  64. data/lib/advanced_billing/http/auth/basic_auth.rb +2 -2
  65. data/lib/advanced_billing/http/http_call_back.rb +2 -2
  66. data/lib/advanced_billing/http/http_method_enum.rb +2 -2
  67. data/lib/advanced_billing/http/http_request.rb +2 -2
  68. data/lib/advanced_billing/http/http_response.rb +2 -2
  69. data/lib/advanced_billing/models/account_balance.rb +19 -2
  70. data/lib/advanced_billing/models/account_balances.rb +19 -2
  71. data/lib/advanced_billing/models/ach_agreement.rb +18 -2
  72. data/lib/advanced_billing/models/activate_event_based_component.rb +17 -2
  73. data/lib/advanced_billing/models/activate_subscription_request.rb +16 -2
  74. data/lib/advanced_billing/models/add_coupons_request.rb +15 -2
  75. data/lib/advanced_billing/models/add_subscription_to_a_group.rb +15 -2
  76. data/lib/advanced_billing/models/address_change.rb +16 -2
  77. data/lib/advanced_billing/models/agreement_acceptance.rb +22 -2
  78. data/lib/advanced_billing/models/all_vaults.rb +2 -2
  79. data/lib/advanced_billing/models/allocate_components.rb +24 -2
  80. data/lib/advanced_billing/models/allocation.rb +39 -2
  81. data/lib/advanced_billing/models/allocation_expiration_date.rb +16 -2
  82. data/lib/advanced_billing/models/allocation_preview.rb +28 -2
  83. data/lib/advanced_billing/models/allocation_preview_direction.rb +2 -2
  84. data/lib/advanced_billing/models/allocation_preview_item.rb +33 -2
  85. data/lib/advanced_billing/models/allocation_preview_line_item.rb +23 -2
  86. data/lib/advanced_billing/models/allocation_preview_line_item_kind.rb +2 -2
  87. data/lib/advanced_billing/models/allocation_preview_response.rb +16 -2
  88. data/lib/advanced_billing/models/allocation_response.rb +16 -2
  89. data/lib/advanced_billing/models/allocation_settings.rb +17 -2
  90. data/lib/advanced_billing/models/apple_pay_payment_profile.rb +68 -3
  91. data/lib/advanced_billing/models/apple_pay_vault.rb +2 -2
  92. data/lib/advanced_billing/models/applied_credit_note_data.rb +16 -2
  93. data/lib/advanced_billing/models/apply_credit_note_event.rb +18 -2
  94. data/lib/advanced_billing/models/apply_credit_note_event_data.rb +23 -2
  95. data/lib/advanced_billing/models/apply_debit_note_event.rb +18 -2
  96. data/lib/advanced_billing/models/apply_debit_note_event_data.rb +20 -2
  97. data/lib/advanced_billing/models/apply_payment_event.rb +18 -2
  98. data/lib/advanced_billing/models/apply_payment_event_data.rb +25 -2
  99. data/lib/advanced_billing/models/attribute_error.rb +16 -2
  100. data/lib/advanced_billing/models/auto_invite.rb +2 -2
  101. data/lib/advanced_billing/models/auto_resume.rb +16 -2
  102. data/lib/advanced_billing/models/backport_invoice_event.rb +18 -2
  103. data/lib/advanced_billing/models/bank_account_attributes.rb +27 -2
  104. data/lib/advanced_billing/models/bank_account_holder_type.rb +2 -2
  105. data/lib/advanced_billing/models/bank_account_payment_profile.rb +74 -2
  106. data/lib/advanced_billing/models/bank_account_response.rb +16 -2
  107. data/lib/advanced_billing/models/bank_account_type.rb +2 -2
  108. data/lib/advanced_billing/models/bank_account_vault.rb +2 -2
  109. data/lib/advanced_billing/models/bank_account_verification.rb +16 -2
  110. data/lib/advanced_billing/models/bank_account_verification_request.rb +16 -2
  111. data/lib/advanced_billing/models/base_model.rb +14 -2
  112. data/lib/advanced_billing/models/base_refund_error.rb +15 -2
  113. data/lib/advanced_billing/models/base_string_error.rb +15 -2
  114. data/lib/advanced_billing/models/basic_date_field.rb +2 -2
  115. data/lib/advanced_billing/models/batch_job.rb +18 -2
  116. data/lib/advanced_billing/models/batch_job_response.rb +16 -2
  117. data/lib/advanced_billing/models/billing_manifest.rb +25 -2
  118. data/lib/advanced_billing/models/billing_manifest_item.rb +29 -2
  119. data/lib/advanced_billing/models/billing_manifest_line_item_kind.rb +2 -2
  120. data/lib/advanced_billing/models/billing_schedule.rb +16 -2
  121. data/lib/advanced_billing/models/breakouts.rb +20 -2
  122. data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +16 -2
  123. data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +16 -2
  124. data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +16 -2
  125. data/lib/advanced_billing/models/bulk_create_segments.rb +16 -2
  126. data/lib/advanced_billing/models/bulk_update_segments.rb +16 -2
  127. data/lib/advanced_billing/models/bulk_update_segments_item.rb +16 -2
  128. data/lib/advanced_billing/models/calendar_billing.rb +17 -2
  129. data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +16 -2
  130. data/lib/advanced_billing/models/cancellation_method.rb +2 -2
  131. data/lib/advanced_billing/models/cancellation_options.rb +16 -2
  132. data/lib/advanced_billing/models/cancellation_request.rb +16 -2
  133. data/lib/advanced_billing/models/card_type.rb +2 -2
  134. data/lib/advanced_billing/models/change_chargeback_status_event.rb +18 -2
  135. data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +16 -2
  136. data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +18 -2
  137. data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +17 -2
  138. data/lib/advanced_billing/models/change_invoice_status_event.rb +18 -2
  139. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +19 -2
  140. data/lib/advanced_billing/models/chargeback_status.rb +2 -2
  141. data/lib/advanced_billing/models/chargify_ebb.rb +20 -2
  142. data/lib/advanced_billing/models/cleanup_scope.rb +2 -2
  143. data/lib/advanced_billing/models/collection_method.rb +2 -2
  144. data/lib/advanced_billing/models/component.rb +62 -4
  145. data/lib/advanced_billing/models/component_allocation_change.rb +22 -2
  146. data/lib/advanced_billing/models/component_allocation_error_item.rb +17 -2
  147. data/lib/advanced_billing/models/component_cost_data.rb +21 -2
  148. data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +19 -2
  149. data/lib/advanced_billing/models/component_currency_price.rb +19 -2
  150. data/lib/advanced_billing/models/component_currency_prices_response.rb +16 -2
  151. data/lib/advanced_billing/models/component_custom_price.rb +19 -2
  152. data/lib/advanced_billing/models/component_kind.rb +2 -2
  153. data/lib/advanced_billing/models/component_price.rb +21 -2
  154. data/lib/advanced_billing/models/component_price_point.rb +37 -2
  155. data/lib/advanced_billing/models/component_price_point_assignment.rb +16 -2
  156. data/lib/advanced_billing/models/component_price_point_error_item.rb +17 -2
  157. data/lib/advanced_billing/models/component_price_point_item.rb +19 -2
  158. data/lib/advanced_billing/models/component_price_point_response.rb +16 -2
  159. data/lib/advanced_billing/models/component_price_points_response.rb +16 -2
  160. data/lib/advanced_billing/models/component_response.rb +16 -2
  161. data/lib/advanced_billing/models/compounding_strategy.rb +2 -2
  162. data/lib/advanced_billing/models/consolidated_invoice.rb +16 -2
  163. data/lib/advanced_billing/models/count_response.rb +15 -2
  164. data/lib/advanced_billing/models/coupon.rb +48 -2
  165. data/lib/advanced_billing/models/coupon_currency.rb +17 -2
  166. data/lib/advanced_billing/models/coupon_currency_request.rb +16 -2
  167. data/lib/advanced_billing/models/coupon_currency_response.rb +16 -2
  168. data/lib/advanced_billing/models/coupon_payload.rb +31 -2
  169. data/lib/advanced_billing/models/coupon_request.rb +24 -6
  170. data/lib/advanced_billing/models/coupon_response.rb +15 -2
  171. data/lib/advanced_billing/models/coupon_restriction.rb +17 -2
  172. data/lib/advanced_billing/models/coupon_subcodes.rb +15 -2
  173. data/lib/advanced_billing/models/coupon_subcodes_response.rb +17 -2
  174. data/lib/advanced_billing/models/coupon_usage.rb +19 -2
  175. data/lib/advanced_billing/models/create_allocation.rb +26 -2
  176. data/lib/advanced_billing/models/create_allocation_request.rb +16 -2
  177. data/lib/advanced_billing/models/create_component_price_point.rb +21 -2
  178. data/lib/advanced_billing/models/create_component_price_point_request.rb +16 -2
  179. data/lib/advanced_billing/models/create_component_price_points_request.rb +16 -2
  180. data/lib/advanced_billing/models/create_credit_note_event.rb +18 -2
  181. data/lib/advanced_billing/models/create_currency_price.rb +16 -2
  182. data/lib/advanced_billing/models/create_currency_prices_request.rb +16 -2
  183. data/lib/advanced_billing/models/create_customer.rb +28 -2
  184. data/lib/advanced_billing/models/create_customer_request.rb +16 -2
  185. data/lib/advanced_billing/models/create_debit_note_event.rb +18 -2
  186. data/lib/advanced_billing/models/create_ebb_component.rb +16 -2
  187. data/lib/advanced_billing/models/create_invoice.rb +23 -2
  188. data/lib/advanced_billing/models/create_invoice_address.rb +19 -2
  189. data/lib/advanced_billing/models/create_invoice_coupon.rb +20 -2
  190. data/lib/advanced_billing/models/create_invoice_item.rb +25 -2
  191. data/lib/advanced_billing/models/create_invoice_payment.rb +19 -2
  192. data/lib/advanced_billing/models/create_invoice_payment_application.rb +16 -2
  193. data/lib/advanced_billing/models/create_invoice_payment_request.rb +16 -2
  194. data/lib/advanced_billing/models/create_invoice_request.rb +15 -2
  195. data/lib/advanced_billing/models/create_invoice_status.rb +2 -2
  196. data/lib/advanced_billing/models/create_metadata.rb +16 -2
  197. data/lib/advanced_billing/models/create_metadata_request.rb +16 -2
  198. data/lib/advanced_billing/models/create_metafield.rb +17 -2
  199. data/lib/advanced_billing/models/create_metafields_request.rb +16 -2
  200. data/lib/advanced_billing/models/create_metered_component.rb +16 -2
  201. data/lib/advanced_billing/models/create_multi_invoice_payment.rb +19 -2
  202. data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +15 -2
  203. data/lib/advanced_billing/models/create_offer.rb +20 -2
  204. data/lib/advanced_billing/models/create_offer_component.rb +18 -2
  205. data/lib/advanced_billing/models/create_offer_request.rb +15 -2
  206. data/lib/advanced_billing/models/create_on_off_component.rb +16 -2
  207. data/lib/advanced_billing/models/create_or_update_endpoint.rb +16 -2
  208. data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +16 -2
  209. data/lib/advanced_billing/models/create_or_update_product.rb +31 -2
  210. data/lib/advanced_billing/models/create_or_update_product_request.rb +15 -2
  211. data/lib/advanced_billing/models/create_or_update_segment_price.rb +18 -2
  212. data/lib/advanced_billing/models/create_payment.rb +17 -2
  213. data/lib/advanced_billing/models/create_payment_profile.rb +45 -2
  214. data/lib/advanced_billing/models/create_payment_profile_request.rb +16 -2
  215. data/lib/advanced_billing/models/create_prepaid_component.rb +16 -2
  216. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +26 -2
  217. data/lib/advanced_billing/models/create_prepayment.rb +18 -2
  218. data/lib/advanced_billing/models/create_prepayment_method.rb +2 -2
  219. data/lib/advanced_billing/models/create_prepayment_request.rb +16 -2
  220. data/lib/advanced_billing/models/create_prepayment_response.rb +16 -2
  221. data/lib/advanced_billing/models/create_product_currency_price.rb +16 -2
  222. data/lib/advanced_billing/models/create_product_currency_prices_request.rb +16 -2
  223. data/lib/advanced_billing/models/create_product_family.rb +16 -2
  224. data/lib/advanced_billing/models/create_product_family_request.rb +16 -2
  225. data/lib/advanced_billing/models/create_product_price_point.rb +30 -2
  226. data/lib/advanced_billing/models/create_product_price_point_request.rb +16 -2
  227. data/lib/advanced_billing/models/create_quantity_based_component.rb +16 -2
  228. data/lib/advanced_billing/models/create_reason_code.rb +16 -2
  229. data/lib/advanced_billing/models/create_reason_code_request.rb +16 -2
  230. data/lib/advanced_billing/models/create_segment.rb +22 -2
  231. data/lib/advanced_billing/models/create_segment_request.rb +15 -2
  232. data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +2 -2
  233. data/lib/advanced_billing/models/create_subscription.rb +110 -20
  234. data/lib/advanced_billing/models/create_subscription_component.rb +21 -2
  235. data/lib/advanced_billing/models/create_subscription_group.rb +16 -2
  236. data/lib/advanced_billing/models/create_subscription_group_request.rb +16 -2
  237. data/lib/advanced_billing/models/create_subscription_request.rb +16 -2
  238. data/lib/advanced_billing/models/create_usage.rb +18 -2
  239. data/lib/advanced_billing/models/create_usage_request.rb +15 -2
  240. data/lib/advanced_billing/models/created_prepayment.rb +21 -2
  241. data/lib/advanced_billing/models/credit_account_balance_changed.rb +22 -2
  242. data/lib/advanced_billing/models/credit_card_attributes.rb +18 -2
  243. data/lib/advanced_billing/models/credit_card_payment_profile.rb +73 -3
  244. data/lib/advanced_billing/models/credit_card_vault.rb +2 -2
  245. data/lib/advanced_billing/models/credit_note.rb +37 -2
  246. data/lib/advanced_billing/models/credit_note_application.rb +18 -2
  247. data/lib/advanced_billing/models/credit_note_line_item.rb +32 -2
  248. data/lib/advanced_billing/models/credit_note_status.rb +2 -2
  249. data/lib/advanced_billing/models/credit_scheme.rb +2 -2
  250. data/lib/advanced_billing/models/credit_scheme_request.rb +16 -2
  251. data/lib/advanced_billing/models/credit_type.rb +2 -2
  252. data/lib/advanced_billing/models/currency_price.rb +21 -2
  253. data/lib/advanced_billing/models/currency_price_role.rb +2 -2
  254. data/lib/advanced_billing/models/currency_prices_response.rb +16 -2
  255. data/lib/advanced_billing/models/custom_field_owner.rb +2 -2
  256. data/lib/advanced_billing/models/custom_field_value_change.rb +21 -2
  257. data/lib/advanced_billing/models/customer.rb +42 -2
  258. data/lib/advanced_billing/models/customer_attributes.rb +29 -2
  259. data/lib/advanced_billing/models/customer_change.rb +18 -2
  260. data/lib/advanced_billing/models/customer_changes_preview_response.rb +15 -2
  261. data/lib/advanced_billing/models/customer_custom_fields_change.rb +16 -2
  262. data/lib/advanced_billing/models/customer_error.rb +16 -2
  263. data/lib/advanced_billing/models/customer_payer_change.rb +16 -2
  264. data/lib/advanced_billing/models/customer_response.rb +16 -2
  265. data/lib/advanced_billing/models/debit_note.rb +32 -2
  266. data/lib/advanced_billing/models/debit_note_role.rb +2 -2
  267. data/lib/advanced_billing/models/debit_note_status.rb +2 -2
  268. data/lib/advanced_billing/models/deduct_service_credit.rb +16 -2
  269. data/lib/advanced_billing/models/deduct_service_credit_request.rb +16 -2
  270. data/lib/advanced_billing/models/delayed_cancellation_response.rb +15 -2
  271. data/lib/advanced_billing/models/delete_subscription_group_response.rb +16 -2
  272. data/lib/advanced_billing/models/direction.rb +2 -2
  273. data/lib/advanced_billing/models/discount_type.rb +2 -2
  274. data/lib/advanced_billing/models/dunner_data.rb +20 -2
  275. data/lib/advanced_billing/models/dunning_step_data.rb +21 -2
  276. data/lib/advanced_billing/models/dunning_step_reached.rb +16 -2
  277. data/lib/advanced_billing/models/ebb_component.rb +26 -2
  278. data/lib/advanced_billing/models/ebb_event.rb +16 -2
  279. data/lib/advanced_billing/models/enable_webhooks_request.rb +16 -2
  280. data/lib/advanced_billing/models/enable_webhooks_response.rb +16 -2
  281. data/lib/advanced_billing/models/endpoint.rb +18 -2
  282. data/lib/advanced_billing/models/endpoint_response.rb +16 -2
  283. data/lib/advanced_billing/models/errors.rb +16 -2
  284. data/lib/advanced_billing/models/event.rb +20 -2
  285. data/lib/advanced_billing/models/event_based_billing_segment_error.rb +16 -2
  286. data/lib/advanced_billing/models/event_key.rb +2 -2
  287. data/lib/advanced_billing/models/event_response.rb +15 -2
  288. data/lib/advanced_billing/models/expiration_interval_unit.rb +2 -2
  289. data/lib/advanced_billing/models/failed_payment_action.rb +2 -2
  290. data/lib/advanced_billing/models/failed_payment_event.rb +18 -2
  291. data/lib/advanced_billing/models/failed_payment_event_data.rb +19 -2
  292. data/lib/advanced_billing/models/first_charge_type.rb +2 -2
  293. data/lib/advanced_billing/models/full_subscription_group_response.rb +27 -2
  294. data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +34 -2
  295. data/lib/advanced_billing/models/get_one_time_token_request.rb +16 -2
  296. data/lib/advanced_billing/models/group_billing.rb +16 -2
  297. data/lib/advanced_billing/models/group_settings.rb +16 -2
  298. data/lib/advanced_billing/models/group_target.rb +16 -2
  299. data/lib/advanced_billing/models/group_target_type.rb +2 -2
  300. data/lib/advanced_billing/models/group_type.rb +2 -2
  301. data/lib/advanced_billing/models/historic_usage.rb +18 -2
  302. data/lib/advanced_billing/models/include_not_null.rb +2 -2
  303. data/lib/advanced_billing/models/include_null_or_not_null.rb +2 -2
  304. data/lib/advanced_billing/models/include_option.rb +2 -2
  305. data/lib/advanced_billing/models/interval_unit.rb +2 -2
  306. data/lib/advanced_billing/models/invoice.rb +64 -2
  307. data/lib/advanced_billing/models/invoice_address.rb +17 -2
  308. data/lib/advanced_billing/models/invoice_avatax_details.rb +18 -2
  309. data/lib/advanced_billing/models/invoice_balance_item.rb +16 -2
  310. data/lib/advanced_billing/models/invoice_consolidation_level.rb +2 -2
  311. data/lib/advanced_billing/models/invoice_credit.rb +21 -2
  312. data/lib/advanced_billing/models/invoice_custom_field.rb +18 -2
  313. data/lib/advanced_billing/models/invoice_customer.rb +20 -2
  314. data/lib/advanced_billing/models/invoice_date_field.rb +2 -2
  315. data/lib/advanced_billing/models/invoice_debit.rb +21 -2
  316. data/lib/advanced_billing/models/invoice_discount.rb +25 -2
  317. data/lib/advanced_billing/models/invoice_discount_breakout.rb +17 -2
  318. data/lib/advanced_billing/models/invoice_discount_source_type.rb +2 -2
  319. data/lib/advanced_billing/models/invoice_discount_type.rb +2 -2
  320. data/lib/advanced_billing/models/invoice_display_settings.rb +18 -2
  321. data/lib/advanced_billing/models/invoice_event_payment_method.rb +2 -2
  322. data/lib/advanced_billing/models/invoice_event_type.rb +2 -2
  323. data/lib/advanced_billing/models/invoice_issued.rb +26 -2
  324. data/lib/advanced_billing/models/invoice_line_item.rb +36 -2
  325. data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +15 -2
  326. data/lib/advanced_billing/models/invoice_line_item_event_data.rb +32 -2
  327. data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +16 -2
  328. data/lib/advanced_billing/models/invoice_payer.rb +19 -2
  329. data/lib/advanced_billing/models/invoice_payer_change.rb +17 -2
  330. data/lib/advanced_billing/models/invoice_payment.rb +25 -2
  331. data/lib/advanced_billing/models/invoice_payment_application.rb +17 -2
  332. data/lib/advanced_billing/models/invoice_payment_method.rb +21 -2
  333. data/lib/advanced_billing/models/invoice_payment_method_type.rb +2 -2
  334. data/lib/advanced_billing/models/invoice_payment_type.rb +2 -2
  335. data/lib/advanced_billing/models/invoice_pre_payment.rb +18 -2
  336. data/lib/advanced_billing/models/invoice_previous_balance.rb +16 -2
  337. data/lib/advanced_billing/models/invoice_refund.rb +23 -2
  338. data/lib/advanced_billing/models/invoice_response.rb +15 -2
  339. data/lib/advanced_billing/models/invoice_role.rb +2 -2
  340. data/lib/advanced_billing/models/invoice_seller.rb +17 -2
  341. data/lib/advanced_billing/models/invoice_sort_field.rb +2 -2
  342. data/lib/advanced_billing/models/invoice_status.rb +2 -2
  343. data/lib/advanced_billing/models/invoice_tax.rb +26 -2
  344. data/lib/advanced_billing/models/invoice_tax_breakout.rb +18 -2
  345. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +28 -2
  346. data/lib/advanced_billing/models/issue_advance_invoice_request.rb +15 -2
  347. data/lib/advanced_billing/models/issue_invoice_event.rb +18 -2
  348. data/lib/advanced_billing/models/issue_invoice_event_data.rb +19 -2
  349. data/lib/advanced_billing/models/issue_invoice_request.rb +16 -2
  350. data/lib/advanced_billing/models/issue_service_credit.rb +16 -2
  351. data/lib/advanced_billing/models/issue_service_credit_request.rb +16 -2
  352. data/lib/advanced_billing/models/item_category.rb +2 -2
  353. data/lib/advanced_billing/models/item_price_point_changed.rb +20 -2
  354. data/lib/advanced_billing/models/item_price_point_data.rb +16 -2
  355. data/lib/advanced_billing/models/line_item_kind.rb +2 -2
  356. data/lib/advanced_billing/models/line_item_transaction_type.rb +2 -2
  357. data/lib/advanced_billing/models/list_components_filter.rb +16 -2
  358. data/lib/advanced_billing/models/list_components_price_points_include.rb +2 -2
  359. data/lib/advanced_billing/models/list_components_price_points_response.rb +16 -2
  360. data/lib/advanced_billing/models/list_coupons_filter.rb +21 -2
  361. data/lib/advanced_billing/models/list_credit_notes_response.rb +16 -2
  362. data/lib/advanced_billing/models/list_events_date_field.rb +2 -2
  363. data/lib/advanced_billing/models/list_invoice_events_response.rb +17 -2
  364. data/lib/advanced_billing/models/list_invoices_response.rb +16 -2
  365. data/lib/advanced_billing/models/list_metafields_response.rb +19 -2
  366. data/lib/advanced_billing/models/list_mrr_filter.rb +16 -2
  367. data/lib/advanced_billing/models/list_mrr_response.rb +14 -2
  368. data/lib/advanced_billing/models/list_mrr_response_result.rb +20 -2
  369. data/lib/advanced_billing/models/list_offers_response.rb +15 -2
  370. data/lib/advanced_billing/models/list_prepayment_date_field.rb +2 -2
  371. data/lib/advanced_billing/models/list_prepayments_filter.rb +16 -2
  372. data/lib/advanced_billing/models/list_price_points_filter.rb +20 -2
  373. data/lib/advanced_billing/models/list_product_price_points_response.rb +16 -2
  374. data/lib/advanced_billing/models/list_products_filter.rb +18 -2
  375. data/lib/advanced_billing/models/list_products_include.rb +2 -2
  376. data/lib/advanced_billing/models/list_products_price_points_include.rb +2 -2
  377. data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +18 -2
  378. data/lib/advanced_billing/models/list_proforma_invoices_response.rb +16 -2
  379. data/lib/advanced_billing/models/list_public_keys_meta.rb +18 -2
  380. data/lib/advanced_billing/models/list_public_keys_response.rb +16 -2
  381. data/lib/advanced_billing/models/list_sale_rep_item.rb +18 -2
  382. data/lib/advanced_billing/models/list_segments_filter.rb +21 -2
  383. data/lib/advanced_billing/models/list_segments_response.rb +16 -2
  384. data/lib/advanced_billing/models/list_service_credits_response.rb +82 -0
  385. data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +23 -2
  386. data/lib/advanced_billing/models/list_subscription_components_filter.rb +16 -2
  387. data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +18 -2
  388. data/lib/advanced_billing/models/list_subscription_components_include.rb +2 -2
  389. data/lib/advanced_billing/models/list_subscription_components_response.rb +16 -2
  390. data/lib/advanced_billing/models/list_subscription_components_sort.rb +2 -2
  391. data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +16 -2
  392. data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +16 -2
  393. data/lib/advanced_billing/models/list_subscription_groups_item.rb +25 -2
  394. data/lib/advanced_billing/models/list_subscription_groups_meta.rb +16 -2
  395. data/lib/advanced_billing/models/list_subscription_groups_response.rb +16 -2
  396. data/lib/advanced_billing/models/metadata.rb +19 -2
  397. data/lib/advanced_billing/models/metafield.rb +18 -2
  398. data/lib/advanced_billing/models/metafield_input.rb +2 -2
  399. data/lib/advanced_billing/models/metafield_scope.rb +19 -2
  400. data/lib/advanced_billing/models/metered_component.rb +29 -2
  401. data/lib/advanced_billing/models/metered_usage.rb +20 -2
  402. data/lib/advanced_billing/models/movement.rb +23 -2
  403. data/lib/advanced_billing/models/movement_line_item.rb +21 -2
  404. data/lib/advanced_billing/models/mrr.rb +20 -2
  405. data/lib/advanced_billing/models/mrr_movement.rb +18 -2
  406. data/lib/advanced_billing/models/mrr_response.rb +14 -2
  407. data/lib/advanced_billing/models/multi_invoice_payment.rb +18 -2
  408. data/lib/advanced_billing/models/multi_invoice_payment_response.rb +15 -2
  409. data/lib/advanced_billing/models/nested_subscription_group.rb +18 -2
  410. data/lib/advanced_billing/models/net_terms.rb +23 -2
  411. data/lib/advanced_billing/models/offer.rb +32 -2
  412. data/lib/advanced_billing/models/offer_discount.rb +17 -2
  413. data/lib/advanced_billing/models/offer_item.rb +24 -2
  414. data/lib/advanced_billing/models/offer_response.rb +15 -2
  415. data/lib/advanced_billing/models/offer_signup_page.rb +19 -2
  416. data/lib/advanced_billing/models/ok_response.rb +14 -2
  417. data/lib/advanced_billing/models/on_off_component.rb +28 -2
  418. data/lib/advanced_billing/models/organization_address.rb +19 -2
  419. data/lib/advanced_billing/models/origin_invoice.rb +16 -2
  420. data/lib/advanced_billing/models/overage_pricing.rb +16 -2
  421. data/lib/advanced_billing/models/override_subscription.rb +24 -3
  422. data/lib/advanced_billing/models/override_subscription_request.rb +16 -2
  423. data/lib/advanced_billing/models/paginated_metadata.rb +19 -2
  424. data/lib/advanced_billing/models/paid_invoice.rb +17 -2
  425. data/lib/advanced_billing/models/pause_request.rb +15 -2
  426. data/lib/advanced_billing/models/pay_pal_vault.rb +2 -2
  427. data/lib/advanced_billing/models/payer_attributes.rb +26 -2
  428. data/lib/advanced_billing/models/payer_error.rb +16 -2
  429. data/lib/advanced_billing/models/payment_collection_method_changed.rb +16 -2
  430. data/lib/advanced_billing/models/payment_for_allocation.rb +17 -2
  431. data/lib/advanced_billing/models/payment_method_apple_pay.rb +15 -2
  432. data/lib/advanced_billing/models/payment_method_bank_account.rb +18 -2
  433. data/lib/advanced_billing/models/payment_method_credit_card.rb +19 -2
  434. data/lib/advanced_billing/models/payment_method_external.rb +17 -2
  435. data/lib/advanced_billing/models/payment_method_paypal.rb +16 -2
  436. data/lib/advanced_billing/models/payment_profile_attributes.rb +37 -2
  437. data/lib/advanced_billing/models/payment_profile_response.rb +16 -2
  438. data/lib/advanced_billing/models/payment_related_events.rb +16 -2
  439. data/lib/advanced_billing/models/payment_type.rb +2 -2
  440. data/lib/advanced_billing/models/paypal_payment_profile.rb +69 -4
  441. data/lib/advanced_billing/models/pending_cancellation_change.rb +16 -2
  442. data/lib/advanced_billing/models/portal_management_link.rb +20 -2
  443. data/lib/advanced_billing/models/prepaid_configuration.rb +22 -2
  444. data/lib/advanced_billing/models/prepaid_configuration_response.rb +16 -2
  445. data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +16 -2
  446. data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +21 -2
  447. data/lib/advanced_billing/models/prepaid_usage.rb +27 -2
  448. data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +17 -2
  449. data/lib/advanced_billing/models/prepaid_usage_component.rb +37 -2
  450. data/lib/advanced_billing/models/prepayment.rb +23 -2
  451. data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +20 -2
  452. data/lib/advanced_billing/models/prepayment_method.rb +2 -2
  453. data/lib/advanced_billing/models/prepayment_response.rb +16 -2
  454. data/lib/advanced_billing/models/prepayments_response.rb +16 -2
  455. data/lib/advanced_billing/models/preview_allocations_request.rb +19 -2
  456. data/lib/advanced_billing/models/price.rb +18 -2
  457. data/lib/advanced_billing/models/price_point_type.rb +2 -2
  458. data/lib/advanced_billing/models/pricing_scheme.rb +2 -2
  459. data/lib/advanced_billing/models/product.rb +57 -2
  460. data/lib/advanced_billing/models/product_family.rb +19 -2
  461. data/lib/advanced_billing/models/product_family_response.rb +16 -2
  462. data/lib/advanced_billing/models/product_price_point.rb +39 -2
  463. data/lib/advanced_billing/models/product_price_point_errors.rb +19 -2
  464. data/lib/advanced_billing/models/product_price_point_response.rb +16 -2
  465. data/lib/advanced_billing/models/product_response.rb +15 -2
  466. data/lib/advanced_billing/models/proforma_error.rb +16 -2
  467. data/lib/advanced_billing/models/proforma_invoice.rb +44 -2
  468. data/lib/advanced_billing/models/proforma_invoice_credit.rb +17 -2
  469. data/lib/advanced_billing/models/proforma_invoice_discount.rb +21 -2
  470. data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +2 -2
  471. data/lib/advanced_billing/models/proforma_invoice_issued.rb +23 -2
  472. data/lib/advanced_billing/models/proforma_invoice_payment.rb +18 -2
  473. data/lib/advanced_billing/models/proforma_invoice_role.rb +2 -2
  474. data/lib/advanced_billing/models/proforma_invoice_status.rb +2 -2
  475. data/lib/advanced_billing/models/proforma_invoice_tax.rb +20 -2
  476. data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +2 -2
  477. data/lib/advanced_billing/models/proration.rb +16 -2
  478. data/lib/advanced_billing/models/public_key.rb +18 -2
  479. data/lib/advanced_billing/models/public_signup_page.rb +17 -2
  480. data/lib/advanced_billing/models/quantity_based_component.rb +32 -2
  481. data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +16 -2
  482. data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +23 -2
  483. data/lib/advanced_billing/models/reactivate_subscription_request.rb +21 -2
  484. data/lib/advanced_billing/models/reactivation_billing.rb +16 -2
  485. data/lib/advanced_billing/models/reactivation_charge.rb +2 -2
  486. data/lib/advanced_billing/models/reason_code.rb +19 -2
  487. data/lib/advanced_billing/models/reason_code_response.rb +16 -2
  488. data/lib/advanced_billing/models/record_payment_request.rb +15 -2
  489. data/lib/advanced_billing/models/record_payment_response.rb +16 -2
  490. data/lib/advanced_billing/models/recurring_scheme.rb +2 -2
  491. data/lib/advanced_billing/models/referral_code.rb +17 -2
  492. data/lib/advanced_billing/models/referral_validation_response.rb +16 -2
  493. data/lib/advanced_billing/models/refund_consolidated_invoice.rb +19 -2
  494. data/lib/advanced_billing/models/refund_invoice.rb +19 -2
  495. data/lib/advanced_billing/models/refund_invoice_event.rb +18 -2
  496. data/lib/advanced_billing/models/refund_invoice_event_data.rb +23 -2
  497. data/lib/advanced_billing/models/refund_invoice_request.rb +15 -2
  498. data/lib/advanced_billing/models/refund_prepayment.rb +17 -2
  499. data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +15 -2
  500. data/lib/advanced_billing/models/refund_prepayment_request.rb +15 -2
  501. data/lib/advanced_billing/models/refund_success.rb +18 -2
  502. data/lib/advanced_billing/models/remove_payment_event.rb +18 -2
  503. data/lib/advanced_billing/models/remove_payment_event_data.rb +21 -2
  504. data/lib/advanced_billing/models/renewal_preview.rb +25 -2
  505. data/lib/advanced_billing/models/renewal_preview_component.rb +17 -2
  506. data/lib/advanced_billing/models/renewal_preview_line_item.rb +29 -2
  507. data/lib/advanced_billing/models/renewal_preview_request.rb +16 -2
  508. data/lib/advanced_billing/models/renewal_preview_response.rb +16 -2
  509. data/lib/advanced_billing/models/replay_webhooks_request.rb +14 -2
  510. data/lib/advanced_billing/models/replay_webhooks_response.rb +15 -2
  511. data/lib/advanced_billing/models/resent_invitation.rb +21 -2
  512. data/lib/advanced_billing/models/resource_type.rb +2 -2
  513. data/lib/advanced_billing/models/restriction_type.rb +2 -2
  514. data/lib/advanced_billing/models/resume_options.rb +16 -2
  515. data/lib/advanced_billing/models/resumption_charge.rb +2 -2
  516. data/lib/advanced_billing/models/revoked_invitation.rb +18 -2
  517. data/lib/advanced_billing/models/sale_rep.rb +18 -2
  518. data/lib/advanced_billing/models/sale_rep_item_mrr.rb +16 -2
  519. data/lib/advanced_billing/models/sale_rep_settings.rb +21 -2
  520. data/lib/advanced_billing/models/sale_rep_subscription.rb +21 -2
  521. data/lib/advanced_billing/models/segment.rb +28 -2
  522. data/lib/advanced_billing/models/segment_price.rb +21 -2
  523. data/lib/advanced_billing/models/segment_response.rb +15 -2
  524. data/lib/advanced_billing/models/send_invoice_request.rb +18 -2
  525. data/lib/advanced_billing/models/service_credit.rb +19 -2
  526. data/lib/advanced_billing/models/service_credit1.rb +161 -0
  527. data/lib/advanced_billing/models/service_credit_response.rb +16 -2
  528. data/lib/advanced_billing/models/service_credit_type.rb +2 -2
  529. data/lib/advanced_billing/models/signup_proforma_preview.rb +18 -2
  530. data/lib/advanced_billing/models/signup_proforma_preview_response.rb +16 -2
  531. data/lib/advanced_billing/models/site.rb +51 -2
  532. data/lib/advanced_billing/models/site_response.rb +15 -2
  533. data/lib/advanced_billing/models/site_statistics.rb +30 -2
  534. data/lib/advanced_billing/models/site_summary.rb +18 -2
  535. data/lib/advanced_billing/models/snap_day.rb +2 -2
  536. data/lib/advanced_billing/models/sorting_direction.rb +2 -2
  537. data/lib/advanced_billing/models/subscription.rb +86 -2
  538. data/lib/advanced_billing/models/subscription_component.rb +45 -2
  539. data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +16 -2
  540. data/lib/advanced_billing/models/subscription_component_response.rb +16 -2
  541. data/lib/advanced_billing/models/subscription_component_subscription.rb +16 -2
  542. data/lib/advanced_billing/models/subscription_custom_price.rb +29 -2
  543. data/lib/advanced_billing/models/subscription_date_field.rb +2 -2
  544. data/lib/advanced_billing/models/subscription_filter.rb +19 -2
  545. data/lib/advanced_billing/models/subscription_group.rb +20 -2
  546. data/lib/advanced_billing/models/subscription_group_balances.rb +18 -2
  547. data/lib/advanced_billing/models/subscription_group_bank_account.rb +30 -2
  548. data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +17 -2
  549. data/lib/advanced_billing/models/subscription_group_credit_card.rb +77 -45
  550. data/lib/advanced_billing/models/subscription_group_customer.rb +18 -2
  551. data/lib/advanced_billing/models/subscription_group_include.rb +2 -2
  552. data/lib/advanced_billing/models/subscription_group_item.rb +25 -2
  553. data/lib/advanced_billing/models/subscription_group_members_array_error.rb +15 -2
  554. data/lib/advanced_billing/models/subscription_group_payment_profile.rb +18 -2
  555. data/lib/advanced_billing/models/subscription_group_prepayment.rb +17 -2
  556. data/lib/advanced_billing/models/subscription_group_prepayment_method.rb +2 -2
  557. data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +16 -2
  558. data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +19 -2
  559. data/lib/advanced_billing/models/subscription_group_response.rb +16 -2
  560. data/lib/advanced_billing/models/subscription_group_signup.rb +24 -2
  561. data/lib/advanced_billing/models/subscription_group_signup_component.rb +19 -2
  562. data/lib/advanced_billing/models/subscription_group_signup_error.rb +20 -2
  563. data/lib/advanced_billing/models/subscription_group_signup_event_data.rb +16 -2
  564. data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +24 -2
  565. data/lib/advanced_billing/models/subscription_group_signup_item.rb +26 -2
  566. data/lib/advanced_billing/models/subscription_group_signup_request.rb +16 -2
  567. data/lib/advanced_billing/models/subscription_group_signup_response.rb +26 -2
  568. data/lib/advanced_billing/models/subscription_group_single_error.rb +16 -2
  569. data/lib/advanced_billing/models/subscription_group_subscription_error.rb +26 -2
  570. data/lib/advanced_billing/models/subscription_group_update_error.rb +15 -2
  571. data/lib/advanced_billing/models/subscription_groups_list_include.rb +2 -2
  572. data/lib/advanced_billing/models/subscription_include.rb +2 -2
  573. data/lib/advanced_billing/models/subscription_included_coupon.rb +20 -2
  574. data/lib/advanced_billing/models/subscription_list_date_field.rb +2 -2
  575. data/lib/advanced_billing/models/subscription_list_include.rb +2 -2
  576. data/lib/advanced_billing/models/subscription_migration_preview.rb +20 -2
  577. data/lib/advanced_billing/models/subscription_migration_preview_options.rb +25 -2
  578. data/lib/advanced_billing/models/subscription_migration_preview_request.rb +16 -2
  579. data/lib/advanced_billing/models/subscription_migration_preview_response.rb +16 -2
  580. data/lib/advanced_billing/models/subscription_mrr.rb +18 -2
  581. data/lib/advanced_billing/models/subscription_mrr_breakout.rb +17 -2
  582. data/lib/advanced_billing/models/subscription_mrr_response.rb +16 -2
  583. data/lib/advanced_billing/models/subscription_note.rb +19 -2
  584. data/lib/advanced_billing/models/subscription_note_response.rb +15 -2
  585. data/lib/advanced_billing/models/subscription_preview.rb +18 -2
  586. data/lib/advanced_billing/models/subscription_preview_response.rb +16 -2
  587. data/lib/advanced_billing/models/subscription_product_change.rb +16 -2
  588. data/lib/advanced_billing/models/subscription_product_migration.rb +25 -2
  589. data/lib/advanced_billing/models/subscription_product_migration_request.rb +16 -2
  590. data/lib/advanced_billing/models/subscription_purge_type.rb +2 -2
  591. data/lib/advanced_billing/models/subscription_response.rb +16 -2
  592. data/lib/advanced_billing/models/subscription_sort.rb +2 -2
  593. data/lib/advanced_billing/models/subscription_state.rb +2 -2
  594. data/lib/advanced_billing/models/subscription_state_change.rb +18 -2
  595. data/lib/advanced_billing/models/subscription_state_filter.rb +2 -2
  596. data/lib/advanced_billing/models/tax_configuration.rb +18 -2
  597. data/lib/advanced_billing/models/tax_configuration_kind.rb +2 -2
  598. data/lib/advanced_billing/models/tax_destination_address.rb +2 -2
  599. data/lib/advanced_billing/models/too_many_management_link_requests.rb +16 -2
  600. data/lib/advanced_billing/models/update_allocation_expiration_date.rb +16 -2
  601. data/lib/advanced_billing/models/update_component.rb +22 -2
  602. data/lib/advanced_billing/models/update_component_price_point.rb +21 -2
  603. data/lib/advanced_billing/models/update_component_price_point_request.rb +16 -2
  604. data/lib/advanced_billing/models/update_component_request.rb +16 -2
  605. data/lib/advanced_billing/models/update_coupon_currency.rb +16 -2
  606. data/lib/advanced_billing/models/update_currency_price.rb +16 -2
  607. data/lib/advanced_billing/models/update_currency_prices_request.rb +16 -2
  608. data/lib/advanced_billing/models/update_customer.rb +28 -2
  609. data/lib/advanced_billing/models/update_customer_request.rb +16 -2
  610. data/lib/advanced_billing/models/update_metadata.rb +16 -2
  611. data/lib/advanced_billing/models/update_metadata_request.rb +16 -2
  612. data/lib/advanced_billing/models/update_metafield.rb +18 -2
  613. data/lib/advanced_billing/models/update_metafields_request.rb +16 -2
  614. data/lib/advanced_billing/models/update_payment_profile.rb +25 -2
  615. data/lib/advanced_billing/models/update_payment_profile_request.rb +16 -2
  616. data/lib/advanced_billing/models/update_price.rb +18 -2
  617. data/lib/advanced_billing/models/update_product_price_point.rb +16 -2
  618. data/lib/advanced_billing/models/update_product_price_point_request.rb +16 -2
  619. data/lib/advanced_billing/models/update_reason_code.rb +16 -2
  620. data/lib/advanced_billing/models/update_reason_code_request.rb +16 -2
  621. data/lib/advanced_billing/models/update_segment.rb +16 -2
  622. data/lib/advanced_billing/models/update_segment_request.rb +15 -2
  623. data/lib/advanced_billing/models/update_subscription.rb +134 -15
  624. data/lib/advanced_billing/models/update_subscription_component.rb +16 -2
  625. data/lib/advanced_billing/models/update_subscription_group.rb +16 -2
  626. data/lib/advanced_billing/models/update_subscription_group_request.rb +16 -2
  627. data/lib/advanced_billing/models/update_subscription_note.rb +16 -2
  628. data/lib/advanced_billing/models/update_subscription_note_request.rb +15 -2
  629. data/lib/advanced_billing/models/update_subscription_request.rb +16 -2
  630. data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +22 -2
  631. data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +16 -2
  632. data/lib/advanced_billing/models/usage.rb +21 -2
  633. data/lib/advanced_billing/models/usage_response.rb +15 -2
  634. data/lib/advanced_billing/models/void_invoice.rb +15 -2
  635. data/lib/advanced_billing/models/void_invoice_event.rb +18 -2
  636. data/lib/advanced_billing/models/void_invoice_event_data.rb +20 -2
  637. data/lib/advanced_billing/models/void_invoice_request.rb +15 -2
  638. data/lib/advanced_billing/models/void_remainder_event.rb +18 -2
  639. data/lib/advanced_billing/models/void_remainder_event_data.rb +18 -2
  640. data/lib/advanced_billing/models/webhook.rb +24 -2
  641. data/lib/advanced_billing/models/webhook_order.rb +2 -2
  642. data/lib/advanced_billing/models/webhook_response.rb +15 -2
  643. data/lib/advanced_billing/models/webhook_status.rb +2 -2
  644. data/lib/advanced_billing/models/webhook_subscription.rb +2 -2
  645. data/lib/advanced_billing/utilities/date_time_helper.rb +2 -2
  646. data/lib/advanced_billing/utilities/file_wrapper.rb +16 -4
  647. data/lib/advanced_billing/utilities/union_type_lookup.rb +2 -2
  648. data/lib/advanced_billing.rb +5 -3
  649. metadata +6 -4
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require 'date'
7
7
  module AdvancedBilling
@@ -46,6 +46,10 @@ module AdvancedBilling
46
46
  # @return [String]
47
47
  attr_accessor :product_family_name
48
48
 
49
+ # The handle of the Product Family to which the Component belongs
50
+ # @return [String]
51
+ attr_accessor :product_family_handle
52
+
49
53
  # deprecated - use unit_price instead
50
54
  # @return [Integer]
51
55
  attr_accessor :price_per_unit_in_cents
@@ -185,6 +189,7 @@ module AdvancedBilling
185
189
  @_hash['unit_price'] = 'unit_price'
186
190
  @_hash['product_family_id'] = 'product_family_id'
187
191
  @_hash['product_family_name'] = 'product_family_name'
192
+ @_hash['product_family_handle'] = 'product_family_handle'
188
193
  @_hash['price_per_unit_in_cents'] = 'price_per_unit_in_cents'
189
194
  @_hash['kind'] = 'kind'
190
195
  @_hash['archived'] = 'archived'
@@ -226,6 +231,7 @@ module AdvancedBilling
226
231
  unit_price
227
232
  product_family_id
228
233
  product_family_name
234
+ product_family_handle
229
235
  price_per_unit_in_cents
230
236
  kind
231
237
  archived
@@ -280,8 +286,9 @@ module AdvancedBilling
280
286
 
281
287
  def initialize(id: SKIP, name: SKIP, handle: SKIP, pricing_scheme: SKIP,
282
288
  unit_name: SKIP, unit_price: SKIP, product_family_id: SKIP,
283
- product_family_name: SKIP, price_per_unit_in_cents: SKIP,
284
- kind: SKIP, archived: SKIP, taxable: SKIP, description: SKIP,
289
+ product_family_name: SKIP, product_family_handle: SKIP,
290
+ price_per_unit_in_cents: SKIP, kind: SKIP, archived: SKIP,
291
+ taxable: SKIP, description: SKIP,
285
292
  default_price_point_id: SKIP, overage_prices: SKIP,
286
293
  prices: SKIP, price_point_count: SKIP,
287
294
  price_points_url: SKIP, default_price_point_name: SKIP,
@@ -305,6 +312,7 @@ module AdvancedBilling
305
312
  @unit_price = unit_price unless unit_price == SKIP
306
313
  @product_family_id = product_family_id unless product_family_id == SKIP
307
314
  @product_family_name = product_family_name unless product_family_name == SKIP
315
+ @product_family_handle = product_family_handle unless product_family_handle == SKIP
308
316
  @price_per_unit_in_cents = price_per_unit_in_cents unless price_per_unit_in_cents == SKIP
309
317
  @kind = kind unless kind == SKIP
310
318
  @archived = archived unless archived == SKIP
@@ -358,6 +366,8 @@ module AdvancedBilling
358
366
  hash.key?('product_family_id') ? hash['product_family_id'] : SKIP
359
367
  product_family_name =
360
368
  hash.key?('product_family_name') ? hash['product_family_name'] : SKIP
369
+ product_family_handle =
370
+ hash.key?('product_family_handle') ? hash['product_family_handle'] : SKIP
361
371
  price_per_unit_in_cents =
362
372
  hash.key?('price_per_unit_in_cents') ? hash['price_per_unit_in_cents'] : SKIP
363
373
  kind = hash.key?('kind') ? hash['kind'] : SKIP
@@ -439,6 +449,7 @@ module AdvancedBilling
439
449
  unit_price: unit_price,
440
450
  product_family_id: product_family_id,
441
451
  product_family_name: product_family_name,
452
+ product_family_handle: product_family_handle,
442
453
  price_per_unit_in_cents: price_per_unit_in_cents,
443
454
  kind: kind,
444
455
  archived: archived,
@@ -479,5 +490,52 @@ module AdvancedBilling
479
490
  def to_custom_archived_at
480
491
  DateTimeHelper.to_rfc3339(archived_at)
481
492
  end
493
+
494
+ # Provides a human-readable string representation of the object.
495
+ def to_s
496
+ class_name = self.class.name.split('::').last
497
+ "<#{class_name} id: #{@id}, name: #{@name}, handle: #{@handle}, pricing_scheme:"\
498
+ " #{@pricing_scheme}, unit_name: #{@unit_name}, unit_price: #{@unit_price},"\
499
+ " product_family_id: #{@product_family_id}, product_family_name: #{@product_family_name},"\
500
+ " product_family_handle: #{@product_family_handle}, price_per_unit_in_cents:"\
501
+ " #{@price_per_unit_in_cents}, kind: #{@kind}, archived: #{@archived}, taxable: #{@taxable},"\
502
+ " description: #{@description}, default_price_point_id: #{@default_price_point_id},"\
503
+ " overage_prices: #{@overage_prices}, prices: #{@prices}, price_point_count:"\
504
+ " #{@price_point_count}, price_points_url: #{@price_points_url}, default_price_point_name:"\
505
+ " #{@default_price_point_name}, tax_code: #{@tax_code}, recurring: #{@recurring},"\
506
+ " upgrade_charge: #{@upgrade_charge}, downgrade_credit: #{@downgrade_credit}, created_at:"\
507
+ " #{@created_at}, updated_at: #{@updated_at}, archived_at: #{@archived_at},"\
508
+ " hide_date_range_on_invoice: #{@hide_date_range_on_invoice}, allow_fractional_quantities:"\
509
+ " #{@allow_fractional_quantities}, item_category: #{@item_category}, use_site_exchange_rate:"\
510
+ " #{@use_site_exchange_rate}, accounting_code: #{@accounting_code},"\
511
+ " event_based_billing_metric_id: #{@event_based_billing_metric_id}, interval: #{@interval},"\
512
+ " interval_unit: #{@interval_unit}, additional_properties: #{get_additional_properties}>"
513
+ end
514
+
515
+ # Provides a debugging-friendly string with detailed object information.
516
+ def inspect
517
+ class_name = self.class.name.split('::').last
518
+ "<#{class_name} id: #{@id.inspect}, name: #{@name.inspect}, handle: #{@handle.inspect},"\
519
+ " pricing_scheme: #{@pricing_scheme.inspect}, unit_name: #{@unit_name.inspect}, unit_price:"\
520
+ " #{@unit_price.inspect}, product_family_id: #{@product_family_id.inspect},"\
521
+ " product_family_name: #{@product_family_name.inspect}, product_family_handle:"\
522
+ " #{@product_family_handle.inspect}, price_per_unit_in_cents:"\
523
+ " #{@price_per_unit_in_cents.inspect}, kind: #{@kind.inspect}, archived:"\
524
+ " #{@archived.inspect}, taxable: #{@taxable.inspect}, description: #{@description.inspect},"\
525
+ " default_price_point_id: #{@default_price_point_id.inspect}, overage_prices:"\
526
+ " #{@overage_prices.inspect}, prices: #{@prices.inspect}, price_point_count:"\
527
+ " #{@price_point_count.inspect}, price_points_url: #{@price_points_url.inspect},"\
528
+ " default_price_point_name: #{@default_price_point_name.inspect}, tax_code:"\
529
+ " #{@tax_code.inspect}, recurring: #{@recurring.inspect}, upgrade_charge:"\
530
+ " #{@upgrade_charge.inspect}, downgrade_credit: #{@downgrade_credit.inspect}, created_at:"\
531
+ " #{@created_at.inspect}, updated_at: #{@updated_at.inspect}, archived_at:"\
532
+ " #{@archived_at.inspect}, hide_date_range_on_invoice:"\
533
+ " #{@hide_date_range_on_invoice.inspect}, allow_fractional_quantities:"\
534
+ " #{@allow_fractional_quantities.inspect}, item_category: #{@item_category.inspect},"\
535
+ " use_site_exchange_rate: #{@use_site_exchange_rate.inspect}, accounting_code:"\
536
+ " #{@accounting_code.inspect}, event_based_billing_metric_id:"\
537
+ " #{@event_based_billing_metric_id.inspect}, interval: #{@interval.inspect}, interval_unit:"\
538
+ " #{@interval_unit.inspect}, additional_properties: #{get_additional_properties}>"
539
+ end
482
540
  end
483
541
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentAllocationChange Model.
@@ -148,5 +148,25 @@ module AdvancedBilling
148
148
  ->(val) { val.instance_of? Integer })
149
149
  )
150
150
  end
151
+
152
+ # Provides a human-readable string representation of the object.
153
+ def to_s
154
+ class_name = self.class.name.split('::').last
155
+ "<#{class_name} previous_allocation: #{@previous_allocation}, new_allocation:"\
156
+ " #{@new_allocation}, component_id: #{@component_id}, component_handle:"\
157
+ " #{@component_handle}, memo: #{@memo}, allocation_id: #{@allocation_id},"\
158
+ " allocated_quantity: #{@allocated_quantity}, additional_properties:"\
159
+ " #{get_additional_properties}>"
160
+ end
161
+
162
+ # Provides a debugging-friendly string with detailed object information.
163
+ def inspect
164
+ class_name = self.class.name.split('::').last
165
+ "<#{class_name} previous_allocation: #{@previous_allocation.inspect}, new_allocation:"\
166
+ " #{@new_allocation.inspect}, component_id: #{@component_id.inspect}, component_handle:"\
167
+ " #{@component_handle.inspect}, memo: #{@memo.inspect}, allocation_id:"\
168
+ " #{@allocation_id.inspect}, allocated_quantity: #{@allocated_quantity.inspect},"\
169
+ " additional_properties: #{get_additional_properties}>"
170
+ end
151
171
  end
152
172
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentAllocationErrorItem Model.
@@ -83,5 +83,20 @@ module AdvancedBilling
83
83
  on: on,
84
84
  additional_properties: additional_properties)
85
85
  end
86
+
87
+ # Provides a human-readable string representation of the object.
88
+ def to_s
89
+ class_name = self.class.name.split('::').last
90
+ "<#{class_name} component_id: #{@component_id}, message: #{@message}, kind: #{@kind}, on:"\
91
+ " #{@on}, additional_properties: #{get_additional_properties}>"
92
+ end
93
+
94
+ # Provides a debugging-friendly string with detailed object information.
95
+ def inspect
96
+ class_name = self.class.name.split('::').last
97
+ "<#{class_name} component_id: #{@component_id.inspect}, message: #{@message.inspect}, kind:"\
98
+ " #{@kind.inspect}, on: #{@on.inspect}, additional_properties:"\
99
+ " #{get_additional_properties}>"
100
+ end
86
101
  end
87
102
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentCostData Model.
@@ -139,5 +139,24 @@ module AdvancedBilling
139
139
 
140
140
  true
141
141
  end
142
+
143
+ # Provides a human-readable string representation of the object.
144
+ def to_s
145
+ class_name = self.class.name.split('::').last
146
+ "<#{class_name} component_code_id: #{@component_code_id}, price_point_id:"\
147
+ " #{@price_point_id}, product_id: #{@product_id}, quantity: #{@quantity}, amount:"\
148
+ " #{@amount}, pricing_scheme: #{@pricing_scheme}, tiers: #{@tiers}, additional_properties:"\
149
+ " #{get_additional_properties}>"
150
+ end
151
+
152
+ # Provides a debugging-friendly string with detailed object information.
153
+ def inspect
154
+ class_name = self.class.name.split('::').last
155
+ "<#{class_name} component_code_id: #{@component_code_id.inspect}, price_point_id:"\
156
+ " #{@price_point_id.inspect}, product_id: #{@product_id.inspect}, quantity:"\
157
+ " #{@quantity.inspect}, amount: #{@amount.inspect}, pricing_scheme:"\
158
+ " #{@pricing_scheme.inspect}, tiers: #{@tiers.inspect}, additional_properties:"\
159
+ " #{get_additional_properties}>"
160
+ end
142
161
  end
143
162
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentCostDataRateTier Model.
@@ -107,5 +107,22 @@ module AdvancedBilling
107
107
 
108
108
  true
109
109
  end
110
+
111
+ # Provides a human-readable string representation of the object.
112
+ def to_s
113
+ class_name = self.class.name.split('::').last
114
+ "<#{class_name} starting_quantity: #{@starting_quantity}, ending_quantity:"\
115
+ " #{@ending_quantity}, quantity: #{@quantity}, unit_price: #{@unit_price}, amount:"\
116
+ " #{@amount}, additional_properties: #{get_additional_properties}>"
117
+ end
118
+
119
+ # Provides a debugging-friendly string with detailed object information.
120
+ def inspect
121
+ class_name = self.class.name.split('::').last
122
+ "<#{class_name} starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\
123
+ " #{@ending_quantity.inspect}, quantity: #{@quantity.inspect}, unit_price:"\
124
+ " #{@unit_price.inspect}, amount: #{@amount.inspect}, additional_properties:"\
125
+ " #{get_additional_properties}>"
126
+ end
110
127
  end
111
128
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentCurrencyPrice Model.
@@ -104,5 +104,22 @@ module AdvancedBilling
104
104
  price_point_id: price_point_id,
105
105
  additional_properties: additional_properties)
106
106
  end
107
+
108
+ # Provides a human-readable string representation of the object.
109
+ def to_s
110
+ class_name = self.class.name.split('::').last
111
+ "<#{class_name} id: #{@id}, currency: #{@currency}, price: #{@price}, formatted_price:"\
112
+ " #{@formatted_price}, price_id: #{@price_id}, price_point_id: #{@price_point_id},"\
113
+ " additional_properties: #{get_additional_properties}>"
114
+ end
115
+
116
+ # Provides a debugging-friendly string with detailed object information.
117
+ def inspect
118
+ class_name = self.class.name.split('::').last
119
+ "<#{class_name} id: #{@id.inspect}, currency: #{@currency.inspect}, price:"\
120
+ " #{@price.inspect}, formatted_price: #{@formatted_price.inspect}, price_id:"\
121
+ " #{@price_id.inspect}, price_point_id: #{@price_point_id.inspect}, additional_properties:"\
122
+ " #{get_additional_properties}>"
123
+ end
107
124
  end
108
125
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentCurrencyPricesResponse Model.
@@ -62,5 +62,19 @@ module AdvancedBilling
62
62
  ComponentCurrencyPricesResponse.new(currency_prices: currency_prices,
63
63
  additional_properties: additional_properties)
64
64
  end
65
+
66
+ # Provides a human-readable string representation of the object.
67
+ def to_s
68
+ class_name = self.class.name.split('::').last
69
+ "<#{class_name} currency_prices: #{@currency_prices}, additional_properties:"\
70
+ " #{get_additional_properties}>"
71
+ end
72
+
73
+ # Provides a debugging-friendly string with detailed object information.
74
+ def inspect
75
+ class_name = self.class.name.split('::').last
76
+ "<#{class_name} currency_prices: #{@currency_prices.inspect}, additional_properties:"\
77
+ " #{get_additional_properties}>"
78
+ end
65
79
  end
66
80
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # Create or update custom pricing unique to the subscription. Used in place of
@@ -128,5 +128,22 @@ module AdvancedBilling
128
128
  is_model_hash: true,
129
129
  is_inner_model_hash: true)
130
130
  end
131
+
132
+ # Provides a human-readable string representation of the object.
133
+ def to_s
134
+ class_name = self.class.name.split('::').last
135
+ "<#{class_name} tax_included: #{@tax_included}, pricing_scheme: #{@pricing_scheme},"\
136
+ " interval: #{@interval}, interval_unit: #{@interval_unit}, prices: #{@prices},"\
137
+ " additional_properties: #{get_additional_properties}>"
138
+ end
139
+
140
+ # Provides a debugging-friendly string with detailed object information.
141
+ def inspect
142
+ class_name = self.class.name.split('::').last
143
+ "<#{class_name} tax_included: #{@tax_included.inspect}, pricing_scheme:"\
144
+ " #{@pricing_scheme.inspect}, interval: #{@interval.inspect}, interval_unit:"\
145
+ " #{@interval_unit.inspect}, prices: #{@prices.inspect}, additional_properties:"\
146
+ " #{get_additional_properties}>"
147
+ end
131
148
  end
132
149
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # A handle for the component type
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentPrice Model.
@@ -128,5 +128,24 @@ module AdvancedBilling
128
128
  segment_id: segment_id,
129
129
  additional_properties: additional_properties)
130
130
  end
131
+
132
+ # Provides a human-readable string representation of the object.
133
+ def to_s
134
+ class_name = self.class.name.split('::').last
135
+ "<#{class_name} id: #{@id}, component_id: #{@component_id}, starting_quantity:"\
136
+ " #{@starting_quantity}, ending_quantity: #{@ending_quantity}, unit_price: #{@unit_price},"\
137
+ " price_point_id: #{@price_point_id}, formatted_unit_price: #{@formatted_unit_price},"\
138
+ " segment_id: #{@segment_id}, additional_properties: #{get_additional_properties}>"
139
+ end
140
+
141
+ # Provides a debugging-friendly string with detailed object information.
142
+ def inspect
143
+ class_name = self.class.name.split('::').last
144
+ "<#{class_name} id: #{@id.inspect}, component_id: #{@component_id.inspect},"\
145
+ " starting_quantity: #{@starting_quantity.inspect}, ending_quantity:"\
146
+ " #{@ending_quantity.inspect}, unit_price: #{@unit_price.inspect}, price_point_id:"\
147
+ " #{@price_point_id.inspect}, formatted_unit_price: #{@formatted_unit_price.inspect},"\
148
+ " segment_id: #{@segment_id.inspect}, additional_properties: #{get_additional_properties}>"
149
+ end
131
150
  end
132
151
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  require 'date'
7
7
  module AdvancedBilling
@@ -373,5 +373,40 @@ module AdvancedBilling
373
373
  def to_custom_updated_at
374
374
  DateTimeHelper.to_rfc3339(updated_at)
375
375
  end
376
+
377
+ # Provides a human-readable string representation of the object.
378
+ def to_s
379
+ class_name = self.class.name.split('::').last
380
+ "<#{class_name} id: #{@id}, type: #{@type}, default: #{@default}, name: #{@name},"\
381
+ " pricing_scheme: #{@pricing_scheme}, component_id: #{@component_id}, handle: #{@handle},"\
382
+ " archived_at: #{@archived_at}, created_at: #{@created_at}, updated_at: #{@updated_at},"\
383
+ " prices: #{@prices}, use_site_exchange_rate: #{@use_site_exchange_rate}, subscription_id:"\
384
+ " #{@subscription_id}, tax_included: #{@tax_included}, interval: #{@interval},"\
385
+ " interval_unit: #{@interval_unit}, currency_prices: #{@currency_prices}, overage_prices:"\
386
+ " #{@overage_prices}, overage_pricing_scheme: #{@overage_pricing_scheme},"\
387
+ " renew_prepaid_allocation: #{@renew_prepaid_allocation}, rollover_prepaid_remainder:"\
388
+ " #{@rollover_prepaid_remainder}, expiration_interval: #{@expiration_interval},"\
389
+ " expiration_interval_unit: #{@expiration_interval_unit}, additional_properties:"\
390
+ " #{get_additional_properties}>"
391
+ end
392
+
393
+ # Provides a debugging-friendly string with detailed object information.
394
+ def inspect
395
+ class_name = self.class.name.split('::').last
396
+ "<#{class_name} id: #{@id.inspect}, type: #{@type.inspect}, default: #{@default.inspect},"\
397
+ " name: #{@name.inspect}, pricing_scheme: #{@pricing_scheme.inspect}, component_id:"\
398
+ " #{@component_id.inspect}, handle: #{@handle.inspect}, archived_at:"\
399
+ " #{@archived_at.inspect}, created_at: #{@created_at.inspect}, updated_at:"\
400
+ " #{@updated_at.inspect}, prices: #{@prices.inspect}, use_site_exchange_rate:"\
401
+ " #{@use_site_exchange_rate.inspect}, subscription_id: #{@subscription_id.inspect},"\
402
+ " tax_included: #{@tax_included.inspect}, interval: #{@interval.inspect}, interval_unit:"\
403
+ " #{@interval_unit.inspect}, currency_prices: #{@currency_prices.inspect}, overage_prices:"\
404
+ " #{@overage_prices.inspect}, overage_pricing_scheme: #{@overage_pricing_scheme.inspect},"\
405
+ " renew_prepaid_allocation: #{@renew_prepaid_allocation.inspect},"\
406
+ " rollover_prepaid_remainder: #{@rollover_prepaid_remainder.inspect}, expiration_interval:"\
407
+ " #{@expiration_interval.inspect}, expiration_interval_unit:"\
408
+ " #{@expiration_interval_unit.inspect}, additional_properties:"\
409
+ " #{get_additional_properties}>"
410
+ end
376
411
  end
377
412
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentPricePointAssignment Model.
@@ -77,5 +77,19 @@ module AdvancedBilling
77
77
 
78
78
  true
79
79
  end
80
+
81
+ # Provides a human-readable string representation of the object.
82
+ def to_s
83
+ class_name = self.class.name.split('::').last
84
+ "<#{class_name} component_id: #{@component_id}, price_point: #{@price_point},"\
85
+ " additional_properties: #{get_additional_properties}>"
86
+ end
87
+
88
+ # Provides a debugging-friendly string with detailed object information.
89
+ def inspect
90
+ class_name = self.class.name.split('::').last
91
+ "<#{class_name} component_id: #{@component_id.inspect}, price_point:"\
92
+ " #{@price_point.inspect}, additional_properties: #{get_additional_properties}>"
93
+ end
80
94
  end
81
95
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentPricePointErrorItem Model.
@@ -74,5 +74,20 @@ module AdvancedBilling
74
74
  price_point: price_point,
75
75
  additional_properties: additional_properties)
76
76
  end
77
+
78
+ # Provides a human-readable string representation of the object.
79
+ def to_s
80
+ class_name = self.class.name.split('::').last
81
+ "<#{class_name} component_id: #{@component_id}, message: #{@message}, price_point:"\
82
+ " #{@price_point}, additional_properties: #{get_additional_properties}>"
83
+ end
84
+
85
+ # Provides a debugging-friendly string with detailed object information.
86
+ def inspect
87
+ class_name = self.class.name.split('::').last
88
+ "<#{class_name} component_id: #{@component_id.inspect}, message: #{@message.inspect},"\
89
+ " price_point: #{@price_point.inspect}, additional_properties:"\
90
+ " #{get_additional_properties}>"
91
+ end
77
92
  end
78
93
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentPricePointItem Model.
@@ -133,5 +133,22 @@ module AdvancedBilling
133
133
 
134
134
  true
135
135
  end
136
+
137
+ # Provides a human-readable string representation of the object.
138
+ def to_s
139
+ class_name = self.class.name.split('::').last
140
+ "<#{class_name} name: #{@name}, handle: #{@handle}, pricing_scheme: #{@pricing_scheme},"\
141
+ " interval: #{@interval}, interval_unit: #{@interval_unit}, prices: #{@prices},"\
142
+ " additional_properties: #{get_additional_properties}>"
143
+ end
144
+
145
+ # Provides a debugging-friendly string with detailed object information.
146
+ def inspect
147
+ class_name = self.class.name.split('::').last
148
+ "<#{class_name} name: #{@name.inspect}, handle: #{@handle.inspect}, pricing_scheme:"\
149
+ " #{@pricing_scheme.inspect}, interval: #{@interval.inspect}, interval_unit:"\
150
+ " #{@interval_unit.inspect}, prices: #{@prices.inspect}, additional_properties:"\
151
+ " #{get_additional_properties}>"
152
+ end
136
153
  end
137
154
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentPricePointResponse Model.
@@ -53,5 +53,19 @@ module AdvancedBilling
53
53
  ComponentPricePointResponse.new(price_point: price_point,
54
54
  additional_properties: additional_properties)
55
55
  end
56
+
57
+ # Provides a human-readable string representation of the object.
58
+ def to_s
59
+ class_name = self.class.name.split('::').last
60
+ "<#{class_name} price_point: #{@price_point}, additional_properties:"\
61
+ " #{get_additional_properties}>"
62
+ end
63
+
64
+ # Provides a debugging-friendly string with detailed object information.
65
+ def inspect
66
+ class_name = self.class.name.split('::').last
67
+ "<#{class_name} price_point: #{@price_point.inspect}, additional_properties:"\
68
+ " #{get_additional_properties}>"
69
+ end
56
70
  end
57
71
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentPricePointsResponse Model.
@@ -73,5 +73,19 @@ module AdvancedBilling
73
73
  meta: meta,
74
74
  additional_properties: additional_properties)
75
75
  end
76
+
77
+ # Provides a human-readable string representation of the object.
78
+ def to_s
79
+ class_name = self.class.name.split('::').last
80
+ "<#{class_name} price_points: #{@price_points}, meta: #{@meta}, additional_properties:"\
81
+ " #{get_additional_properties}>"
82
+ end
83
+
84
+ # Provides a debugging-friendly string with detailed object information.
85
+ def inspect
86
+ class_name = self.class.name.split('::').last
87
+ "<#{class_name} price_points: #{@price_points.inspect}, meta: #{@meta.inspect},"\
88
+ " additional_properties: #{get_additional_properties}>"
89
+ end
76
90
  end
77
91
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # ComponentResponse Model.
@@ -53,5 +53,19 @@ module AdvancedBilling
53
53
  ComponentResponse.new(component: component,
54
54
  additional_properties: additional_properties)
55
55
  end
56
+
57
+ # Provides a human-readable string representation of the object.
58
+ def to_s
59
+ class_name = self.class.name.split('::').last
60
+ "<#{class_name} component: #{@component}, additional_properties:"\
61
+ " #{get_additional_properties}>"
62
+ end
63
+
64
+ # Provides a debugging-friendly string with detailed object information.
65
+ def inspect
66
+ class_name = self.class.name.split('::').last
67
+ "<#{class_name} component: #{@component.inspect}, additional_properties:"\
68
+ " #{get_additional_properties}>"
69
+ end
56
70
  end
57
71
  end
@@ -1,7 +1,7 @@
1
1
  # advanced_billing
2
2
  #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
3
+ # This file was automatically generated for Maxio by
4
+ # APIMATIC v3.0 ( https://www.apimatic.io ).
5
5
 
6
6
  module AdvancedBilling
7
7
  # Applicable only to stackable coupons. For `compound`, Percentage-based