maxio-advanced-billing-sdk 5.2.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (530) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +48 -50
  3. data/lib/advanced_billing/client.rb +3 -4
  4. data/lib/advanced_billing/configuration.rb +21 -24
  5. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +3 -3
  6. data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
  7. data/lib/advanced_billing/controllers/base_controller.rb +1 -1
  8. data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
  9. data/lib/advanced_billing/controllers/component_price_points_controller.rb +34 -20
  10. data/lib/advanced_billing/controllers/components_controller.rb +12 -12
  11. data/lib/advanced_billing/controllers/coupons_controller.rb +45 -27
  12. data/lib/advanced_billing/controllers/custom_fields_controller.rb +9 -9
  13. data/lib/advanced_billing/controllers/customers_controller.rb +7 -7
  14. data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
  15. data/lib/advanced_billing/controllers/events_controller.rb +26 -9
  16. data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
  17. data/lib/advanced_billing/controllers/invoices_controller.rb +17 -17
  18. data/lib/advanced_billing/controllers/offers_controller.rb +10 -6
  19. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
  20. data/lib/advanced_billing/controllers/product_families_controller.rb +22 -20
  21. data/lib/advanced_billing/controllers/product_price_points_controller.rb +14 -11
  22. data/lib/advanced_billing/controllers/products_controller.rb +6 -6
  23. data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +9 -9
  24. data/lib/advanced_billing/controllers/reason_codes_controller.rb +17 -9
  25. data/lib/advanced_billing/controllers/referral_codes_controller.rb +1 -1
  26. data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
  27. data/lib/advanced_billing/controllers/sites_controller.rb +3 -3
  28. data/lib/advanced_billing/controllers/subscription_components_controller.rb +21 -31
  29. data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
  30. data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +4 -4
  31. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +9 -9
  32. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +6 -6
  33. data/lib/advanced_billing/controllers/subscription_notes_controller.rb +20 -8
  34. data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
  35. data/lib/advanced_billing/controllers/subscription_status_controller.rb +20 -12
  36. data/lib/advanced_billing/controllers/subscriptions_controller.rb +40 -17
  37. data/lib/advanced_billing/controllers/webhooks_controller.rb +6 -6
  38. data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +32 -0
  39. data/lib/advanced_billing/models/account_balance.rb +7 -7
  40. data/lib/advanced_billing/models/account_balances.rb +7 -7
  41. data/lib/advanced_billing/models/ach_agreement.rb +7 -7
  42. data/lib/advanced_billing/models/activate_event_based_component.rb +6 -6
  43. data/lib/advanced_billing/models/activate_subscription_request.rb +4 -4
  44. data/lib/advanced_billing/models/add_coupons_request.rb +4 -4
  45. data/lib/advanced_billing/models/add_subscription_to_a_group.rb +6 -18
  46. data/lib/advanced_billing/models/address_change.rb +5 -5
  47. data/lib/advanced_billing/models/agreement_acceptance.rb +7 -7
  48. data/lib/advanced_billing/models/allocate_components.rb +7 -7
  49. data/lib/advanced_billing/models/allocation.rb +7 -7
  50. data/lib/advanced_billing/models/allocation_expiration_date.rb +4 -4
  51. data/lib/advanced_billing/models/allocation_preview.rb +7 -7
  52. data/lib/advanced_billing/models/allocation_preview_item.rb +7 -7
  53. data/lib/advanced_billing/models/allocation_preview_line_item.rb +7 -7
  54. data/lib/advanced_billing/models/allocation_preview_response.rb +4 -4
  55. data/lib/advanced_billing/models/allocation_response.rb +4 -4
  56. data/lib/advanced_billing/models/allocation_settings.rb +6 -6
  57. data/lib/advanced_billing/models/apple_pay_payment_profile.rb +7 -7
  58. data/lib/advanced_billing/models/applied_credit_note_data.rb +5 -5
  59. data/lib/advanced_billing/models/apply_credit_note_event.rb +7 -7
  60. data/lib/advanced_billing/models/apply_credit_note_event_data.rb +7 -7
  61. data/lib/advanced_billing/models/apply_debit_note_event.rb +7 -7
  62. data/lib/advanced_billing/models/apply_debit_note_event_data.rb +7 -7
  63. data/lib/advanced_billing/models/apply_payment_event.rb +7 -7
  64. data/lib/advanced_billing/models/apply_payment_event_data.rb +7 -7
  65. data/lib/advanced_billing/models/attribute_error.rb +4 -4
  66. data/lib/advanced_billing/models/auto_resume.rb +4 -4
  67. data/lib/advanced_billing/models/backport_invoice_event.rb +7 -7
  68. data/lib/advanced_billing/models/bank_account_attributes.rb +7 -7
  69. data/lib/advanced_billing/models/bank_account_payment_profile.rb +7 -7
  70. data/lib/advanced_billing/models/bank_account_response.rb +4 -4
  71. data/lib/advanced_billing/models/bank_account_verification.rb +5 -5
  72. data/lib/advanced_billing/models/bank_account_verification_request.rb +4 -4
  73. data/lib/advanced_billing/models/base_model.rb +76 -28
  74. data/lib/advanced_billing/models/base_refund_error.rb +4 -4
  75. data/lib/advanced_billing/models/base_string_error.rb +4 -4
  76. data/lib/advanced_billing/models/batch_job.rb +7 -7
  77. data/lib/advanced_billing/models/batch_job_response.rb +4 -4
  78. data/lib/advanced_billing/models/billing_manifest.rb +7 -7
  79. data/lib/advanced_billing/models/billing_manifest_item.rb +7 -7
  80. data/lib/advanced_billing/models/billing_schedule.rb +4 -4
  81. data/lib/advanced_billing/models/breakouts.rb +7 -7
  82. data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +4 -4
  83. data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +4 -4
  84. data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +4 -4
  85. data/lib/advanced_billing/models/bulk_create_segments.rb +4 -4
  86. data/lib/advanced_billing/models/bulk_update_segments.rb +4 -4
  87. data/lib/advanced_billing/models/bulk_update_segments_item.rb +6 -6
  88. data/lib/advanced_billing/models/calendar_billing.rb +7 -7
  89. data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +4 -4
  90. data/lib/advanced_billing/models/cancellation_options.rb +5 -5
  91. data/lib/advanced_billing/models/cancellation_request.rb +4 -4
  92. data/lib/advanced_billing/models/change_chargeback_status_event.rb +7 -7
  93. data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +4 -4
  94. data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +7 -7
  95. data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +5 -5
  96. data/lib/advanced_billing/models/change_invoice_status_event.rb +7 -7
  97. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +7 -7
  98. data/lib/advanced_billing/models/chargify_ebb.rb +7 -7
  99. data/lib/advanced_billing/models/component.rb +9 -9
  100. data/lib/advanced_billing/models/component_allocation_change.rb +7 -7
  101. data/lib/advanced_billing/models/component_allocation_error_item.rb +7 -7
  102. data/lib/advanced_billing/models/component_cost_data.rb +7 -7
  103. data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +7 -7
  104. data/lib/advanced_billing/models/component_currency_price.rb +7 -7
  105. data/lib/advanced_billing/models/component_currency_prices_response.rb +4 -4
  106. data/lib/advanced_billing/models/component_custom_price.rb +7 -7
  107. data/lib/advanced_billing/models/component_price.rb +7 -7
  108. data/lib/advanced_billing/models/component_price_point.rb +92 -7
  109. data/lib/advanced_billing/models/component_price_point_assignment.rb +5 -5
  110. data/lib/advanced_billing/models/component_price_point_error_item.rb +6 -6
  111. data/lib/advanced_billing/models/component_price_point_item.rb +7 -7
  112. data/lib/advanced_billing/models/component_price_point_response.rb +4 -4
  113. data/lib/advanced_billing/models/component_price_points_response.rb +5 -5
  114. data/lib/advanced_billing/models/component_response.rb +4 -4
  115. data/lib/advanced_billing/models/compounding_strategy.rb +5 -1
  116. data/lib/advanced_billing/models/consolidated_invoice.rb +4 -4
  117. data/lib/advanced_billing/models/count_response.rb +4 -4
  118. data/lib/advanced_billing/models/coupon.rb +104 -29
  119. data/lib/advanced_billing/models/coupon_currency.rb +12 -9
  120. data/lib/advanced_billing/models/coupon_currency_request.rb +4 -4
  121. data/lib/advanced_billing/models/coupon_currency_response.rb +4 -4
  122. data/lib/advanced_billing/models/coupon_payload.rb +244 -0
  123. data/lib/advanced_billing/models/{create_or_update_coupon.rb → coupon_request.rb} +13 -25
  124. data/lib/advanced_billing/models/coupon_response.rb +4 -4
  125. data/lib/advanced_billing/models/coupon_restriction.rb +7 -7
  126. data/lib/advanced_billing/models/coupon_subcodes.rb +4 -4
  127. data/lib/advanced_billing/models/coupon_subcodes_response.rb +6 -6
  128. data/lib/advanced_billing/models/coupon_usage.rb +7 -7
  129. data/lib/advanced_billing/models/create_allocation.rb +7 -7
  130. data/lib/advanced_billing/models/create_allocation_request.rb +4 -4
  131. data/lib/advanced_billing/models/create_component_price_point.rb +11 -9
  132. data/lib/advanced_billing/models/create_component_price_point_request.rb +4 -4
  133. data/lib/advanced_billing/models/create_component_price_points_request.rb +4 -4
  134. data/lib/advanced_billing/models/create_credit_note_event.rb +7 -7
  135. data/lib/advanced_billing/models/create_currency_price.rb +6 -6
  136. data/lib/advanced_billing/models/create_currency_prices_request.rb +4 -4
  137. data/lib/advanced_billing/models/create_customer.rb +7 -7
  138. data/lib/advanced_billing/models/create_customer_request.rb +4 -4
  139. data/lib/advanced_billing/models/create_debit_note_event.rb +7 -7
  140. data/lib/advanced_billing/models/create_ebb_component.rb +4 -4
  141. data/lib/advanced_billing/models/create_invoice.rb +7 -7
  142. data/lib/advanced_billing/models/create_invoice_address.rb +7 -7
  143. data/lib/advanced_billing/models/create_invoice_coupon.rb +12 -8
  144. data/lib/advanced_billing/models/create_invoice_item.rb +7 -7
  145. data/lib/advanced_billing/models/create_invoice_payment.rb +7 -7
  146. data/lib/advanced_billing/models/create_invoice_payment_application.rb +5 -5
  147. data/lib/advanced_billing/models/create_invoice_payment_request.rb +5 -5
  148. data/lib/advanced_billing/models/create_invoice_request.rb +4 -4
  149. data/lib/advanced_billing/models/create_metadata.rb +5 -5
  150. data/lib/advanced_billing/models/create_metadata_request.rb +4 -4
  151. data/lib/advanced_billing/models/create_metafield.rb +7 -7
  152. data/lib/advanced_billing/models/create_metafields_request.rb +4 -4
  153. data/lib/advanced_billing/models/create_metered_component.rb +4 -4
  154. data/lib/advanced_billing/models/create_multi_invoice_payment.rb +7 -7
  155. data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +4 -4
  156. data/lib/advanced_billing/models/create_offer.rb +7 -7
  157. data/lib/advanced_billing/models/create_offer_component.rb +6 -6
  158. data/lib/advanced_billing/models/create_offer_request.rb +4 -4
  159. data/lib/advanced_billing/models/create_on_off_component.rb +4 -4
  160. data/lib/advanced_billing/models/create_or_update_endpoint.rb +5 -5
  161. data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +4 -4
  162. data/lib/advanced_billing/models/create_or_update_product.rb +7 -7
  163. data/lib/advanced_billing/models/create_or_update_product_request.rb +4 -4
  164. data/lib/advanced_billing/models/create_or_update_segment_price.rb +6 -6
  165. data/lib/advanced_billing/models/create_payment.rb +7 -7
  166. data/lib/advanced_billing/models/create_payment_profile.rb +7 -7
  167. data/lib/advanced_billing/models/create_payment_profile_request.rb +4 -4
  168. data/lib/advanced_billing/models/create_prepaid_component.rb +4 -4
  169. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +14 -13
  170. data/lib/advanced_billing/models/create_prepayment.rb +7 -7
  171. data/lib/advanced_billing/models/create_prepayment_request.rb +4 -4
  172. data/lib/advanced_billing/models/create_prepayment_response.rb +4 -4
  173. data/lib/advanced_billing/models/create_product_currency_price.rb +6 -6
  174. data/lib/advanced_billing/models/create_product_currency_prices_request.rb +4 -4
  175. data/lib/advanced_billing/models/create_product_family.rb +6 -6
  176. data/lib/advanced_billing/models/create_product_family_request.rb +4 -4
  177. data/lib/advanced_billing/models/create_product_price_point.rb +7 -7
  178. data/lib/advanced_billing/models/create_product_price_point_request.rb +4 -4
  179. data/lib/advanced_billing/models/create_quantity_based_component.rb +4 -4
  180. data/lib/advanced_billing/models/create_reason_code.rb +6 -6
  181. data/lib/advanced_billing/models/create_reason_code_request.rb +4 -4
  182. data/lib/advanced_billing/models/create_segment.rb +7 -7
  183. data/lib/advanced_billing/models/create_segment_request.rb +4 -4
  184. data/lib/advanced_billing/models/create_subscription.rb +7 -8
  185. data/lib/advanced_billing/models/create_subscription_component.rb +7 -7
  186. data/lib/advanced_billing/models/create_subscription_group.rb +5 -5
  187. data/lib/advanced_billing/models/create_subscription_group_request.rb +4 -4
  188. data/lib/advanced_billing/models/create_subscription_request.rb +4 -4
  189. data/lib/advanced_billing/models/create_usage.rb +7 -7
  190. data/lib/advanced_billing/models/create_usage_request.rb +4 -4
  191. data/lib/advanced_billing/models/created_prepayment.rb +7 -7
  192. data/lib/advanced_billing/models/credit_account_balance_changed.rb +7 -7
  193. data/lib/advanced_billing/models/credit_card_attributes.rb +6 -6
  194. data/lib/advanced_billing/models/credit_card_payment_profile.rb +7 -7
  195. data/lib/advanced_billing/models/credit_note.rb +7 -7
  196. data/lib/advanced_billing/models/credit_note_application.rb +7 -7
  197. data/lib/advanced_billing/models/credit_note_line_item.rb +7 -7
  198. data/lib/advanced_billing/models/credit_scheme_request.rb +4 -4
  199. data/lib/advanced_billing/models/currency_price.rb +27 -7
  200. data/lib/advanced_billing/models/currency_prices_response.rb +4 -4
  201. data/lib/advanced_billing/models/custom_field_value_change.rb +7 -7
  202. data/lib/advanced_billing/models/customer.rb +7 -7
  203. data/lib/advanced_billing/models/customer_attributes.rb +7 -7
  204. data/lib/advanced_billing/models/customer_change.rb +7 -7
  205. data/lib/advanced_billing/models/customer_changes_preview_response.rb +4 -4
  206. data/lib/advanced_billing/models/customer_custom_fields_change.rb +5 -5
  207. data/lib/advanced_billing/models/customer_error.rb +4 -4
  208. data/lib/advanced_billing/models/customer_payer_change.rb +5 -5
  209. data/lib/advanced_billing/models/customer_response.rb +4 -4
  210. data/lib/advanced_billing/models/debit_note.rb +7 -7
  211. data/lib/advanced_billing/models/deduct_service_credit.rb +5 -5
  212. data/lib/advanced_billing/models/deduct_service_credit_request.rb +4 -4
  213. data/lib/advanced_billing/models/delayed_cancellation_response.rb +4 -4
  214. data/lib/advanced_billing/models/delete_subscription_group_response.rb +5 -5
  215. data/lib/advanced_billing/models/dunner_data.rb +7 -7
  216. data/lib/advanced_billing/models/dunning_step_data.rb +7 -7
  217. data/lib/advanced_billing/models/dunning_step_reached.rb +6 -6
  218. data/lib/advanced_billing/models/ebb_component.rb +17 -53
  219. data/lib/advanced_billing/models/ebb_event.rb +4 -4
  220. data/lib/advanced_billing/models/enable_webhooks_request.rb +4 -4
  221. data/lib/advanced_billing/models/enable_webhooks_response.rb +4 -4
  222. data/lib/advanced_billing/models/endpoint.rb +7 -7
  223. data/lib/advanced_billing/models/endpoint_response.rb +4 -4
  224. data/lib/advanced_billing/models/errors.rb +5 -5
  225. data/lib/advanced_billing/models/event.rb +71 -11
  226. data/lib/advanced_billing/models/event_based_billing_segment_error.rb +4 -4
  227. data/lib/advanced_billing/models/event_key.rb +264 -0
  228. data/lib/advanced_billing/models/event_response.rb +4 -4
  229. data/lib/advanced_billing/models/failed_payment_event.rb +7 -7
  230. data/lib/advanced_billing/models/failed_payment_event_data.rb +7 -7
  231. data/lib/advanced_billing/models/full_subscription_group_response.rb +7 -7
  232. data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +7 -7
  233. data/lib/advanced_billing/models/get_one_time_token_request.rb +4 -4
  234. data/lib/advanced_billing/models/group_billing.rb +6 -6
  235. data/lib/advanced_billing/models/group_settings.rb +5 -5
  236. data/lib/advanced_billing/models/group_target.rb +5 -5
  237. data/lib/advanced_billing/models/historic_usage.rb +6 -6
  238. data/lib/advanced_billing/models/invoice.rb +52 -13
  239. data/lib/advanced_billing/models/invoice_address.rb +7 -7
  240. data/lib/advanced_billing/models/invoice_avatax_details.rb +130 -0
  241. data/lib/advanced_billing/models/invoice_balance_item.rb +6 -6
  242. data/lib/advanced_billing/models/invoice_credit.rb +7 -7
  243. data/lib/advanced_billing/models/invoice_custom_field.rb +7 -7
  244. data/lib/advanced_billing/models/invoice_customer.rb +7 -7
  245. data/lib/advanced_billing/models/invoice_debit.rb +148 -0
  246. data/lib/advanced_billing/models/invoice_discount.rb +7 -7
  247. data/lib/advanced_billing/models/invoice_discount_breakout.rb +6 -6
  248. data/lib/advanced_billing/models/invoice_display_settings.rb +7 -7
  249. data/lib/advanced_billing/models/invoice_issued.rb +7 -7
  250. data/lib/advanced_billing/models/invoice_line_item.rb +21 -8
  251. data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +4 -4
  252. data/lib/advanced_billing/models/invoice_line_item_event_data.rb +7 -7
  253. data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +5 -5
  254. data/lib/advanced_billing/models/invoice_payer.rb +7 -7
  255. data/lib/advanced_billing/models/invoice_payer_change.rb +7 -7
  256. data/lib/advanced_billing/models/invoice_payment.rb +7 -7
  257. data/lib/advanced_billing/models/invoice_payment_application.rb +6 -6
  258. data/lib/advanced_billing/models/invoice_payment_method.rb +7 -7
  259. data/lib/advanced_billing/models/invoice_pre_payment.rb +6 -6
  260. data/lib/advanced_billing/models/invoice_previous_balance.rb +5 -5
  261. data/lib/advanced_billing/models/invoice_refund.rb +7 -7
  262. data/lib/advanced_billing/models/invoice_response.rb +4 -4
  263. data/lib/advanced_billing/models/invoice_seller.rb +7 -7
  264. data/lib/advanced_billing/models/invoice_status.rb +4 -1
  265. data/lib/advanced_billing/models/invoice_tax.rb +7 -7
  266. data/lib/advanced_billing/models/invoice_tax_breakout.rb +7 -7
  267. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +7 -7
  268. data/lib/advanced_billing/models/issue_advance_invoice_request.rb +4 -4
  269. data/lib/advanced_billing/models/issue_invoice_event.rb +7 -7
  270. data/lib/advanced_billing/models/issue_invoice_event_data.rb +7 -7
  271. data/lib/advanced_billing/models/issue_invoice_request.rb +4 -4
  272. data/lib/advanced_billing/models/issue_service_credit.rb +5 -5
  273. data/lib/advanced_billing/models/issue_service_credit_request.rb +4 -4
  274. data/lib/advanced_billing/models/item_price_point_changed.rb +7 -7
  275. data/lib/advanced_billing/models/item_price_point_data.rb +6 -6
  276. data/lib/advanced_billing/models/list_components_filter.rb +5 -5
  277. data/lib/advanced_billing/models/list_components_price_points_response.rb +4 -4
  278. data/lib/advanced_billing/models/list_coupons_filter.rb +7 -7
  279. data/lib/advanced_billing/models/list_credit_notes_response.rb +4 -4
  280. data/lib/advanced_billing/models/list_invoice_events_response.rb +7 -7
  281. data/lib/advanced_billing/models/list_invoices_response.rb +4 -4
  282. data/lib/advanced_billing/models/list_metafields_response.rb +7 -7
  283. data/lib/advanced_billing/models/list_mrr_filter.rb +4 -4
  284. data/lib/advanced_billing/models/list_mrr_response.rb +4 -4
  285. data/lib/advanced_billing/models/list_mrr_response_result.rb +7 -7
  286. data/lib/advanced_billing/models/list_offers_response.rb +4 -4
  287. data/lib/advanced_billing/models/list_prepayments_filter.rb +6 -6
  288. data/lib/advanced_billing/models/list_price_points_filter.rb +7 -7
  289. data/lib/advanced_billing/models/list_product_price_points_response.rb +4 -4
  290. data/lib/advanced_billing/models/list_products_filter.rb +7 -7
  291. data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +7 -7
  292. data/lib/advanced_billing/models/list_proforma_invoices_response.rb +5 -5
  293. data/lib/advanced_billing/models/list_public_keys_meta.rb +7 -7
  294. data/lib/advanced_billing/models/list_public_keys_response.rb +5 -5
  295. data/lib/advanced_billing/models/list_sale_rep_item.rb +7 -7
  296. data/lib/advanced_billing/models/list_segments_filter.rb +7 -7
  297. data/lib/advanced_billing/models/list_segments_response.rb +4 -4
  298. data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +7 -7
  299. data/lib/advanced_billing/models/list_subscription_components_filter.rb +5 -5
  300. data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +6 -6
  301. data/lib/advanced_billing/models/list_subscription_components_response.rb +4 -4
  302. data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +4 -4
  303. data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +4 -4
  304. data/lib/advanced_billing/models/list_subscription_groups_item.rb +7 -7
  305. data/lib/advanced_billing/models/list_subscription_groups_meta.rb +5 -5
  306. data/lib/advanced_billing/models/list_subscription_groups_response.rb +5 -5
  307. data/lib/advanced_billing/models/metadata.rb +7 -7
  308. data/lib/advanced_billing/models/metafield.rb +7 -7
  309. data/lib/advanced_billing/models/metafield_scope.rb +7 -7
  310. data/lib/advanced_billing/models/metered_component.rb +22 -51
  311. data/lib/advanced_billing/models/metered_usage.rb +7 -7
  312. data/lib/advanced_billing/models/movement.rb +7 -7
  313. data/lib/advanced_billing/models/movement_line_item.rb +7 -7
  314. data/lib/advanced_billing/models/mrr.rb +7 -7
  315. data/lib/advanced_billing/models/mrr_movement.rb +7 -7
  316. data/lib/advanced_billing/models/mrr_response.rb +4 -4
  317. data/lib/advanced_billing/models/multi_invoice_payment.rb +7 -7
  318. data/lib/advanced_billing/models/multi_invoice_payment_response.rb +4 -4
  319. data/lib/advanced_billing/models/nested_subscription_group.rb +7 -7
  320. data/lib/advanced_billing/models/net_terms.rb +7 -7
  321. data/lib/advanced_billing/models/offer.rb +7 -7
  322. data/lib/advanced_billing/models/offer_discount.rb +6 -6
  323. data/lib/advanced_billing/models/offer_item.rb +7 -7
  324. data/lib/advanced_billing/models/offer_response.rb +4 -4
  325. data/lib/advanced_billing/models/offer_signup_page.rb +7 -7
  326. data/lib/advanced_billing/models/{reason_codes_json_response.rb → ok_response.rb} +7 -7
  327. data/lib/advanced_billing/models/on_off_component.rb +40 -61
  328. data/lib/advanced_billing/models/organization_address.rb +7 -7
  329. data/lib/advanced_billing/models/origin_invoice.rb +5 -5
  330. data/lib/advanced_billing/models/overage_pricing.rb +5 -5
  331. data/lib/advanced_billing/models/override_subscription.rb +7 -7
  332. data/lib/advanced_billing/models/override_subscription_request.rb +4 -4
  333. data/lib/advanced_billing/models/paginated_metadata.rb +7 -7
  334. data/lib/advanced_billing/models/paid_invoice.rb +7 -7
  335. data/lib/advanced_billing/models/pause_request.rb +4 -4
  336. data/lib/advanced_billing/models/payer_attributes.rb +7 -7
  337. data/lib/advanced_billing/models/payer_error.rb +6 -6
  338. data/lib/advanced_billing/models/payment_collection_method_changed.rb +5 -5
  339. data/lib/advanced_billing/models/payment_for_allocation.rb +7 -7
  340. data/lib/advanced_billing/models/payment_method_apple_pay.rb +4 -4
  341. data/lib/advanced_billing/models/payment_method_bank_account.rb +6 -6
  342. data/lib/advanced_billing/models/payment_method_credit_card.rb +7 -7
  343. data/lib/advanced_billing/models/payment_method_external.rb +7 -7
  344. data/lib/advanced_billing/models/payment_method_paypal.rb +5 -5
  345. data/lib/advanced_billing/models/payment_profile_attributes.rb +7 -7
  346. data/lib/advanced_billing/models/payment_profile_response.rb +4 -4
  347. data/lib/advanced_billing/models/payment_related_events.rb +5 -5
  348. data/lib/advanced_billing/models/paypal_payment_profile.rb +7 -7
  349. data/lib/advanced_billing/models/pending_cancellation_change.rb +5 -5
  350. data/lib/advanced_billing/models/portal_management_link.rb +7 -7
  351. data/lib/advanced_billing/models/prepaid_configuration.rb +7 -7
  352. data/lib/advanced_billing/models/prepaid_configuration_response.rb +4 -4
  353. data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +4 -4
  354. data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +7 -7
  355. data/lib/advanced_billing/models/prepaid_usage.rb +7 -7
  356. data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +6 -6
  357. data/lib/advanced_billing/models/prepaid_usage_component.rb +48 -41
  358. data/lib/advanced_billing/models/prepayment.rb +7 -7
  359. data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +7 -7
  360. data/lib/advanced_billing/models/prepayment_response.rb +4 -4
  361. data/lib/advanced_billing/models/prepayments_response.rb +4 -4
  362. data/lib/advanced_billing/models/preview_allocations_request.rb +7 -7
  363. data/lib/advanced_billing/models/price.rb +6 -6
  364. data/lib/advanced_billing/models/product.rb +7 -7
  365. data/lib/advanced_billing/models/product_family.rb +7 -7
  366. data/lib/advanced_billing/models/product_family_response.rb +4 -4
  367. data/lib/advanced_billing/models/product_price_point.rb +7 -7
  368. data/lib/advanced_billing/models/product_price_point_errors.rb +7 -7
  369. data/lib/advanced_billing/models/product_price_point_response.rb +4 -4
  370. data/lib/advanced_billing/models/product_response.rb +4 -4
  371. data/lib/advanced_billing/models/proforma_error.rb +4 -4
  372. data/lib/advanced_billing/models/proforma_invoice.rb +7 -7
  373. data/lib/advanced_billing/models/proforma_invoice_credit.rb +7 -7
  374. data/lib/advanced_billing/models/proforma_invoice_discount.rb +7 -7
  375. data/lib/advanced_billing/models/proforma_invoice_issued.rb +7 -7
  376. data/lib/advanced_billing/models/proforma_invoice_payment.rb +7 -7
  377. data/lib/advanced_billing/models/proforma_invoice_tax.rb +7 -7
  378. data/lib/advanced_billing/models/proration.rb +4 -4
  379. data/lib/advanced_billing/models/public_key.rb +6 -6
  380. data/lib/advanced_billing/models/public_signup_page.rb +7 -7
  381. data/lib/advanced_billing/models/quantity_based_component.rb +21 -23
  382. data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +5 -5
  383. data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +7 -7
  384. data/lib/advanced_billing/models/reactivate_subscription_request.rb +7 -7
  385. data/lib/advanced_billing/models/reactivation_billing.rb +4 -4
  386. data/lib/advanced_billing/models/reason_code.rb +7 -7
  387. data/lib/advanced_billing/models/reason_code_response.rb +4 -4
  388. data/lib/advanced_billing/models/record_payment_request.rb +4 -4
  389. data/lib/advanced_billing/models/record_payment_response.rb +5 -5
  390. data/lib/advanced_billing/models/referral_code.rb +7 -7
  391. data/lib/advanced_billing/models/referral_validation_response.rb +4 -4
  392. data/lib/advanced_billing/models/refund_consolidated_invoice.rb +7 -7
  393. data/lib/advanced_billing/models/refund_invoice.rb +7 -7
  394. data/lib/advanced_billing/models/refund_invoice_event.rb +7 -7
  395. data/lib/advanced_billing/models/refund_invoice_event_data.rb +7 -7
  396. data/lib/advanced_billing/models/refund_invoice_request.rb +4 -4
  397. data/lib/advanced_billing/models/refund_prepayment.rb +7 -7
  398. data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +4 -4
  399. data/lib/advanced_billing/models/refund_prepayment_request.rb +4 -4
  400. data/lib/advanced_billing/models/refund_success.rb +6 -6
  401. data/lib/advanced_billing/models/remove_payment_event.rb +7 -7
  402. data/lib/advanced_billing/models/remove_payment_event_data.rb +7 -7
  403. data/lib/advanced_billing/models/renewal_preview.rb +7 -7
  404. data/lib/advanced_billing/models/renewal_preview_component.rb +6 -6
  405. data/lib/advanced_billing/models/renewal_preview_line_item.rb +7 -7
  406. data/lib/advanced_billing/models/renewal_preview_request.rb +4 -4
  407. data/lib/advanced_billing/models/renewal_preview_response.rb +4 -4
  408. data/lib/advanced_billing/models/replay_webhooks_request.rb +4 -4
  409. data/lib/advanced_billing/models/replay_webhooks_response.rb +4 -4
  410. data/lib/advanced_billing/models/resent_invitation.rb +7 -7
  411. data/lib/advanced_billing/models/resume_options.rb +5 -5
  412. data/lib/advanced_billing/models/revoked_invitation.rb +6 -6
  413. data/lib/advanced_billing/models/sale_rep.rb +7 -7
  414. data/lib/advanced_billing/models/sale_rep_item_mrr.rb +6 -6
  415. data/lib/advanced_billing/models/sale_rep_settings.rb +7 -7
  416. data/lib/advanced_billing/models/sale_rep_subscription.rb +7 -7
  417. data/lib/advanced_billing/models/segment.rb +7 -7
  418. data/lib/advanced_billing/models/segment_price.rb +7 -7
  419. data/lib/advanced_billing/models/segment_response.rb +4 -4
  420. data/lib/advanced_billing/models/send_invoice_request.rb +6 -6
  421. data/lib/advanced_billing/models/service_credit.rb +7 -7
  422. data/lib/advanced_billing/models/service_credit_response.rb +4 -4
  423. data/lib/advanced_billing/models/signup_proforma_preview.rb +5 -5
  424. data/lib/advanced_billing/models/signup_proforma_preview_response.rb +4 -4
  425. data/lib/advanced_billing/models/site.rb +7 -7
  426. data/lib/advanced_billing/models/site_response.rb +4 -4
  427. data/lib/advanced_billing/models/site_statistics.rb +7 -7
  428. data/lib/advanced_billing/models/site_summary.rb +7 -7
  429. data/lib/advanced_billing/models/subscription.rb +7 -7
  430. data/lib/advanced_billing/models/subscription_component.rb +7 -7
  431. data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +5 -5
  432. data/lib/advanced_billing/models/subscription_component_response.rb +4 -4
  433. data/lib/advanced_billing/models/subscription_component_subscription.rb +5 -5
  434. data/lib/advanced_billing/models/subscription_custom_price.rb +7 -7
  435. data/lib/advanced_billing/models/subscription_filter.rb +7 -7
  436. data/lib/advanced_billing/models/subscription_group.rb +7 -7
  437. data/lib/advanced_billing/models/subscription_group_balances.rb +7 -7
  438. data/lib/advanced_billing/models/subscription_group_bank_account.rb +7 -7
  439. data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +6 -6
  440. data/lib/advanced_billing/models/subscription_group_credit_card.rb +7 -7
  441. data/lib/advanced_billing/models/subscription_group_customer.rb +7 -7
  442. data/lib/advanced_billing/models/subscription_group_item.rb +7 -7
  443. data/lib/advanced_billing/models/subscription_group_members_array_error.rb +4 -4
  444. data/lib/advanced_billing/models/subscription_group_payment_profile.rb +7 -7
  445. data/lib/advanced_billing/models/subscription_group_prepayment.rb +7 -7
  446. data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +4 -4
  447. data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +7 -7
  448. data/lib/advanced_billing/models/subscription_group_response.rb +4 -4
  449. data/lib/advanced_billing/models/subscription_group_signup.rb +7 -7
  450. data/lib/advanced_billing/models/subscription_group_signup_component.rb +7 -7
  451. data/lib/advanced_billing/models/subscription_group_signup_error.rb +7 -7
  452. data/lib/advanced_billing/models/{subscription_group_signup_success.rb → subscription_group_signup_event_data.rb} +17 -15
  453. data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +7 -7
  454. data/lib/advanced_billing/models/subscription_group_signup_item.rb +7 -7
  455. data/lib/advanced_billing/models/subscription_group_signup_request.rb +4 -4
  456. data/lib/advanced_billing/models/subscription_group_signup_response.rb +7 -7
  457. data/lib/advanced_billing/models/subscription_group_single_error.rb +4 -4
  458. data/lib/advanced_billing/models/subscription_group_subscription_error.rb +7 -7
  459. data/lib/advanced_billing/models/subscription_group_update_error.rb +6 -15
  460. data/lib/advanced_billing/models/subscription_included_coupon.rb +7 -7
  461. data/lib/advanced_billing/models/subscription_migration_preview.rb +7 -7
  462. data/lib/advanced_billing/models/subscription_migration_preview_options.rb +7 -7
  463. data/lib/advanced_billing/models/subscription_migration_preview_request.rb +4 -4
  464. data/lib/advanced_billing/models/subscription_migration_preview_response.rb +4 -4
  465. data/lib/advanced_billing/models/subscription_mrr.rb +6 -6
  466. data/lib/advanced_billing/models/subscription_mrr_breakout.rb +5 -5
  467. data/lib/advanced_billing/models/subscription_mrr_response.rb +4 -4
  468. data/lib/advanced_billing/models/subscription_note.rb +7 -7
  469. data/lib/advanced_billing/models/subscription_note_response.rb +4 -4
  470. data/lib/advanced_billing/models/subscription_preview.rb +5 -5
  471. data/lib/advanced_billing/models/subscription_preview_response.rb +4 -4
  472. data/lib/advanced_billing/models/subscription_product_change.rb +5 -5
  473. data/lib/advanced_billing/models/subscription_product_migration.rb +7 -7
  474. data/lib/advanced_billing/models/subscription_product_migration_request.rb +4 -4
  475. data/lib/advanced_billing/models/subscription_response.rb +4 -4
  476. data/lib/advanced_billing/models/subscription_state_change.rb +5 -5
  477. data/lib/advanced_billing/models/tax_configuration.rb +6 -6
  478. data/lib/advanced_billing/models/too_many_management_link_requests.rb +5 -5
  479. data/lib/advanced_billing/models/update_allocation_expiration_date.rb +4 -4
  480. data/lib/advanced_billing/models/update_component.rb +7 -7
  481. data/lib/advanced_billing/models/update_component_price_point.rb +7 -7
  482. data/lib/advanced_billing/models/update_component_price_point_request.rb +4 -4
  483. data/lib/advanced_billing/models/update_component_request.rb +4 -4
  484. data/lib/advanced_billing/models/update_coupon_currency.rb +5 -5
  485. data/lib/advanced_billing/models/update_currency_price.rb +6 -6
  486. data/lib/advanced_billing/models/update_currency_prices_request.rb +4 -4
  487. data/lib/advanced_billing/models/update_customer.rb +7 -7
  488. data/lib/advanced_billing/models/update_customer_request.rb +4 -4
  489. data/lib/advanced_billing/models/update_metadata.rb +6 -6
  490. data/lib/advanced_billing/models/update_metadata_request.rb +4 -4
  491. data/lib/advanced_billing/models/update_metafield.rb +7 -7
  492. data/lib/advanced_billing/models/update_metafields_request.rb +4 -4
  493. data/lib/advanced_billing/models/update_payment_profile.rb +7 -7
  494. data/lib/advanced_billing/models/update_payment_profile_request.rb +4 -4
  495. data/lib/advanced_billing/models/update_price.rb +7 -7
  496. data/lib/advanced_billing/models/update_product_price_point.rb +5 -5
  497. data/lib/advanced_billing/models/update_product_price_point_request.rb +4 -4
  498. data/lib/advanced_billing/models/update_reason_code.rb +6 -6
  499. data/lib/advanced_billing/models/update_reason_code_request.rb +4 -4
  500. data/lib/advanced_billing/models/update_segment.rb +5 -5
  501. data/lib/advanced_billing/models/update_segment_request.rb +4 -4
  502. data/lib/advanced_billing/models/update_subscription.rb +7 -8
  503. data/lib/advanced_billing/models/update_subscription_component.rb +5 -5
  504. data/lib/advanced_billing/models/update_subscription_group.rb +4 -4
  505. data/lib/advanced_billing/models/update_subscription_group_request.rb +4 -4
  506. data/lib/advanced_billing/models/update_subscription_note.rb +5 -5
  507. data/lib/advanced_billing/models/update_subscription_note_request.rb +4 -4
  508. data/lib/advanced_billing/models/update_subscription_request.rb +4 -4
  509. data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +7 -7
  510. data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +4 -4
  511. data/lib/advanced_billing/models/usage.rb +7 -7
  512. data/lib/advanced_billing/models/usage_response.rb +4 -4
  513. data/lib/advanced_billing/models/void_invoice.rb +4 -4
  514. data/lib/advanced_billing/models/void_invoice_event.rb +7 -7
  515. data/lib/advanced_billing/models/void_invoice_event_data.rb +7 -7
  516. data/lib/advanced_billing/models/void_invoice_request.rb +4 -4
  517. data/lib/advanced_billing/models/void_remainder_event.rb +7 -7
  518. data/lib/advanced_billing/models/void_remainder_event_data.rb +7 -7
  519. data/lib/advanced_billing/models/webhook.rb +7 -7
  520. data/lib/advanced_billing/models/webhook_response.rb +4 -4
  521. data/lib/advanced_billing/utilities/union_type_lookup.rb +12 -33
  522. data/lib/advanced_billing.rb +9 -11
  523. metadata +12 -14
  524. data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +0 -249
  525. data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +0 -250
  526. data/lib/advanced_billing/models/event_type.rb +0 -121
  527. data/lib/advanced_billing/models/prepaid_component_price_point.rb +0 -123
  528. data/lib/advanced_billing/models/subscription_group_member_error.rb +0 -78
  529. data/lib/advanced_billing/models/subscription_group_signup_failure.rb +0 -93
  530. data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +0 -185
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxio-advanced-billing-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxio SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-17 00:00:00.000000000 Z
11
+ date: 2024-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apimatic_core_interfaces
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.9
33
+ version: 0.3.11
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.9
40
+ version: 0.3.11
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: apimatic_faraday_client_adapter
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -121,6 +121,7 @@ files:
121
121
  - lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb
122
122
  - lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb
123
123
  - lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb
124
+ - lib/advanced_billing/exceptions/subscription_response_error_exception.rb
124
125
  - lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb
125
126
  - lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb
126
127
  - lib/advanced_billing/http/auth/basic_auth.rb
@@ -227,6 +228,8 @@ files:
227
228
  - lib/advanced_billing/models/coupon_currency.rb
228
229
  - lib/advanced_billing/models/coupon_currency_request.rb
229
230
  - lib/advanced_billing/models/coupon_currency_response.rb
231
+ - lib/advanced_billing/models/coupon_payload.rb
232
+ - lib/advanced_billing/models/coupon_request.rb
230
233
  - lib/advanced_billing/models/coupon_response.rb
231
234
  - lib/advanced_billing/models/coupon_restriction.rb
232
235
  - lib/advanced_billing/models/coupon_subcodes.rb
@@ -264,11 +267,8 @@ files:
264
267
  - lib/advanced_billing/models/create_offer_component.rb
265
268
  - lib/advanced_billing/models/create_offer_request.rb
266
269
  - lib/advanced_billing/models/create_on_off_component.rb
267
- - lib/advanced_billing/models/create_or_update_coupon.rb
268
270
  - lib/advanced_billing/models/create_or_update_endpoint.rb
269
271
  - lib/advanced_billing/models/create_or_update_endpoint_request.rb
270
- - lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb
271
- - lib/advanced_billing/models/create_or_update_percentage_coupon.rb
272
272
  - lib/advanced_billing/models/create_or_update_product.rb
273
273
  - lib/advanced_billing/models/create_or_update_product_request.rb
274
274
  - lib/advanced_billing/models/create_or_update_segment_price.rb
@@ -346,8 +346,8 @@ files:
346
346
  - lib/advanced_billing/models/errors.rb
347
347
  - lib/advanced_billing/models/event.rb
348
348
  - lib/advanced_billing/models/event_based_billing_segment_error.rb
349
+ - lib/advanced_billing/models/event_key.rb
349
350
  - lib/advanced_billing/models/event_response.rb
350
- - lib/advanced_billing/models/event_type.rb
351
351
  - lib/advanced_billing/models/expiration_interval_unit.rb
352
352
  - lib/advanced_billing/models/failed_payment_action.rb
353
353
  - lib/advanced_billing/models/failed_payment_event.rb
@@ -368,12 +368,14 @@ files:
368
368
  - lib/advanced_billing/models/interval_unit.rb
369
369
  - lib/advanced_billing/models/invoice.rb
370
370
  - lib/advanced_billing/models/invoice_address.rb
371
+ - lib/advanced_billing/models/invoice_avatax_details.rb
371
372
  - lib/advanced_billing/models/invoice_balance_item.rb
372
373
  - lib/advanced_billing/models/invoice_consolidation_level.rb
373
374
  - lib/advanced_billing/models/invoice_credit.rb
374
375
  - lib/advanced_billing/models/invoice_custom_field.rb
375
376
  - lib/advanced_billing/models/invoice_customer.rb
376
377
  - lib/advanced_billing/models/invoice_date_field.rb
378
+ - lib/advanced_billing/models/invoice_debit.rb
377
379
  - lib/advanced_billing/models/invoice_discount.rb
378
380
  - lib/advanced_billing/models/invoice_discount_breakout.rb
379
381
  - lib/advanced_billing/models/invoice_discount_source_type.rb
@@ -473,6 +475,7 @@ files:
473
475
  - lib/advanced_billing/models/offer_item.rb
474
476
  - lib/advanced_billing/models/offer_response.rb
475
477
  - lib/advanced_billing/models/offer_signup_page.rb
478
+ - lib/advanced_billing/models/ok_response.rb
476
479
  - lib/advanced_billing/models/on_off_component.rb
477
480
  - lib/advanced_billing/models/organization_address.rb
478
481
  - lib/advanced_billing/models/origin_invoice.rb
@@ -499,7 +502,6 @@ files:
499
502
  - lib/advanced_billing/models/paypal_payment_profile.rb
500
503
  - lib/advanced_billing/models/pending_cancellation_change.rb
501
504
  - lib/advanced_billing/models/portal_management_link.rb
502
- - lib/advanced_billing/models/prepaid_component_price_point.rb
503
505
  - lib/advanced_billing/models/prepaid_configuration.rb
504
506
  - lib/advanced_billing/models/prepaid_configuration_response.rb
505
507
  - lib/advanced_billing/models/prepaid_product_price_point_filter.rb
@@ -545,7 +547,6 @@ files:
545
547
  - lib/advanced_billing/models/reactivation_charge.rb
546
548
  - lib/advanced_billing/models/reason_code.rb
547
549
  - lib/advanced_billing/models/reason_code_response.rb
548
- - lib/advanced_billing/models/reason_codes_json_response.rb
549
550
  - lib/advanced_billing/models/record_payment_request.rb
550
551
  - lib/advanced_billing/models/record_payment_response.rb
551
552
  - lib/advanced_billing/models/recurring_scheme.rb
@@ -610,7 +611,6 @@ files:
610
611
  - lib/advanced_billing/models/subscription_group_customer.rb
611
612
  - lib/advanced_billing/models/subscription_group_include.rb
612
613
  - lib/advanced_billing/models/subscription_group_item.rb
613
- - lib/advanced_billing/models/subscription_group_member_error.rb
614
614
  - lib/advanced_billing/models/subscription_group_members_array_error.rb
615
615
  - lib/advanced_billing/models/subscription_group_payment_profile.rb
616
616
  - lib/advanced_billing/models/subscription_group_prepayment.rb
@@ -621,13 +621,11 @@ files:
621
621
  - lib/advanced_billing/models/subscription_group_signup.rb
622
622
  - lib/advanced_billing/models/subscription_group_signup_component.rb
623
623
  - lib/advanced_billing/models/subscription_group_signup_error.rb
624
- - lib/advanced_billing/models/subscription_group_signup_failure.rb
624
+ - lib/advanced_billing/models/subscription_group_signup_event_data.rb
625
625
  - lib/advanced_billing/models/subscription_group_signup_failure_data.rb
626
626
  - lib/advanced_billing/models/subscription_group_signup_item.rb
627
627
  - lib/advanced_billing/models/subscription_group_signup_request.rb
628
628
  - lib/advanced_billing/models/subscription_group_signup_response.rb
629
- - lib/advanced_billing/models/subscription_group_signup_success.rb
630
- - lib/advanced_billing/models/subscription_group_signup_success_data.rb
631
629
  - lib/advanced_billing/models/subscription_group_single_error.rb
632
630
  - lib/advanced_billing/models/subscription_group_subscription_error.rb
633
631
  - lib/advanced_billing/models/subscription_group_update_error.rb
@@ -1,249 +0,0 @@
1
- # advanced_billing
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'date'
7
- module AdvancedBilling
8
- # CreateOrUpdateFlatAmountCoupon Model.
9
- class CreateOrUpdateFlatAmountCoupon < BaseModel
10
- SKIP = Object.new
11
- private_constant :SKIP
12
-
13
- # the name of the coupon
14
- # @return [String]
15
- attr_accessor :name
16
-
17
- # may contain uppercase alphanumeric characters and these special characters
18
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
19
- # “.”
20
- # @return [String]
21
- attr_accessor :code
22
-
23
- # may contain uppercase alphanumeric characters and these special characters
24
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
25
- # “.”
26
- # @return [String]
27
- attr_accessor :description
28
-
29
- # may contain uppercase alphanumeric characters and these special characters
30
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
31
- # “.”
32
- # @return [Integer]
33
- attr_accessor :amount_in_cents
34
-
35
- # may contain uppercase alphanumeric characters and these special characters
36
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
37
- # “.”
38
- # @return [TrueClass | FalseClass]
39
- attr_accessor :allow_negative_balance
40
-
41
- # may contain uppercase alphanumeric characters and these special characters
42
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
43
- # “.”
44
- # @return [TrueClass | FalseClass]
45
- attr_accessor :recurring
46
-
47
- # may contain uppercase alphanumeric characters and these special characters
48
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
49
- # “.”
50
- # @return [DateTime]
51
- attr_accessor :end_date
52
-
53
- # may contain uppercase alphanumeric characters and these special characters
54
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
55
- # “.”
56
- # @return [String]
57
- attr_accessor :product_family_id
58
-
59
- # may contain uppercase alphanumeric characters and these special characters
60
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
61
- # “.”
62
- # @return [TrueClass | FalseClass]
63
- attr_accessor :stackable
64
-
65
- # may contain uppercase alphanumeric characters and these special characters
66
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
67
- # “.”
68
- # @return [CompoundingStrategy]
69
- attr_accessor :compounding_strategy
70
-
71
- # may contain uppercase alphanumeric characters and these special characters
72
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
73
- # “.”
74
- # @return [TrueClass | FalseClass]
75
- attr_accessor :exclude_mid_period_allocations
76
-
77
- # may contain uppercase alphanumeric characters and these special characters
78
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
79
- # “.”
80
- # @return [TrueClass | FalseClass]
81
- attr_accessor :apply_on_cancel_at_end_of_period
82
-
83
- # may contain uppercase alphanumeric characters and these special characters
84
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
85
- # “.”
86
- # @return [TrueClass | FalseClass]
87
- attr_accessor :apply_on_subscription_expiration
88
-
89
- # A mapping from model property names to API property names.
90
- def self.names
91
- @_hash = {} if @_hash.nil?
92
- @_hash['name'] = 'name'
93
- @_hash['code'] = 'code'
94
- @_hash['description'] = 'description'
95
- @_hash['amount_in_cents'] = 'amount_in_cents'
96
- @_hash['allow_negative_balance'] = 'allow_negative_balance'
97
- @_hash['recurring'] = 'recurring'
98
- @_hash['end_date'] = 'end_date'
99
- @_hash['product_family_id'] = 'product_family_id'
100
- @_hash['stackable'] = 'stackable'
101
- @_hash['compounding_strategy'] = 'compounding_strategy'
102
- @_hash['exclude_mid_period_allocations'] =
103
- 'exclude_mid_period_allocations'
104
- @_hash['apply_on_cancel_at_end_of_period'] =
105
- 'apply_on_cancel_at_end_of_period'
106
- @_hash['apply_on_subscription_expiration'] =
107
- 'apply_on_subscription_expiration'
108
- @_hash
109
- end
110
-
111
- # An array for optional fields
112
- def self.optionals
113
- %w[
114
- description
115
- allow_negative_balance
116
- recurring
117
- end_date
118
- product_family_id
119
- stackable
120
- compounding_strategy
121
- exclude_mid_period_allocations
122
- apply_on_cancel_at_end_of_period
123
- apply_on_subscription_expiration
124
- ]
125
- end
126
-
127
- # An array for nullable fields
128
- def self.nullables
129
- []
130
- end
131
-
132
- def initialize(name:, code:, amount_in_cents:, description: SKIP,
133
- allow_negative_balance: SKIP, recurring: SKIP,
134
- end_date: SKIP, product_family_id: SKIP, stackable: SKIP,
135
- compounding_strategy: SKIP,
136
- exclude_mid_period_allocations: SKIP,
137
- apply_on_cancel_at_end_of_period: SKIP,
138
- apply_on_subscription_expiration: SKIP,
139
- additional_properties: {})
140
- @name = name
141
- @code = code
142
- @description = description unless description == SKIP
143
- @amount_in_cents = amount_in_cents
144
- @allow_negative_balance = allow_negative_balance unless allow_negative_balance == SKIP
145
- @recurring = recurring unless recurring == SKIP
146
- @end_date = end_date unless end_date == SKIP
147
- @product_family_id = product_family_id unless product_family_id == SKIP
148
- @stackable = stackable unless stackable == SKIP
149
- @compounding_strategy = compounding_strategy unless compounding_strategy == SKIP
150
- unless exclude_mid_period_allocations == SKIP
151
- @exclude_mid_period_allocations =
152
- exclude_mid_period_allocations
153
- end
154
- unless apply_on_cancel_at_end_of_period == SKIP
155
- @apply_on_cancel_at_end_of_period =
156
- apply_on_cancel_at_end_of_period
157
- end
158
- unless apply_on_subscription_expiration == SKIP
159
- @apply_on_subscription_expiration =
160
- apply_on_subscription_expiration
161
- end
162
-
163
- # Add additional model properties to the instance.
164
- additional_properties.each do |_name, _value|
165
- instance_variable_set("@#{_name}", _value)
166
- end
167
- end
168
-
169
- # Creates an instance of the object from a hash.
170
- def self.from_hash(hash)
171
- return nil unless hash
172
-
173
- # Extract variables from the hash.
174
- name = hash.key?('name') ? hash['name'] : nil
175
- code = hash.key?('code') ? hash['code'] : nil
176
- amount_in_cents =
177
- hash.key?('amount_in_cents') ? hash['amount_in_cents'] : nil
178
- description = hash.key?('description') ? hash['description'] : SKIP
179
- allow_negative_balance =
180
- hash.key?('allow_negative_balance') ? hash['allow_negative_balance'] : SKIP
181
- recurring = hash.key?('recurring') ? hash['recurring'] : SKIP
182
- end_date = if hash.key?('end_date')
183
- (DateTimeHelper.from_rfc3339(hash['end_date']) if hash['end_date'])
184
- else
185
- SKIP
186
- end
187
- product_family_id =
188
- hash.key?('product_family_id') ? hash['product_family_id'] : SKIP
189
- stackable = hash.key?('stackable') ? hash['stackable'] : SKIP
190
- compounding_strategy =
191
- hash.key?('compounding_strategy') ? hash['compounding_strategy'] : SKIP
192
- exclude_mid_period_allocations =
193
- hash.key?('exclude_mid_period_allocations') ? hash['exclude_mid_period_allocations'] : SKIP
194
- apply_on_cancel_at_end_of_period =
195
- hash.key?('apply_on_cancel_at_end_of_period') ? hash['apply_on_cancel_at_end_of_period'] : SKIP
196
- apply_on_subscription_expiration =
197
- hash.key?('apply_on_subscription_expiration') ? hash['apply_on_subscription_expiration'] : SKIP
198
-
199
- # Clean out expected properties from Hash.
200
- names.each_value { |k| hash.delete(k) }
201
-
202
- # Create object from extracted values.
203
- CreateOrUpdateFlatAmountCoupon.new(name: name,
204
- code: code,
205
- amount_in_cents: amount_in_cents,
206
- description: description,
207
- allow_negative_balance: allow_negative_balance,
208
- recurring: recurring,
209
- end_date: end_date,
210
- product_family_id: product_family_id,
211
- stackable: stackable,
212
- compounding_strategy: compounding_strategy,
213
- exclude_mid_period_allocations: exclude_mid_period_allocations,
214
- apply_on_cancel_at_end_of_period: apply_on_cancel_at_end_of_period,
215
- apply_on_subscription_expiration: apply_on_subscription_expiration,
216
- additional_properties: hash)
217
- end
218
-
219
- def to_custom_end_date
220
- DateTimeHelper.to_rfc3339(end_date)
221
- end
222
-
223
- # Validates an instance of the object from a given value.
224
- # @param [CreateOrUpdateFlatAmountCoupon | Hash] The value against the validation is performed.
225
- def self.validate(value)
226
- if value.instance_of? self
227
- return (
228
- APIHelper.valid_type?(value.name,
229
- ->(val) { val.instance_of? String }) and
230
- APIHelper.valid_type?(value.code,
231
- ->(val) { val.instance_of? String }) and
232
- APIHelper.valid_type?(value.amount_in_cents,
233
- ->(val) { val.instance_of? Integer })
234
- )
235
- end
236
-
237
- return false unless value.instance_of? Hash
238
-
239
- (
240
- APIHelper.valid_type?(value['name'],
241
- ->(val) { val.instance_of? String }) and
242
- APIHelper.valid_type?(value['code'],
243
- ->(val) { val.instance_of? String }) and
244
- APIHelper.valid_type?(value['amount_in_cents'],
245
- ->(val) { val.instance_of? Integer })
246
- )
247
- end
248
- end
249
- end
@@ -1,250 +0,0 @@
1
- # advanced_billing
2
- #
3
- # This file was automatically generated by APIMATIC v2.0
4
- # ( https://apimatic.io ).
5
-
6
- require 'date'
7
- module AdvancedBilling
8
- # CreateOrUpdatePercentageCoupon Model.
9
- class CreateOrUpdatePercentageCoupon < BaseModel
10
- SKIP = Object.new
11
- private_constant :SKIP
12
-
13
- # the name of the coupon
14
- # @return [String]
15
- attr_accessor :name
16
-
17
- # may contain uppercase alphanumeric characters and these special characters
18
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
19
- # “.”
20
- # @return [String]
21
- attr_accessor :code
22
-
23
- # may contain uppercase alphanumeric characters and these special characters
24
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
25
- # “.”
26
- # @return [String]
27
- attr_accessor :description
28
-
29
- # may contain uppercase alphanumeric characters and these special characters
30
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
31
- # “.”
32
- # @return [Object]
33
- attr_accessor :percentage
34
-
35
- # may contain uppercase alphanumeric characters and these special characters
36
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
37
- # “.”
38
- # @return [TrueClass | FalseClass]
39
- attr_accessor :allow_negative_balance
40
-
41
- # may contain uppercase alphanumeric characters and these special characters
42
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
43
- # “.”
44
- # @return [TrueClass | FalseClass]
45
- attr_accessor :recurring
46
-
47
- # may contain uppercase alphanumeric characters and these special characters
48
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
49
- # “.”
50
- # @return [DateTime]
51
- attr_accessor :end_date
52
-
53
- # may contain uppercase alphanumeric characters and these special characters
54
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
55
- # “.”
56
- # @return [String]
57
- attr_accessor :product_family_id
58
-
59
- # may contain uppercase alphanumeric characters and these special characters
60
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
61
- # “.”
62
- # @return [TrueClass | FalseClass]
63
- attr_accessor :stackable
64
-
65
- # may contain uppercase alphanumeric characters and these special characters
66
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
67
- # “.”
68
- # @return [CompoundingStrategy]
69
- attr_accessor :compounding_strategy
70
-
71
- # may contain uppercase alphanumeric characters and these special characters
72
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
73
- # “.”
74
- # @return [TrueClass | FalseClass]
75
- attr_accessor :exclude_mid_period_allocations
76
-
77
- # may contain uppercase alphanumeric characters and these special characters
78
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
79
- # “.”
80
- # @return [TrueClass | FalseClass]
81
- attr_accessor :apply_on_cancel_at_end_of_period
82
-
83
- # may contain uppercase alphanumeric characters and these special characters
84
- # (which allow for email addresses to be used): “%”, “@”, “+”, “-”, “_”, and
85
- # “.”
86
- # @return [TrueClass | FalseClass]
87
- attr_accessor :apply_on_subscription_expiration
88
-
89
- # A mapping from model property names to API property names.
90
- def self.names
91
- @_hash = {} if @_hash.nil?
92
- @_hash['name'] = 'name'
93
- @_hash['code'] = 'code'
94
- @_hash['description'] = 'description'
95
- @_hash['percentage'] = 'percentage'
96
- @_hash['allow_negative_balance'] = 'allow_negative_balance'
97
- @_hash['recurring'] = 'recurring'
98
- @_hash['end_date'] = 'end_date'
99
- @_hash['product_family_id'] = 'product_family_id'
100
- @_hash['stackable'] = 'stackable'
101
- @_hash['compounding_strategy'] = 'compounding_strategy'
102
- @_hash['exclude_mid_period_allocations'] =
103
- 'exclude_mid_period_allocations'
104
- @_hash['apply_on_cancel_at_end_of_period'] =
105
- 'apply_on_cancel_at_end_of_period'
106
- @_hash['apply_on_subscription_expiration'] =
107
- 'apply_on_subscription_expiration'
108
- @_hash
109
- end
110
-
111
- # An array for optional fields
112
- def self.optionals
113
- %w[
114
- description
115
- allow_negative_balance
116
- recurring
117
- end_date
118
- product_family_id
119
- stackable
120
- compounding_strategy
121
- exclude_mid_period_allocations
122
- apply_on_cancel_at_end_of_period
123
- apply_on_subscription_expiration
124
- ]
125
- end
126
-
127
- # An array for nullable fields
128
- def self.nullables
129
- []
130
- end
131
-
132
- def initialize(name:, code:, percentage:, description: SKIP,
133
- allow_negative_balance: SKIP, recurring: SKIP,
134
- end_date: SKIP, product_family_id: SKIP, stackable: SKIP,
135
- compounding_strategy: SKIP,
136
- exclude_mid_period_allocations: SKIP,
137
- apply_on_cancel_at_end_of_period: SKIP,
138
- apply_on_subscription_expiration: SKIP,
139
- additional_properties: {})
140
- @name = name
141
- @code = code
142
- @description = description unless description == SKIP
143
- @percentage = percentage
144
- @allow_negative_balance = allow_negative_balance unless allow_negative_balance == SKIP
145
- @recurring = recurring unless recurring == SKIP
146
- @end_date = end_date unless end_date == SKIP
147
- @product_family_id = product_family_id unless product_family_id == SKIP
148
- @stackable = stackable unless stackable == SKIP
149
- @compounding_strategy = compounding_strategy unless compounding_strategy == SKIP
150
- unless exclude_mid_period_allocations == SKIP
151
- @exclude_mid_period_allocations =
152
- exclude_mid_period_allocations
153
- end
154
- unless apply_on_cancel_at_end_of_period == SKIP
155
- @apply_on_cancel_at_end_of_period =
156
- apply_on_cancel_at_end_of_period
157
- end
158
- unless apply_on_subscription_expiration == SKIP
159
- @apply_on_subscription_expiration =
160
- apply_on_subscription_expiration
161
- end
162
-
163
- # Add additional model properties to the instance.
164
- additional_properties.each do |_name, _value|
165
- instance_variable_set("@#{_name}", _value)
166
- end
167
- end
168
-
169
- # Creates an instance of the object from a hash.
170
- def self.from_hash(hash)
171
- return nil unless hash
172
-
173
- # Extract variables from the hash.
174
- name = hash.key?('name') ? hash['name'] : nil
175
- code = hash.key?('code') ? hash['code'] : nil
176
- percentage = hash.key?('percentage') ? APIHelper.deserialize_union_type(
177
- UnionTypeLookUp.get(:CreateOrUpdatePercentageCouponPercentage), hash['percentage']
178
- ) : nil
179
- description = hash.key?('description') ? hash['description'] : SKIP
180
- allow_negative_balance =
181
- hash.key?('allow_negative_balance') ? hash['allow_negative_balance'] : SKIP
182
- recurring = hash.key?('recurring') ? hash['recurring'] : SKIP
183
- end_date = if hash.key?('end_date')
184
- (DateTimeHelper.from_rfc3339(hash['end_date']) if hash['end_date'])
185
- else
186
- SKIP
187
- end
188
- product_family_id =
189
- hash.key?('product_family_id') ? hash['product_family_id'] : SKIP
190
- stackable = hash.key?('stackable') ? hash['stackable'] : SKIP
191
- compounding_strategy =
192
- hash.key?('compounding_strategy') ? hash['compounding_strategy'] : SKIP
193
- exclude_mid_period_allocations =
194
- hash.key?('exclude_mid_period_allocations') ? hash['exclude_mid_period_allocations'] : SKIP
195
- apply_on_cancel_at_end_of_period =
196
- hash.key?('apply_on_cancel_at_end_of_period') ? hash['apply_on_cancel_at_end_of_period'] : SKIP
197
- apply_on_subscription_expiration =
198
- hash.key?('apply_on_subscription_expiration') ? hash['apply_on_subscription_expiration'] : SKIP
199
-
200
- # Clean out expected properties from Hash.
201
- names.each_value { |k| hash.delete(k) }
202
-
203
- # Create object from extracted values.
204
- CreateOrUpdatePercentageCoupon.new(name: name,
205
- code: code,
206
- percentage: percentage,
207
- description: description,
208
- allow_negative_balance: allow_negative_balance,
209
- recurring: recurring,
210
- end_date: end_date,
211
- product_family_id: product_family_id,
212
- stackable: stackable,
213
- compounding_strategy: compounding_strategy,
214
- exclude_mid_period_allocations: exclude_mid_period_allocations,
215
- apply_on_cancel_at_end_of_period: apply_on_cancel_at_end_of_period,
216
- apply_on_subscription_expiration: apply_on_subscription_expiration,
217
- additional_properties: hash)
218
- end
219
-
220
- def to_custom_end_date
221
- DateTimeHelper.to_rfc3339(end_date)
222
- end
223
-
224
- # Validates an instance of the object from a given value.
225
- # @param [CreateOrUpdatePercentageCoupon | Hash] The value against the validation is performed.
226
- def self.validate(value)
227
- if value.instance_of? self
228
- return (
229
- APIHelper.valid_type?(value.name,
230
- ->(val) { val.instance_of? String }) and
231
- APIHelper.valid_type?(value.code,
232
- ->(val) { val.instance_of? String }) and
233
- UnionTypeLookUp.get(:CreateOrUpdatePercentageCouponPercentage)
234
- .validate(value.percentage)
235
- )
236
- end
237
-
238
- return false unless value.instance_of? Hash
239
-
240
- (
241
- APIHelper.valid_type?(value['name'],
242
- ->(val) { val.instance_of? String }) and
243
- APIHelper.valid_type?(value['code'],
244
- ->(val) { val.instance_of? String }) and
245
- UnionTypeLookUp.get(:CreateOrUpdatePercentageCouponPercentage)
246
- .validate(value['percentage'])
247
- )
248
- end
249
- end
250
- end