maxio-advanced-billing-sdk 6.1.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 (648) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +69 -64
  3. data/lib/advanced_billing/api_helper.rb +2 -2
  4. data/lib/advanced_billing/client.rb +2 -2
  5. data/lib/advanced_billing/configuration.rb +4 -5
  6. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +12 -10
  7. data/lib/advanced_billing/controllers/api_exports_controller.rb +20 -20
  8. data/lib/advanced_billing/controllers/base_controller.rb +4 -10
  9. data/lib/advanced_billing/controllers/billing_portal_controller.rb +10 -10
  10. data/lib/advanced_billing/controllers/component_price_points_controller.rb +34 -32
  11. data/lib/advanced_billing/controllers/components_controller.rb +40 -33
  12. data/lib/advanced_billing/controllers/coupons_controller.rb +43 -38
  13. data/lib/advanced_billing/controllers/custom_fields_controller.rb +29 -25
  14. data/lib/advanced_billing/controllers/customers_controller.rb +20 -18
  15. data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +22 -18
  16. data/lib/advanced_billing/controllers/events_controller.rb +8 -8
  17. data/lib/advanced_billing/controllers/insights_controller.rb +11 -11
  18. data/lib/advanced_billing/controllers/invoices_controller.rb +59 -92
  19. data/lib/advanced_billing/controllers/offers_controller.rb +14 -13
  20. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +32 -29
  21. data/lib/advanced_billing/controllers/product_families_controller.rb +15 -14
  22. data/lib/advanced_billing/controllers/product_price_points_controller.rb +33 -32
  23. data/lib/advanced_billing/controllers/products_controller.rb +18 -16
  24. data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +26 -23
  25. data/lib/advanced_billing/controllers/reason_codes_controller.rb +18 -16
  26. data/lib/advanced_billing/controllers/referral_codes_controller.rb +4 -4
  27. data/lib/advanced_billing/controllers/sales_commissions_controller.rb +8 -8
  28. data/lib/advanced_billing/controllers/sites_controller.rb +8 -8
  29. data/lib/advanced_billing/controllers/subscription_components_controller.rb +55 -48
  30. data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +16 -14
  31. data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +14 -14
  32. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +28 -27
  33. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +68 -18
  34. data/lib/advanced_billing/controllers/subscription_notes_controller.rb +16 -14
  35. data/lib/advanced_billing/controllers/subscription_products_controller.rb +8 -8
  36. data/lib/advanced_billing/controllers/subscription_status_controller.rb +34 -28
  37. data/lib/advanced_billing/controllers/subscriptions_controller.rb +45 -71
  38. data/lib/advanced_billing/controllers/webhooks_controller.rb +22 -18
  39. data/lib/advanced_billing/exceptions/api_exception.rb +2 -2
  40. data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +7 -5
  41. data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +7 -5
  42. data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +7 -5
  43. data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +7 -5
  44. data/lib/advanced_billing/exceptions/error_list_response_exception.rb +7 -5
  45. data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +7 -5
  46. data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +7 -5
  47. data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +7 -5
  48. data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +7 -5
  49. data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +7 -5
  50. data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +7 -5
  51. data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +7 -5
  52. data/lib/advanced_billing/exceptions/single_error_response_exception.rb +7 -5
  53. data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +7 -5
  54. data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +7 -5
  55. data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +7 -5
  56. data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +7 -5
  57. data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +7 -5
  58. data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +7 -5
  59. data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +7 -5
  60. data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +7 -5
  61. data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +7 -5
  62. data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +7 -5
  63. data/lib/advanced_billing/http/auth/basic_auth.rb +2 -2
  64. data/lib/advanced_billing/http/http_call_back.rb +2 -2
  65. data/lib/advanced_billing/http/http_method_enum.rb +2 -2
  66. data/lib/advanced_billing/http/http_request.rb +2 -2
  67. data/lib/advanced_billing/http/http_response.rb +2 -2
  68. data/lib/advanced_billing/models/account_balance.rb +2 -2
  69. data/lib/advanced_billing/models/account_balances.rb +2 -2
  70. data/lib/advanced_billing/models/ach_agreement.rb +2 -2
  71. data/lib/advanced_billing/models/activate_event_based_component.rb +2 -2
  72. data/lib/advanced_billing/models/activate_subscription_request.rb +2 -2
  73. data/lib/advanced_billing/models/add_coupons_request.rb +2 -2
  74. data/lib/advanced_billing/models/add_subscription_to_a_group.rb +2 -2
  75. data/lib/advanced_billing/models/address_change.rb +2 -2
  76. data/lib/advanced_billing/models/agreement_acceptance.rb +2 -2
  77. data/lib/advanced_billing/models/all_vaults.rb +2 -2
  78. data/lib/advanced_billing/models/allocate_components.rb +2 -2
  79. data/lib/advanced_billing/models/allocation.rb +2 -2
  80. data/lib/advanced_billing/models/allocation_expiration_date.rb +2 -2
  81. data/lib/advanced_billing/models/allocation_preview.rb +2 -2
  82. data/lib/advanced_billing/models/allocation_preview_direction.rb +2 -2
  83. data/lib/advanced_billing/models/allocation_preview_item.rb +2 -2
  84. data/lib/advanced_billing/models/allocation_preview_line_item.rb +2 -2
  85. data/lib/advanced_billing/models/allocation_preview_line_item_kind.rb +2 -2
  86. data/lib/advanced_billing/models/allocation_preview_response.rb +2 -2
  87. data/lib/advanced_billing/models/allocation_response.rb +2 -2
  88. data/lib/advanced_billing/models/allocation_settings.rb +2 -2
  89. data/lib/advanced_billing/models/apple_pay_payment_profile.rb +43 -5
  90. data/lib/advanced_billing/models/apple_pay_vault.rb +2 -2
  91. data/lib/advanced_billing/models/applied_credit_note_data.rb +2 -2
  92. data/lib/advanced_billing/models/apply_credit_note_event.rb +2 -2
  93. data/lib/advanced_billing/models/apply_credit_note_event_data.rb +2 -2
  94. data/lib/advanced_billing/models/apply_debit_note_event.rb +2 -2
  95. data/lib/advanced_billing/models/apply_debit_note_event_data.rb +2 -2
  96. data/lib/advanced_billing/models/apply_payment_event.rb +2 -2
  97. data/lib/advanced_billing/models/apply_payment_event_data.rb +2 -2
  98. data/lib/advanced_billing/models/attribute_error.rb +2 -2
  99. data/lib/advanced_billing/models/auto_invite.rb +2 -2
  100. data/lib/advanced_billing/models/auto_resume.rb +2 -2
  101. data/lib/advanced_billing/models/backport_invoice_event.rb +2 -2
  102. data/lib/advanced_billing/models/bank_account_attributes.rb +2 -2
  103. data/lib/advanced_billing/models/bank_account_holder_type.rb +2 -2
  104. data/lib/advanced_billing/models/bank_account_payment_profile.rb +42 -5
  105. data/lib/advanced_billing/models/bank_account_response.rb +2 -2
  106. data/lib/advanced_billing/models/bank_account_type.rb +2 -2
  107. data/lib/advanced_billing/models/bank_account_vault.rb +2 -2
  108. data/lib/advanced_billing/models/bank_account_verification.rb +2 -2
  109. data/lib/advanced_billing/models/bank_account_verification_request.rb +2 -2
  110. data/lib/advanced_billing/models/base_model.rb +2 -2
  111. data/lib/advanced_billing/models/base_refund_error.rb +2 -2
  112. data/lib/advanced_billing/models/base_string_error.rb +2 -2
  113. data/lib/advanced_billing/models/basic_date_field.rb +2 -2
  114. data/lib/advanced_billing/models/batch_job.rb +2 -2
  115. data/lib/advanced_billing/models/batch_job_response.rb +2 -2
  116. data/lib/advanced_billing/models/billing_manifest.rb +2 -2
  117. data/lib/advanced_billing/models/billing_manifest_item.rb +2 -2
  118. data/lib/advanced_billing/models/billing_manifest_line_item_kind.rb +2 -2
  119. data/lib/advanced_billing/models/billing_schedule.rb +2 -2
  120. data/lib/advanced_billing/models/breakouts.rb +2 -2
  121. data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +2 -2
  122. data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +2 -2
  123. data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +2 -2
  124. data/lib/advanced_billing/models/bulk_create_segments.rb +2 -2
  125. data/lib/advanced_billing/models/bulk_update_segments.rb +2 -2
  126. data/lib/advanced_billing/models/bulk_update_segments_item.rb +2 -2
  127. data/lib/advanced_billing/models/calendar_billing.rb +2 -2
  128. data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +2 -2
  129. data/lib/advanced_billing/models/cancellation_method.rb +2 -2
  130. data/lib/advanced_billing/models/cancellation_options.rb +2 -2
  131. data/lib/advanced_billing/models/cancellation_request.rb +2 -2
  132. data/lib/advanced_billing/models/card_type.rb +2 -2
  133. data/lib/advanced_billing/models/change_chargeback_status_event.rb +2 -2
  134. data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +2 -2
  135. data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +2 -2
  136. data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +2 -2
  137. data/lib/advanced_billing/models/change_invoice_status_event.rb +2 -2
  138. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +2 -2
  139. data/lib/advanced_billing/models/chargeback_status.rb +2 -2
  140. data/lib/advanced_billing/models/chargify_ebb.rb +2 -2
  141. data/lib/advanced_billing/models/cleanup_scope.rb +2 -2
  142. data/lib/advanced_billing/models/collection_method.rb +2 -2
  143. data/lib/advanced_billing/models/component.rb +25 -12
  144. data/lib/advanced_billing/models/component_allocation_change.rb +2 -2
  145. data/lib/advanced_billing/models/component_allocation_error_item.rb +2 -2
  146. data/lib/advanced_billing/models/component_cost_data.rb +2 -2
  147. data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +2 -2
  148. data/lib/advanced_billing/models/component_currency_price.rb +2 -2
  149. data/lib/advanced_billing/models/component_currency_prices_response.rb +2 -2
  150. data/lib/advanced_billing/models/component_custom_price.rb +2 -2
  151. data/lib/advanced_billing/models/component_kind.rb +2 -2
  152. data/lib/advanced_billing/models/component_price.rb +2 -2
  153. data/lib/advanced_billing/models/component_price_point.rb +2 -2
  154. data/lib/advanced_billing/models/component_price_point_assignment.rb +2 -2
  155. data/lib/advanced_billing/models/component_price_point_error_item.rb +2 -2
  156. data/lib/advanced_billing/models/component_price_point_item.rb +2 -2
  157. data/lib/advanced_billing/models/component_price_point_response.rb +2 -2
  158. data/lib/advanced_billing/models/component_price_points_response.rb +2 -2
  159. data/lib/advanced_billing/models/component_response.rb +2 -2
  160. data/lib/advanced_billing/models/compounding_strategy.rb +2 -2
  161. data/lib/advanced_billing/models/consolidated_invoice.rb +2 -2
  162. data/lib/advanced_billing/models/count_response.rb +2 -2
  163. data/lib/advanced_billing/models/coupon.rb +2 -2
  164. data/lib/advanced_billing/models/coupon_currency.rb +2 -2
  165. data/lib/advanced_billing/models/coupon_currency_request.rb +2 -2
  166. data/lib/advanced_billing/models/coupon_currency_response.rb +2 -2
  167. data/lib/advanced_billing/models/coupon_payload.rb +2 -2
  168. data/lib/advanced_billing/models/coupon_request.rb +8 -6
  169. data/lib/advanced_billing/models/coupon_response.rb +2 -2
  170. data/lib/advanced_billing/models/coupon_restriction.rb +2 -2
  171. data/lib/advanced_billing/models/coupon_subcodes.rb +2 -2
  172. data/lib/advanced_billing/models/coupon_subcodes_response.rb +2 -2
  173. data/lib/advanced_billing/models/coupon_usage.rb +2 -2
  174. data/lib/advanced_billing/models/create_allocation.rb +2 -2
  175. data/lib/advanced_billing/models/create_allocation_request.rb +2 -2
  176. data/lib/advanced_billing/models/create_component_price_point.rb +2 -2
  177. data/lib/advanced_billing/models/create_component_price_point_request.rb +2 -2
  178. data/lib/advanced_billing/models/create_component_price_points_request.rb +2 -2
  179. data/lib/advanced_billing/models/create_credit_note_event.rb +2 -2
  180. data/lib/advanced_billing/models/create_currency_price.rb +2 -2
  181. data/lib/advanced_billing/models/create_currency_prices_request.rb +2 -2
  182. data/lib/advanced_billing/models/create_customer.rb +2 -2
  183. data/lib/advanced_billing/models/create_customer_request.rb +2 -2
  184. data/lib/advanced_billing/models/create_debit_note_event.rb +2 -2
  185. data/lib/advanced_billing/models/create_ebb_component.rb +2 -2
  186. data/lib/advanced_billing/models/create_invoice.rb +2 -2
  187. data/lib/advanced_billing/models/create_invoice_address.rb +2 -2
  188. data/lib/advanced_billing/models/create_invoice_coupon.rb +2 -2
  189. data/lib/advanced_billing/models/create_invoice_item.rb +2 -2
  190. data/lib/advanced_billing/models/create_invoice_payment.rb +2 -2
  191. data/lib/advanced_billing/models/create_invoice_payment_application.rb +2 -2
  192. data/lib/advanced_billing/models/create_invoice_payment_request.rb +2 -2
  193. data/lib/advanced_billing/models/create_invoice_request.rb +2 -2
  194. data/lib/advanced_billing/models/create_invoice_status.rb +2 -2
  195. data/lib/advanced_billing/models/create_metadata.rb +2 -2
  196. data/lib/advanced_billing/models/create_metadata_request.rb +2 -2
  197. data/lib/advanced_billing/models/create_metafield.rb +2 -2
  198. data/lib/advanced_billing/models/create_metafields_request.rb +2 -2
  199. data/lib/advanced_billing/models/create_metered_component.rb +2 -2
  200. data/lib/advanced_billing/models/create_multi_invoice_payment.rb +2 -2
  201. data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +2 -2
  202. data/lib/advanced_billing/models/create_offer.rb +2 -2
  203. data/lib/advanced_billing/models/create_offer_component.rb +2 -2
  204. data/lib/advanced_billing/models/create_offer_request.rb +2 -2
  205. data/lib/advanced_billing/models/create_on_off_component.rb +2 -2
  206. data/lib/advanced_billing/models/create_or_update_endpoint.rb +2 -2
  207. data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +2 -2
  208. data/lib/advanced_billing/models/create_or_update_product.rb +2 -2
  209. data/lib/advanced_billing/models/create_or_update_product_request.rb +2 -2
  210. data/lib/advanced_billing/models/create_or_update_segment_price.rb +2 -2
  211. data/lib/advanced_billing/models/create_payment.rb +2 -2
  212. data/lib/advanced_billing/models/create_payment_profile.rb +2 -2
  213. data/lib/advanced_billing/models/create_payment_profile_request.rb +2 -2
  214. data/lib/advanced_billing/models/create_prepaid_component.rb +2 -2
  215. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +2 -2
  216. data/lib/advanced_billing/models/create_prepayment.rb +2 -2
  217. data/lib/advanced_billing/models/create_prepayment_method.rb +2 -2
  218. data/lib/advanced_billing/models/create_prepayment_request.rb +2 -2
  219. data/lib/advanced_billing/models/create_prepayment_response.rb +2 -2
  220. data/lib/advanced_billing/models/create_product_currency_price.rb +2 -2
  221. data/lib/advanced_billing/models/create_product_currency_prices_request.rb +2 -2
  222. data/lib/advanced_billing/models/create_product_family.rb +2 -2
  223. data/lib/advanced_billing/models/create_product_family_request.rb +2 -2
  224. data/lib/advanced_billing/models/create_product_price_point.rb +2 -2
  225. data/lib/advanced_billing/models/create_product_price_point_request.rb +2 -2
  226. data/lib/advanced_billing/models/create_quantity_based_component.rb +2 -2
  227. data/lib/advanced_billing/models/create_reason_code.rb +2 -2
  228. data/lib/advanced_billing/models/create_reason_code_request.rb +2 -2
  229. data/lib/advanced_billing/models/create_segment.rb +2 -2
  230. data/lib/advanced_billing/models/create_segment_request.rb +2 -2
  231. data/lib/advanced_billing/models/create_signup_proforma_preview_include.rb +2 -2
  232. data/lib/advanced_billing/models/create_subscription.rb +43 -25
  233. data/lib/advanced_billing/models/create_subscription_component.rb +2 -2
  234. data/lib/advanced_billing/models/create_subscription_group.rb +2 -2
  235. data/lib/advanced_billing/models/create_subscription_group_request.rb +2 -2
  236. data/lib/advanced_billing/models/create_subscription_request.rb +2 -2
  237. data/lib/advanced_billing/models/create_usage.rb +2 -2
  238. data/lib/advanced_billing/models/create_usage_request.rb +2 -2
  239. data/lib/advanced_billing/models/created_prepayment.rb +2 -2
  240. data/lib/advanced_billing/models/credit_account_balance_changed.rb +2 -2
  241. data/lib/advanced_billing/models/credit_card_attributes.rb +2 -2
  242. data/lib/advanced_billing/models/credit_card_payment_profile.rb +43 -5
  243. data/lib/advanced_billing/models/credit_card_vault.rb +2 -2
  244. data/lib/advanced_billing/models/credit_note.rb +2 -2
  245. data/lib/advanced_billing/models/credit_note_application.rb +2 -2
  246. data/lib/advanced_billing/models/credit_note_line_item.rb +2 -2
  247. data/lib/advanced_billing/models/credit_note_status.rb +2 -2
  248. data/lib/advanced_billing/models/credit_scheme.rb +2 -2
  249. data/lib/advanced_billing/models/credit_scheme_request.rb +2 -2
  250. data/lib/advanced_billing/models/credit_type.rb +2 -2
  251. data/lib/advanced_billing/models/currency_price.rb +2 -2
  252. data/lib/advanced_billing/models/currency_price_role.rb +2 -2
  253. data/lib/advanced_billing/models/currency_prices_response.rb +2 -2
  254. data/lib/advanced_billing/models/custom_field_owner.rb +2 -2
  255. data/lib/advanced_billing/models/custom_field_value_change.rb +2 -2
  256. data/lib/advanced_billing/models/customer.rb +2 -2
  257. data/lib/advanced_billing/models/customer_attributes.rb +2 -2
  258. data/lib/advanced_billing/models/customer_change.rb +2 -2
  259. data/lib/advanced_billing/models/customer_changes_preview_response.rb +2 -2
  260. data/lib/advanced_billing/models/customer_custom_fields_change.rb +2 -2
  261. data/lib/advanced_billing/models/customer_error.rb +2 -2
  262. data/lib/advanced_billing/models/customer_payer_change.rb +2 -2
  263. data/lib/advanced_billing/models/customer_response.rb +2 -2
  264. data/lib/advanced_billing/models/debit_note.rb +2 -2
  265. data/lib/advanced_billing/models/debit_note_role.rb +2 -2
  266. data/lib/advanced_billing/models/debit_note_status.rb +2 -2
  267. data/lib/advanced_billing/models/deduct_service_credit.rb +2 -2
  268. data/lib/advanced_billing/models/deduct_service_credit_request.rb +2 -2
  269. data/lib/advanced_billing/models/delayed_cancellation_response.rb +2 -2
  270. data/lib/advanced_billing/models/delete_subscription_group_response.rb +2 -2
  271. data/lib/advanced_billing/models/direction.rb +2 -2
  272. data/lib/advanced_billing/models/discount_type.rb +2 -2
  273. data/lib/advanced_billing/models/dunner_data.rb +2 -2
  274. data/lib/advanced_billing/models/dunning_step_data.rb +2 -2
  275. data/lib/advanced_billing/models/dunning_step_reached.rb +2 -2
  276. data/lib/advanced_billing/models/ebb_component.rb +2 -2
  277. data/lib/advanced_billing/models/ebb_event.rb +2 -2
  278. data/lib/advanced_billing/models/enable_webhooks_request.rb +2 -2
  279. data/lib/advanced_billing/models/enable_webhooks_response.rb +2 -2
  280. data/lib/advanced_billing/models/endpoint.rb +2 -2
  281. data/lib/advanced_billing/models/endpoint_response.rb +2 -2
  282. data/lib/advanced_billing/models/errors.rb +2 -2
  283. data/lib/advanced_billing/models/event.rb +2 -2
  284. data/lib/advanced_billing/models/event_based_billing_segment_error.rb +2 -2
  285. data/lib/advanced_billing/models/event_key.rb +2 -2
  286. data/lib/advanced_billing/models/event_response.rb +2 -2
  287. data/lib/advanced_billing/models/expiration_interval_unit.rb +2 -2
  288. data/lib/advanced_billing/models/failed_payment_action.rb +2 -2
  289. data/lib/advanced_billing/models/failed_payment_event.rb +2 -2
  290. data/lib/advanced_billing/models/failed_payment_event_data.rb +2 -2
  291. data/lib/advanced_billing/models/first_charge_type.rb +2 -2
  292. data/lib/advanced_billing/models/full_subscription_group_response.rb +2 -2
  293. data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +2 -2
  294. data/lib/advanced_billing/models/get_one_time_token_request.rb +2 -2
  295. data/lib/advanced_billing/models/group_billing.rb +2 -2
  296. data/lib/advanced_billing/models/group_settings.rb +2 -2
  297. data/lib/advanced_billing/models/group_target.rb +2 -2
  298. data/lib/advanced_billing/models/group_target_type.rb +2 -2
  299. data/lib/advanced_billing/models/group_type.rb +2 -2
  300. data/lib/advanced_billing/models/historic_usage.rb +2 -2
  301. data/lib/advanced_billing/models/include_not_null.rb +2 -2
  302. data/lib/advanced_billing/models/include_null_or_not_null.rb +2 -2
  303. data/lib/advanced_billing/models/include_option.rb +2 -2
  304. data/lib/advanced_billing/models/interval_unit.rb +2 -2
  305. data/lib/advanced_billing/models/invoice.rb +2 -2
  306. data/lib/advanced_billing/models/invoice_address.rb +2 -2
  307. data/lib/advanced_billing/models/invoice_avatax_details.rb +2 -2
  308. data/lib/advanced_billing/models/invoice_balance_item.rb +2 -2
  309. data/lib/advanced_billing/models/invoice_consolidation_level.rb +2 -2
  310. data/lib/advanced_billing/models/invoice_credit.rb +2 -2
  311. data/lib/advanced_billing/models/invoice_custom_field.rb +2 -2
  312. data/lib/advanced_billing/models/invoice_customer.rb +2 -2
  313. data/lib/advanced_billing/models/invoice_date_field.rb +2 -2
  314. data/lib/advanced_billing/models/invoice_debit.rb +2 -2
  315. data/lib/advanced_billing/models/invoice_discount.rb +2 -2
  316. data/lib/advanced_billing/models/invoice_discount_breakout.rb +2 -2
  317. data/lib/advanced_billing/models/invoice_discount_source_type.rb +2 -2
  318. data/lib/advanced_billing/models/invoice_discount_type.rb +2 -2
  319. data/lib/advanced_billing/models/invoice_display_settings.rb +2 -2
  320. data/lib/advanced_billing/models/invoice_event_payment_method.rb +2 -2
  321. data/lib/advanced_billing/models/invoice_event_type.rb +2 -2
  322. data/lib/advanced_billing/models/invoice_issued.rb +2 -2
  323. data/lib/advanced_billing/models/invoice_line_item.rb +2 -2
  324. data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +2 -2
  325. data/lib/advanced_billing/models/invoice_line_item_event_data.rb +2 -2
  326. data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +2 -2
  327. data/lib/advanced_billing/models/invoice_payer.rb +2 -2
  328. data/lib/advanced_billing/models/invoice_payer_change.rb +2 -2
  329. data/lib/advanced_billing/models/invoice_payment.rb +2 -2
  330. data/lib/advanced_billing/models/invoice_payment_application.rb +2 -2
  331. data/lib/advanced_billing/models/invoice_payment_method.rb +2 -2
  332. data/lib/advanced_billing/models/invoice_payment_method_type.rb +2 -2
  333. data/lib/advanced_billing/models/invoice_payment_type.rb +2 -2
  334. data/lib/advanced_billing/models/invoice_pre_payment.rb +2 -2
  335. data/lib/advanced_billing/models/invoice_previous_balance.rb +2 -2
  336. data/lib/advanced_billing/models/invoice_refund.rb +2 -2
  337. data/lib/advanced_billing/models/invoice_response.rb +2 -2
  338. data/lib/advanced_billing/models/invoice_role.rb +2 -2
  339. data/lib/advanced_billing/models/invoice_seller.rb +2 -2
  340. data/lib/advanced_billing/models/invoice_sort_field.rb +2 -2
  341. data/lib/advanced_billing/models/invoice_status.rb +2 -2
  342. data/lib/advanced_billing/models/invoice_tax.rb +2 -2
  343. data/lib/advanced_billing/models/invoice_tax_breakout.rb +2 -2
  344. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +2 -2
  345. data/lib/advanced_billing/models/issue_advance_invoice_request.rb +2 -2
  346. data/lib/advanced_billing/models/issue_invoice_event.rb +2 -2
  347. data/lib/advanced_billing/models/issue_invoice_event_data.rb +2 -2
  348. data/lib/advanced_billing/models/issue_invoice_request.rb +2 -2
  349. data/lib/advanced_billing/models/issue_service_credit.rb +2 -2
  350. data/lib/advanced_billing/models/issue_service_credit_request.rb +2 -2
  351. data/lib/advanced_billing/models/item_category.rb +2 -2
  352. data/lib/advanced_billing/models/item_price_point_changed.rb +2 -2
  353. data/lib/advanced_billing/models/item_price_point_data.rb +2 -2
  354. data/lib/advanced_billing/models/line_item_kind.rb +2 -2
  355. data/lib/advanced_billing/models/line_item_transaction_type.rb +2 -2
  356. data/lib/advanced_billing/models/list_components_filter.rb +2 -2
  357. data/lib/advanced_billing/models/list_components_price_points_include.rb +2 -2
  358. data/lib/advanced_billing/models/list_components_price_points_response.rb +2 -2
  359. data/lib/advanced_billing/models/list_coupons_filter.rb +2 -2
  360. data/lib/advanced_billing/models/list_credit_notes_response.rb +2 -2
  361. data/lib/advanced_billing/models/list_events_date_field.rb +2 -2
  362. data/lib/advanced_billing/models/list_invoice_events_response.rb +2 -2
  363. data/lib/advanced_billing/models/list_invoices_response.rb +2 -2
  364. data/lib/advanced_billing/models/list_metafields_response.rb +2 -2
  365. data/lib/advanced_billing/models/list_mrr_filter.rb +2 -2
  366. data/lib/advanced_billing/models/list_mrr_response.rb +2 -2
  367. data/lib/advanced_billing/models/list_mrr_response_result.rb +2 -2
  368. data/lib/advanced_billing/models/list_offers_response.rb +2 -2
  369. data/lib/advanced_billing/models/list_prepayment_date_field.rb +2 -2
  370. data/lib/advanced_billing/models/list_prepayments_filter.rb +2 -2
  371. data/lib/advanced_billing/models/list_price_points_filter.rb +2 -2
  372. data/lib/advanced_billing/models/list_product_price_points_response.rb +2 -2
  373. data/lib/advanced_billing/models/list_products_filter.rb +2 -2
  374. data/lib/advanced_billing/models/list_products_include.rb +2 -2
  375. data/lib/advanced_billing/models/list_products_price_points_include.rb +2 -2
  376. data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +2 -2
  377. data/lib/advanced_billing/models/list_proforma_invoices_response.rb +2 -2
  378. data/lib/advanced_billing/models/list_public_keys_meta.rb +2 -2
  379. data/lib/advanced_billing/models/list_public_keys_response.rb +2 -2
  380. data/lib/advanced_billing/models/list_sale_rep_item.rb +2 -2
  381. data/lib/advanced_billing/models/list_segments_filter.rb +2 -2
  382. data/lib/advanced_billing/models/list_segments_response.rb +2 -2
  383. data/lib/advanced_billing/models/list_service_credits_response.rb +82 -0
  384. data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +2 -2
  385. data/lib/advanced_billing/models/list_subscription_components_filter.rb +2 -2
  386. data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +2 -2
  387. data/lib/advanced_billing/models/list_subscription_components_include.rb +2 -2
  388. data/lib/advanced_billing/models/list_subscription_components_response.rb +2 -2
  389. data/lib/advanced_billing/models/list_subscription_components_sort.rb +2 -2
  390. data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +2 -2
  391. data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +2 -2
  392. data/lib/advanced_billing/models/list_subscription_groups_item.rb +2 -2
  393. data/lib/advanced_billing/models/list_subscription_groups_meta.rb +2 -2
  394. data/lib/advanced_billing/models/list_subscription_groups_response.rb +2 -2
  395. data/lib/advanced_billing/models/metadata.rb +2 -2
  396. data/lib/advanced_billing/models/metafield.rb +2 -2
  397. data/lib/advanced_billing/models/metafield_input.rb +2 -2
  398. data/lib/advanced_billing/models/metafield_scope.rb +2 -2
  399. data/lib/advanced_billing/models/metered_component.rb +2 -2
  400. data/lib/advanced_billing/models/metered_usage.rb +2 -2
  401. data/lib/advanced_billing/models/movement.rb +2 -2
  402. data/lib/advanced_billing/models/movement_line_item.rb +2 -2
  403. data/lib/advanced_billing/models/mrr.rb +2 -2
  404. data/lib/advanced_billing/models/mrr_movement.rb +2 -2
  405. data/lib/advanced_billing/models/mrr_response.rb +2 -2
  406. data/lib/advanced_billing/models/multi_invoice_payment.rb +2 -2
  407. data/lib/advanced_billing/models/multi_invoice_payment_response.rb +2 -2
  408. data/lib/advanced_billing/models/nested_subscription_group.rb +2 -2
  409. data/lib/advanced_billing/models/net_terms.rb +2 -2
  410. data/lib/advanced_billing/models/offer.rb +2 -2
  411. data/lib/advanced_billing/models/offer_discount.rb +2 -2
  412. data/lib/advanced_billing/models/offer_item.rb +2 -2
  413. data/lib/advanced_billing/models/offer_response.rb +2 -2
  414. data/lib/advanced_billing/models/offer_signup_page.rb +2 -2
  415. data/lib/advanced_billing/models/ok_response.rb +2 -2
  416. data/lib/advanced_billing/models/on_off_component.rb +2 -2
  417. data/lib/advanced_billing/models/organization_address.rb +2 -2
  418. data/lib/advanced_billing/models/origin_invoice.rb +2 -2
  419. data/lib/advanced_billing/models/overage_pricing.rb +2 -2
  420. data/lib/advanced_billing/models/override_subscription.rb +5 -3
  421. data/lib/advanced_billing/models/override_subscription_request.rb +2 -2
  422. data/lib/advanced_billing/models/paginated_metadata.rb +2 -2
  423. data/lib/advanced_billing/models/paid_invoice.rb +2 -2
  424. data/lib/advanced_billing/models/pause_request.rb +2 -2
  425. data/lib/advanced_billing/models/pay_pal_vault.rb +2 -2
  426. data/lib/advanced_billing/models/payer_attributes.rb +2 -2
  427. data/lib/advanced_billing/models/payer_error.rb +2 -2
  428. data/lib/advanced_billing/models/payment_collection_method_changed.rb +2 -2
  429. data/lib/advanced_billing/models/payment_for_allocation.rb +2 -2
  430. data/lib/advanced_billing/models/payment_method_apple_pay.rb +2 -2
  431. data/lib/advanced_billing/models/payment_method_bank_account.rb +2 -2
  432. data/lib/advanced_billing/models/payment_method_credit_card.rb +2 -2
  433. data/lib/advanced_billing/models/payment_method_external.rb +2 -2
  434. data/lib/advanced_billing/models/payment_method_paypal.rb +2 -2
  435. data/lib/advanced_billing/models/payment_profile_attributes.rb +2 -2
  436. data/lib/advanced_billing/models/payment_profile_response.rb +2 -2
  437. data/lib/advanced_billing/models/payment_related_events.rb +2 -2
  438. data/lib/advanced_billing/models/payment_type.rb +2 -2
  439. data/lib/advanced_billing/models/paypal_payment_profile.rb +43 -6
  440. data/lib/advanced_billing/models/pending_cancellation_change.rb +2 -2
  441. data/lib/advanced_billing/models/portal_management_link.rb +2 -2
  442. data/lib/advanced_billing/models/prepaid_configuration.rb +2 -2
  443. data/lib/advanced_billing/models/prepaid_configuration_response.rb +2 -2
  444. data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +2 -2
  445. data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +2 -2
  446. data/lib/advanced_billing/models/prepaid_usage.rb +2 -2
  447. data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +2 -2
  448. data/lib/advanced_billing/models/prepaid_usage_component.rb +2 -2
  449. data/lib/advanced_billing/models/prepayment.rb +2 -2
  450. data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +2 -2
  451. data/lib/advanced_billing/models/prepayment_method.rb +2 -2
  452. data/lib/advanced_billing/models/prepayment_response.rb +2 -2
  453. data/lib/advanced_billing/models/prepayments_response.rb +2 -2
  454. data/lib/advanced_billing/models/preview_allocations_request.rb +2 -2
  455. data/lib/advanced_billing/models/price.rb +2 -2
  456. data/lib/advanced_billing/models/price_point_type.rb +2 -2
  457. data/lib/advanced_billing/models/pricing_scheme.rb +2 -2
  458. data/lib/advanced_billing/models/product.rb +2 -2
  459. data/lib/advanced_billing/models/product_family.rb +2 -2
  460. data/lib/advanced_billing/models/product_family_response.rb +2 -2
  461. data/lib/advanced_billing/models/product_price_point.rb +2 -2
  462. data/lib/advanced_billing/models/product_price_point_errors.rb +2 -2
  463. data/lib/advanced_billing/models/product_price_point_response.rb +2 -2
  464. data/lib/advanced_billing/models/product_response.rb +2 -2
  465. data/lib/advanced_billing/models/proforma_error.rb +2 -2
  466. data/lib/advanced_billing/models/proforma_invoice.rb +2 -2
  467. data/lib/advanced_billing/models/proforma_invoice_credit.rb +2 -2
  468. data/lib/advanced_billing/models/proforma_invoice_discount.rb +2 -2
  469. data/lib/advanced_billing/models/proforma_invoice_discount_source_type.rb +2 -2
  470. data/lib/advanced_billing/models/proforma_invoice_issued.rb +2 -2
  471. data/lib/advanced_billing/models/proforma_invoice_payment.rb +2 -2
  472. data/lib/advanced_billing/models/proforma_invoice_role.rb +2 -2
  473. data/lib/advanced_billing/models/proforma_invoice_status.rb +2 -2
  474. data/lib/advanced_billing/models/proforma_invoice_tax.rb +2 -2
  475. data/lib/advanced_billing/models/proforma_invoice_tax_source_type.rb +2 -2
  476. data/lib/advanced_billing/models/proration.rb +2 -2
  477. data/lib/advanced_billing/models/public_key.rb +2 -2
  478. data/lib/advanced_billing/models/public_signup_page.rb +2 -2
  479. data/lib/advanced_billing/models/quantity_based_component.rb +2 -2
  480. data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +2 -2
  481. data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +2 -2
  482. data/lib/advanced_billing/models/reactivate_subscription_request.rb +2 -2
  483. data/lib/advanced_billing/models/reactivation_billing.rb +2 -2
  484. data/lib/advanced_billing/models/reactivation_charge.rb +2 -2
  485. data/lib/advanced_billing/models/reason_code.rb +2 -2
  486. data/lib/advanced_billing/models/reason_code_response.rb +2 -2
  487. data/lib/advanced_billing/models/record_payment_request.rb +2 -2
  488. data/lib/advanced_billing/models/record_payment_response.rb +2 -2
  489. data/lib/advanced_billing/models/recurring_scheme.rb +2 -2
  490. data/lib/advanced_billing/models/referral_code.rb +2 -2
  491. data/lib/advanced_billing/models/referral_validation_response.rb +2 -2
  492. data/lib/advanced_billing/models/refund_consolidated_invoice.rb +2 -2
  493. data/lib/advanced_billing/models/refund_invoice.rb +2 -2
  494. data/lib/advanced_billing/models/refund_invoice_event.rb +2 -2
  495. data/lib/advanced_billing/models/refund_invoice_event_data.rb +2 -2
  496. data/lib/advanced_billing/models/refund_invoice_request.rb +2 -2
  497. data/lib/advanced_billing/models/refund_prepayment.rb +2 -2
  498. data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +2 -2
  499. data/lib/advanced_billing/models/refund_prepayment_request.rb +2 -2
  500. data/lib/advanced_billing/models/refund_success.rb +2 -2
  501. data/lib/advanced_billing/models/remove_payment_event.rb +2 -2
  502. data/lib/advanced_billing/models/remove_payment_event_data.rb +2 -2
  503. data/lib/advanced_billing/models/renewal_preview.rb +2 -2
  504. data/lib/advanced_billing/models/renewal_preview_component.rb +2 -2
  505. data/lib/advanced_billing/models/renewal_preview_line_item.rb +2 -2
  506. data/lib/advanced_billing/models/renewal_preview_request.rb +2 -2
  507. data/lib/advanced_billing/models/renewal_preview_response.rb +2 -2
  508. data/lib/advanced_billing/models/replay_webhooks_request.rb +2 -2
  509. data/lib/advanced_billing/models/replay_webhooks_response.rb +2 -2
  510. data/lib/advanced_billing/models/resent_invitation.rb +2 -2
  511. data/lib/advanced_billing/models/resource_type.rb +2 -2
  512. data/lib/advanced_billing/models/restriction_type.rb +2 -2
  513. data/lib/advanced_billing/models/resume_options.rb +2 -2
  514. data/lib/advanced_billing/models/resumption_charge.rb +2 -2
  515. data/lib/advanced_billing/models/revoked_invitation.rb +2 -2
  516. data/lib/advanced_billing/models/sale_rep.rb +2 -2
  517. data/lib/advanced_billing/models/sale_rep_item_mrr.rb +2 -2
  518. data/lib/advanced_billing/models/sale_rep_settings.rb +2 -2
  519. data/lib/advanced_billing/models/sale_rep_subscription.rb +2 -2
  520. data/lib/advanced_billing/models/segment.rb +2 -2
  521. data/lib/advanced_billing/models/segment_price.rb +2 -2
  522. data/lib/advanced_billing/models/segment_response.rb +2 -2
  523. data/lib/advanced_billing/models/send_invoice_request.rb +2 -2
  524. data/lib/advanced_billing/models/service_credit.rb +2 -2
  525. data/lib/advanced_billing/models/service_credit1.rb +161 -0
  526. data/lib/advanced_billing/models/service_credit_response.rb +2 -2
  527. data/lib/advanced_billing/models/service_credit_type.rb +2 -2
  528. data/lib/advanced_billing/models/signup_proforma_preview.rb +2 -2
  529. data/lib/advanced_billing/models/signup_proforma_preview_response.rb +2 -2
  530. data/lib/advanced_billing/models/site.rb +2 -2
  531. data/lib/advanced_billing/models/site_response.rb +2 -2
  532. data/lib/advanced_billing/models/site_statistics.rb +2 -2
  533. data/lib/advanced_billing/models/site_summary.rb +2 -2
  534. data/lib/advanced_billing/models/snap_day.rb +2 -2
  535. data/lib/advanced_billing/models/sorting_direction.rb +2 -2
  536. data/lib/advanced_billing/models/subscription.rb +2 -2
  537. data/lib/advanced_billing/models/subscription_component.rb +2 -2
  538. data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +2 -2
  539. data/lib/advanced_billing/models/subscription_component_response.rb +2 -2
  540. data/lib/advanced_billing/models/subscription_component_subscription.rb +2 -2
  541. data/lib/advanced_billing/models/subscription_custom_price.rb +2 -2
  542. data/lib/advanced_billing/models/subscription_date_field.rb +2 -2
  543. data/lib/advanced_billing/models/subscription_filter.rb +2 -2
  544. data/lib/advanced_billing/models/subscription_group.rb +2 -2
  545. data/lib/advanced_billing/models/subscription_group_balances.rb +2 -2
  546. data/lib/advanced_billing/models/subscription_group_bank_account.rb +2 -2
  547. data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +2 -2
  548. data/lib/advanced_billing/models/subscription_group_credit_card.rb +63 -61
  549. data/lib/advanced_billing/models/subscription_group_customer.rb +2 -2
  550. data/lib/advanced_billing/models/subscription_group_include.rb +2 -2
  551. data/lib/advanced_billing/models/subscription_group_item.rb +2 -2
  552. data/lib/advanced_billing/models/subscription_group_members_array_error.rb +2 -2
  553. data/lib/advanced_billing/models/subscription_group_payment_profile.rb +2 -2
  554. data/lib/advanced_billing/models/subscription_group_prepayment.rb +2 -2
  555. data/lib/advanced_billing/models/subscription_group_prepayment_method.rb +2 -2
  556. data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +2 -2
  557. data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +2 -2
  558. data/lib/advanced_billing/models/subscription_group_response.rb +2 -2
  559. data/lib/advanced_billing/models/subscription_group_signup.rb +2 -2
  560. data/lib/advanced_billing/models/subscription_group_signup_component.rb +2 -2
  561. data/lib/advanced_billing/models/subscription_group_signup_error.rb +2 -2
  562. data/lib/advanced_billing/models/subscription_group_signup_event_data.rb +2 -2
  563. data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +2 -2
  564. data/lib/advanced_billing/models/subscription_group_signup_item.rb +2 -2
  565. data/lib/advanced_billing/models/subscription_group_signup_request.rb +2 -2
  566. data/lib/advanced_billing/models/subscription_group_signup_response.rb +2 -2
  567. data/lib/advanced_billing/models/subscription_group_single_error.rb +2 -2
  568. data/lib/advanced_billing/models/subscription_group_subscription_error.rb +2 -2
  569. data/lib/advanced_billing/models/subscription_group_update_error.rb +2 -2
  570. data/lib/advanced_billing/models/subscription_groups_list_include.rb +2 -2
  571. data/lib/advanced_billing/models/subscription_include.rb +2 -2
  572. data/lib/advanced_billing/models/subscription_included_coupon.rb +2 -2
  573. data/lib/advanced_billing/models/subscription_list_date_field.rb +2 -2
  574. data/lib/advanced_billing/models/subscription_list_include.rb +2 -2
  575. data/lib/advanced_billing/models/subscription_migration_preview.rb +2 -2
  576. data/lib/advanced_billing/models/subscription_migration_preview_options.rb +2 -2
  577. data/lib/advanced_billing/models/subscription_migration_preview_request.rb +2 -2
  578. data/lib/advanced_billing/models/subscription_migration_preview_response.rb +2 -2
  579. data/lib/advanced_billing/models/subscription_mrr.rb +2 -2
  580. data/lib/advanced_billing/models/subscription_mrr_breakout.rb +2 -2
  581. data/lib/advanced_billing/models/subscription_mrr_response.rb +2 -2
  582. data/lib/advanced_billing/models/subscription_note.rb +2 -2
  583. data/lib/advanced_billing/models/subscription_note_response.rb +2 -2
  584. data/lib/advanced_billing/models/subscription_preview.rb +2 -2
  585. data/lib/advanced_billing/models/subscription_preview_response.rb +2 -2
  586. data/lib/advanced_billing/models/subscription_product_change.rb +2 -2
  587. data/lib/advanced_billing/models/subscription_product_migration.rb +2 -2
  588. data/lib/advanced_billing/models/subscription_product_migration_request.rb +2 -2
  589. data/lib/advanced_billing/models/subscription_purge_type.rb +2 -2
  590. data/lib/advanced_billing/models/subscription_response.rb +2 -2
  591. data/lib/advanced_billing/models/subscription_sort.rb +2 -2
  592. data/lib/advanced_billing/models/subscription_state.rb +2 -2
  593. data/lib/advanced_billing/models/subscription_state_change.rb +2 -2
  594. data/lib/advanced_billing/models/subscription_state_filter.rb +2 -2
  595. data/lib/advanced_billing/models/tax_configuration.rb +2 -2
  596. data/lib/advanced_billing/models/tax_configuration_kind.rb +2 -2
  597. data/lib/advanced_billing/models/tax_destination_address.rb +2 -2
  598. data/lib/advanced_billing/models/too_many_management_link_requests.rb +2 -2
  599. data/lib/advanced_billing/models/update_allocation_expiration_date.rb +2 -2
  600. data/lib/advanced_billing/models/update_component.rb +2 -2
  601. data/lib/advanced_billing/models/update_component_price_point.rb +2 -2
  602. data/lib/advanced_billing/models/update_component_price_point_request.rb +2 -2
  603. data/lib/advanced_billing/models/update_component_request.rb +2 -2
  604. data/lib/advanced_billing/models/update_coupon_currency.rb +2 -2
  605. data/lib/advanced_billing/models/update_currency_price.rb +2 -2
  606. data/lib/advanced_billing/models/update_currency_prices_request.rb +2 -2
  607. data/lib/advanced_billing/models/update_customer.rb +2 -2
  608. data/lib/advanced_billing/models/update_customer_request.rb +2 -2
  609. data/lib/advanced_billing/models/update_metadata.rb +2 -2
  610. data/lib/advanced_billing/models/update_metadata_request.rb +2 -2
  611. data/lib/advanced_billing/models/update_metafield.rb +2 -2
  612. data/lib/advanced_billing/models/update_metafields_request.rb +2 -2
  613. data/lib/advanced_billing/models/update_payment_profile.rb +2 -2
  614. data/lib/advanced_billing/models/update_payment_profile_request.rb +2 -2
  615. data/lib/advanced_billing/models/update_price.rb +2 -2
  616. data/lib/advanced_billing/models/update_product_price_point.rb +2 -2
  617. data/lib/advanced_billing/models/update_product_price_point_request.rb +2 -2
  618. data/lib/advanced_billing/models/update_reason_code.rb +2 -2
  619. data/lib/advanced_billing/models/update_reason_code_request.rb +2 -2
  620. data/lib/advanced_billing/models/update_segment.rb +2 -2
  621. data/lib/advanced_billing/models/update_segment_request.rb +2 -2
  622. data/lib/advanced_billing/models/update_subscription.rb +108 -27
  623. data/lib/advanced_billing/models/update_subscription_component.rb +2 -2
  624. data/lib/advanced_billing/models/update_subscription_group.rb +2 -2
  625. data/lib/advanced_billing/models/update_subscription_group_request.rb +2 -2
  626. data/lib/advanced_billing/models/update_subscription_note.rb +2 -2
  627. data/lib/advanced_billing/models/update_subscription_note_request.rb +2 -2
  628. data/lib/advanced_billing/models/update_subscription_request.rb +2 -2
  629. data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +2 -2
  630. data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +2 -2
  631. data/lib/advanced_billing/models/usage.rb +2 -2
  632. data/lib/advanced_billing/models/usage_response.rb +2 -2
  633. data/lib/advanced_billing/models/void_invoice.rb +2 -2
  634. data/lib/advanced_billing/models/void_invoice_event.rb +2 -2
  635. data/lib/advanced_billing/models/void_invoice_event_data.rb +2 -2
  636. data/lib/advanced_billing/models/void_invoice_request.rb +2 -2
  637. data/lib/advanced_billing/models/void_remainder_event.rb +2 -2
  638. data/lib/advanced_billing/models/void_remainder_event_data.rb +2 -2
  639. data/lib/advanced_billing/models/webhook.rb +2 -2
  640. data/lib/advanced_billing/models/webhook_order.rb +2 -2
  641. data/lib/advanced_billing/models/webhook_response.rb +2 -2
  642. data/lib/advanced_billing/models/webhook_status.rb +2 -2
  643. data/lib/advanced_billing/models/webhook_subscription.rb +2 -2
  644. data/lib/advanced_billing/utilities/date_time_helper.rb +2 -2
  645. data/lib/advanced_billing/utilities/file_wrapper.rb +2 -2
  646. data/lib/advanced_billing/utilities/union_type_lookup.rb +2 -2
  647. data/lib/advanced_billing.rb +5 -3
  648. metadata +6 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 551586ad662e49e7a307d50d9a2392245b774d01363dc5d43c2642a8059bfdd7
4
- data.tar.gz: 06f750ad290bd25a0335fe88e5537e56e89dc31e7d3b3e4d6ae44d55fc42645f
3
+ metadata.gz: 6e794dec4e6e0ed8d205c57b25cd86308e63832c61276d5199c30e771380f982
4
+ data.tar.gz: 51cdb3baf82c47a6517215e6d13b4fcc4f9e5b3c0796e2abebb83904de14202b
5
5
  SHA512:
6
- metadata.gz: d8886d5e8cfc76389dd5fcec1093984ec2d4a0e826ee4c55c0d46cd92ee62d19c72ea87e2fc12c9115ee42fe7d17d1307c5a7d3309d52fe748bd70bf5c29c84c
7
- data.tar.gz: bc55cb35c5e74108f1c257319585665158690efc67e501a9b12ea8ce4a0f5f7699e99d47ad5681219084ffee5bc3253ac7b019137033698a2b26ebdd61a9501b
6
+ metadata.gz: e425f11949f8727347d53e007398adb921c065f4b95f273b45e1111e784726c6f00d6c3db2369c68a14055c6753678ba0b36bf335cdf1c240ede45f3e895773e
7
+ data.tar.gz: 1b10ad59202050b50634794e3e6d2244146093a1fabb3a3231d70ce172c5ed014071ed5679f3c18e7f8542b6ee000e1e4643f20524a58817974406af15d06ad2
data/README.md CHANGED
@@ -4,22 +4,21 @@
4
4
  ## Introduction
5
5
 
6
6
  Maxio Advanced Billing (formerly Chargify) provides an HTTP-based API that conforms to the principles of REST.
7
- One of the many reasons to use Advanced Billing is the immense feature set and surrounding community [client libraries](page:development-tools/client-libraries).
8
- The Maxio API returns JSON responses as the primary and recommended format, but XML is also provided as a backwards compatible option for Merchants who require it.
7
+ One of the many reasons to use Advanced Billing is the immense feature set and [client libraries](page:development-tools/client-libraries).
8
+ The Maxio API returns JSON responses as the primary and recommended format, but XML is also provided as a backwards compatible option for merchants who require it.
9
9
 
10
10
  ### Steps to make your first Maxio Advanced Billing API call
11
11
 
12
12
  1. [Sign-up](https://app.chargify.com/signup/maxio-billing-sandbox) or [log-in](https://app.chargify.com/login.html) to your [test site](https://maxio.zendesk.com/hc/en-us/articles/24250712113165-Testing-Overview) account.
13
- 2. [Setup and configure authentication](https://maxio.zendesk.com/hc/en-us/articles/24294819360525-API-Keys) credentials.
14
- 3. Submit your API request and try it out.
15
- 4. Verify results through response.
16
- 5. Test our integrations.
13
+ 2. [Setup authentication](https://maxio.zendesk.com/hc/en-us/articles/24294819360525-API-Keys) credentials.
14
+ 3. [Submit an API request and verify the response](page:development-tools/client-libraries#make-your-first-maxio-advanced-billing-api-request).
15
+ 4. Test the Advanced Billing [integrations](https://www.maxio.com/integrations).
17
16
 
18
- We strongly suggest exploring the developer portal, our [integrations](https://www.maxio.com/integrations) and the API guide, as well as the entire set of application-based documentation to aid in your discovery of the product.
17
+ Next, you can explore [authentication methods](page:introduction/authentication), [basic concepts](page:introduction/basic-concepts/connected-sites) for interacting with Advanced Billing via the API, and the entire set of [application-based documentation](https://docs.maxio.com/hc/en-us) to aid in your discovery of the product.
19
18
 
20
- #### Example
19
+ #### Request Example
21
20
 
22
- The following example uses the curl command-line tool to execute API requests.
21
+ The following example uses the curl command-line tool to make an API request.
23
22
 
24
23
  **Request**
25
24
 
@@ -30,37 +29,37 @@ curl -u <api_key>:x -H Accept:application/json -H Content-Type:application/json
30
29
  Install the gem from the command line:
31
30
 
32
31
  ```bash
33
- gem install maxio-advanced-billing-sdk -v 6.1.0
32
+ gem install maxio-advanced-billing-sdk -v 7.0.0
34
33
  ```
35
34
 
36
35
  Or add the gem to your Gemfile and run `bundle`:
37
36
 
38
37
  ```ruby
39
- gem 'maxio-advanced-billing-sdk', '6.1.0'
38
+ gem 'maxio-advanced-billing-sdk', '7.0.0'
40
39
  ```
41
40
 
42
- For additional gem details, see the [RubyGems page for the maxio-advanced-billing-sdk gem](https://rubygems.org/gems/maxio-advanced-billing-sdk/versions/6.1.0).
41
+ For additional gem details, see the [RubyGems page for the maxio-advanced-billing-sdk gem](https://rubygems.org/gems/maxio-advanced-billing-sdk/versions/7.0.0).
43
42
 
44
43
  ## Initialize the API Client
45
44
 
46
- **_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/client.md)
45
+ **_Note:_** Documentation for the client can be found [here.](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/client.md)
47
46
 
48
47
  The following parameters are configurable for the API Client:
49
48
 
50
49
  | Parameter | Type | Description |
51
50
  | --- | --- | --- |
52
- | `site` | `String` | The subdomain for your Advanced Billing site.<br>*Default*: `'subdomain'` |
53
- | `environment` | `Environment` | The API environment. <br> **Default: `Environment.US`** |
54
- | `connection` | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
55
- | `adapter` | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
56
- | `timeout` | `Float` | The value to use for connection timeout. <br> **Default: 120** |
57
- | `max_retries` | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
58
- | `retry_interval` | `Float` | Pause in seconds between retries. <br> **Default: 1** |
59
- | `backoff_factor` | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
60
- | `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
61
- | `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
62
- | `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
63
- | `basic_auth_credentials` | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/auth/basic-authentication.md) | The credential object for Basic Authentication |
51
+ | site | `String` | The subdomain for your Advanced Billing site.<br>*Default*: `'subdomain'` |
52
+ | environment | `Environment` | The API environment. <br> **Default: `Environment.US`** |
53
+ | connection | `Faraday::Connection` | The Faraday connection object passed by the SDK user for making requests |
54
+ | adapter | `Faraday::Adapter` | The Faraday adapter object passed by the SDK user for performing http requests |
55
+ | timeout | `Float` | The value to use for connection timeout. <br> **Default: 120** |
56
+ | max_retries | `Integer` | The number of times to retry an endpoint call if it fails. <br> **Default: 0** |
57
+ | retry_interval | `Float` | Pause in seconds between retries. <br> **Default: 1** |
58
+ | backoff_factor | `Float` | The amount to multiply each successive retry's interval amount by in order to provide backoff. <br> **Default: 2** |
59
+ | retry_statuses | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
60
+ | retry_methods | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
61
+ | http_callback | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
62
+ | basic_auth_credentials | [`BasicAuthCredentials`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/auth/basic-authentication.md) | The credential object for Basic Authentication |
64
63
 
65
64
  The API client can be initialized as follows:
66
65
 
@@ -90,46 +89,52 @@ The SDK can be configured to use a different environment for making API calls. A
90
89
 
91
90
  This API uses the following authentication schemes.
92
91
 
93
- * [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/auth/basic-authentication.md)
92
+ * [`BasicAuth (Basic Authentication)`](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/auth/basic-authentication.md)
94
93
 
95
94
  ## List of APIs
96
95
 
97
- * [API Exports](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/api-exports.md)
98
- * [Advance Invoice](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/advance-invoice.md)
99
- * [Billing Portal](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/billing-portal.md)
100
- * [Component Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/component-price-points.md)
101
- * [Custom Fields](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/custom-fields.md)
102
- * [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/events-based-billing-segments.md)
103
- * [Payment Profiles](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/payment-profiles.md)
104
- * [Product Families](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/product-families.md)
105
- * [Product Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/product-price-points.md)
106
- * [Proforma Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/proforma-invoices.md)
107
- * [Reason Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/reason-codes.md)
108
- * [Referral Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/referral-codes.md)
109
- * [Sales Commissions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/sales-commissions.md)
110
- * [Subscription Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-components.md)
111
- * [Subscription Groups](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-groups.md)
112
- * [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-group-invoice-account.md)
113
- * [Subscription Group Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-group-status.md)
114
- * [Subscription Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-invoice-account.md)
115
- * [Subscription Notes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-notes.md)
116
- * [Subscription Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-products.md)
117
- * [Subscription Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscription-status.md)
118
- * [Coupons](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/coupons.md)
119
- * [Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/components.md)
120
- * [Customers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/customers.md)
121
- * [Events](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/events.md)
122
- * [Insights](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/insights.md)
123
- * [Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/invoices.md)
124
- * [Offers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/offers.md)
125
- * [Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/products.md)
126
- * [Sites](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/sites.md)
127
- * [Subscriptions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/subscriptions.md)
128
- * [Webhooks](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/controllers/webhooks.md)
129
-
130
- ## Classes Documentation
131
-
132
- * [Utility Classes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/utility-classes.md)
133
- * [HttpResponse](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/http-response.md)
134
- * [HttpRequest](https://www.github.com/maxio-com/ab-ruby-sdk/tree/6.1.0/doc/http-request.md)
96
+ * [API Exports](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/api-exports.md)
97
+ * [Advance Invoice](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/advance-invoice.md)
98
+ * [Billing Portal](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/billing-portal.md)
99
+ * [Component Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/component-price-points.md)
100
+ * [Custom Fields](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/custom-fields.md)
101
+ * [Events-Based Billing Segments](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/events-based-billing-segments.md)
102
+ * [Payment Profiles](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/payment-profiles.md)
103
+ * [Product Families](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/product-families.md)
104
+ * [Product Price Points](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/product-price-points.md)
105
+ * [Proforma Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/proforma-invoices.md)
106
+ * [Reason Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/reason-codes.md)
107
+ * [Referral Codes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/referral-codes.md)
108
+ * [Sales Commissions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/sales-commissions.md)
109
+ * [Subscription Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-components.md)
110
+ * [Subscription Groups](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-groups.md)
111
+ * [Subscription Group Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-group-invoice-account.md)
112
+ * [Subscription Group Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-group-status.md)
113
+ * [Subscription Invoice Account](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-invoice-account.md)
114
+ * [Subscription Notes](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-notes.md)
115
+ * [Subscription Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-products.md)
116
+ * [Subscription Status](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscription-status.md)
117
+ * [Coupons](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/coupons.md)
118
+ * [Components](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/components.md)
119
+ * [Customers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/customers.md)
120
+ * [Events](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/events.md)
121
+ * [Insights](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/insights.md)
122
+ * [Invoices](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/invoices.md)
123
+ * [Offers](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/offers.md)
124
+ * [Products](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/products.md)
125
+ * [Sites](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/sites.md)
126
+ * [Subscriptions](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/subscriptions.md)
127
+ * [Webhooks](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/controllers/webhooks.md)
128
+
129
+ ## SDK Infrastructure
130
+
131
+ ### HTTP
132
+
133
+ * [HttpResponse](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/http-response.md)
134
+ * [HttpRequest](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/http-request.md)
135
+
136
+ ### Utilities
137
+
138
+ * [ApiHelper](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/api-helper.md)
139
+ * [DateTimeHelper](https://www.github.com/maxio-com/ab-ruby-sdk/tree/7.0.0/doc/date-time-helper.md)
135
140
 
@@ -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
  # API utility class
@@ -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
  # advanced_billing client class.
@@ -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
  # An enum for SDK environments.
@@ -40,7 +40,6 @@ module AdvancedBilling
40
40
  environment: Environment::US, site: 'subdomain',
41
41
  basic_auth_credentials: nil
42
42
  )
43
-
44
43
  super connection: connection, adapter: adapter, timeout: timeout,
45
44
  max_retries: max_retries, retry_interval: retry_interval,
46
45
  backoff_factor: backoff_factor, retry_statuses: retry_statuses,
@@ -56,7 +55,7 @@ module AdvancedBilling
56
55
  @basic_auth_credentials = basic_auth_credentials
57
56
 
58
57
  # Initializing Basic Authentication credentials with the provided auth parameters
59
- @basic_auth_credentials = basic_auth_credentials
58
+ @basic_auth_credentials = basic_auth_credentials
60
59
 
61
60
  # The Http Client to use for making requests.
62
61
  set_http_client CoreLibrary::FaradayClient.new(self)
@@ -77,7 +76,7 @@ module AdvancedBilling
77
76
  http_callback ||= self.http_callback
78
77
  environment ||= self.environment
79
78
  site ||= self.site
80
- basic_auth_credentials ||= basic_auth_credentials
79
+ basic_auth_credentials ||= self.basic_auth_credentials
81
80
 
82
81
  Configuration.new(connection: connection, adapter: adapter,
83
82
  timeout: timeout, max_retries: max_retries,
@@ -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
  # AdvanceInvoiceController
@@ -25,11 +25,12 @@ module AdvancedBilling
25
25
  # generate it.
26
26
  # @param [Integer] subscription_id Required parameter: The Chargify id of
27
27
  # the subscription
28
- # @param [IssueAdvanceInvoiceRequest] body Optional parameter: Example:
29
- # @return [Invoice] response from the API call.
28
+ # @param [IssueAdvanceInvoiceRequest] body Optional parameter: TODO: type
29
+ # description here
30
+ # @return [Invoice] Response from the API call.
30
31
  def issue_advance_invoice(subscription_id,
31
32
  body: nil)
32
- new_api_call_builder
33
+ @api_call
33
34
  .request(new_request_builder(HttpMethodEnum::POST,
34
35
  '/subscriptions/{subscription_id}/advance_invoice/issue.json',
35
36
  Server::PRODUCTION)
@@ -59,9 +60,9 @@ module AdvancedBilling
59
60
  # advance invoice per subscription per billing cycle.
60
61
  # @param [Integer] subscription_id Required parameter: The Chargify id of
61
62
  # the subscription
62
- # @return [Invoice] response from the API call.
63
+ # @return [Invoice] Response from the API call.
63
64
  def read_advance_invoice(subscription_id)
64
- new_api_call_builder
65
+ @api_call
65
66
  .request(new_request_builder(HttpMethodEnum::GET,
66
67
  '/subscriptions/{subscription_id}/advance_invoice.json',
67
68
  Server::PRODUCTION)
@@ -87,11 +88,12 @@ module AdvancedBilling
87
88
  # the impact of voiding, please [see our help docs]($m/Invoice).
88
89
  # @param [Integer] subscription_id Required parameter: The Chargify id of
89
90
  # the subscription
90
- # @param [VoidInvoiceRequest] body Optional parameter: Example:
91
- # @return [Invoice] response from the API call.
91
+ # @param [VoidInvoiceRequest] body Optional parameter: TODO: type
92
+ # description here
93
+ # @return [Invoice] Response from the API call.
92
94
  def void_advance_invoice(subscription_id,
93
95
  body: nil)
94
- new_api_call_builder
96
+ @api_call
95
97
  .request(new_request_builder(HttpMethodEnum::POST,
96
98
  '/subscriptions/{subscription_id}/advance_invoice/void.json',
97
99
  Server::PRODUCTION)
@@ -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
  # APIExportsController
@@ -24,9 +24,9 @@ module AdvancedBilling
24
24
  # passing in a page parameter. Retrieve the next page by adding ?page=2 to
25
25
  # the query string. If there are no results to return, then an empty result
26
26
  # set will be returned. Use in query `page=1`.
27
- # @return [Array[ProformaInvoice]] response from the API call.
27
+ # @return [Array[ProformaInvoice]] Response from the API call.
28
28
  def list_exported_proforma_invoices(options = {})
29
- new_api_call_builder
29
+ @api_call
30
30
  .request(new_request_builder(HttpMethodEnum::GET,
31
31
  '/api_exports/proforma_invoices/{batch_id}/rows.json',
32
32
  Server::PRODUCTION)
@@ -65,9 +65,9 @@ module AdvancedBilling
65
65
  # passing in a page parameter. Retrieve the next page by adding ?page=2 to
66
66
  # the query string. If there are no results to return, then an empty result
67
67
  # set will be returned. Use in query `page=1`.
68
- # @return [Array[Invoice]] response from the API call.
68
+ # @return [Array[Invoice]] Response from the API call.
69
69
  def list_exported_invoices(options = {})
70
- new_api_call_builder
70
+ @api_call
71
71
  .request(new_request_builder(HttpMethodEnum::GET,
72
72
  '/api_exports/invoices/{batch_id}/rows.json',
73
73
  Server::PRODUCTION)
@@ -106,9 +106,9 @@ module AdvancedBilling
106
106
  # passing in a page parameter. Retrieve the next page by adding ?page=2 to
107
107
  # the query string. If there are no results to return, then an empty result
108
108
  # set will be returned. Use in query `page=1`.
109
- # @return [Array[Subscription]] response from the API call.
109
+ # @return [Array[Subscription]] Response from the API call.
110
110
  def list_exported_subscriptions(options = {})
111
- new_api_call_builder
111
+ @api_call
112
112
  .request(new_request_builder(HttpMethodEnum::GET,
113
113
  '/api_exports/subscriptions/{batch_id}/rows.json',
114
114
  Server::PRODUCTION)
@@ -131,9 +131,9 @@ module AdvancedBilling
131
131
 
132
132
  # This API creates a proforma invoices export and returns a batchjob object.
133
133
  # It is only available for Relationship Invoicing architecture.
134
- # @return [BatchJobResponse] response from the API call.
134
+ # @return [BatchJobResponse] Response from the API call.
135
135
  def export_proforma_invoices
136
- new_api_call_builder
136
+ @api_call
137
137
  .request(new_request_builder(HttpMethodEnum::POST,
138
138
  '/api_exports/proforma_invoices.json',
139
139
  Server::PRODUCTION)
@@ -153,9 +153,9 @@ module AdvancedBilling
153
153
  end
154
154
 
155
155
  # This API creates an invoices export and returns a batchjob object.
156
- # @return [BatchJobResponse] response from the API call.
156
+ # @return [BatchJobResponse] Response from the API call.
157
157
  def export_invoices
158
- new_api_call_builder
158
+ @api_call
159
159
  .request(new_request_builder(HttpMethodEnum::POST,
160
160
  '/api_exports/invoices.json',
161
161
  Server::PRODUCTION)
@@ -175,9 +175,9 @@ module AdvancedBilling
175
175
  end
176
176
 
177
177
  # This API creates a subscriptions export and returns a batchjob object.
178
- # @return [BatchJobResponse] response from the API call.
178
+ # @return [BatchJobResponse] Response from the API call.
179
179
  def export_subscriptions
180
- new_api_call_builder
180
+ @api_call
181
181
  .request(new_request_builder(HttpMethodEnum::POST,
182
182
  '/api_exports/subscriptions.json',
183
183
  Server::PRODUCTION)
@@ -195,9 +195,9 @@ module AdvancedBilling
195
195
 
196
196
  # This API returns a batchjob object for proforma invoices export.
197
197
  # @param [String] batch_id Required parameter: Id of a Batch Job.
198
- # @return [BatchJobResponse] response from the API call.
198
+ # @return [BatchJobResponse] Response from the API call.
199
199
  def read_proforma_invoices_export(batch_id)
200
- new_api_call_builder
200
+ @api_call
201
201
  .request(new_request_builder(HttpMethodEnum::GET,
202
202
  '/api_exports/proforma_invoices/{batch_id}.json',
203
203
  Server::PRODUCTION)
@@ -217,9 +217,9 @@ module AdvancedBilling
217
217
 
218
218
  # This API returns a batchjob object for invoices export.
219
219
  # @param [String] batch_id Required parameter: Id of a Batch Job.
220
- # @return [BatchJobResponse] response from the API call.
220
+ # @return [BatchJobResponse] Response from the API call.
221
221
  def read_invoices_export(batch_id)
222
- new_api_call_builder
222
+ @api_call
223
223
  .request(new_request_builder(HttpMethodEnum::GET,
224
224
  '/api_exports/invoices/{batch_id}.json',
225
225
  Server::PRODUCTION)
@@ -239,9 +239,9 @@ module AdvancedBilling
239
239
 
240
240
  # This API returns a batchjob object for subscriptions export.
241
241
  # @param [String] batch_id Required parameter: Id of a Batch Job.
242
- # @return [BatchJobResponse] response from the API call.
242
+ # @return [BatchJobResponse] Response from the API call.
243
243
  def read_subscriptions_export(batch_id)
244
- new_api_call_builder
244
+ @api_call
245
245
  .request(new_request_builder(HttpMethodEnum::GET,
246
246
  '/api_exports/subscriptions/{batch_id}.json',
247
247
  Server::PRODUCTION)
@@ -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
  # BaseController.
@@ -10,7 +10,7 @@ module AdvancedBilling
10
10
  attr_accessor :config, :http_call_back
11
11
 
12
12
  def self.user_agent
13
- 'AB SDK Ruby:6.1.0 on OS {os-info}'
13
+ 'AB SDK Ruby:7.0.0 on OS {os-info}'
14
14
  end
15
15
 
16
16
  def self.user_agent_parameters
@@ -36,13 +36,7 @@ module AdvancedBilling
36
36
  @global_configuration = global_configuration
37
37
  @config = @global_configuration.client_configuration
38
38
  @http_call_back = @config.http_callback
39
- @api_call = ApiCall.new(@global_configuration)
40
- end
41
-
42
- # Creates a new builder for the Api Call instance.
43
- # @return [ApiCall] The instance of ApiCall.
44
- def new_api_call_builder
45
- @api_call.new_builder
39
+ @api_call = ApiCall.new(@global_configuration)
46
40
  end
47
41
 
48
42
  # Creates a new instance of the request builder.
@@ -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
  # BillingPortalController
@@ -37,10 +37,10 @@ module AdvancedBilling
37
37
  # @param [AutoInvite] auto_invite Optional parameter: When set to 1, an
38
38
  # Invitation email will be sent to the Customer. When set to 0, or not sent,
39
39
  # an email will not be sent. Use in query: `auto_invite=1`.
40
- # @return [CustomerResponse] response from the API call.
40
+ # @return [CustomerResponse] Response from the API call.
41
41
  def enable_billing_portal_for_customer(customer_id,
42
42
  auto_invite: nil)
43
- new_api_call_builder
43
+ @api_call
44
44
  .request(new_request_builder(HttpMethodEnum::POST,
45
45
  '/portal/customers/{customer_id}/enable.json',
46
46
  Server::PRODUCTION)
@@ -74,9 +74,9 @@ module AdvancedBilling
74
74
  # further Management URL requests (with a response code `429`)
75
75
  # @param [Integer] customer_id Required parameter: The Chargify id of the
76
76
  # customer
77
- # @return [PortalManagementLink] response from the API call.
77
+ # @return [PortalManagementLink] Response from the API call.
78
78
  def read_billing_portal_link(customer_id)
79
- new_api_call_builder
79
+ @api_call
80
80
  .request(new_request_builder(HttpMethodEnum::GET,
81
81
  '/portal/customers/{customer_id}/management_link.json',
82
82
  Server::PRODUCTION)
@@ -112,9 +112,9 @@ module AdvancedBilling
112
112
  # This endpoint will only return a JSON response.
113
113
  # @param [Integer] customer_id Required parameter: The Chargify id of the
114
114
  # customer
115
- # @return [ResentInvitation] response from the API call.
115
+ # @return [ResentInvitation] Response from the API call.
116
116
  def resend_billing_portal_invitation(customer_id)
117
- new_api_call_builder
117
+ @api_call
118
118
  .request(new_request_builder(HttpMethodEnum::POST,
119
119
  '/portal/customers/{customer_id}/invitations/invite.json',
120
120
  Server::PRODUCTION)
@@ -143,9 +143,9 @@ module AdvancedBilling
143
143
  # This endpoint will only return a JSON response.
144
144
  # @param [Integer] customer_id Required parameter: The Chargify id of the
145
145
  # customer
146
- # @return [RevokedInvitation] response from the API call.
146
+ # @return [RevokedInvitation] Response from the API call.
147
147
  def revoke_billing_portal_access(customer_id)
148
- new_api_call_builder
148
+ @api_call
149
149
  .request(new_request_builder(HttpMethodEnum::DELETE,
150
150
  '/portal/customers/{customer_id}/invitations/revoke.json',
151
151
  Server::PRODUCTION)