maxio-advanced-billing-sdk 5.2.0 → 6.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (555) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +48 -50
  4. data/lib/advanced_billing/client.rb +3 -4
  5. data/lib/advanced_billing/configuration.rb +21 -24
  6. data/lib/advanced_billing/controllers/advance_invoice_controller.rb +3 -3
  7. data/lib/advanced_billing/controllers/api_exports_controller.rb +9 -9
  8. data/lib/advanced_billing/controllers/base_controller.rb +1 -1
  9. data/lib/advanced_billing/controllers/billing_portal_controller.rb +4 -4
  10. data/lib/advanced_billing/controllers/component_price_points_controller.rb +34 -20
  11. data/lib/advanced_billing/controllers/components_controller.rb +12 -12
  12. data/lib/advanced_billing/controllers/coupons_controller.rb +45 -27
  13. data/lib/advanced_billing/controllers/custom_fields_controller.rb +9 -9
  14. data/lib/advanced_billing/controllers/customers_controller.rb +7 -7
  15. data/lib/advanced_billing/controllers/events_based_billing_segments_controller.rb +6 -6
  16. data/lib/advanced_billing/controllers/events_controller.rb +26 -9
  17. data/lib/advanced_billing/controllers/insights_controller.rb +4 -4
  18. data/lib/advanced_billing/controllers/invoices_controller.rb +17 -17
  19. data/lib/advanced_billing/controllers/offers_controller.rb +10 -6
  20. data/lib/advanced_billing/controllers/payment_profiles_controller.rb +12 -12
  21. data/lib/advanced_billing/controllers/product_families_controller.rb +22 -20
  22. data/lib/advanced_billing/controllers/product_price_points_controller.rb +14 -11
  23. data/lib/advanced_billing/controllers/products_controller.rb +6 -6
  24. data/lib/advanced_billing/controllers/proforma_invoices_controller.rb +9 -9
  25. data/lib/advanced_billing/controllers/reason_codes_controller.rb +17 -9
  26. data/lib/advanced_billing/controllers/referral_codes_controller.rb +1 -1
  27. data/lib/advanced_billing/controllers/sales_commissions_controller.rb +3 -3
  28. data/lib/advanced_billing/controllers/sites_controller.rb +3 -3
  29. data/lib/advanced_billing/controllers/subscription_components_controller.rb +21 -31
  30. data/lib/advanced_billing/controllers/subscription_group_invoice_account_controller.rb +4 -4
  31. data/lib/advanced_billing/controllers/subscription_group_status_controller.rb +4 -4
  32. data/lib/advanced_billing/controllers/subscription_groups_controller.rb +9 -9
  33. data/lib/advanced_billing/controllers/subscription_invoice_account_controller.rb +6 -6
  34. data/lib/advanced_billing/controllers/subscription_notes_controller.rb +20 -8
  35. data/lib/advanced_billing/controllers/subscription_products_controller.rb +2 -2
  36. data/lib/advanced_billing/controllers/subscription_status_controller.rb +20 -12
  37. data/lib/advanced_billing/controllers/subscriptions_controller.rb +40 -17
  38. data/lib/advanced_billing/controllers/webhooks_controller.rb +6 -6
  39. data/lib/advanced_billing/exceptions/api_exception.rb +11 -0
  40. data/lib/advanced_billing/exceptions/component_allocation_error_exception.rb +12 -0
  41. data/lib/advanced_billing/exceptions/component_price_point_error_exception.rb +12 -0
  42. data/lib/advanced_billing/exceptions/customer_error_response_exception.rb +12 -0
  43. data/lib/advanced_billing/exceptions/error_array_map_response_exception.rb +12 -0
  44. data/lib/advanced_billing/exceptions/error_list_response_exception.rb +12 -0
  45. data/lib/advanced_billing/exceptions/error_string_map_response_exception.rb +12 -0
  46. data/lib/advanced_billing/exceptions/event_based_billing_list_segments_errors_exception.rb +12 -0
  47. data/lib/advanced_billing/exceptions/event_based_billing_segment_errors_exception.rb +12 -0
  48. data/lib/advanced_billing/exceptions/event_based_billing_segment_exception.rb +12 -0
  49. data/lib/advanced_billing/exceptions/product_price_point_error_response_exception.rb +12 -0
  50. data/lib/advanced_billing/exceptions/proforma_bad_request_error_response_exception.rb +12 -0
  51. data/lib/advanced_billing/exceptions/refund_prepayment_base_errors_response_exception.rb +12 -0
  52. data/lib/advanced_billing/exceptions/single_error_response_exception.rb +12 -0
  53. data/lib/advanced_billing/exceptions/single_string_error_response_exception.rb +12 -0
  54. data/lib/advanced_billing/exceptions/subscription_add_coupon_error_exception.rb +14 -0
  55. data/lib/advanced_billing/exceptions/subscription_component_allocation_error_exception.rb +12 -0
  56. data/lib/advanced_billing/exceptions/subscription_group_create_error_response_exception.rb +12 -0
  57. data/lib/advanced_billing/exceptions/subscription_group_signup_error_response_exception.rb +12 -0
  58. data/lib/advanced_billing/exceptions/subscription_group_update_error_response_exception.rb +12 -0
  59. data/lib/advanced_billing/exceptions/subscription_remove_coupon_errors_exception.rb +12 -0
  60. data/lib/advanced_billing/exceptions/subscription_response_error_exception.rb +44 -0
  61. data/lib/advanced_billing/exceptions/subscriptions_mrr_error_response_exception.rb +12 -0
  62. data/lib/advanced_billing/exceptions/too_many_management_link_requests_error_exception.rb +12 -0
  63. data/lib/advanced_billing/models/account_balance.rb +24 -7
  64. data/lib/advanced_billing/models/account_balances.rb +24 -7
  65. data/lib/advanced_billing/models/ach_agreement.rb +23 -7
  66. data/lib/advanced_billing/models/activate_event_based_component.rb +21 -6
  67. data/lib/advanced_billing/models/activate_subscription_request.rb +18 -4
  68. data/lib/advanced_billing/models/add_coupons_request.rb +17 -4
  69. data/lib/advanced_billing/models/add_subscription_to_a_group.rb +16 -15
  70. data/lib/advanced_billing/models/address_change.rb +19 -5
  71. data/lib/advanced_billing/models/agreement_acceptance.rb +27 -7
  72. data/lib/advanced_billing/models/allocate_components.rb +29 -7
  73. data/lib/advanced_billing/models/allocation.rb +44 -7
  74. data/lib/advanced_billing/models/allocation_expiration_date.rb +18 -4
  75. data/lib/advanced_billing/models/allocation_preview.rb +33 -7
  76. data/lib/advanced_billing/models/allocation_preview_item.rb +38 -7
  77. data/lib/advanced_billing/models/allocation_preview_line_item.rb +28 -7
  78. data/lib/advanced_billing/models/allocation_preview_response.rb +18 -4
  79. data/lib/advanced_billing/models/allocation_response.rb +18 -4
  80. data/lib/advanced_billing/models/allocation_settings.rb +21 -6
  81. data/lib/advanced_billing/models/apple_pay_payment_profile.rb +34 -7
  82. data/lib/advanced_billing/models/applied_credit_note_data.rb +19 -5
  83. data/lib/advanced_billing/models/apply_credit_note_event.rb +23 -7
  84. data/lib/advanced_billing/models/apply_credit_note_event_data.rb +28 -7
  85. data/lib/advanced_billing/models/apply_debit_note_event.rb +23 -7
  86. data/lib/advanced_billing/models/apply_debit_note_event_data.rb +25 -7
  87. data/lib/advanced_billing/models/apply_payment_event.rb +23 -7
  88. data/lib/advanced_billing/models/apply_payment_event_data.rb +30 -7
  89. data/lib/advanced_billing/models/attribute_error.rb +18 -4
  90. data/lib/advanced_billing/models/auto_resume.rb +18 -4
  91. data/lib/advanced_billing/models/backport_invoice_event.rb +23 -7
  92. data/lib/advanced_billing/models/bank_account_attributes.rb +32 -7
  93. data/lib/advanced_billing/models/bank_account_payment_profile.rb +42 -7
  94. data/lib/advanced_billing/models/bank_account_response.rb +18 -4
  95. data/lib/advanced_billing/models/bank_account_verification.rb +19 -5
  96. data/lib/advanced_billing/models/bank_account_verification_request.rb +18 -4
  97. data/lib/advanced_billing/models/base_model.rb +88 -28
  98. data/lib/advanced_billing/models/base_refund_error.rb +17 -4
  99. data/lib/advanced_billing/models/base_string_error.rb +17 -4
  100. data/lib/advanced_billing/models/batch_job.rb +23 -7
  101. data/lib/advanced_billing/models/batch_job_response.rb +18 -4
  102. data/lib/advanced_billing/models/billing_manifest.rb +30 -7
  103. data/lib/advanced_billing/models/billing_manifest_item.rb +34 -7
  104. data/lib/advanced_billing/models/billing_schedule.rb +18 -4
  105. data/lib/advanced_billing/models/breakouts.rb +25 -7
  106. data/lib/advanced_billing/models/bulk_components_price_point_assignment.rb +18 -4
  107. data/lib/advanced_billing/models/bulk_create_product_price_points_request.rb +18 -4
  108. data/lib/advanced_billing/models/bulk_create_product_price_points_response.rb +18 -4
  109. data/lib/advanced_billing/models/bulk_create_segments.rb +18 -4
  110. data/lib/advanced_billing/models/bulk_update_segments.rb +18 -4
  111. data/lib/advanced_billing/models/bulk_update_segments_item.rb +20 -6
  112. data/lib/advanced_billing/models/calendar_billing.rb +22 -7
  113. data/lib/advanced_billing/models/cancel_grouped_subscriptions_request.rb +18 -4
  114. data/lib/advanced_billing/models/cancellation_options.rb +19 -5
  115. data/lib/advanced_billing/models/cancellation_request.rb +18 -4
  116. data/lib/advanced_billing/models/change_chargeback_status_event.rb +23 -7
  117. data/lib/advanced_billing/models/change_chargeback_status_event_data.rb +18 -4
  118. data/lib/advanced_billing/models/change_invoice_collection_method_event.rb +23 -7
  119. data/lib/advanced_billing/models/change_invoice_collection_method_event_data.rb +20 -5
  120. data/lib/advanced_billing/models/change_invoice_status_event.rb +23 -7
  121. data/lib/advanced_billing/models/change_invoice_status_event_data.rb +24 -7
  122. data/lib/advanced_billing/models/chargify_ebb.rb +25 -7
  123. data/lib/advanced_billing/models/component.rb +54 -9
  124. data/lib/advanced_billing/models/component_allocation_change.rb +27 -7
  125. data/lib/advanced_billing/models/component_allocation_error_item.rb +22 -7
  126. data/lib/advanced_billing/models/component_cost_data.rb +26 -7
  127. data/lib/advanced_billing/models/component_cost_data_rate_tier.rb +24 -7
  128. data/lib/advanced_billing/models/component_currency_price.rb +24 -7
  129. data/lib/advanced_billing/models/component_currency_prices_response.rb +18 -4
  130. data/lib/advanced_billing/models/component_custom_price.rb +24 -7
  131. data/lib/advanced_billing/models/component_price.rb +26 -7
  132. data/lib/advanced_billing/models/component_price_point.rb +127 -7
  133. data/lib/advanced_billing/models/component_price_point_assignment.rb +19 -5
  134. data/lib/advanced_billing/models/component_price_point_error_item.rb +21 -6
  135. data/lib/advanced_billing/models/component_price_point_item.rb +24 -7
  136. data/lib/advanced_billing/models/component_price_point_response.rb +18 -4
  137. data/lib/advanced_billing/models/component_price_points_response.rb +19 -5
  138. data/lib/advanced_billing/models/component_response.rb +18 -4
  139. data/lib/advanced_billing/models/compounding_strategy.rb +5 -1
  140. data/lib/advanced_billing/models/consolidated_invoice.rb +18 -4
  141. data/lib/advanced_billing/models/count_response.rb +17 -4
  142. data/lib/advanced_billing/models/coupon.rb +150 -29
  143. data/lib/advanced_billing/models/coupon_currency.rb +27 -9
  144. data/lib/advanced_billing/models/coupon_currency_request.rb +18 -4
  145. data/lib/advanced_billing/models/coupon_currency_response.rb +18 -4
  146. data/lib/advanced_billing/models/coupon_payload.rb +273 -0
  147. data/lib/advanced_billing/models/{create_or_update_coupon.rb → coupon_request.rb} +26 -22
  148. data/lib/advanced_billing/models/coupon_response.rb +17 -4
  149. data/lib/advanced_billing/models/coupon_restriction.rb +22 -7
  150. data/lib/advanced_billing/models/coupon_subcodes.rb +17 -4
  151. data/lib/advanced_billing/models/coupon_subcodes_response.rb +21 -6
  152. data/lib/advanced_billing/models/coupon_usage.rb +24 -7
  153. data/lib/advanced_billing/models/create_allocation.rb +31 -7
  154. data/lib/advanced_billing/models/create_allocation_request.rb +18 -4
  155. data/lib/advanced_billing/models/create_component_price_point.rb +30 -9
  156. data/lib/advanced_billing/models/create_component_price_point_request.rb +18 -4
  157. data/lib/advanced_billing/models/create_component_price_points_request.rb +18 -4
  158. data/lib/advanced_billing/models/create_credit_note_event.rb +23 -7
  159. data/lib/advanced_billing/models/create_currency_price.rb +20 -6
  160. data/lib/advanced_billing/models/create_currency_prices_request.rb +18 -4
  161. data/lib/advanced_billing/models/create_customer.rb +33 -7
  162. data/lib/advanced_billing/models/create_customer_request.rb +18 -4
  163. data/lib/advanced_billing/models/create_debit_note_event.rb +23 -7
  164. data/lib/advanced_billing/models/create_ebb_component.rb +18 -4
  165. data/lib/advanced_billing/models/create_invoice.rb +28 -7
  166. data/lib/advanced_billing/models/create_invoice_address.rb +24 -7
  167. data/lib/advanced_billing/models/create_invoice_coupon.rb +30 -8
  168. data/lib/advanced_billing/models/create_invoice_item.rb +30 -7
  169. data/lib/advanced_billing/models/create_invoice_payment.rb +24 -7
  170. data/lib/advanced_billing/models/create_invoice_payment_application.rb +19 -5
  171. data/lib/advanced_billing/models/create_invoice_payment_request.rb +19 -5
  172. data/lib/advanced_billing/models/create_invoice_request.rb +17 -4
  173. data/lib/advanced_billing/models/create_metadata.rb +19 -5
  174. data/lib/advanced_billing/models/create_metadata_request.rb +18 -4
  175. data/lib/advanced_billing/models/create_metafield.rb +22 -7
  176. data/lib/advanced_billing/models/create_metafields_request.rb +18 -4
  177. data/lib/advanced_billing/models/create_metered_component.rb +18 -4
  178. data/lib/advanced_billing/models/create_multi_invoice_payment.rb +24 -7
  179. data/lib/advanced_billing/models/create_multi_invoice_payment_request.rb +17 -4
  180. data/lib/advanced_billing/models/create_offer.rb +25 -7
  181. data/lib/advanced_billing/models/create_offer_component.rb +22 -6
  182. data/lib/advanced_billing/models/create_offer_request.rb +17 -4
  183. data/lib/advanced_billing/models/create_on_off_component.rb +18 -4
  184. data/lib/advanced_billing/models/create_or_update_endpoint.rb +19 -5
  185. data/lib/advanced_billing/models/create_or_update_endpoint_request.rb +18 -4
  186. data/lib/advanced_billing/models/create_or_update_product.rb +36 -7
  187. data/lib/advanced_billing/models/create_or_update_product_request.rb +17 -4
  188. data/lib/advanced_billing/models/create_or_update_segment_price.rb +22 -6
  189. data/lib/advanced_billing/models/create_payment.rb +22 -7
  190. data/lib/advanced_billing/models/create_payment_profile.rb +50 -7
  191. data/lib/advanced_billing/models/create_payment_profile_request.rb +18 -4
  192. data/lib/advanced_billing/models/create_prepaid_component.rb +18 -4
  193. data/lib/advanced_billing/models/create_prepaid_usage_component_price_point.rb +38 -13
  194. data/lib/advanced_billing/models/create_prepayment.rb +23 -7
  195. data/lib/advanced_billing/models/create_prepayment_request.rb +18 -4
  196. data/lib/advanced_billing/models/create_prepayment_response.rb +18 -4
  197. data/lib/advanced_billing/models/create_product_currency_price.rb +20 -6
  198. data/lib/advanced_billing/models/create_product_currency_prices_request.rb +18 -4
  199. data/lib/advanced_billing/models/create_product_family.rb +20 -6
  200. data/lib/advanced_billing/models/create_product_family_request.rb +18 -4
  201. data/lib/advanced_billing/models/create_product_price_point.rb +35 -7
  202. data/lib/advanced_billing/models/create_product_price_point_request.rb +18 -4
  203. data/lib/advanced_billing/models/create_quantity_based_component.rb +18 -4
  204. data/lib/advanced_billing/models/create_reason_code.rb +20 -6
  205. data/lib/advanced_billing/models/create_reason_code_request.rb +18 -4
  206. data/lib/advanced_billing/models/create_segment.rb +27 -7
  207. data/lib/advanced_billing/models/create_segment_request.rb +17 -4
  208. data/lib/advanced_billing/models/create_subscription.rb +79 -8
  209. data/lib/advanced_billing/models/create_subscription_component.rb +26 -7
  210. data/lib/advanced_billing/models/create_subscription_group.rb +19 -5
  211. data/lib/advanced_billing/models/create_subscription_group_request.rb +18 -4
  212. data/lib/advanced_billing/models/create_subscription_request.rb +18 -4
  213. data/lib/advanced_billing/models/create_usage.rb +23 -7
  214. data/lib/advanced_billing/models/create_usage_request.rb +17 -4
  215. data/lib/advanced_billing/models/created_prepayment.rb +26 -7
  216. data/lib/advanced_billing/models/credit_account_balance_changed.rb +27 -7
  217. data/lib/advanced_billing/models/credit_card_attributes.rb +22 -6
  218. data/lib/advanced_billing/models/credit_card_payment_profile.rb +39 -7
  219. data/lib/advanced_billing/models/credit_note.rb +42 -7
  220. data/lib/advanced_billing/models/credit_note_application.rb +23 -7
  221. data/lib/advanced_billing/models/credit_note_line_item.rb +37 -7
  222. data/lib/advanced_billing/models/credit_scheme_request.rb +18 -4
  223. data/lib/advanced_billing/models/currency_price.rb +46 -7
  224. data/lib/advanced_billing/models/currency_prices_response.rb +18 -4
  225. data/lib/advanced_billing/models/custom_field_value_change.rb +26 -7
  226. data/lib/advanced_billing/models/customer.rb +47 -7
  227. data/lib/advanced_billing/models/customer_attributes.rb +34 -7
  228. data/lib/advanced_billing/models/customer_change.rb +23 -7
  229. data/lib/advanced_billing/models/customer_changes_preview_response.rb +17 -4
  230. data/lib/advanced_billing/models/customer_custom_fields_change.rb +19 -5
  231. data/lib/advanced_billing/models/customer_error.rb +18 -4
  232. data/lib/advanced_billing/models/customer_payer_change.rb +19 -5
  233. data/lib/advanced_billing/models/customer_response.rb +18 -4
  234. data/lib/advanced_billing/models/debit_note.rb +37 -7
  235. data/lib/advanced_billing/models/deduct_service_credit.rb +19 -5
  236. data/lib/advanced_billing/models/deduct_service_credit_request.rb +18 -4
  237. data/lib/advanced_billing/models/delayed_cancellation_response.rb +17 -4
  238. data/lib/advanced_billing/models/delete_subscription_group_response.rb +19 -5
  239. data/lib/advanced_billing/models/dunner_data.rb +25 -7
  240. data/lib/advanced_billing/models/dunning_step_data.rb +26 -7
  241. data/lib/advanced_billing/models/dunning_step_reached.rb +20 -6
  242. data/lib/advanced_billing/models/ebb_component.rb +41 -53
  243. data/lib/advanced_billing/models/ebb_event.rb +18 -4
  244. data/lib/advanced_billing/models/enable_webhooks_request.rb +18 -4
  245. data/lib/advanced_billing/models/enable_webhooks_response.rb +18 -4
  246. data/lib/advanced_billing/models/endpoint.rb +23 -7
  247. data/lib/advanced_billing/models/endpoint_response.rb +18 -4
  248. data/lib/advanced_billing/models/errors.rb +19 -5
  249. data/lib/advanced_billing/models/event.rb +89 -11
  250. data/lib/advanced_billing/models/event_based_billing_segment_error.rb +18 -4
  251. data/lib/advanced_billing/models/event_key.rb +264 -0
  252. data/lib/advanced_billing/models/event_response.rb +17 -4
  253. data/lib/advanced_billing/models/failed_payment_event.rb +23 -7
  254. data/lib/advanced_billing/models/failed_payment_event_data.rb +24 -7
  255. data/lib/advanced_billing/models/full_subscription_group_response.rb +32 -7
  256. data/lib/advanced_billing/models/get_one_time_token_payment_profile.rb +39 -7
  257. data/lib/advanced_billing/models/get_one_time_token_request.rb +18 -4
  258. data/lib/advanced_billing/models/group_billing.rb +20 -6
  259. data/lib/advanced_billing/models/group_settings.rb +19 -5
  260. data/lib/advanced_billing/models/group_target.rb +19 -5
  261. data/lib/advanced_billing/models/historic_usage.rb +22 -6
  262. data/lib/advanced_billing/models/invoice.rb +114 -13
  263. data/lib/advanced_billing/models/invoice_address.rb +22 -7
  264. data/lib/advanced_billing/models/invoice_avatax_details.rb +146 -0
  265. data/lib/advanced_billing/models/invoice_balance_item.rb +20 -6
  266. data/lib/advanced_billing/models/invoice_credit.rb +26 -7
  267. data/lib/advanced_billing/models/invoice_custom_field.rb +23 -7
  268. data/lib/advanced_billing/models/invoice_customer.rb +25 -7
  269. data/lib/advanced_billing/models/invoice_debit.rb +167 -0
  270. data/lib/advanced_billing/models/invoice_discount.rb +30 -7
  271. data/lib/advanced_billing/models/invoice_discount_breakout.rb +21 -6
  272. data/lib/advanced_billing/models/invoice_display_settings.rb +23 -7
  273. data/lib/advanced_billing/models/invoice_issued.rb +31 -7
  274. data/lib/advanced_billing/models/invoice_line_item.rb +55 -8
  275. data/lib/advanced_billing/models/invoice_line_item_component_cost_data.rb +17 -4
  276. data/lib/advanced_billing/models/invoice_line_item_event_data.rb +37 -7
  277. data/lib/advanced_billing/models/invoice_line_item_pricing_detail.rb +19 -5
  278. data/lib/advanced_billing/models/invoice_payer.rb +24 -7
  279. data/lib/advanced_billing/models/invoice_payer_change.rb +22 -7
  280. data/lib/advanced_billing/models/invoice_payment.rb +30 -7
  281. data/lib/advanced_billing/models/invoice_payment_application.rb +21 -6
  282. data/lib/advanced_billing/models/invoice_payment_method.rb +26 -7
  283. data/lib/advanced_billing/models/invoice_pre_payment.rb +22 -6
  284. data/lib/advanced_billing/models/invoice_previous_balance.rb +19 -5
  285. data/lib/advanced_billing/models/invoice_refund.rb +28 -7
  286. data/lib/advanced_billing/models/invoice_response.rb +17 -4
  287. data/lib/advanced_billing/models/invoice_seller.rb +22 -7
  288. data/lib/advanced_billing/models/invoice_status.rb +4 -1
  289. data/lib/advanced_billing/models/invoice_tax.rb +31 -7
  290. data/lib/advanced_billing/models/invoice_tax_breakout.rb +23 -7
  291. data/lib/advanced_billing/models/invoice_tax_component_breakout.rb +33 -7
  292. data/lib/advanced_billing/models/issue_advance_invoice_request.rb +17 -4
  293. data/lib/advanced_billing/models/issue_invoice_event.rb +23 -7
  294. data/lib/advanced_billing/models/issue_invoice_event_data.rb +24 -7
  295. data/lib/advanced_billing/models/issue_invoice_request.rb +18 -4
  296. data/lib/advanced_billing/models/issue_service_credit.rb +19 -5
  297. data/lib/advanced_billing/models/issue_service_credit_request.rb +18 -4
  298. data/lib/advanced_billing/models/item_price_point_changed.rb +25 -7
  299. data/lib/advanced_billing/models/item_price_point_data.rb +20 -6
  300. data/lib/advanced_billing/models/list_components_filter.rb +19 -5
  301. data/lib/advanced_billing/models/list_components_price_points_response.rb +18 -4
  302. data/lib/advanced_billing/models/list_coupons_filter.rb +26 -7
  303. data/lib/advanced_billing/models/list_credit_notes_response.rb +18 -4
  304. data/lib/advanced_billing/models/list_invoice_events_response.rb +22 -7
  305. data/lib/advanced_billing/models/list_invoices_response.rb +18 -4
  306. data/lib/advanced_billing/models/list_metafields_response.rb +24 -7
  307. data/lib/advanced_billing/models/list_mrr_filter.rb +18 -4
  308. data/lib/advanced_billing/models/list_mrr_response.rb +16 -4
  309. data/lib/advanced_billing/models/list_mrr_response_result.rb +25 -7
  310. data/lib/advanced_billing/models/list_offers_response.rb +17 -4
  311. data/lib/advanced_billing/models/list_prepayments_filter.rb +20 -6
  312. data/lib/advanced_billing/models/list_price_points_filter.rb +25 -7
  313. data/lib/advanced_billing/models/list_product_price_points_response.rb +18 -4
  314. data/lib/advanced_billing/models/list_products_filter.rb +23 -7
  315. data/lib/advanced_billing/models/list_proforma_invoices_meta.rb +23 -7
  316. data/lib/advanced_billing/models/list_proforma_invoices_response.rb +19 -5
  317. data/lib/advanced_billing/models/list_public_keys_meta.rb +23 -7
  318. data/lib/advanced_billing/models/list_public_keys_response.rb +19 -5
  319. data/lib/advanced_billing/models/list_sale_rep_item.rb +23 -7
  320. data/lib/advanced_billing/models/list_segments_filter.rb +26 -7
  321. data/lib/advanced_billing/models/list_segments_response.rb +18 -4
  322. data/lib/advanced_billing/models/list_subcription_group_prepayment_item.rb +28 -7
  323. data/lib/advanced_billing/models/list_subscription_components_filter.rb +19 -5
  324. data/lib/advanced_billing/models/list_subscription_components_for_site_filter.rb +22 -6
  325. data/lib/advanced_billing/models/list_subscription_components_response.rb +18 -4
  326. data/lib/advanced_billing/models/list_subscription_group_prepayment.rb +18 -4
  327. data/lib/advanced_billing/models/list_subscription_group_prepayment_response.rb +18 -4
  328. data/lib/advanced_billing/models/list_subscription_groups_item.rb +30 -7
  329. data/lib/advanced_billing/models/list_subscription_groups_meta.rb +19 -5
  330. data/lib/advanced_billing/models/list_subscription_groups_response.rb +19 -5
  331. data/lib/advanced_billing/models/metadata.rb +24 -7
  332. data/lib/advanced_billing/models/metafield.rb +23 -7
  333. data/lib/advanced_billing/models/metafield_scope.rb +24 -7
  334. data/lib/advanced_billing/models/metered_component.rb +49 -51
  335. data/lib/advanced_billing/models/metered_usage.rb +25 -7
  336. data/lib/advanced_billing/models/movement.rb +28 -7
  337. data/lib/advanced_billing/models/movement_line_item.rb +26 -7
  338. data/lib/advanced_billing/models/mrr.rb +25 -7
  339. data/lib/advanced_billing/models/mrr_movement.rb +23 -7
  340. data/lib/advanced_billing/models/mrr_response.rb +16 -4
  341. data/lib/advanced_billing/models/multi_invoice_payment.rb +23 -7
  342. data/lib/advanced_billing/models/multi_invoice_payment_response.rb +17 -4
  343. data/lib/advanced_billing/models/nested_subscription_group.rb +23 -7
  344. data/lib/advanced_billing/models/net_terms.rb +28 -7
  345. data/lib/advanced_billing/models/offer.rb +37 -7
  346. data/lib/advanced_billing/models/offer_discount.rb +21 -6
  347. data/lib/advanced_billing/models/offer_item.rb +29 -7
  348. data/lib/advanced_billing/models/offer_response.rb +17 -4
  349. data/lib/advanced_billing/models/offer_signup_page.rb +24 -7
  350. data/lib/advanced_billing/models/{reason_codes_json_response.rb → ok_response.rb} +19 -7
  351. data/lib/advanced_billing/models/on_off_component.rb +66 -61
  352. data/lib/advanced_billing/models/organization_address.rb +24 -7
  353. data/lib/advanced_billing/models/origin_invoice.rb +19 -5
  354. data/lib/advanced_billing/models/overage_pricing.rb +19 -5
  355. data/lib/advanced_billing/models/override_subscription.rb +26 -7
  356. data/lib/advanced_billing/models/override_subscription_request.rb +18 -4
  357. data/lib/advanced_billing/models/paginated_metadata.rb +24 -7
  358. data/lib/advanced_billing/models/paid_invoice.rb +22 -7
  359. data/lib/advanced_billing/models/pause_request.rb +17 -4
  360. data/lib/advanced_billing/models/payer_attributes.rb +31 -7
  361. data/lib/advanced_billing/models/payer_error.rb +20 -6
  362. data/lib/advanced_billing/models/payment_collection_method_changed.rb +19 -5
  363. data/lib/advanced_billing/models/payment_for_allocation.rb +22 -7
  364. data/lib/advanced_billing/models/payment_method_apple_pay.rb +17 -4
  365. data/lib/advanced_billing/models/payment_method_bank_account.rb +22 -6
  366. data/lib/advanced_billing/models/payment_method_credit_card.rb +24 -7
  367. data/lib/advanced_billing/models/payment_method_external.rb +22 -7
  368. data/lib/advanced_billing/models/payment_method_paypal.rb +19 -5
  369. data/lib/advanced_billing/models/payment_profile_attributes.rb +42 -7
  370. data/lib/advanced_billing/models/payment_profile_response.rb +18 -4
  371. data/lib/advanced_billing/models/payment_related_events.rb +19 -5
  372. data/lib/advanced_billing/models/paypal_payment_profile.rb +35 -7
  373. data/lib/advanced_billing/models/pending_cancellation_change.rb +19 -5
  374. data/lib/advanced_billing/models/portal_management_link.rb +25 -7
  375. data/lib/advanced_billing/models/prepaid_configuration.rb +27 -7
  376. data/lib/advanced_billing/models/prepaid_configuration_response.rb +18 -4
  377. data/lib/advanced_billing/models/prepaid_product_price_point_filter.rb +18 -4
  378. data/lib/advanced_billing/models/prepaid_subscription_balance_changed.rb +26 -7
  379. data/lib/advanced_billing/models/prepaid_usage.rb +32 -7
  380. data/lib/advanced_billing/models/prepaid_usage_allocation_detail.rb +21 -6
  381. data/lib/advanced_billing/models/prepaid_usage_component.rb +83 -41
  382. data/lib/advanced_billing/models/prepayment.rb +28 -7
  383. data/lib/advanced_billing/models/prepayment_account_balance_changed.rb +25 -7
  384. data/lib/advanced_billing/models/prepayment_response.rb +18 -4
  385. data/lib/advanced_billing/models/prepayments_response.rb +18 -4
  386. data/lib/advanced_billing/models/preview_allocations_request.rb +24 -7
  387. data/lib/advanced_billing/models/price.rb +22 -6
  388. data/lib/advanced_billing/models/product.rb +62 -7
  389. data/lib/advanced_billing/models/product_family.rb +24 -7
  390. data/lib/advanced_billing/models/product_family_response.rb +18 -4
  391. data/lib/advanced_billing/models/product_price_point.rb +44 -7
  392. data/lib/advanced_billing/models/product_price_point_errors.rb +24 -7
  393. data/lib/advanced_billing/models/product_price_point_response.rb +18 -4
  394. data/lib/advanced_billing/models/product_response.rb +17 -4
  395. data/lib/advanced_billing/models/proforma_error.rb +18 -4
  396. data/lib/advanced_billing/models/proforma_invoice.rb +49 -7
  397. data/lib/advanced_billing/models/proforma_invoice_credit.rb +22 -7
  398. data/lib/advanced_billing/models/proforma_invoice_discount.rb +26 -7
  399. data/lib/advanced_billing/models/proforma_invoice_issued.rb +28 -7
  400. data/lib/advanced_billing/models/proforma_invoice_payment.rb +23 -7
  401. data/lib/advanced_billing/models/proforma_invoice_tax.rb +25 -7
  402. data/lib/advanced_billing/models/proration.rb +18 -4
  403. data/lib/advanced_billing/models/public_key.rb +22 -6
  404. data/lib/advanced_billing/models/public_signup_page.rb +22 -7
  405. data/lib/advanced_billing/models/quantity_based_component.rb +51 -23
  406. data/lib/advanced_billing/models/reactivate_subscription_group_request.rb +19 -5
  407. data/lib/advanced_billing/models/reactivate_subscription_group_response.rb +28 -7
  408. data/lib/advanced_billing/models/reactivate_subscription_request.rb +26 -7
  409. data/lib/advanced_billing/models/reactivation_billing.rb +18 -4
  410. data/lib/advanced_billing/models/reason_code.rb +24 -7
  411. data/lib/advanced_billing/models/reason_code_response.rb +18 -4
  412. data/lib/advanced_billing/models/record_payment_request.rb +17 -4
  413. data/lib/advanced_billing/models/record_payment_response.rb +19 -5
  414. data/lib/advanced_billing/models/referral_code.rb +22 -7
  415. data/lib/advanced_billing/models/referral_validation_response.rb +18 -4
  416. data/lib/advanced_billing/models/refund_consolidated_invoice.rb +24 -7
  417. data/lib/advanced_billing/models/refund_invoice.rb +24 -7
  418. data/lib/advanced_billing/models/refund_invoice_event.rb +23 -7
  419. data/lib/advanced_billing/models/refund_invoice_event_data.rb +28 -7
  420. data/lib/advanced_billing/models/refund_invoice_request.rb +17 -4
  421. data/lib/advanced_billing/models/refund_prepayment.rb +22 -7
  422. data/lib/advanced_billing/models/refund_prepayment_base_refund_error.rb +17 -4
  423. data/lib/advanced_billing/models/refund_prepayment_request.rb +17 -4
  424. data/lib/advanced_billing/models/refund_success.rb +22 -6
  425. data/lib/advanced_billing/models/remove_payment_event.rb +23 -7
  426. data/lib/advanced_billing/models/remove_payment_event_data.rb +26 -7
  427. data/lib/advanced_billing/models/renewal_preview.rb +30 -7
  428. data/lib/advanced_billing/models/renewal_preview_component.rb +21 -6
  429. data/lib/advanced_billing/models/renewal_preview_line_item.rb +34 -7
  430. data/lib/advanced_billing/models/renewal_preview_request.rb +18 -4
  431. data/lib/advanced_billing/models/renewal_preview_response.rb +18 -4
  432. data/lib/advanced_billing/models/replay_webhooks_request.rb +16 -4
  433. data/lib/advanced_billing/models/replay_webhooks_response.rb +17 -4
  434. data/lib/advanced_billing/models/resent_invitation.rb +26 -7
  435. data/lib/advanced_billing/models/resume_options.rb +19 -5
  436. data/lib/advanced_billing/models/revoked_invitation.rb +22 -6
  437. data/lib/advanced_billing/models/sale_rep.rb +23 -7
  438. data/lib/advanced_billing/models/sale_rep_item_mrr.rb +20 -6
  439. data/lib/advanced_billing/models/sale_rep_settings.rb +26 -7
  440. data/lib/advanced_billing/models/sale_rep_subscription.rb +26 -7
  441. data/lib/advanced_billing/models/segment.rb +33 -7
  442. data/lib/advanced_billing/models/segment_price.rb +26 -7
  443. data/lib/advanced_billing/models/segment_response.rb +17 -4
  444. data/lib/advanced_billing/models/send_invoice_request.rb +22 -6
  445. data/lib/advanced_billing/models/service_credit.rb +24 -7
  446. data/lib/advanced_billing/models/service_credit_response.rb +18 -4
  447. data/lib/advanced_billing/models/signup_proforma_preview.rb +21 -5
  448. data/lib/advanced_billing/models/signup_proforma_preview_response.rb +18 -4
  449. data/lib/advanced_billing/models/site.rb +56 -7
  450. data/lib/advanced_billing/models/site_response.rb +17 -4
  451. data/lib/advanced_billing/models/site_statistics.rb +35 -7
  452. data/lib/advanced_billing/models/site_summary.rb +23 -7
  453. data/lib/advanced_billing/models/subscription.rb +91 -7
  454. data/lib/advanced_billing/models/subscription_component.rb +50 -7
  455. data/lib/advanced_billing/models/subscription_component_allocation_error_item.rb +19 -5
  456. data/lib/advanced_billing/models/subscription_component_response.rb +18 -4
  457. data/lib/advanced_billing/models/subscription_component_subscription.rb +19 -5
  458. data/lib/advanced_billing/models/subscription_custom_price.rb +34 -7
  459. data/lib/advanced_billing/models/subscription_filter.rb +24 -7
  460. data/lib/advanced_billing/models/subscription_group.rb +25 -7
  461. data/lib/advanced_billing/models/subscription_group_balances.rb +23 -7
  462. data/lib/advanced_billing/models/subscription_group_bank_account.rb +35 -7
  463. data/lib/advanced_billing/models/subscription_group_component_custom_price.rb +21 -6
  464. data/lib/advanced_billing/models/subscription_group_credit_card.rb +37 -7
  465. data/lib/advanced_billing/models/subscription_group_customer.rb +23 -7
  466. data/lib/advanced_billing/models/subscription_group_item.rb +30 -7
  467. data/lib/advanced_billing/models/subscription_group_members_array_error.rb +17 -4
  468. data/lib/advanced_billing/models/subscription_group_payment_profile.rb +23 -7
  469. data/lib/advanced_billing/models/subscription_group_prepayment.rb +22 -7
  470. data/lib/advanced_billing/models/subscription_group_prepayment_request.rb +18 -4
  471. data/lib/advanced_billing/models/subscription_group_prepayment_response.rb +24 -7
  472. data/lib/advanced_billing/models/subscription_group_response.rb +18 -4
  473. data/lib/advanced_billing/models/subscription_group_signup.rb +29 -7
  474. data/lib/advanced_billing/models/subscription_group_signup_component.rb +24 -7
  475. data/lib/advanced_billing/models/subscription_group_signup_error.rb +25 -7
  476. data/lib/advanced_billing/models/{subscription_group_signup_success.rb → subscription_group_signup_event_data.rb} +31 -15
  477. data/lib/advanced_billing/models/subscription_group_signup_failure_data.rb +29 -7
  478. data/lib/advanced_billing/models/subscription_group_signup_item.rb +31 -7
  479. data/lib/advanced_billing/models/subscription_group_signup_request.rb +18 -4
  480. data/lib/advanced_billing/models/subscription_group_signup_response.rb +31 -7
  481. data/lib/advanced_billing/models/subscription_group_single_error.rb +18 -4
  482. data/lib/advanced_billing/models/subscription_group_subscription_error.rb +31 -7
  483. data/lib/advanced_billing/models/subscription_group_update_error.rb +19 -15
  484. data/lib/advanced_billing/models/subscription_included_coupon.rb +25 -7
  485. data/lib/advanced_billing/models/subscription_migration_preview.rb +25 -7
  486. data/lib/advanced_billing/models/subscription_migration_preview_options.rb +30 -7
  487. data/lib/advanced_billing/models/subscription_migration_preview_request.rb +18 -4
  488. data/lib/advanced_billing/models/subscription_migration_preview_response.rb +18 -4
  489. data/lib/advanced_billing/models/subscription_mrr.rb +22 -6
  490. data/lib/advanced_billing/models/subscription_mrr_breakout.rb +20 -5
  491. data/lib/advanced_billing/models/subscription_mrr_response.rb +18 -4
  492. data/lib/advanced_billing/models/subscription_note.rb +24 -7
  493. data/lib/advanced_billing/models/subscription_note_response.rb +17 -4
  494. data/lib/advanced_billing/models/subscription_preview.rb +21 -5
  495. data/lib/advanced_billing/models/subscription_preview_response.rb +18 -4
  496. data/lib/advanced_billing/models/subscription_product_change.rb +19 -5
  497. data/lib/advanced_billing/models/subscription_product_migration.rb +30 -7
  498. data/lib/advanced_billing/models/subscription_product_migration_request.rb +18 -4
  499. data/lib/advanced_billing/models/subscription_response.rb +18 -4
  500. data/lib/advanced_billing/models/subscription_state_change.rb +21 -5
  501. data/lib/advanced_billing/models/tax_configuration.rb +22 -6
  502. data/lib/advanced_billing/models/too_many_management_link_requests.rb +19 -5
  503. data/lib/advanced_billing/models/update_allocation_expiration_date.rb +18 -4
  504. data/lib/advanced_billing/models/update_component.rb +27 -7
  505. data/lib/advanced_billing/models/update_component_price_point.rb +26 -7
  506. data/lib/advanced_billing/models/update_component_price_point_request.rb +18 -4
  507. data/lib/advanced_billing/models/update_component_request.rb +18 -4
  508. data/lib/advanced_billing/models/update_coupon_currency.rb +19 -5
  509. data/lib/advanced_billing/models/update_currency_price.rb +20 -6
  510. data/lib/advanced_billing/models/update_currency_prices_request.rb +18 -4
  511. data/lib/advanced_billing/models/update_customer.rb +33 -7
  512. data/lib/advanced_billing/models/update_customer_request.rb +18 -4
  513. data/lib/advanced_billing/models/update_metadata.rb +20 -6
  514. data/lib/advanced_billing/models/update_metadata_request.rb +18 -4
  515. data/lib/advanced_billing/models/update_metafield.rb +23 -7
  516. data/lib/advanced_billing/models/update_metafields_request.rb +18 -4
  517. data/lib/advanced_billing/models/update_payment_profile.rb +30 -7
  518. data/lib/advanced_billing/models/update_payment_profile_request.rb +18 -4
  519. data/lib/advanced_billing/models/update_price.rb +23 -7
  520. data/lib/advanced_billing/models/update_product_price_point.rb +19 -5
  521. data/lib/advanced_billing/models/update_product_price_point_request.rb +18 -4
  522. data/lib/advanced_billing/models/update_reason_code.rb +20 -6
  523. data/lib/advanced_billing/models/update_reason_code_request.rb +18 -4
  524. data/lib/advanced_billing/models/update_segment.rb +19 -5
  525. data/lib/advanced_billing/models/update_segment_request.rb +17 -4
  526. data/lib/advanced_billing/models/update_subscription.rb +45 -8
  527. data/lib/advanced_billing/models/update_subscription_component.rb +19 -5
  528. data/lib/advanced_billing/models/update_subscription_group.rb +18 -4
  529. data/lib/advanced_billing/models/update_subscription_group_request.rb +18 -4
  530. data/lib/advanced_billing/models/update_subscription_note.rb +19 -5
  531. data/lib/advanced_billing/models/update_subscription_note_request.rb +17 -4
  532. data/lib/advanced_billing/models/update_subscription_request.rb +18 -4
  533. data/lib/advanced_billing/models/upsert_prepaid_configuration.rb +27 -7
  534. data/lib/advanced_billing/models/upsert_prepaid_configuration_request.rb +18 -4
  535. data/lib/advanced_billing/models/usage.rb +26 -7
  536. data/lib/advanced_billing/models/usage_response.rb +17 -4
  537. data/lib/advanced_billing/models/void_invoice.rb +17 -4
  538. data/lib/advanced_billing/models/void_invoice_event.rb +23 -7
  539. data/lib/advanced_billing/models/void_invoice_event_data.rb +25 -7
  540. data/lib/advanced_billing/models/void_invoice_request.rb +17 -4
  541. data/lib/advanced_billing/models/void_remainder_event.rb +23 -7
  542. data/lib/advanced_billing/models/void_remainder_event_data.rb +23 -7
  543. data/lib/advanced_billing/models/webhook.rb +29 -7
  544. data/lib/advanced_billing/models/webhook_response.rb +17 -4
  545. data/lib/advanced_billing/utilities/file_wrapper.rb +14 -2
  546. data/lib/advanced_billing/utilities/union_type_lookup.rb +12 -33
  547. data/lib/advanced_billing.rb +9 -11
  548. metadata +12 -14
  549. data/lib/advanced_billing/models/create_or_update_flat_amount_coupon.rb +0 -249
  550. data/lib/advanced_billing/models/create_or_update_percentage_coupon.rb +0 -250
  551. data/lib/advanced_billing/models/event_type.rb +0 -121
  552. data/lib/advanced_billing/models/prepaid_component_price_point.rb +0 -123
  553. data/lib/advanced_billing/models/subscription_group_member_error.rb +0 -78
  554. data/lib/advanced_billing/models/subscription_group_signup_failure.rb +0 -93
  555. data/lib/advanced_billing/models/subscription_group_signup_success_data.rb +0 -185
@@ -24,7 +24,7 @@ module AdvancedBilling
24
24
  new_api_call_builder
25
25
  .request(new_request_builder(HttpMethodEnum::POST,
26
26
  '/components/{component_id}/price_points/{price_point_id}/segments.json',
27
- Server::DEFAULT)
27
+ Server::PRODUCTION)
28
28
  .template_param(new_parameter(component_id, key: 'component_id')
29
29
  .is_required(true)
30
30
  .should_encode(true))
@@ -78,7 +78,7 @@ module AdvancedBilling
78
78
  new_api_call_builder
79
79
  .request(new_request_builder(HttpMethodEnum::GET,
80
80
  '/components/{component_id}/price_points/{price_point_id}/segments.json',
81
- Server::DEFAULT)
81
+ Server::PRODUCTION)
82
82
  .template_param(new_parameter(options['component_id'], key: 'component_id')
83
83
  .is_required(true)
84
84
  .should_encode(true))
@@ -122,7 +122,7 @@ module AdvancedBilling
122
122
  new_api_call_builder
123
123
  .request(new_request_builder(HttpMethodEnum::PUT,
124
124
  '/components/{component_id}/price_points/{price_point_id}/segments/{id}.json',
125
- Server::DEFAULT)
125
+ Server::PRODUCTION)
126
126
  .template_param(new_parameter(component_id, key: 'component_id')
127
127
  .is_required(true)
128
128
  .should_encode(true))
@@ -165,7 +165,7 @@ module AdvancedBilling
165
165
  new_api_call_builder
166
166
  .request(new_request_builder(HttpMethodEnum::DELETE,
167
167
  '/components/{component_id}/price_points/{price_point_id}/segments/{id}.json',
168
- Server::DEFAULT)
168
+ Server::PRODUCTION)
169
169
  .template_param(new_parameter(component_id, key: 'component_id')
170
170
  .is_required(true)
171
171
  .should_encode(true))
@@ -208,7 +208,7 @@ module AdvancedBilling
208
208
  new_api_call_builder
209
209
  .request(new_request_builder(HttpMethodEnum::POST,
210
210
  '/components/{component_id}/price_points/{price_point_id}/segments/bulk.json',
211
- Server::DEFAULT)
211
+ Server::PRODUCTION)
212
212
  .template_param(new_parameter(component_id, key: 'component_id')
213
213
  .is_required(true)
214
214
  .should_encode(true))
@@ -253,7 +253,7 @@ module AdvancedBilling
253
253
  new_api_call_builder
254
254
  .request(new_request_builder(HttpMethodEnum::PUT,
255
255
  '/components/{component_id}/price_points/{price_point_id}/segments/bulk.json',
256
- Server::DEFAULT)
256
+ Server::PRODUCTION)
257
257
  .template_param(new_parameter(component_id, key: 'component_id')
258
258
  .is_required(true)
259
259
  .should_encode(true))
@@ -29,9 +29,17 @@ module AdvancedBilling
29
29
  # integration)
30
30
  # + `zferral_revenue_post_success` - (Specific to the deprecated Zferral
31
31
  # integration)
32
+ # ## Event Key
33
+ # The event type is identified by the key property. You can check supported
34
+ # keys [here]($m/Event%20Key).
32
35
  # ## Event Specific Data
33
- # Event Specific Data
34
- # Each event type has its own `event_specific_data` specified.
36
+ # Different event types may include additional data in `event_specific_data`
37
+ # property.
38
+ # While some events share the same schema for `event_specific_data`, others
39
+ # may not include it at all.
40
+ # For precise mappings from key to event_specific_data, refer to
41
+ # [Event]($m/Event).
42
+ # ### Example
35
43
  # Here’s an example event for the `subscription_product_change` event:
36
44
  # ```
37
45
  # {
@@ -83,7 +91,7 @@ module AdvancedBilling
83
91
  # than or equal to the one specified
84
92
  # @param [Direction] direction Optional parameter: The sort direction of the
85
93
  # returned events.
86
- # @param [Array[EventType]] filter Optional parameter: You can pass multiple
94
+ # @param [Array[EventKey]] filter Optional parameter: You can pass multiple
87
95
  # event keys after comma. Use in query
88
96
  # `filter=signup_success,payment_success`.
89
97
  # @param [ListEventsDateField] date_field Optional parameter: The type of
@@ -111,7 +119,7 @@ module AdvancedBilling
111
119
  new_api_call_builder
112
120
  .request(new_request_builder(HttpMethodEnum::GET,
113
121
  '/events.json',
114
- Server::DEFAULT)
122
+ Server::PRODUCTION)
115
123
  .query_param(new_parameter(options['page'], key: 'page'))
116
124
  .query_param(new_parameter(options['per_page'], key: 'per_page'))
117
125
  .query_param(new_parameter(options['since_id'], key: 'since_id'))
@@ -134,7 +142,16 @@ module AdvancedBilling
134
142
  end
135
143
 
136
144
  # The following request will return a list of events for a subscription.
137
- # Each event type has its own `event_specific_data` specified.
145
+ # ## Event Key
146
+ # The event type is identified by the key property. You can check supported
147
+ # keys [here]($m/Event%20Key).
148
+ # ## Event Specific Data
149
+ # Different event types may include additional data in `event_specific_data`
150
+ # property.
151
+ # While some events share the same schema for `event_specific_data`, others
152
+ # may not include it at all.
153
+ # For precise mappings from key to event_specific_data, refer to
154
+ # [Event]($m/Event).
138
155
  # @param [Integer] subscription_id Required parameter: The Chargify id of
139
156
  # the subscription
140
157
  # @param [Integer] page Optional parameter: Result records are organized in
@@ -154,7 +171,7 @@ module AdvancedBilling
154
171
  # than or equal to the one specified
155
172
  # @param [Direction] direction Optional parameter: The sort direction of the
156
173
  # returned events.
157
- # @param [Array[EventType]] filter Optional parameter: You can pass multiple
174
+ # @param [Array[EventKey]] filter Optional parameter: You can pass multiple
158
175
  # event keys after comma. Use in query
159
176
  # `filter=signup_success,payment_success`.
160
177
  # @return [Array[EventResponse]] response from the API call.
@@ -162,7 +179,7 @@ module AdvancedBilling
162
179
  new_api_call_builder
163
180
  .request(new_request_builder(HttpMethodEnum::GET,
164
181
  '/subscriptions/{subscription_id}/events.json',
165
- Server::DEFAULT)
182
+ Server::PRODUCTION)
166
183
  .template_param(new_parameter(options['subscription_id'], key: 'subscription_id')
167
184
  .is_required(true)
168
185
  .should_encode(true))
@@ -200,7 +217,7 @@ module AdvancedBilling
200
217
  # than or equal to the one specified
201
218
  # @param [Direction] direction Optional parameter: The sort direction of the
202
219
  # returned events.
203
- # @param [Array[EventType]] filter Optional parameter: You can pass multiple
220
+ # @param [Array[EventKey]] filter Optional parameter: You can pass multiple
204
221
  # event keys after comma. Use in query
205
222
  # `filter=signup_success,payment_success`.
206
223
  # @return [CountResponse] response from the API call.
@@ -208,7 +225,7 @@ module AdvancedBilling
208
225
  new_api_call_builder
209
226
  .request(new_request_builder(HttpMethodEnum::GET,
210
227
  '/events/count.json',
211
- Server::DEFAULT)
228
+ Server::PRODUCTION)
212
229
  .query_param(new_parameter(options['page'], key: 'page'))
213
230
  .query_param(new_parameter(options['per_page'], key: 'per_page'))
214
231
  .query_param(new_parameter(options['since_id'], key: 'since_id'))
@@ -20,7 +20,7 @@ module AdvancedBilling
20
20
  new_api_call_builder
21
21
  .request(new_request_builder(HttpMethodEnum::GET,
22
22
  '/stats.json',
23
- Server::DEFAULT)
23
+ Server::PRODUCTION)
24
24
  .header_param(new_parameter('application/json', key: 'accept'))
25
25
  .auth(Single.new('BasicAuth')))
26
26
  .response(new_response_handler
@@ -42,7 +42,7 @@ module AdvancedBilling
42
42
  new_api_call_builder
43
43
  .request(new_request_builder(HttpMethodEnum::GET,
44
44
  '/mrr.json',
45
- Server::DEFAULT)
45
+ Server::PRODUCTION)
46
46
  .query_param(new_parameter(at_time, key: 'at_time'))
47
47
  .query_param(new_parameter(subscription_id, key: 'subscription_id'))
48
48
  .header_param(new_parameter('application/json', key: 'accept'))
@@ -97,7 +97,7 @@ module AdvancedBilling
97
97
  new_api_call_builder
98
98
  .request(new_request_builder(HttpMethodEnum::GET,
99
99
  '/mrr_movements.json',
100
- Server::DEFAULT)
100
+ Server::PRODUCTION)
101
101
  .query_param(new_parameter(options['subscription_id'], key: 'subscription_id'))
102
102
  .query_param(new_parameter(options['page'], key: 'page'))
103
103
  .query_param(new_parameter(options['per_page'], key: 'per_page'))
@@ -138,7 +138,7 @@ module AdvancedBilling
138
138
  new_api_call_builder
139
139
  .request(new_request_builder(HttpMethodEnum::GET,
140
140
  '/subscriptions_mrr.json',
141
- Server::DEFAULT)
141
+ Server::PRODUCTION)
142
142
  .query_param(new_parameter(options['filter'], key: 'filter'))
143
143
  .query_param(new_parameter(options['at_time'], key: 'at_time'))
144
144
  .query_param(new_parameter(options['page'], key: 'page'))
@@ -22,7 +22,7 @@ module AdvancedBilling
22
22
  new_api_call_builder
23
23
  .request(new_request_builder(HttpMethodEnum::POST,
24
24
  '/invoices/{uid}/refunds.json',
25
- Server::DEFAULT)
25
+ Server::PRODUCTION)
26
26
  .template_param(new_parameter(uid, key: 'uid')
27
27
  .is_required(true)
28
28
  .should_encode(true))
@@ -121,7 +121,7 @@ module AdvancedBilling
121
121
  new_api_call_builder
122
122
  .request(new_request_builder(HttpMethodEnum::GET,
123
123
  '/invoices.json',
124
- Server::DEFAULT)
124
+ Server::PRODUCTION)
125
125
  .query_param(new_parameter(options['start_date'], key: 'start_date'))
126
126
  .query_param(new_parameter(options['end_date'], key: 'end_date'))
127
127
  .query_param(new_parameter(options['status'], key: 'status'))
@@ -172,7 +172,7 @@ module AdvancedBilling
172
172
  new_api_call_builder
173
173
  .request(new_request_builder(HttpMethodEnum::GET,
174
174
  '/invoices/{uid}.json',
175
- Server::DEFAULT)
175
+ Server::PRODUCTION)
176
176
  .template_param(new_parameter(uid, key: 'uid')
177
177
  .is_required(true)
178
178
  .should_encode(true))
@@ -241,7 +241,7 @@ module AdvancedBilling
241
241
  new_api_call_builder
242
242
  .request(new_request_builder(HttpMethodEnum::GET,
243
243
  '/invoices/events.json',
244
- Server::DEFAULT)
244
+ Server::PRODUCTION)
245
245
  .query_param(new_parameter(options['since_date'], key: 'since_date'))
246
246
  .query_param(new_parameter(options['since_id'], key: 'since_id'))
247
247
  .query_param(new_parameter(options['page'], key: 'page'))
@@ -314,7 +314,7 @@ module AdvancedBilling
314
314
  new_api_call_builder
315
315
  .request(new_request_builder(HttpMethodEnum::POST,
316
316
  '/invoices/{uid}/payments.json',
317
- Server::DEFAULT)
317
+ Server::PRODUCTION)
318
318
  .template_param(new_parameter(uid, key: 'uid')
319
319
  .is_required(true)
320
320
  .should_encode(true))
@@ -366,7 +366,7 @@ module AdvancedBilling
366
366
  new_api_call_builder
367
367
  .request(new_request_builder(HttpMethodEnum::POST,
368
368
  '/invoices/payments.json',
369
- Server::DEFAULT)
369
+ Server::PRODUCTION)
370
370
  .header_param(new_parameter('application/json', key: 'Content-Type'))
371
371
  .body_param(new_parameter(body))
372
372
  .header_param(new_parameter('application/json', key: 'accept'))
@@ -416,7 +416,7 @@ module AdvancedBilling
416
416
  new_api_call_builder
417
417
  .request(new_request_builder(HttpMethodEnum::GET,
418
418
  '/credit_notes.json',
419
- Server::DEFAULT)
419
+ Server::PRODUCTION)
420
420
  .query_param(new_parameter(options['subscription_id'], key: 'subscription_id'))
421
421
  .query_param(new_parameter(options['page'], key: 'page'))
422
422
  .query_param(new_parameter(options['per_page'], key: 'per_page'))
@@ -441,7 +441,7 @@ module AdvancedBilling
441
441
  new_api_call_builder
442
442
  .request(new_request_builder(HttpMethodEnum::GET,
443
443
  '/credit_notes/{uid}.json',
444
- Server::DEFAULT)
444
+ Server::PRODUCTION)
445
445
  .template_param(new_parameter(uid, key: 'uid')
446
446
  .is_required(true)
447
447
  .should_encode(true))
@@ -470,7 +470,7 @@ module AdvancedBilling
470
470
  new_api_call_builder
471
471
  .request(new_request_builder(HttpMethodEnum::POST,
472
472
  '/subscriptions/{subscription_id}/payments.json',
473
- Server::DEFAULT)
473
+ Server::PRODUCTION)
474
474
  .template_param(new_parameter(subscription_id, key: 'subscription_id')
475
475
  .is_required(true)
476
476
  .should_encode(true))
@@ -514,7 +514,7 @@ module AdvancedBilling
514
514
  new_api_call_builder
515
515
  .request(new_request_builder(HttpMethodEnum::POST,
516
516
  '/invoices/{uid}/reopen.json',
517
- Server::DEFAULT)
517
+ Server::PRODUCTION)
518
518
  .template_param(new_parameter(uid, key: 'uid')
519
519
  .is_required(true)
520
520
  .should_encode(true))
@@ -545,7 +545,7 @@ module AdvancedBilling
545
545
  new_api_call_builder
546
546
  .request(new_request_builder(HttpMethodEnum::POST,
547
547
  '/invoices/{uid}/void.json',
548
- Server::DEFAULT)
548
+ Server::PRODUCTION)
549
549
  .template_param(new_parameter(uid, key: 'uid')
550
550
  .is_required(true)
551
551
  .should_encode(true))
@@ -590,7 +590,7 @@ module AdvancedBilling
590
590
  new_api_call_builder
591
591
  .request(new_request_builder(HttpMethodEnum::GET,
592
592
  '/invoices/{invoice_uid}/segments.json',
593
- Server::DEFAULT)
593
+ Server::PRODUCTION)
594
594
  .template_param(new_parameter(options['invoice_uid'], key: 'invoice_uid')
595
595
  .is_required(true)
596
596
  .should_encode(true))
@@ -778,7 +778,7 @@ module AdvancedBilling
778
778
  new_api_call_builder
779
779
  .request(new_request_builder(HttpMethodEnum::POST,
780
780
  '/subscriptions/{subscription_id}/invoices.json',
781
- Server::DEFAULT)
781
+ Server::PRODUCTION)
782
782
  .template_param(new_parameter(subscription_id, key: 'subscription_id')
783
783
  .is_required(true)
784
784
  .should_encode(true))
@@ -820,7 +820,7 @@ module AdvancedBilling
820
820
  new_api_call_builder
821
821
  .request(new_request_builder(HttpMethodEnum::POST,
822
822
  '/invoices/{uid}/deliveries.json',
823
- Server::DEFAULT)
823
+ Server::PRODUCTION)
824
824
  .template_param(new_parameter(uid, key: 'uid')
825
825
  .is_required(true)
826
826
  .should_encode(true))
@@ -850,7 +850,7 @@ module AdvancedBilling
850
850
  new_api_call_builder
851
851
  .request(new_request_builder(HttpMethodEnum::POST,
852
852
  '/invoices/{uid}/customer_information/preview.json',
853
- Server::DEFAULT)
853
+ Server::PRODUCTION)
854
854
  .template_param(new_parameter(uid, key: 'uid')
855
855
  .is_required(true)
856
856
  .should_encode(true))
@@ -882,7 +882,7 @@ module AdvancedBilling
882
882
  new_api_call_builder
883
883
  .request(new_request_builder(HttpMethodEnum::PUT,
884
884
  '/invoices/{uid}/customer_information.json',
885
- Server::DEFAULT)
885
+ Server::PRODUCTION)
886
886
  .template_param(new_parameter(uid, key: 'uid')
887
887
  .is_required(true)
888
888
  .should_encode(true))
@@ -937,7 +937,7 @@ module AdvancedBilling
937
937
  new_api_call_builder
938
938
  .request(new_request_builder(HttpMethodEnum::POST,
939
939
  '/invoices/{uid}/issue.json',
940
- Server::DEFAULT)
940
+ Server::PRODUCTION)
941
941
  .template_param(new_parameter(uid, key: 'uid')
942
942
  .is_required(true)
943
943
  .should_encode(true))
@@ -29,7 +29,7 @@ module AdvancedBilling
29
29
  new_api_call_builder
30
30
  .request(new_request_builder(HttpMethodEnum::POST,
31
31
  '/offers.json',
32
- Server::DEFAULT)
32
+ Server::PRODUCTION)
33
33
  .header_param(new_parameter('application/json', key: 'Content-Type'))
34
34
  .body_param(new_parameter(body))
35
35
  .header_param(new_parameter('application/json', key: 'accept'))
@@ -64,7 +64,7 @@ module AdvancedBilling
64
64
  new_api_call_builder
65
65
  .request(new_request_builder(HttpMethodEnum::GET,
66
66
  '/offers.json',
67
- Server::DEFAULT)
67
+ Server::PRODUCTION)
68
68
  .query_param(new_parameter(options['page'], key: 'page'))
69
69
  .query_param(new_parameter(options['per_page'], key: 'per_page'))
70
70
  .query_param(new_parameter(options['include_archived'], key: 'include_archived'))
@@ -72,7 +72,11 @@ module AdvancedBilling
72
72
  .auth(Single.new('BasicAuth')))
73
73
  .response(new_response_handler
74
74
  .deserializer(APIHelper.method(:custom_type_deserializer))
75
- .deserialize_into(ListOffersResponse.method(:from_hash)))
75
+ .deserialize_into(ListOffersResponse.method(:from_hash))
76
+ .local_error_template('422',
77
+ 'HTTP Response Not OK. Status code: {$statusCode}.'\
78
+ ' Response: \'{$response.body}\'.',
79
+ ErrorListResponseException))
76
80
  .execute
77
81
  end
78
82
 
@@ -85,7 +89,7 @@ module AdvancedBilling
85
89
  new_api_call_builder
86
90
  .request(new_request_builder(HttpMethodEnum::GET,
87
91
  '/offers/{offer_id}.json',
88
- Server::DEFAULT)
92
+ Server::PRODUCTION)
89
93
  .template_param(new_parameter(offer_id, key: 'offer_id')
90
94
  .is_required(true)
91
95
  .should_encode(true))
@@ -106,7 +110,7 @@ module AdvancedBilling
106
110
  new_api_call_builder
107
111
  .request(new_request_builder(HttpMethodEnum::PUT,
108
112
  '/offers/{offer_id}/archive.json',
109
- Server::DEFAULT)
113
+ Server::PRODUCTION)
110
114
  .template_param(new_parameter(offer_id, key: 'offer_id')
111
115
  .is_required(true)
112
116
  .should_encode(true))
@@ -125,7 +129,7 @@ module AdvancedBilling
125
129
  new_api_call_builder
126
130
  .request(new_request_builder(HttpMethodEnum::PUT,
127
131
  '/offers/{offer_id}/unarchive.json',
128
- Server::DEFAULT)
132
+ Server::PRODUCTION)
129
133
  .template_param(new_parameter(offer_id, key: 'offer_id')
130
134
  .is_required(true)
131
135
  .should_encode(true))
@@ -330,7 +330,7 @@ module AdvancedBilling
330
330
  new_api_call_builder
331
331
  .request(new_request_builder(HttpMethodEnum::POST,
332
332
  '/payment_profiles.json',
333
- Server::DEFAULT)
333
+ Server::PRODUCTION)
334
334
  .header_param(new_parameter('application/json', key: 'Content-Type'))
335
335
  .body_param(new_parameter(body))
336
336
  .header_param(new_parameter('application/json', key: 'accept'))
@@ -370,7 +370,7 @@ module AdvancedBilling
370
370
  new_api_call_builder
371
371
  .request(new_request_builder(HttpMethodEnum::GET,
372
372
  '/payment_profiles.json',
373
- Server::DEFAULT)
373
+ Server::PRODUCTION)
374
374
  .query_param(new_parameter(options['page'], key: 'page'))
375
375
  .query_param(new_parameter(options['per_page'], key: 'per_page'))
376
376
  .query_param(new_parameter(options['customer_id'], key: 'customer_id'))
@@ -423,7 +423,7 @@ module AdvancedBilling
423
423
  new_api_call_builder
424
424
  .request(new_request_builder(HttpMethodEnum::GET,
425
425
  '/payment_profiles/{payment_profile_id}.json',
426
- Server::DEFAULT)
426
+ Server::PRODUCTION)
427
427
  .template_param(new_parameter(payment_profile_id, key: 'payment_profile_id')
428
428
  .is_required(true)
429
429
  .should_encode(true))
@@ -489,7 +489,7 @@ module AdvancedBilling
489
489
  new_api_call_builder
490
490
  .request(new_request_builder(HttpMethodEnum::PUT,
491
491
  '/payment_profiles/{payment_profile_id}.json',
492
- Server::DEFAULT)
492
+ Server::PRODUCTION)
493
493
  .template_param(new_parameter(payment_profile_id, key: 'payment_profile_id')
494
494
  .is_required(true)
495
495
  .should_encode(true))
@@ -521,7 +521,7 @@ module AdvancedBilling
521
521
  new_api_call_builder
522
522
  .request(new_request_builder(HttpMethodEnum::DELETE,
523
523
  '/payment_profiles/{payment_profile_id}.json',
524
- Server::DEFAULT)
524
+ Server::PRODUCTION)
525
525
  .template_param(new_parameter(payment_profile_id, key: 'payment_profile_id')
526
526
  .is_required(true)
527
527
  .should_encode(true))
@@ -558,7 +558,7 @@ module AdvancedBilling
558
558
  new_api_call_builder
559
559
  .request(new_request_builder(HttpMethodEnum::DELETE,
560
560
  '/subscriptions/{subscription_id}/payment_profiles/{payment_profile_id}.json',
561
- Server::DEFAULT)
561
+ Server::PRODUCTION)
562
562
  .template_param(new_parameter(subscription_id, key: 'subscription_id')
563
563
  .is_required(true)
564
564
  .should_encode(true))
@@ -583,7 +583,7 @@ module AdvancedBilling
583
583
  new_api_call_builder
584
584
  .request(new_request_builder(HttpMethodEnum::PUT,
585
585
  '/bank_accounts/{bank_account_id}/verification.json',
586
- Server::DEFAULT)
586
+ Server::PRODUCTION)
587
587
  .template_param(new_parameter(bank_account_id, key: 'bank_account_id')
588
588
  .is_required(true)
589
589
  .should_encode(true))
@@ -618,7 +618,7 @@ module AdvancedBilling
618
618
  new_api_call_builder
619
619
  .request(new_request_builder(HttpMethodEnum::DELETE,
620
620
  '/subscription_groups/{uid}/payment_profiles/{payment_profile_id}.json',
621
- Server::DEFAULT)
621
+ Server::PRODUCTION)
622
622
  .template_param(new_parameter(uid, key: 'uid')
623
623
  .is_required(true)
624
624
  .should_encode(true))
@@ -645,7 +645,7 @@ module AdvancedBilling
645
645
  new_api_call_builder
646
646
  .request(new_request_builder(HttpMethodEnum::POST,
647
647
  '/subscriptions/{subscription_id}/payment_profiles/{payment_profile_id}/change_payment_profile.json',
648
- Server::DEFAULT)
648
+ Server::PRODUCTION)
649
649
  .template_param(new_parameter(subscription_id, key: 'subscription_id')
650
650
  .is_required(true)
651
651
  .should_encode(true))
@@ -683,7 +683,7 @@ module AdvancedBilling
683
683
  new_api_call_builder
684
684
  .request(new_request_builder(HttpMethodEnum::POST,
685
685
  '/subscription_groups/{uid}/payment_profiles/{payment_profile_id}/change_payment_profile.json',
686
- Server::DEFAULT)
686
+ Server::PRODUCTION)
687
687
  .template_param(new_parameter(uid, key: 'uid')
688
688
  .is_required(true)
689
689
  .should_encode(true))
@@ -717,7 +717,7 @@ module AdvancedBilling
717
717
  new_api_call_builder
718
718
  .request(new_request_builder(HttpMethodEnum::GET,
719
719
  '/one_time_tokens/{chargify_token}.json',
720
- Server::DEFAULT)
720
+ Server::PRODUCTION)
721
721
  .template_param(new_parameter(chargify_token, key: 'chargify_token')
722
722
  .is_required(true)
723
723
  .should_encode(true))
@@ -754,7 +754,7 @@ module AdvancedBilling
754
754
  new_api_call_builder
755
755
  .request(new_request_builder(HttpMethodEnum::POST,
756
756
  '/subscriptions/{subscription_id}/request_payment_profiles_update.json',
757
- Server::DEFAULT)
757
+ Server::PRODUCTION)
758
758
  .template_param(new_parameter(subscription_id, key: 'subscription_id')
759
759
  .is_required(true)
760
760
  .should_encode(true))
@@ -26,20 +26,21 @@ module AdvancedBilling
26
26
  # `date_field=created_at`.
27
27
  # @param [ListProductsFilter] filter Optional parameter: Filter to use for
28
28
  # List Products operations
29
- # @param [String] start_date Optional parameter: The start date (format
29
+ # @param [Date] start_date Optional parameter: The start date (format
30
30
  # YYYY-MM-DD) with which to filter the date_field. Returns products with a
31
31
  # timestamp at or after midnight (12:00:00 AM) in your site’s time zone on
32
32
  # the date specified.
33
- # @param [String] end_date Optional parameter: The end date (format
33
+ # @param [Date] end_date Optional parameter: The end date (format
34
34
  # YYYY-MM-DD) with which to filter the date_field. Returns products with a
35
35
  # timestamp up to and including 11:59:59PM in your site’s time zone on the
36
36
  # date specified.
37
- # @param [String] start_datetime Optional parameter: The start date and time
38
- # (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns
39
- # products with a timestamp at or after exact time provided in query. You
40
- # can specify timezone in query - otherwise your site's time zone will be
41
- # used. If provided, this parameter will be used instead of start_date.
42
- # @param [String] end_datetime Optional parameter: The end date and time
37
+ # @param [DateTime] start_datetime Optional parameter: The start date and
38
+ # time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
39
+ # Returns products with a timestamp at or after exact time provided in
40
+ # query. You can specify timezone in query - otherwise your site's time zone
41
+ # will be used. If provided, this parameter will be used instead of
42
+ # start_date.
43
+ # @param [DateTime] end_datetime Optional parameter: The end date and time
43
44
  # (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns
44
45
  # products with a timestamp at or before exact time provided in query. You
45
46
  # can specify timezone in query - otherwise your site's time zone will be
@@ -54,7 +55,7 @@ module AdvancedBilling
54
55
  new_api_call_builder
55
56
  .request(new_request_builder(HttpMethodEnum::GET,
56
57
  '/product_families/{product_family_id}/products.json',
57
- Server::DEFAULT)
58
+ Server::PRODUCTION)
58
59
  .template_param(new_parameter(options['product_family_id'], key: 'product_family_id')
59
60
  .is_required(true)
60
61
  .should_encode(true))
@@ -94,7 +95,7 @@ module AdvancedBilling
94
95
  new_api_call_builder
95
96
  .request(new_request_builder(HttpMethodEnum::POST,
96
97
  '/product_families.json',
97
- Server::DEFAULT)
98
+ Server::PRODUCTION)
98
99
  .header_param(new_parameter('application/json', key: 'Content-Type'))
99
100
  .body_param(new_parameter(body))
100
101
  .header_param(new_parameter('application/json', key: 'accept'))
@@ -114,20 +115,21 @@ module AdvancedBilling
114
115
  # @param [BasicDateField] date_field Optional parameter: The type of filter
115
116
  # you would like to apply to your search. Use in query:
116
117
  # `date_field=created_at`.
117
- # @param [String] start_date Optional parameter: The start date (format
118
+ # @param [Date] start_date Optional parameter: The start date (format
118
119
  # YYYY-MM-DD) with which to filter the date_field. Returns products with a
119
120
  # timestamp at or after midnight (12:00:00 AM) in your site’s time zone on
120
121
  # the date specified.
121
- # @param [String] end_date Optional parameter: The end date (format
122
+ # @param [Date] end_date Optional parameter: The end date (format
122
123
  # YYYY-MM-DD) with which to filter the date_field. Returns products with a
123
124
  # timestamp up to and including 11:59:59PM in your site’s time zone on the
124
125
  # date specified.
125
- # @param [String] start_datetime Optional parameter: The start date and time
126
- # (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns
127
- # products with a timestamp at or after exact time provided in query. You
128
- # can specify timezone in query - otherwise your site's time zone will be
129
- # used. If provided, this parameter will be used instead of start_date.
130
- # @param [String] end_datetime Optional parameter: The end date and time
126
+ # @param [DateTime] start_datetime Optional parameter: The start date and
127
+ # time (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field.
128
+ # Returns products with a timestamp at or after exact time provided in
129
+ # query. You can specify timezone in query - otherwise your site's time zone
130
+ # will be used. If provided, this parameter will be used instead of
131
+ # start_date.
132
+ # @param [DateTime] end_datetime Optional parameter: The end date and time
131
133
  # (format YYYY-MM-DD HH:MM:SS) with which to filter the date_field. Returns
132
134
  # products with a timestamp at or before exact time provided in query. You
133
135
  # can specify timezone in query - otherwise your site's time zone will be
@@ -137,7 +139,7 @@ module AdvancedBilling
137
139
  new_api_call_builder
138
140
  .request(new_request_builder(HttpMethodEnum::GET,
139
141
  '/product_families.json',
140
- Server::DEFAULT)
142
+ Server::PRODUCTION)
141
143
  .query_param(new_parameter(options['date_field'], key: 'date_field'))
142
144
  .query_param(new_parameter(options['start_date'], key: 'start_date'))
143
145
  .query_param(new_parameter(options['end_date'], key: 'end_date'))
@@ -163,7 +165,7 @@ module AdvancedBilling
163
165
  new_api_call_builder
164
166
  .request(new_request_builder(HttpMethodEnum::GET,
165
167
  '/product_families/{id}.json',
166
- Server::DEFAULT)
168
+ Server::PRODUCTION)
167
169
  .template_param(new_parameter(id, key: 'id')
168
170
  .is_required(true)
169
171
  .should_encode(true))