maxio-advanced-billing-sdk 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (491) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -41
  3. data/lib/advanced_billing/client.rb +7 -1
  4. data/lib/advanced_billing/configuration.rb +1 -1
  5. data/lib/advanced_billing/controllers/base_controller.rb +1 -1
  6. data/lib/advanced_billing/controllers/component_price_points_controller.rb +420 -0
  7. data/lib/advanced_billing/controllers/components_controller.rb +0 -347
  8. data/lib/advanced_billing/controllers/product_families_controller.rb +2 -2
  9. data/lib/advanced_billing/controllers/product_price_points_controller.rb +16 -9
  10. data/lib/advanced_billing/controllers/products_controller.rb +2 -2
  11. data/lib/advanced_billing/models/account_balance.rb +6 -8
  12. data/lib/advanced_billing/models/account_balances.rb +9 -12
  13. data/lib/advanced_billing/models/ach_agreement.rb +8 -10
  14. data/lib/advanced_billing/models/activate_subscription_request.rb +3 -4
  15. data/lib/advanced_billing/models/add_coupons_request.rb +3 -4
  16. data/lib/advanced_billing/models/add_subscription_to_a_group.rb +3 -4
  17. data/lib/advanced_billing/models/address_change.rb +4 -6
  18. data/lib/advanced_billing/models/agreement_acceptance.rb +10 -14
  19. data/lib/advanced_billing/models/allocate_components.rb +14 -18
  20. data/lib/advanced_billing/models/allocation.rb +39 -52
  21. data/lib/advanced_billing/models/allocation_expiration_date.rb +3 -4
  22. data/lib/advanced_billing/models/allocation_preview.rb +20 -28
  23. data/lib/advanced_billing/models/allocation_preview_item.rb +28 -38
  24. data/lib/advanced_billing/models/allocation_preview_line_item.rb +15 -20
  25. data/lib/advanced_billing/models/allocation_preview_response.rb +3 -4
  26. data/lib/advanced_billing/models/allocation_response.rb +3 -4
  27. data/lib/advanced_billing/models/allocation_settings.rb +6 -8
  28. data/lib/advanced_billing/models/applied_credit_note_data.rb +4 -6
  29. data/lib/advanced_billing/models/apply_credit_note_event.rb +9 -12
  30. data/lib/advanced_billing/models/apply_credit_note_event_data.rb +15 -22
  31. data/lib/advanced_billing/models/apply_debit_note_event.rb +9 -12
  32. data/lib/advanced_billing/models/apply_debit_note_event_data.rb +10 -14
  33. data/lib/advanced_billing/models/apply_payment_event.rb +9 -12
  34. data/lib/advanced_billing/models/apply_payment_event_data.rb +17 -24
  35. data/lib/advanced_billing/models/attribute_error.rb +3 -4
  36. data/lib/advanced_billing/models/auto_resume.rb +3 -4
  37. data/lib/advanced_billing/models/backport_invoice_event.rb +9 -12
  38. data/lib/advanced_billing/models/bank_account_attributes.rb +19 -26
  39. data/lib/advanced_billing/models/bank_account_payment_profile.rb +34 -46
  40. data/lib/advanced_billing/models/bank_account_response.rb +3 -4
  41. data/lib/advanced_billing/models/bank_account_verification.rb +5 -6
  42. data/lib/advanced_billing/models/bank_account_verification_request.rb +3 -4
  43. data/lib/advanced_billing/models/base_refund_error.rb +3 -4
  44. data/lib/advanced_billing/models/base_string_error.rb +3 -4
  45. data/lib/advanced_billing/models/batch_job.rb +8 -12
  46. data/lib/advanced_billing/models/batch_job_response.rb +3 -4
  47. data/lib/advanced_billing/models/billing_manifest.rb +15 -20
  48. data/lib/advanced_billing/models/billing_manifest_item.rb +22 -30
  49. data/lib/advanced_billing/models/billing_schedule.rb +3 -4
  50. data/lib/advanced_billing/models/breakouts.rb +8 -10
  51. data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +3 -4
  52. data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +3 -4
  53. data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +3 -4
  54. data/lib/advanced_billing/models/bulk_create_segments.rb +3 -4
  55. data/lib/advanced_billing/models/bulk_update_segments.rb +3 -4
  56. data/lib/advanced_billing/models/bulk_update_segments_item.rb +5 -8
  57. data/lib/advanced_billing/models/calendar_billing.rb +5 -6
  58. data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +3 -4
  59. data/lib/advanced_billing/models/cancellation_options.rb +5 -6
  60. data/lib/advanced_billing/models/cancellation_request.rb +3 -4
  61. data/lib/advanced_billing/models/change_chargeback_status_event.rb +9 -12
  62. data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +3 -4
  63. data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +11 -12
  64. data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +5 -6
  65. data/lib/advanced_billing/models/change_invoice_status_event.rb +9 -12
  66. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +9 -12
  67. data/lib/advanced_billing/models/chargify_ebb.rb +10 -14
  68. data/lib/advanced_billing/models/component.rb +49 -70
  69. data/lib/advanced_billing/models/component_allocation_change.rb +11 -16
  70. data/lib/advanced_billing/models/component_allocation_error_item.rb +7 -10
  71. data/lib/advanced_billing/models/component_cost_data.rb +11 -16
  72. data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +9 -12
  73. data/lib/advanced_billing/models/component_currency_price.rb +10 -14
  74. data/lib/advanced_billing/models/component_currency_prices_response.rb +3 -4
  75. data/lib/advanced_billing/models/component_custom_price.rb +7 -10
  76. data/lib/advanced_billing/models/component_price.rb +13 -18
  77. data/lib/advanced_billing/models/component_price_point.rb +25 -36
  78. data/lib/advanced_billing/models/component_price_point_assignment.rb +5 -6
  79. data/lib/advanced_billing/models/component_price_point_error_item.rb +6 -8
  80. data/lib/advanced_billing/models/component_price_point_item.rb +10 -14
  81. data/lib/advanced_billing/models/component_price_point_response.rb +3 -4
  82. data/lib/advanced_billing/models/component_price_points_response.rb +4 -6
  83. data/lib/advanced_billing/models/component_response.rb +3 -4
  84. data/lib/advanced_billing/models/consolidated_invoice.rb +3 -4
  85. data/lib/advanced_billing/models/count_response.rb +3 -4
  86. data/lib/advanced_billing/models/coupon.rb +45 -62
  87. data/lib/advanced_billing/models/coupon_currency.rb +7 -10
  88. data/lib/advanced_billing/models/coupon_currency_request.rb +3 -4
  89. data/lib/advanced_billing/models/coupon_currency_response.rb +3 -4
  90. data/lib/advanced_billing/models/coupon_response.rb +3 -4
  91. data/lib/advanced_billing/models/coupon_restriction.rb +8 -12
  92. data/lib/advanced_billing/models/coupon_subcodes.rb +3 -4
  93. data/lib/advanced_billing/models/coupon_subcodes_response.rb +6 -8
  94. data/lib/advanced_billing/models/coupon_usage.rb +11 -16
  95. data/lib/advanced_billing/models/create_allocation.rb +18 -24
  96. data/lib/advanced_billing/models/create_allocation_request.rb +3 -4
  97. data/lib/advanced_billing/models/create_component_price_point.rb +13 -18
  98. data/lib/advanced_billing/models/create_component_price_point_request.rb +3 -4
  99. data/lib/advanced_billing/models/create_component_price_points_request.rb +3 -4
  100. data/lib/advanced_billing/models/create_credit_note_event.rb +9 -12
  101. data/lib/advanced_billing/models/create_currency_price.rb +6 -8
  102. data/lib/advanced_billing/models/create_currency_prices_request.rb +3 -4
  103. data/lib/advanced_billing/models/create_customer.rb +25 -38
  104. data/lib/advanced_billing/models/create_customer_request.rb +3 -4
  105. data/lib/advanced_billing/models/create_debit_note_event.rb +9 -12
  106. data/lib/advanced_billing/models/create_ebb_component.rb +3 -4
  107. data/lib/advanced_billing/models/create_invoice.rb +15 -22
  108. data/lib/advanced_billing/models/create_invoice_address.rb +13 -20
  109. data/lib/advanced_billing/models/create_invoice_coupon.rb +10 -14
  110. data/lib/advanced_billing/models/create_invoice_item.rb +18 -26
  111. data/lib/advanced_billing/models/create_invoice_payment.rb +8 -12
  112. data/lib/advanced_billing/models/create_invoice_payment_application.rb +4 -6
  113. data/lib/advanced_billing/models/create_invoice_payment_request.rb +4 -6
  114. data/lib/advanced_billing/models/create_invoice_request.rb +3 -4
  115. data/lib/advanced_billing/models/create_metadata.rb +4 -6
  116. data/lib/advanced_billing/models/create_metadata_request.rb +3 -4
  117. data/lib/advanced_billing/models/create_metafield.rb +7 -10
  118. data/lib/advanced_billing/models/create_metafields_request.rb +3 -4
  119. data/lib/advanced_billing/models/create_metered_component.rb +3 -4
  120. data/lib/advanced_billing/models/create_multi_invoice_payment.rb +9 -14
  121. data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +3 -4
  122. data/lib/advanced_billing/models/create_offer.rb +11 -16
  123. data/lib/advanced_billing/models/create_offer_component.rb +6 -8
  124. data/lib/advanced_billing/models/create_offer_request.rb +3 -4
  125. data/lib/advanced_billing/models/create_on_off_component.rb +3 -4
  126. data/lib/advanced_billing/models/create_or_update_coupon.rb +6 -8
  127. data/lib/advanced_billing/models/create_or_update_endpoint.rb +4 -6
  128. data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +3 -4
  129. data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +22 -28
  130. data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +22 -28
  131. data/lib/advanced_billing/models/create_or_update_product.rb +25 -34
  132. data/lib/advanced_billing/models/create_or_update_product_request.rb +3 -4
  133. data/lib/advanced_billing/models/create_or_update_segment_price.rb +6 -8
  134. data/lib/advanced_billing/models/create_payment.rb +7 -10
  135. data/lib/advanced_billing/models/create_payment_profile.rb +47 -66
  136. data/lib/advanced_billing/models/create_payment_profile_request.rb +3 -4
  137. data/lib/advanced_billing/models/create_prepaid_component.rb +3 -4
  138. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +16 -22
  139. data/lib/advanced_billing/models/create_prepayment.rb +8 -12
  140. data/lib/advanced_billing/models/create_prepayment_request.rb +3 -4
  141. data/lib/advanced_billing/models/create_prepayment_response.rb +3 -4
  142. data/lib/advanced_billing/models/create_product_currency_price.rb +5 -8
  143. data/lib/advanced_billing/models/create_product_currency_prices_request.rb +3 -4
  144. data/lib/advanced_billing/models/create_product_family.rb +6 -8
  145. data/lib/advanced_billing/models/create_product_family_request.rb +3 -4
  146. data/lib/advanced_billing/models/create_product_price_point.rb +22 -30
  147. data/lib/advanced_billing/models/create_product_price_point_request.rb +3 -4
  148. data/lib/advanced_billing/models/create_quantity_based_component.rb +3 -4
  149. data/lib/advanced_billing/models/create_reason_code.rb +6 -8
  150. data/lib/advanced_billing/models/create_reason_code_request.rb +3 -4
  151. data/lib/advanced_billing/models/create_segment.rb +12 -14
  152. data/lib/advanced_billing/models/create_segment_request.rb +3 -4
  153. data/lib/advanced_billing/models/create_subscription.rb +78 -100
  154. data/lib/advanced_billing/models/create_subscription_component.rb +12 -16
  155. data/lib/advanced_billing/models/create_subscription_group.rb +5 -6
  156. data/lib/advanced_billing/models/create_subscription_group_request.rb +3 -4
  157. data/lib/advanced_billing/models/create_subscription_request.rb +3 -4
  158. data/lib/advanced_billing/models/create_usage.rb +7 -10
  159. data/lib/advanced_billing/models/create_usage_request.rb +3 -4
  160. data/lib/advanced_billing/models/created_prepayment.rb +12 -16
  161. data/lib/advanced_billing/models/credit_account_balance_changed.rb +9 -12
  162. data/lib/advanced_billing/models/credit_card_attributes.rb +6 -8
  163. data/lib/advanced_billing/models/credit_card_payment_profile.rb +33 -46
  164. data/lib/advanced_billing/models/credit_note.rb +38 -56
  165. data/lib/advanced_billing/models/credit_note_application.rb +8 -12
  166. data/lib/advanced_billing/models/credit_note_line_item.rb +27 -38
  167. data/lib/advanced_billing/models/credit_scheme_request.rb +3 -4
  168. data/lib/advanced_billing/models/currency_price.rb +10 -14
  169. data/lib/advanced_billing/models/currency_prices_response.rb +3 -4
  170. data/lib/advanced_billing/models/custom_field_value_change.rb +11 -16
  171. data/lib/advanced_billing/models/customer.rb +39 -56
  172. data/lib/advanced_billing/models/customer_attributes.rb +25 -38
  173. data/lib/advanced_billing/models/customer_change.rb +7 -10
  174. data/lib/advanced_billing/models/customer_changes_preview_response.rb +3 -4
  175. data/lib/advanced_billing/models/customer_custom_fields_change.rb +4 -6
  176. data/lib/advanced_billing/models/customer_error.rb +3 -4
  177. data/lib/advanced_billing/models/customer_payer_change.rb +4 -6
  178. data/lib/advanced_billing/models/customer_response.rb +3 -4
  179. data/lib/advanced_billing/models/debit_note.rb +33 -48
  180. data/lib/advanced_billing/models/deduct_service_credit.rb +4 -6
  181. data/lib/advanced_billing/models/deduct_service_credit_request.rb +3 -4
  182. data/lib/advanced_billing/models/delayed_cancellation_response.rb +3 -4
  183. data/lib/advanced_billing/models/delete_subscription_group_response.rb +4 -6
  184. data/lib/advanced_billing/models/dunner_data.rb +10 -14
  185. data/lib/advanced_billing/models/dunning_step_data.rb +12 -18
  186. data/lib/advanced_billing/models/dunning_step_reached.rb +6 -8
  187. data/lib/advanced_billing/models/ebb_component.rb +26 -36
  188. data/lib/advanced_billing/models/ebb_event.rb +3 -4
  189. data/lib/advanced_billing/models/enable_webhooks_request.rb +3 -4
  190. data/lib/advanced_billing/models/enable_webhooks_response.rb +3 -4
  191. data/lib/advanced_billing/models/endpoint.rb +8 -12
  192. data/lib/advanced_billing/models/endpoint_response.rb +3 -4
  193. data/lib/advanced_billing/models/errors.rb +4 -6
  194. data/lib/advanced_billing/models/event.rb +10 -16
  195. data/lib/advanced_billing/models/event_based_billing_segment_error.rb +3 -4
  196. data/lib/advanced_billing/models/event_response.rb +3 -4
  197. data/lib/advanced_billing/models/failed_payment_event.rb +9 -12
  198. data/lib/advanced_billing/models/failed_payment_event_data.rb +8 -12
  199. data/lib/advanced_billing/models/full_subscription_group_response.rb +19 -26
  200. data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +30 -44
  201. data/lib/advanced_billing/models/get_one_time_token_request.rb +3 -4
  202. data/lib/advanced_billing/models/group_billing.rb +6 -8
  203. data/lib/advanced_billing/models/group_settings.rb +4 -6
  204. data/lib/advanced_billing/models/group_target.rb +4 -6
  205. data/lib/advanced_billing/models/historic_usage.rb +6 -8
  206. data/lib/advanced_billing/models/invoice.rb +74 -106
  207. data/lib/advanced_billing/models/invoice_address.rb +9 -14
  208. data/lib/advanced_billing/models/invoice_balance_item.rb +6 -8
  209. data/lib/advanced_billing/models/invoice_credit.rb +11 -16
  210. data/lib/advanced_billing/models/invoice_custom_field.rb +8 -12
  211. data/lib/advanced_billing/models/invoice_customer.rb +11 -16
  212. data/lib/advanced_billing/models/invoice_discount.rb +18 -26
  213. data/lib/advanced_billing/models/invoice_discount_breakout.rb +6 -8
  214. data/lib/advanced_billing/models/invoice_display_settings.rb +5 -6
  215. data/lib/advanced_billing/models/invoice_issued.rb +20 -32
  216. data/lib/advanced_billing/models/invoice_line_item.rb +32 -46
  217. data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +3 -4
  218. data/lib/advanced_billing/models/invoice_line_item_event_data.rb +30 -42
  219. data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +4 -6
  220. data/lib/advanced_billing/models/invoice_payer.rb +10 -14
  221. data/lib/advanced_billing/models/invoice_payer_change.rb +7 -10
  222. data/lib/advanced_billing/models/invoice_payment.rb +16 -22
  223. data/lib/advanced_billing/models/invoice_payment_application.rb +6 -8
  224. data/lib/advanced_billing/models/invoice_payment_method.rb +12 -18
  225. data/lib/advanced_billing/models/invoice_pre_payment.rb +6 -8
  226. data/lib/advanced_billing/models/invoice_previous_balance.rb +4 -6
  227. data/lib/advanced_billing/models/invoice_refund.rb +13 -18
  228. data/lib/advanced_billing/models/invoice_response.rb +3 -4
  229. data/lib/advanced_billing/models/invoice_seller.rb +7 -10
  230. data/lib/advanced_billing/models/invoice_tax.rb +17 -24
  231. data/lib/advanced_billing/models/invoice_tax_breakout.rb +7 -10
  232. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +7 -10
  233. data/lib/advanced_billing/models/issue_advance_invoice_request.rb +3 -4
  234. data/lib/advanced_billing/models/issue_invoice_event.rb +9 -12
  235. data/lib/advanced_billing/models/issue_invoice_event_data.rb +8 -12
  236. data/lib/advanced_billing/models/issue_invoice_request.rb +4 -4
  237. data/lib/advanced_billing/models/issue_service_credit.rb +4 -6
  238. data/lib/advanced_billing/models/issue_service_credit_request.rb +3 -4
  239. data/lib/advanced_billing/models/item_price_point_changed.rb +10 -14
  240. data/lib/advanced_billing/models/item_price_point_data.rb +6 -8
  241. data/lib/advanced_billing/models/list_components_filter.rb +5 -6
  242. data/lib/advanced_billing/models/list_components_price_points_response.rb +3 -4
  243. data/lib/advanced_billing/models/list_coupons_filter.rb +13 -18
  244. data/lib/advanced_billing/models/list_credit_notes_response.rb +3 -4
  245. data/lib/advanced_billing/models/list_invoice_events_response.rb +7 -10
  246. data/lib/advanced_billing/models/list_invoices_response.rb +3 -4
  247. data/lib/advanced_billing/models/list_metafields_response.rb +8 -12
  248. data/lib/advanced_billing/models/list_mrr_filter.rb +3 -4
  249. data/lib/advanced_billing/models/list_mrr_response.rb +3 -4
  250. data/lib/advanced_billing/models/list_mrr_response_result.rb +11 -16
  251. data/lib/advanced_billing/models/list_offers_response.rb +3 -4
  252. data/lib/advanced_billing/models/list_prepayments_filter.rb +6 -8
  253. data/lib/advanced_billing/models/list_price_points_filter.rb +12 -18
  254. data/lib/advanced_billing/models/list_product_price_points_response.rb +3 -4
  255. data/lib/advanced_billing/models/list_products_filter.rb +5 -6
  256. data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +7 -10
  257. data/lib/advanced_billing/models/list_proforma_invoices_response.rb +5 -6
  258. data/lib/advanced_billing/models/list_public_keys_meta.rb +7 -10
  259. data/lib/advanced_billing/models/list_public_keys_response.rb +5 -6
  260. data/lib/advanced_billing/models/list_sale_rep_item.rb +8 -12
  261. data/lib/advanced_billing/models/list_segments_filter.rb +9 -10
  262. data/lib/advanced_billing/models/list_segments_response.rb +3 -4
  263. data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +15 -20
  264. data/lib/advanced_billing/models/list_subscription_components_filter.rb +5 -6
  265. data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +6 -8
  266. data/lib/advanced_billing/models/list_subscription_components_response.rb +3 -4
  267. data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +3 -4
  268. data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +3 -4
  269. data/lib/advanced_billing/models/list_subscription_groups_item.rb +18 -24
  270. data/lib/advanced_billing/models/list_subscription_groups_meta.rb +5 -6
  271. data/lib/advanced_billing/models/list_subscription_groups_response.rb +5 -6
  272. data/lib/advanced_billing/models/metadata.rb +10 -14
  273. data/lib/advanced_billing/models/metafield.rb +9 -14
  274. data/lib/advanced_billing/models/metafield_scope.rb +11 -16
  275. data/lib/advanced_billing/models/metered_component.rb +29 -40
  276. data/lib/advanced_billing/models/metered_usage.rb +10 -14
  277. data/lib/advanced_billing/models/movement.rb +14 -20
  278. data/lib/advanced_billing/models/movement_line_item.rb +14 -20
  279. data/lib/advanced_billing/models/mrr.rb +10 -14
  280. data/lib/advanced_billing/models/mrr_movement.rb +7 -10
  281. data/lib/advanced_billing/models/mrr_response.rb +3 -4
  282. data/lib/advanced_billing/models/multi_invoice_payment.rb +8 -10
  283. data/lib/advanced_billing/models/multi_invoice_payment_response.rb +3 -4
  284. data/lib/advanced_billing/models/nested_subscription_group.rb +7 -10
  285. data/lib/advanced_billing/models/net_terms.rb +10 -12
  286. data/lib/advanced_billing/models/offer.rb +28 -40
  287. data/lib/advanced_billing/models/offer_discount.rb +6 -8
  288. data/lib/advanced_billing/models/offer_item.rb +17 -22
  289. data/lib/advanced_billing/models/offer_response.rb +3 -4
  290. data/lib/advanced_billing/models/offer_signup_page.rb +9 -14
  291. data/lib/advanced_billing/models/on_off_component.rb +26 -36
  292. data/lib/advanced_billing/models/organization_address.rb +12 -18
  293. data/lib/advanced_billing/models/origin_invoice.rb +4 -6
  294. data/lib/advanced_billing/models/overage_pricing.rb +4 -6
  295. data/lib/advanced_billing/models/override_subscription.rb +9 -12
  296. data/lib/advanced_billing/models/override_subscription_request.rb +3 -4
  297. data/lib/advanced_billing/models/paginated_metadata.rb +8 -12
  298. data/lib/advanced_billing/models/paid_invoice.rb +7 -10
  299. data/lib/advanced_billing/models/pause_request.rb +3 -4
  300. data/lib/advanced_billing/models/payer_attributes.rb +25 -38
  301. data/lib/advanced_billing/models/payer_error.rb +6 -8
  302. data/lib/advanced_billing/models/payment_collection_method_changed.rb +4 -6
  303. data/lib/advanced_billing/models/payment_for_allocation.rb +7 -10
  304. data/lib/advanced_billing/models/payment_method_apple_pay.rb +3 -4
  305. data/lib/advanced_billing/models/payment_method_bank_account.rb +6 -8
  306. data/lib/advanced_billing/models/payment_method_credit_card.rb +9 -12
  307. data/lib/advanced_billing/models/payment_method_external.rb +6 -10
  308. data/lib/advanced_billing/models/payment_method_paypal.rb +4 -6
  309. data/lib/advanced_billing/models/payment_profile_attributes.rb +37 -52
  310. data/lib/advanced_billing/models/payment_profile_response.rb +3 -4
  311. data/lib/advanced_billing/models/payment_related_events.rb +5 -6
  312. data/lib/advanced_billing/models/pending_cancellation_change.rb +4 -6
  313. data/lib/advanced_billing/models/portal_management_link.rb +10 -14
  314. data/lib/advanced_billing/models/prepaid_component_price_point.rb +8 -12
  315. data/lib/advanced_billing/models/prepaid_configuration.rb +10 -12
  316. data/lib/advanced_billing/models/prepaid_configuration_response.rb +3 -4
  317. data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +2 -2
  318. data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +8 -10
  319. data/lib/advanced_billing/models/prepaid_usage.rb +16 -22
  320. data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +6 -8
  321. data/lib/advanced_billing/models/prepaid_usage_component.rb +33 -46
  322. data/lib/advanced_billing/models/prepayment.rb +15 -22
  323. data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +8 -10
  324. data/lib/advanced_billing/models/prepayment_response.rb +3 -4
  325. data/lib/advanced_billing/models/prepayments_response.rb +3 -4
  326. data/lib/advanced_billing/models/preview_allocations_request.rb +8 -10
  327. data/lib/advanced_billing/models/price.rb +6 -8
  328. data/lib/advanced_billing/models/product.rb +56 -76
  329. data/lib/advanced_billing/models/product_family.rb +11 -16
  330. data/lib/advanced_billing/models/product_family_response.rb +3 -4
  331. data/lib/advanced_billing/models/product_price_point.rb +36 -50
  332. data/lib/advanced_billing/models/product_price_point_errors.rb +10 -14
  333. data/lib/advanced_billing/models/product_price_point_response.rb +3 -4
  334. data/lib/advanced_billing/models/product_response.rb +3 -4
  335. data/lib/advanced_billing/models/proforma_error.rb +3 -4
  336. data/lib/advanced_billing/models/proforma_invoice.rb +51 -74
  337. data/lib/advanced_billing/models/proforma_invoice_credit.rb +7 -10
  338. data/lib/advanced_billing/models/proforma_invoice_discount.rb +13 -18
  339. data/lib/advanced_billing/models/proforma_invoice_issued.rb +15 -24
  340. data/lib/advanced_billing/models/proforma_invoice_payment.rb +7 -10
  341. data/lib/advanced_billing/models/proforma_invoice_tax.rb +11 -16
  342. data/lib/advanced_billing/models/proration.rb +3 -4
  343. data/lib/advanced_billing/models/public_key.rb +6 -8
  344. data/lib/advanced_billing/models/public_signup_page.rb +7 -10
  345. data/lib/advanced_billing/models/quantity_based_component.rb +30 -42
  346. data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +5 -6
  347. data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +15 -20
  348. data/lib/advanced_billing/models/reactivate_subscription_request.rb +11 -14
  349. data/lib/advanced_billing/models/reactivation_billing.rb +4 -4
  350. data/lib/advanced_billing/models/reason_code.rb +11 -16
  351. data/lib/advanced_billing/models/reason_code_response.rb +3 -4
  352. data/lib/advanced_billing/models/reason_codes_json_response.rb +3 -4
  353. data/lib/advanced_billing/models/record_payment_request.rb +3 -4
  354. data/lib/advanced_billing/models/record_payment_response.rb +5 -6
  355. data/lib/advanced_billing/models/referral_code.rb +7 -10
  356. data/lib/advanced_billing/models/referral_validation_response.rb +3 -4
  357. data/lib/advanced_billing/models/refund_consolidated_invoice.rb +9 -14
  358. data/lib/advanced_billing/models/refund_invoice.rb +10 -14
  359. data/lib/advanced_billing/models/refund_invoice_event.rb +9 -12
  360. data/lib/advanced_billing/models/refund_invoice_event_data.rb +14 -20
  361. data/lib/advanced_billing/models/refund_invoice_request.rb +3 -4
  362. data/lib/advanced_billing/models/refund_prepayment.rb +7 -10
  363. data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +3 -4
  364. data/lib/advanced_billing/models/refund_prepayment_request.rb +3 -4
  365. data/lib/advanced_billing/models/refund_success.rb +6 -8
  366. data/lib/advanced_billing/models/remove_payment_event.rb +9 -12
  367. data/lib/advanced_billing/models/remove_payment_event_data.rb +11 -16
  368. data/lib/advanced_billing/models/renewal_preview.rb +15 -20
  369. data/lib/advanced_billing/models/renewal_preview_component.rb +6 -8
  370. data/lib/advanced_billing/models/renewal_preview_line_item.rb +22 -30
  371. data/lib/advanced_billing/models/renewal_preview_request.rb +3 -4
  372. data/lib/advanced_billing/models/renewal_preview_response.rb +3 -4
  373. data/lib/advanced_billing/models/replay_webhooks_request.rb +3 -4
  374. data/lib/advanced_billing/models/replay_webhooks_response.rb +3 -4
  375. data/lib/advanced_billing/models/resent_invitation.rb +8 -10
  376. data/lib/advanced_billing/models/resume_options.rb +5 -6
  377. data/lib/advanced_billing/models/revoked_invitation.rb +6 -8
  378. data/lib/advanced_billing/models/sale_rep.rb +9 -12
  379. data/lib/advanced_billing/models/sale_rep_item_mrr.rb +6 -8
  380. data/lib/advanced_billing/models/sale_rep_settings.rb +11 -16
  381. data/lib/advanced_billing/models/sale_rep_subscription.rb +15 -22
  382. data/lib/advanced_billing/models/segment.rb +20 -26
  383. data/lib/advanced_billing/models/segment_price.rb +13 -18
  384. data/lib/advanced_billing/models/segment_response.rb +3 -4
  385. data/lib/advanced_billing/models/send_invoice_request.rb +6 -8
  386. data/lib/advanced_billing/models/service_credit.rb +9 -12
  387. data/lib/advanced_billing/models/service_credit_response.rb +3 -4
  388. data/lib/advanced_billing/models/signup_proforma_preview.rb +5 -6
  389. data/lib/advanced_billing/models/signup_proforma_preview_response.rb +3 -4
  390. data/lib/advanced_billing/models/site.rb +25 -34
  391. data/lib/advanced_billing/models/site_response.rb +3 -4
  392. data/lib/advanced_billing/models/site_statistics.rb +20 -24
  393. data/lib/advanced_billing/models/site_summary.rb +8 -12
  394. data/lib/advanced_billing/models/subscription.rb +94 -126
  395. data/lib/advanced_billing/models/subscription_component.rb +48 -66
  396. data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +4 -6
  397. data/lib/advanced_billing/models/subscription_component_response.rb +3 -4
  398. data/lib/advanced_billing/models/subscription_component_subscription.rb +4 -6
  399. data/lib/advanced_billing/models/subscription_custom_price.rb +21 -28
  400. data/lib/advanced_billing/models/subscription_filter.rb +10 -14
  401. data/lib/advanced_billing/models/subscription_group.rb +9 -12
  402. data/lib/advanced_billing/models/subscription_group_balances.rb +8 -10
  403. data/lib/advanced_billing/models/subscription_group_bank_account.rb +26 -34
  404. data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +6 -8
  405. data/lib/advanced_billing/models/subscription_group_credit_card.rb +30 -42
  406. data/lib/advanced_billing/models/subscription_group_customer.rb +8 -12
  407. data/lib/advanced_billing/models/subscription_group_item.rb +16 -22
  408. data/lib/advanced_billing/models/subscription_group_member_error.rb +6 -8
  409. data/lib/advanced_billing/models/subscription_group_members_array_error.rb +3 -4
  410. data/lib/advanced_billing/models/subscription_group_payment_profile.rb +7 -10
  411. data/lib/advanced_billing/models/subscription_group_prepayment.rb +6 -10
  412. data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +3 -4
  413. data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +9 -12
  414. data/lib/advanced_billing/models/subscription_group_response.rb +3 -4
  415. data/lib/advanced_billing/models/subscription_group_signup.rb +13 -18
  416. data/lib/advanced_billing/models/subscription_group_signup_component.rb +9 -12
  417. data/lib/advanced_billing/models/subscription_group_signup_error.rb +10 -14
  418. data/lib/advanced_billing/models/subscription_group_signup_failure.rb +4 -6
  419. data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +14 -18
  420. data/lib/advanced_billing/models/subscription_group_signup_item.rb +21 -28
  421. data/lib/advanced_billing/models/subscription_group_signup_request.rb +3 -4
  422. data/lib/advanced_billing/models/subscription_group_signup_response.rb +18 -24
  423. data/lib/advanced_billing/models/subscription_group_signup_success.rb +4 -6
  424. data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +14 -20
  425. data/lib/advanced_billing/models/subscription_group_single_error.rb +3 -4
  426. data/lib/advanced_billing/models/subscription_group_subscription_error.rb +14 -18
  427. data/lib/advanced_billing/models/subscription_group_update_error.rb +3 -4
  428. data/lib/advanced_billing/models/subscription_included_coupon.rb +11 -16
  429. data/lib/advanced_billing/models/subscription_migration_preview.rb +8 -10
  430. data/lib/advanced_billing/models/subscription_migration_preview_options.rb +17 -22
  431. data/lib/advanced_billing/models/subscription_migration_preview_request.rb +3 -4
  432. data/lib/advanced_billing/models/subscription_migration_preview_response.rb +3 -4
  433. data/lib/advanced_billing/models/subscription_mrr.rb +6 -8
  434. data/lib/advanced_billing/models/subscription_mrr_breakout.rb +5 -6
  435. data/lib/advanced_billing/models/subscription_mrr_response.rb +3 -4
  436. data/lib/advanced_billing/models/subscription_note.rb +10 -14
  437. data/lib/advanced_billing/models/subscription_note_response.rb +3 -4
  438. data/lib/advanced_billing/models/subscription_preview.rb +5 -6
  439. data/lib/advanced_billing/models/subscription_preview_response.rb +3 -4
  440. data/lib/advanced_billing/models/subscription_product_change.rb +5 -6
  441. data/lib/advanced_billing/models/subscription_product_migration.rb +15 -20
  442. data/lib/advanced_billing/models/subscription_product_migration_request.rb +3 -4
  443. data/lib/advanced_billing/models/subscription_response.rb +3 -4
  444. data/lib/advanced_billing/models/subscription_state_change.rb +5 -6
  445. data/lib/advanced_billing/models/tax_configuration.rb +7 -8
  446. data/lib/advanced_billing/models/too_many_management_link_requests.rb +4 -6
  447. data/lib/advanced_billing/models/update_allocation_expiration_date.rb +3 -4
  448. data/lib/advanced_billing/models/update_component.rb +14 -20
  449. data/lib/advanced_billing/models/update_component_price_point.rb +13 -18
  450. data/lib/advanced_billing/models/update_component_price_point_request.rb +3 -4
  451. data/lib/advanced_billing/models/update_component_request.rb +3 -4
  452. data/lib/advanced_billing/models/update_coupon_currency.rb +4 -6
  453. data/lib/advanced_billing/models/update_currency_price.rb +4 -6
  454. data/lib/advanced_billing/models/update_currency_prices_request.rb +3 -4
  455. data/lib/advanced_billing/models/update_customer.rb +26 -40
  456. data/lib/advanced_billing/models/update_customer_request.rb +3 -4
  457. data/lib/advanced_billing/models/update_metadata.rb +6 -8
  458. data/lib/advanced_billing/models/update_metadata_request.rb +3 -4
  459. data/lib/advanced_billing/models/update_metafield.rb +8 -12
  460. data/lib/advanced_billing/models/update_metafields_request.rb +3 -4
  461. data/lib/advanced_billing/models/update_payment_profile.rb +21 -28
  462. data/lib/advanced_billing/models/update_payment_profile_request.rb +3 -4
  463. data/lib/advanced_billing/models/update_price.rb +9 -12
  464. data/lib/advanced_billing/models/update_product_price_point.rb +5 -6
  465. data/lib/advanced_billing/models/update_product_price_point_request.rb +3 -4
  466. data/lib/advanced_billing/models/update_reason_code.rb +6 -8
  467. data/lib/advanced_billing/models/update_reason_code_request.rb +3 -4
  468. data/lib/advanced_billing/models/update_segment.rb +4 -6
  469. data/lib/advanced_billing/models/update_segment_request.rb +3 -4
  470. data/lib/advanced_billing/models/update_subscription.rb +29 -36
  471. data/lib/advanced_billing/models/update_subscription_component.rb +5 -6
  472. data/lib/advanced_billing/models/update_subscription_group.rb +3 -4
  473. data/lib/advanced_billing/models/update_subscription_group_request.rb +3 -4
  474. data/lib/advanced_billing/models/update_subscription_note.rb +4 -6
  475. data/lib/advanced_billing/models/update_subscription_note_request.rb +3 -4
  476. data/lib/advanced_billing/models/update_subscription_request.rb +3 -4
  477. data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +9 -10
  478. data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +3 -4
  479. data/lib/advanced_billing/models/usage.rb +14 -20
  480. data/lib/advanced_billing/models/usage_response.rb +3 -4
  481. data/lib/advanced_billing/models/void_invoice.rb +3 -4
  482. data/lib/advanced_billing/models/void_invoice_event.rb +9 -12
  483. data/lib/advanced_billing/models/void_invoice_event_data.rb +10 -14
  484. data/lib/advanced_billing/models/void_invoice_request.rb +3 -4
  485. data/lib/advanced_billing/models/void_remainder_event.rb +9 -12
  486. data/lib/advanced_billing/models/void_remainder_event_data.rb +7 -10
  487. data/lib/advanced_billing/models/webhook.rb +18 -26
  488. data/lib/advanced_billing/models/webhook_response.rb +3 -4
  489. data/lib/advanced_billing/utilities/union_type_lookup.rb +42 -0
  490. data/lib/advanced_billing.rb +2 -0
  491. metadata +3 -2
@@ -95,17 +95,11 @@ module AdvancedBilling
95
95
  []
96
96
  end
97
97
 
98
- def initialize(name = nil,
99
- pricing_scheme = nil,
100
- prices = nil,
101
- overage_pricing = nil,
102
- handle = SKIP,
103
- use_site_exchange_rate = true,
104
- rollover_prepaid_remainder = SKIP,
105
- renew_prepaid_allocation = SKIP,
106
- expiration_interval = SKIP,
107
- expiration_interval_unit = SKIP,
108
- additional_properties = {})
98
+ def initialize(name:, pricing_scheme:, prices:, overage_pricing:,
99
+ handle: SKIP, use_site_exchange_rate: true,
100
+ rollover_prepaid_remainder: SKIP,
101
+ renew_prepaid_allocation: SKIP, expiration_interval: SKIP,
102
+ expiration_interval_unit: SKIP, additional_properties: {})
109
103
  @name = name
110
104
  @handle = handle unless handle == SKIP
111
105
  @pricing_scheme = pricing_scheme
@@ -161,17 +155,17 @@ module AdvancedBilling
161
155
  names.each_value { |k| hash.delete(k) }
162
156
 
163
157
  # Create object from extracted values.
164
- CreatePrepaidUsageComponentPricePoint.new(name,
165
- pricing_scheme,
166
- prices,
167
- overage_pricing,
168
- handle,
169
- use_site_exchange_rate,
170
- rollover_prepaid_remainder,
171
- renew_prepaid_allocation,
172
- expiration_interval,
173
- expiration_interval_unit,
174
- hash)
158
+ CreatePrepaidUsageComponentPricePoint.new(name: name,
159
+ pricing_scheme: pricing_scheme,
160
+ prices: prices,
161
+ overage_pricing: overage_pricing,
162
+ handle: handle,
163
+ use_site_exchange_rate: use_site_exchange_rate,
164
+ rollover_prepaid_remainder: rollover_prepaid_remainder,
165
+ renew_prepaid_allocation: renew_prepaid_allocation,
166
+ expiration_interval: expiration_interval,
167
+ expiration_interval_unit: expiration_interval_unit,
168
+ additional_properties: hash)
175
169
  end
176
170
 
177
171
  # Validates an instance of the object from a given value.
@@ -58,12 +58,8 @@ module AdvancedBilling
58
58
  []
59
59
  end
60
60
 
61
- def initialize(amount = nil,
62
- details = nil,
63
- memo = nil,
64
- method = nil,
65
- payment_profile_id = SKIP,
66
- additional_properties = {})
61
+ def initialize(amount:, details:, memo:, method:, payment_profile_id: SKIP,
62
+ additional_properties: {})
67
63
  @amount = amount
68
64
  @details = details
69
65
  @memo = memo
@@ -92,12 +88,12 @@ module AdvancedBilling
92
88
  names.each_value { |k| hash.delete(k) }
93
89
 
94
90
  # Create object from extracted values.
95
- CreatePrepayment.new(amount,
96
- details,
97
- memo,
98
- method,
99
- payment_profile_id,
100
- hash)
91
+ CreatePrepayment.new(amount: amount,
92
+ details: details,
93
+ memo: memo,
94
+ method: method,
95
+ payment_profile_id: payment_profile_id,
96
+ additional_properties: hash)
101
97
  end
102
98
  end
103
99
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(prepayment = nil,
34
- additional_properties = {})
33
+ def initialize(prepayment:, additional_properties: {})
35
34
  @prepayment = prepayment
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -51,8 +50,8 @@ module AdvancedBilling
51
50
  names.each_value { |k| hash.delete(k) }
52
51
 
53
52
  # Create object from extracted values.
54
- CreatePrepaymentRequest.new(prepayment,
55
- hash)
53
+ CreatePrepaymentRequest.new(prepayment: prepayment,
54
+ additional_properties: hash)
56
55
  end
57
56
  end
58
57
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(prepayment = nil,
34
- additional_properties = {})
33
+ def initialize(prepayment:, additional_properties: {})
35
34
  @prepayment = prepayment
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -51,8 +50,8 @@ module AdvancedBilling
51
50
  names.each_value { |k| hash.delete(k) }
52
51
 
53
52
  # Create object from extracted values.
54
- CreatePrepaymentResponse.new(prepayment,
55
- hash)
53
+ CreatePrepaymentResponse.new(prepayment: prepayment,
54
+ additional_properties: hash)
56
55
  end
57
56
  end
58
57
  end
@@ -40,10 +40,7 @@ module AdvancedBilling
40
40
  []
41
41
  end
42
42
 
43
- def initialize(currency = nil,
44
- price = nil,
45
- role = nil,
46
- additional_properties = {})
43
+ def initialize(currency:, price:, role:, additional_properties: {})
47
44
  @currency = currency
48
45
  @price = price
49
46
  @role = role
@@ -67,10 +64,10 @@ module AdvancedBilling
67
64
  names.each_value { |k| hash.delete(k) }
68
65
 
69
66
  # Create object from extracted values.
70
- CreateProductCurrencyPrice.new(currency,
71
- price,
72
- role,
73
- hash)
67
+ CreateProductCurrencyPrice.new(currency: currency,
68
+ price: price,
69
+ role: role,
70
+ additional_properties: hash)
74
71
  end
75
72
  end
76
73
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(currency_prices = nil,
34
- additional_properties = {})
33
+ def initialize(currency_prices:, additional_properties: {})
35
34
  @currency_prices = currency_prices
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -60,8 +59,8 @@ module AdvancedBilling
60
59
  names.each_value { |k| hash.delete(k) }
61
60
 
62
61
  # Create object from extracted values.
63
- CreateProductCurrencyPricesRequest.new(currency_prices,
64
- hash)
62
+ CreateProductCurrencyPricesRequest.new(currency_prices: currency_prices,
63
+ additional_properties: hash)
65
64
  end
66
65
  end
67
66
  end
@@ -46,10 +46,8 @@ module AdvancedBilling
46
46
  ]
47
47
  end
48
48
 
49
- def initialize(name = nil,
50
- handle = SKIP,
51
- description = SKIP,
52
- additional_properties = {})
49
+ def initialize(name:, handle: SKIP, description: SKIP,
50
+ additional_properties: {})
53
51
  @name = name
54
52
  @handle = handle unless handle == SKIP
55
53
  @description = description unless description == SKIP
@@ -73,10 +71,10 @@ module AdvancedBilling
73
71
  names.each_value { |k| hash.delete(k) }
74
72
 
75
73
  # Create object from extracted values.
76
- CreateProductFamily.new(name,
77
- handle,
78
- description,
79
- hash)
74
+ CreateProductFamily.new(name: name,
75
+ handle: handle,
76
+ description: description,
77
+ additional_properties: hash)
80
78
  end
81
79
  end
82
80
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(product_family = nil,
34
- additional_properties = {})
33
+ def initialize(product_family:, additional_properties: {})
35
34
  @product_family = product_family
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -52,8 +51,8 @@ module AdvancedBilling
52
51
  names.each_value { |k| hash.delete(k) }
53
52
 
54
53
  # Create object from extracted values.
55
- CreateProductFamilyRequest.new(product_family,
56
- hash)
54
+ CreateProductFamilyRequest.new(product_family: product_family,
55
+ additional_properties: hash)
57
56
  end
58
57
  end
59
58
  end
@@ -117,21 +117,13 @@ module AdvancedBilling
117
117
  []
118
118
  end
119
119
 
120
- def initialize(name = nil,
121
- price_in_cents = nil,
122
- interval = nil,
123
- interval_unit = nil,
124
- handle = SKIP,
125
- trial_price_in_cents = SKIP,
126
- trial_interval = SKIP,
127
- trial_interval_unit = SKIP,
128
- trial_type = SKIP,
129
- initial_charge_in_cents = SKIP,
130
- initial_charge_after_trial = SKIP,
131
- expiration_interval = SKIP,
132
- expiration_interval_unit = SKIP,
133
- use_site_exchange_rate = true,
134
- additional_properties = {})
120
+ def initialize(name:, price_in_cents:, interval:, interval_unit:,
121
+ handle: SKIP, trial_price_in_cents: SKIP,
122
+ trial_interval: SKIP, trial_interval_unit: SKIP,
123
+ trial_type: SKIP, initial_charge_in_cents: SKIP,
124
+ initial_charge_after_trial: SKIP, expiration_interval: SKIP,
125
+ expiration_interval_unit: SKIP, use_site_exchange_rate: true,
126
+ additional_properties: {})
135
127
  @name = name
136
128
  @handle = handle unless handle == SKIP
137
129
  @price_in_cents = price_in_cents
@@ -188,21 +180,21 @@ module AdvancedBilling
188
180
  names.each_value { |k| hash.delete(k) }
189
181
 
190
182
  # Create object from extracted values.
191
- CreateProductPricePoint.new(name,
192
- price_in_cents,
193
- interval,
194
- interval_unit,
195
- handle,
196
- trial_price_in_cents,
197
- trial_interval,
198
- trial_interval_unit,
199
- trial_type,
200
- initial_charge_in_cents,
201
- initial_charge_after_trial,
202
- expiration_interval,
203
- expiration_interval_unit,
204
- use_site_exchange_rate,
205
- hash)
183
+ CreateProductPricePoint.new(name: name,
184
+ price_in_cents: price_in_cents,
185
+ interval: interval,
186
+ interval_unit: interval_unit,
187
+ handle: handle,
188
+ trial_price_in_cents: trial_price_in_cents,
189
+ trial_interval: trial_interval,
190
+ trial_interval_unit: trial_interval_unit,
191
+ trial_type: trial_type,
192
+ initial_charge_in_cents: initial_charge_in_cents,
193
+ initial_charge_after_trial: initial_charge_after_trial,
194
+ expiration_interval: expiration_interval,
195
+ expiration_interval_unit: expiration_interval_unit,
196
+ use_site_exchange_rate: use_site_exchange_rate,
197
+ additional_properties: hash)
206
198
  end
207
199
  end
208
200
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(price_point = nil,
34
- additional_properties = {})
33
+ def initialize(price_point:, additional_properties: {})
35
34
  @price_point = price_point
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -51,8 +50,8 @@ module AdvancedBilling
51
50
  names.each_value { |k| hash.delete(k) }
52
51
 
53
52
  # Create object from extracted values.
54
- CreateProductPricePointRequest.new(price_point,
55
- hash)
53
+ CreateProductPricePointRequest.new(price_point: price_point,
54
+ additional_properties: hash)
56
55
  end
57
56
  end
58
57
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(quantity_based_component = nil,
34
- additional_properties = {})
33
+ def initialize(quantity_based_component:, additional_properties: {})
35
34
  @quantity_based_component = quantity_based_component
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -53,8 +52,8 @@ module AdvancedBilling
53
52
  names.each_value { |k| hash.delete(k) }
54
53
 
55
54
  # Create object from extracted values.
56
- CreateQuantityBasedComponent.new(quantity_based_component,
57
- hash)
55
+ CreateQuantityBasedComponent.new(quantity_based_component: quantity_based_component,
56
+ additional_properties: hash)
58
57
  end
59
58
  end
60
59
  end
@@ -42,10 +42,8 @@ module AdvancedBilling
42
42
  []
43
43
  end
44
44
 
45
- def initialize(code = nil,
46
- description = nil,
47
- position = SKIP,
48
- additional_properties = {})
45
+ def initialize(code:, description:, position: SKIP,
46
+ additional_properties: {})
49
47
  @code = code
50
48
  @description = description
51
49
  @position = position unless position == SKIP
@@ -69,10 +67,10 @@ module AdvancedBilling
69
67
  names.each_value { |k| hash.delete(k) }
70
68
 
71
69
  # Create object from extracted values.
72
- CreateReasonCode.new(code,
73
- description,
74
- position,
75
- hash)
70
+ CreateReasonCode.new(code: code,
71
+ description: description,
72
+ position: position,
73
+ additional_properties: hash)
76
74
  end
77
75
  end
78
76
  end
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(reason_code = nil,
34
- additional_properties = {})
33
+ def initialize(reason_code:, additional_properties: {})
35
34
  @reason_code = reason_code
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -51,8 +50,8 @@ module AdvancedBilling
51
50
  names.each_value { |k| hash.delete(k) }
52
51
 
53
52
  # Create object from extracted values.
54
- CreateReasonCodeRequest.new(reason_code,
55
- hash)
53
+ CreateReasonCodeRequest.new(reason_code: reason_code,
54
+ additional_properties: hash)
56
55
  end
57
56
  end
58
57
  end
@@ -73,13 +73,11 @@ module AdvancedBilling
73
73
  []
74
74
  end
75
75
 
76
- def initialize(pricing_scheme = nil,
77
- segment_property_1_value = SKIP,
78
- segment_property_2_value = SKIP,
79
- segment_property_3_value = SKIP,
80
- segment_property_4_value = SKIP,
81
- prices = SKIP,
82
- additional_properties = {})
76
+ def initialize(pricing_scheme:, segment_property_1_value: SKIP,
77
+ segment_property_2_value: SKIP,
78
+ segment_property_3_value: SKIP,
79
+ segment_property_4_value: SKIP, prices: SKIP,
80
+ additional_properties: {})
83
81
  @segment_property_1_value = segment_property_1_value unless segment_property_1_value == SKIP
84
82
  @segment_property_2_value = segment_property_2_value unless segment_property_2_value == SKIP
85
83
  @segment_property_3_value = segment_property_3_value unless segment_property_3_value == SKIP
@@ -127,13 +125,13 @@ module AdvancedBilling
127
125
  names.each_value { |k| hash.delete(k) }
128
126
 
129
127
  # Create object from extracted values.
130
- CreateSegment.new(pricing_scheme,
131
- segment_property_1_value,
132
- segment_property_2_value,
133
- segment_property_3_value,
134
- segment_property_4_value,
135
- prices,
136
- hash)
128
+ CreateSegment.new(pricing_scheme: pricing_scheme,
129
+ segment_property_1_value: segment_property_1_value,
130
+ segment_property_2_value: segment_property_2_value,
131
+ segment_property_3_value: segment_property_3_value,
132
+ segment_property_4_value: segment_property_4_value,
133
+ prices: prices,
134
+ additional_properties: hash)
137
135
  end
138
136
 
139
137
  # Validates an instance of the object from a given value.
@@ -30,8 +30,7 @@ module AdvancedBilling
30
30
  []
31
31
  end
32
32
 
33
- def initialize(segment = nil,
34
- additional_properties = {})
33
+ def initialize(segment:, additional_properties: {})
35
34
  @segment = segment
36
35
 
37
36
  # Add additional model properties to the instance.
@@ -51,8 +50,8 @@ module AdvancedBilling
51
50
  names.each_value { |k| hash.delete(k) }
52
51
 
53
52
  # Create object from extracted values.
54
- CreateSegmentRequest.new(segment,
55
- hash)
53
+ CreateSegmentRequest.new(segment: segment,
54
+ additional_properties: hash)
56
55
  end
57
56
  end
58
57
  end
@@ -430,56 +430,34 @@ module AdvancedBilling
430
430
  ]
431
431
  end
432
432
 
433
- def initialize(product_handle = SKIP,
434
- product_id = SKIP,
435
- product_price_point_handle = SKIP,
436
- product_price_point_id = SKIP,
437
- custom_price = SKIP,
438
- coupon_code = SKIP,
439
- coupon_codes = SKIP,
440
- payment_collection_method = SKIP,
441
- receives_invoice_emails = SKIP,
442
- net_terms = SKIP,
443
- customer_id = SKIP,
444
- next_billing_at = SKIP,
445
- initial_billing_at = SKIP,
446
- stored_credential_transaction_id = SKIP,
447
- sales_rep_id = SKIP,
448
- payment_profile_id = SKIP,
449
- reference = SKIP,
450
- customer_attributes = SKIP,
451
- payment_profile_attributes = SKIP,
452
- credit_card_attributes = SKIP,
453
- bank_account_attributes = SKIP,
454
- components = SKIP,
455
- calendar_billing = SKIP,
456
- metafields = SKIP,
457
- customer_reference = SKIP,
458
- group = SKIP,
459
- ref = SKIP,
460
- cancellation_message = SKIP,
461
- cancellation_method = SKIP,
462
- currency = SKIP,
463
- expires_at = SKIP,
464
- expiration_tracks_next_billing_change = SKIP,
465
- agreement_terms = SKIP,
466
- authorizer_first_name = SKIP,
467
- authorizer_last_name = SKIP,
468
- calendar_billing_first_charge = SKIP,
469
- reason_code = SKIP,
470
- product_change_delayed = SKIP,
471
- offer_id = SKIP,
472
- prepaid_configuration = SKIP,
473
- previous_billing_at = SKIP,
474
- import_mrr = SKIP,
475
- canceled_at = SKIP,
476
- activated_at = SKIP,
477
- agreement_acceptance = SKIP,
478
- ach_agreement = SKIP,
479
- dunning_communication_delay_enabled = false,
480
- dunning_communication_delay_time_zone = SKIP,
481
- skip_billing_manifest_taxes = false,
482
- additional_properties = {})
433
+ def initialize(product_handle: SKIP, product_id: SKIP,
434
+ product_price_point_handle: SKIP,
435
+ product_price_point_id: SKIP, custom_price: SKIP,
436
+ coupon_code: SKIP, coupon_codes: SKIP,
437
+ payment_collection_method: SKIP,
438
+ receives_invoice_emails: SKIP, net_terms: SKIP,
439
+ customer_id: SKIP, next_billing_at: SKIP,
440
+ initial_billing_at: SKIP,
441
+ stored_credential_transaction_id: SKIP, sales_rep_id: SKIP,
442
+ payment_profile_id: SKIP, reference: SKIP,
443
+ customer_attributes: SKIP, payment_profile_attributes: SKIP,
444
+ credit_card_attributes: SKIP, bank_account_attributes: SKIP,
445
+ components: SKIP, calendar_billing: SKIP, metafields: SKIP,
446
+ customer_reference: SKIP, group: SKIP, ref: SKIP,
447
+ cancellation_message: SKIP, cancellation_method: SKIP,
448
+ currency: SKIP, expires_at: SKIP,
449
+ expiration_tracks_next_billing_change: SKIP,
450
+ agreement_terms: SKIP, authorizer_first_name: SKIP,
451
+ authorizer_last_name: SKIP,
452
+ calendar_billing_first_charge: SKIP, reason_code: SKIP,
453
+ product_change_delayed: SKIP, offer_id: SKIP,
454
+ prepaid_configuration: SKIP, previous_billing_at: SKIP,
455
+ import_mrr: SKIP, canceled_at: SKIP, activated_at: SKIP,
456
+ agreement_acceptance: SKIP, ach_agreement: SKIP,
457
+ dunning_communication_delay_enabled: false,
458
+ dunning_communication_delay_time_zone: SKIP,
459
+ skip_billing_manifest_taxes: false,
460
+ additional_properties: {})
483
461
  @product_handle = product_handle unless product_handle == SKIP
484
462
  @product_id = product_id unless product_id == SKIP
485
463
  unless product_price_point_handle == SKIP
@@ -685,56 +663,56 @@ module AdvancedBilling
685
663
  names.each_value { |k| hash.delete(k) }
686
664
 
687
665
  # Create object from extracted values.
688
- CreateSubscription.new(product_handle,
689
- product_id,
690
- product_price_point_handle,
691
- product_price_point_id,
692
- custom_price,
693
- coupon_code,
694
- coupon_codes,
695
- payment_collection_method,
696
- receives_invoice_emails,
697
- net_terms,
698
- customer_id,
699
- next_billing_at,
700
- initial_billing_at,
701
- stored_credential_transaction_id,
702
- sales_rep_id,
703
- payment_profile_id,
704
- reference,
705
- customer_attributes,
706
- payment_profile_attributes,
707
- credit_card_attributes,
708
- bank_account_attributes,
709
- components,
710
- calendar_billing,
711
- metafields,
712
- customer_reference,
713
- group,
714
- ref,
715
- cancellation_message,
716
- cancellation_method,
717
- currency,
718
- expires_at,
719
- expiration_tracks_next_billing_change,
720
- agreement_terms,
721
- authorizer_first_name,
722
- authorizer_last_name,
723
- calendar_billing_first_charge,
724
- reason_code,
725
- product_change_delayed,
726
- offer_id,
727
- prepaid_configuration,
728
- previous_billing_at,
729
- import_mrr,
730
- canceled_at,
731
- activated_at,
732
- agreement_acceptance,
733
- ach_agreement,
734
- dunning_communication_delay_enabled,
735
- dunning_communication_delay_time_zone,
736
- skip_billing_manifest_taxes,
737
- hash)
666
+ CreateSubscription.new(product_handle: product_handle,
667
+ product_id: product_id,
668
+ product_price_point_handle: product_price_point_handle,
669
+ product_price_point_id: product_price_point_id,
670
+ custom_price: custom_price,
671
+ coupon_code: coupon_code,
672
+ coupon_codes: coupon_codes,
673
+ payment_collection_method: payment_collection_method,
674
+ receives_invoice_emails: receives_invoice_emails,
675
+ net_terms: net_terms,
676
+ customer_id: customer_id,
677
+ next_billing_at: next_billing_at,
678
+ initial_billing_at: initial_billing_at,
679
+ stored_credential_transaction_id: stored_credential_transaction_id,
680
+ sales_rep_id: sales_rep_id,
681
+ payment_profile_id: payment_profile_id,
682
+ reference: reference,
683
+ customer_attributes: customer_attributes,
684
+ payment_profile_attributes: payment_profile_attributes,
685
+ credit_card_attributes: credit_card_attributes,
686
+ bank_account_attributes: bank_account_attributes,
687
+ components: components,
688
+ calendar_billing: calendar_billing,
689
+ metafields: metafields,
690
+ customer_reference: customer_reference,
691
+ group: group,
692
+ ref: ref,
693
+ cancellation_message: cancellation_message,
694
+ cancellation_method: cancellation_method,
695
+ currency: currency,
696
+ expires_at: expires_at,
697
+ expiration_tracks_next_billing_change: expiration_tracks_next_billing_change,
698
+ agreement_terms: agreement_terms,
699
+ authorizer_first_name: authorizer_first_name,
700
+ authorizer_last_name: authorizer_last_name,
701
+ calendar_billing_first_charge: calendar_billing_first_charge,
702
+ reason_code: reason_code,
703
+ product_change_delayed: product_change_delayed,
704
+ offer_id: offer_id,
705
+ prepaid_configuration: prepaid_configuration,
706
+ previous_billing_at: previous_billing_at,
707
+ import_mrr: import_mrr,
708
+ canceled_at: canceled_at,
709
+ activated_at: activated_at,
710
+ agreement_acceptance: agreement_acceptance,
711
+ ach_agreement: ach_agreement,
712
+ dunning_communication_delay_enabled: dunning_communication_delay_enabled,
713
+ dunning_communication_delay_time_zone: dunning_communication_delay_time_zone,
714
+ skip_billing_manifest_taxes: skip_billing_manifest_taxes,
715
+ additional_properties: hash)
738
716
  end
739
717
 
740
718
  def to_custom_next_billing_at