bf_ruby2 2.2016.237 → 3.2017.174

Sign up to get free protection for your applications and to get access to all the features.
Files changed (631) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +39 -0
  3. data/.rspec +2 -0
  4. data/.swagger-codegen-ignore +23 -0
  5. data/.swagger-codegen/VERSION +1 -0
  6. data/Gemfile +7 -0
  7. data/README.md +112 -58
  8. data/Rakefile +8 -0
  9. data/bf_ruby2.gemspec +6 -16
  10. data/docs/Product.md +1 -1
  11. data/docs/ProductRatePlan.md +1 -1
  12. data/docs/TokenizationApi.md +4 -4
  13. data/git_push.sh +0 -12
  14. data/lib/bf_ruby2.rb +23 -34
  15. data/lib/bf_ruby2/api/accounts_api.rb +148 -183
  16. data/lib/bf_ruby2/api/addresses_api.rb +13 -28
  17. data/lib/bf_ruby2/api/amendments_api.rb +80 -117
  18. data/lib/bf_ruby2/api/analytics_api.rb +88 -121
  19. data/lib/bf_ruby2/api/auditlogs_api.rb +33 -60
  20. data/lib/bf_ruby2/api/charges_api.rb +51 -84
  21. data/lib/bf_ruby2/api/clients_api.rb +22 -45
  22. data/lib/bf_ruby2/api/configurations_api.rb +23 -48
  23. data/lib/bf_ruby2/api/couponbook_api.rb +56 -89
  24. data/lib/bf_ruby2/api/couponbookdefinition_api.rb +35 -62
  25. data/lib/bf_ruby2/api/coupondefinition_api.rb +28 -53
  26. data/lib/bf_ruby2/api/couponinstance_api.rb +65 -102
  27. data/lib/bf_ruby2/api/couponmodifier_api.rb +39 -68
  28. data/lib/bf_ruby2/api/couponrule_api.rb +28 -53
  29. data/lib/bf_ruby2/api/coupons_api.rb +52 -81
  30. data/lib/bf_ruby2/api/creditnotes_api.rb +43 -64
  31. data/lib/bf_ruby2/api/cybersourcetokens_api.rb +34 -53
  32. data/lib/bf_ruby2/api/dunninglines_api.rb +37 -64
  33. data/lib/bf_ruby2/api/emailproviders_api.rb +22 -45
  34. data/lib/bf_ruby2/api/emails_api.rb +19 -36
  35. data/lib/bf_ruby2/api/emailsubscriptions_api.rb +37 -58
  36. data/lib/bf_ruby2/api/fixedtermdefinitions_api.rb +13 -28
  37. data/lib/bf_ruby2/api/fixedterms_api.rb +7 -20
  38. data/lib/bf_ruby2/api/invoices_api.rb +296 -397
  39. data/lib/bf_ruby2/api/metadata_api.rb +19 -42
  40. data/lib/bf_ruby2/api/notifications_api.rb +44 -69
  41. data/lib/bf_ruby2/api/organizations_api.rb +37 -70
  42. data/lib/bf_ruby2/api/passwords_api.rb +7 -20
  43. data/lib/bf_ruby2/api/paymentmethods_api.rb +48 -81
  44. data/lib/bf_ruby2/api/paymentmethodsubscriptionlinks_api.rb +16 -29
  45. data/lib/bf_ruby2/api/payments_api.rb +52 -85
  46. data/lib/bf_ruby2/api/periods_api.rb +10 -31
  47. data/lib/bf_ruby2/api/permissions_api.rb +32 -61
  48. data/lib/bf_ruby2/api/pricingcalculator_api.rb +19 -36
  49. data/lib/bf_ruby2/api/pricingcomponents_api.rb +36 -63
  50. data/lib/bf_ruby2/api/pricingcomponenttiers_api.rb +30 -55
  51. data/lib/bf_ruby2/api/pricingcomponentvaluechanges_api.rb +37 -64
  52. data/lib/bf_ruby2/api/pricingcomponentvalues_api.rb +30 -55
  53. data/lib/bf_ruby2/api/productrateplans_api.rb +101 -134
  54. data/lib/bf_ruby2/api/products_api.rb +59 -88
  55. data/lib/bf_ruby2/api/profiles_api.rb +30 -55
  56. data/lib/bf_ruby2/api/quotes_api.rb +7 -20
  57. data/lib/bf_ruby2/api/receipts_api.rb +41 -78
  58. data/lib/bf_ruby2/api/refunds_api.rb +49 -80
  59. data/lib/bf_ruby2/api/roles_api.rb +42 -65
  60. data/lib/bf_ruby2/api/search_api.rb +7 -20
  61. data/lib/bf_ruby2/api/subscriptions_api.rb +414 -477
  62. data/lib/bf_ruby2/api/synch_app_configs_api.rb +26 -45
  63. data/lib/bf_ruby2/api/synch_configs_api.rb +35 -62
  64. data/lib/bf_ruby2/api/synch_jobs_api.rb +50 -81
  65. data/lib/bf_ruby2/api/taxationlinks_api.rb +36 -63
  66. data/lib/bf_ruby2/api/taxationstrategies_api.rb +58 -93
  67. data/lib/bf_ruby2/api/time_api.rb +7 -20
  68. data/lib/bf_ruby2/api/tokenization_api.rb +29 -60
  69. data/lib/bf_ruby2/api/unitofmeasure_api.rb +22 -45
  70. data/lib/bf_ruby2/api/usage_api.rb +43 -62
  71. data/lib/bf_ruby2/api/usageperiods_api.rb +25 -44
  72. data/lib/bf_ruby2/api/usageroundingstrategies_api.rb +27 -46
  73. data/lib/bf_ruby2/api/usagesessions_api.rb +25 -48
  74. data/lib/bf_ruby2/api/usernames_api.rb +7 -20
  75. data/lib/bf_ruby2/api/users_api.rb +67 -102
  76. data/lib/bf_ruby2/api/vaultedgateways_api.rb +79 -116
  77. data/lib/bf_ruby2/api/webhooks_api.rb +43 -70
  78. data/lib/bf_ruby2/api_client.rb +52 -42
  79. data/lib/bf_ruby2/api_error.rb +15 -18
  80. data/lib/bf_ruby2/configuration.rb +7 -12
  81. data/lib/bf_ruby2/models/account.rb +12 -15
  82. data/lib/bf_ruby2/models/account_ltv_result_paged_metadata.rb +32 -15
  83. data/lib/bf_ruby2/models/account_paged_metadata.rb +32 -15
  84. data/lib/bf_ruby2/models/account_payments_result_paged_metadata.rb +32 -15
  85. data/lib/bf_ruby2/models/add_charge_request.rb +8 -15
  86. data/lib/bf_ruby2/models/add_charge_to_account_response.rb +4 -15
  87. data/lib/bf_ruby2/models/add_charge_to_account_response_paged_metadata.rb +32 -15
  88. data/lib/bf_ruby2/models/add_charges_to_account_api_request.rb +4 -15
  89. data/lib/bf_ruby2/models/add_coupon_code_request.rb +8 -15
  90. data/lib/bf_ruby2/models/add_payment_method_request.rb +4 -15
  91. data/lib/bf_ruby2/models/add_taxation_strategy_request.rb +4 -15
  92. data/lib/bf_ruby2/models/address.rb +24 -15
  93. data/lib/bf_ruby2/models/address_paged_metadata.rb +32 -15
  94. data/lib/bf_ruby2/models/aggregating_component.rb +12 -15
  95. data/lib/bf_ruby2/models/amendment.rb +24 -15
  96. data/lib/bf_ruby2/models/amendment_discard_amendment.rb +28 -15
  97. data/lib/bf_ruby2/models/amendment_paged_metadata.rb +32 -15
  98. data/lib/bf_ruby2/models/amendment_price_n_time_paged_metadata.rb +32 -15
  99. data/lib/bf_ruby2/models/api_configuration_paged_metadata.rb +32 -15
  100. data/lib/bf_ruby2/models/api_quote.rb +12 -15
  101. data/lib/bf_ruby2/models/api_quote_paged_metadata.rb +32 -15
  102. data/lib/bf_ruby2/models/api_quote_response_quantity.rb +4 -15
  103. data/lib/bf_ruby2/models/audit_entry.rb +40 -15
  104. data/lib/bf_ruby2/models/audit_entry_paged_metadata.rb +32 -15
  105. data/lib/bf_ruby2/models/auth_capture_request.rb +8 -15
  106. data/lib/bf_ruby2/models/authorize_net_token_paged_metadata.rb +32 -15
  107. data/lib/bf_ruby2/models/bank_account_verification_paged_metadata.rb +32 -15
  108. data/lib/bf_ruby2/models/batch_update_pricing_component_values_request.rb +8 -15
  109. data/lib/bf_ruby2/models/bf_error.rb +4 -15
  110. data/lib/bf_ruby2/models/bf_permission.rb +4 -15
  111. data/lib/bf_ruby2/models/bf_permission_paged_metadata.rb +32 -15
  112. data/lib/bf_ruby2/models/billforward_managed_payments_result_paged_metadata.rb +32 -15
  113. data/lib/bf_ruby2/models/billing_entity_base.rb +4 -15
  114. data/lib/bf_ruby2/models/braintree_auth_capture_request.rb +12 -15
  115. data/lib/bf_ruby2/models/braintree_capture_request.rb +24 -15
  116. data/lib/bf_ruby2/models/braintree_token_paged_metadata.rb +32 -15
  117. data/lib/bf_ruby2/models/cancel_subscription_request.rb +12 -15
  118. data/lib/bf_ruby2/models/cancellation_amendment.rb +36 -15
  119. data/lib/bf_ruby2/models/cass_churn_result_paged_metadata.rb +32 -15
  120. data/lib/bf_ruby2/models/cass_payment_result_paged_metadata.rb +32 -15
  121. data/lib/bf_ruby2/models/cass_upgrade_result_paged_metadata.rb +32 -15
  122. data/lib/bf_ruby2/models/client.rb +44 -15
  123. data/lib/bf_ruby2/models/client_paged_metadata.rb +32 -15
  124. data/lib/bf_ruby2/models/component_change.rb +36 -15
  125. data/lib/bf_ruby2/models/component_cost.rb +4 -15
  126. data/lib/bf_ruby2/models/compound_usage.rb +12 -15
  127. data/lib/bf_ruby2/models/compound_usage_session.rb +8 -15
  128. data/lib/bf_ruby2/models/coupon.rb +32 -15
  129. data/lib/bf_ruby2/models/coupon_book.rb +44 -15
  130. data/lib/bf_ruby2/models/coupon_book_definition.rb +52 -15
  131. data/lib/bf_ruby2/models/coupon_book_definition_paged_metadata.rb +32 -15
  132. data/lib/bf_ruby2/models/coupon_book_paged_metadata.rb +32 -15
  133. data/lib/bf_ruby2/models/coupon_definition.rb +56 -15
  134. data/lib/bf_ruby2/models/coupon_definition_paged_metadata.rb +32 -15
  135. data/lib/bf_ruby2/models/coupon_discount.rb +4 -15
  136. data/lib/bf_ruby2/models/coupon_discount_estimate.rb +28 -15
  137. data/lib/bf_ruby2/models/coupon_instance.rb +48 -15
  138. data/lib/bf_ruby2/models/coupon_instance_existing_value.rb +12 -15
  139. data/lib/bf_ruby2/models/coupon_instance_paged_metadata.rb +32 -15
  140. data/lib/bf_ruby2/models/coupon_modifier_base.rb +40 -15
  141. data/lib/bf_ruby2/models/coupon_modifier_base_paged_metadata.rb +32 -15
  142. data/lib/bf_ruby2/models/coupon_paged_metadata.rb +32 -15
  143. data/lib/bf_ruby2/models/coupon_rule.rb +56 -15
  144. data/lib/bf_ruby2/models/coupon_rule_paged_metadata.rb +32 -15
  145. data/lib/bf_ruby2/models/coupon_unique_codes_request.rb +12 -15
  146. data/lib/bf_ruby2/models/coupon_unique_codes_response.rb +4 -15
  147. data/lib/bf_ruby2/models/coupon_unique_codes_response_paged_metadata.rb +32 -15
  148. data/lib/bf_ruby2/models/coupon_wrapper_response.rb +4 -15
  149. data/lib/bf_ruby2/models/create_account_profile_request.rb +8 -15
  150. data/lib/bf_ruby2/models/create_account_request.rb +4 -15
  151. data/lib/bf_ruby2/models/create_address_request.rb +28 -15
  152. data/lib/bf_ruby2/models/create_aggregating_component_request.rb +8 -15
  153. data/lib/bf_ruby2/models/create_aggregating_subscription_request.rb +12 -15
  154. data/lib/bf_ruby2/models/create_profile_address_request.rb +24 -15
  155. data/lib/bf_ruby2/models/create_subscription_batch_request.rb +4 -15
  156. data/lib/bf_ruby2/models/create_subscription_charge_amendment.rb +36 -15
  157. data/lib/bf_ruby2/models/create_subscription_request.rb +16 -15
  158. data/lib/bf_ruby2/models/credit_account_request.rb +12 -15
  159. data/lib/bf_ruby2/models/credit_note.rb +24 -15
  160. data/lib/bf_ruby2/models/credit_note_paged_metadata.rb +32 -15
  161. data/lib/bf_ruby2/models/credit_subscription_request.rb +8 -15
  162. data/lib/bf_ruby2/models/cybersource_token_paged_metadata.rb +32 -15
  163. data/lib/bf_ruby2/models/data_synchronisation_app_configuration_paged_metadata.rb +32 -15
  164. data/lib/bf_ruby2/models/data_synchronisation_configuration.rb +32 -15
  165. data/lib/bf_ruby2/models/data_synchronisation_configuration_paged_metadata.rb +32 -15
  166. data/lib/bf_ruby2/models/data_synchronization_job_paged_metadata.rb +32 -15
  167. data/lib/bf_ruby2/models/debts_result_paged_metadata.rb +32 -15
  168. data/lib/bf_ruby2/models/dunning_line.rb +32 -15
  169. data/lib/bf_ruby2/models/dunning_line_paged_metadata.rb +32 -15
  170. data/lib/bf_ruby2/models/dynamic_metadata.rb +4 -15
  171. data/lib/bf_ruby2/models/email.rb +12 -15
  172. data/lib/bf_ruby2/models/email_paged_metadata.rb +32 -15
  173. data/lib/bf_ruby2/models/email_provider.rb +24 -15
  174. data/lib/bf_ruby2/models/email_provider_paged_metadata.rb +32 -15
  175. data/lib/bf_ruby2/models/email_subscription.rb +16 -15
  176. data/lib/bf_ruby2/models/email_subscription_paged_metadata.rb +32 -15
  177. data/lib/bf_ruby2/models/end_trial_amendment.rb +24 -15
  178. data/lib/bf_ruby2/models/event.rb +36 -15
  179. data/lib/bf_ruby2/models/event_data.rb +12 -15
  180. data/lib/bf_ruby2/models/file_sham.rb +4 -15
  181. data/lib/bf_ruby2/models/fixed_term.rb +56 -15
  182. data/lib/bf_ruby2/models/fixed_term_definition_paged_metadata.rb +32 -15
  183. data/lib/bf_ruby2/models/fixed_term_expiry_amendment.rb +28 -15
  184. data/lib/bf_ruby2/models/fixed_term_paged_metadata.rb +32 -15
  185. data/lib/bf_ruby2/models/flat_pricing_component.rb +48 -15
  186. data/lib/bf_ruby2/models/import_invoice_line.rb +4 -15
  187. data/lib/bf_ruby2/models/insertable_billing_entity.rb +40 -15
  188. data/lib/bf_ruby2/models/invoice.rb +60 -15
  189. data/lib/bf_ruby2/models/invoice_charge_request.rb +4 -15
  190. data/lib/bf_ruby2/models/invoice_line.rb +76 -15
  191. data/lib/bf_ruby2/models/invoice_line_payment.rb +108 -15
  192. data/lib/bf_ruby2/models/invoice_line_payment_paged_metadata.rb +32 -15
  193. data/lib/bf_ruby2/models/invoice_next_execution_attempt_amendment.rb +32 -15
  194. data/lib/bf_ruby2/models/invoice_outstanding_charges_amendment.rb +28 -15
  195. data/lib/bf_ruby2/models/invoice_paged_metadata.rb +32 -15
  196. data/lib/bf_ruby2/models/invoice_payment.rb +48 -15
  197. data/lib/bf_ruby2/models/invoice_recalculation_amendment.rb +40 -15
  198. data/lib/bf_ruby2/models/invoice_recalculation_request.rb +20 -15
  199. data/lib/bf_ruby2/models/issue_invoice_amendment.rb +28 -15
  200. data/lib/bf_ruby2/models/metadata_key_values_paged_metadata.rb +32 -15
  201. data/lib/bf_ruby2/models/migration_request.rb +16 -15
  202. data/lib/bf_ruby2/models/model_alias.rb +20 -15
  203. data/lib/bf_ruby2/models/mutable_billing_entity.rb +48 -15
  204. data/lib/bf_ruby2/models/nested_charge_request.rb +4 -15
  205. data/lib/bf_ruby2/models/notification.rb +40 -15
  206. data/lib/bf_ruby2/models/notification_paged_metadata.rb +32 -15
  207. data/lib/bf_ruby2/models/organization.rb +20 -15
  208. data/lib/bf_ruby2/models/organization_paged_metadata.rb +32 -15
  209. data/lib/bf_ruby2/models/password.rb +20 -15
  210. data/lib/bf_ruby2/models/password_paged_metadata.rb +32 -15
  211. data/lib/bf_ruby2/models/password_reset_request.rb +8 -15
  212. data/lib/bf_ruby2/models/pause_request.rb +4 -15
  213. data/lib/bf_ruby2/models/payment.rb +52 -15
  214. data/lib/bf_ruby2/models/payment_method.rb +28 -15
  215. data/lib/bf_ruby2/models/payment_method_paged_metadata.rb +32 -15
  216. data/lib/bf_ruby2/models/payment_method_subscription_link.rb +12 -15
  217. data/lib/bf_ruby2/models/payment_method_subscription_link_paged_metadata.rb +32 -15
  218. data/lib/bf_ruby2/models/payment_paged_metadata.rb +32 -15
  219. data/lib/bf_ruby2/models/payment_retry_request.rb +4 -15
  220. data/lib/bf_ruby2/models/pending_component_value_change.rb +4 -15
  221. data/lib/bf_ruby2/models/period.rb +28 -15
  222. data/lib/bf_ruby2/models/period_paged_metadata.rb +32 -15
  223. data/lib/bf_ruby2/models/permission_action_entity_paged_metadata.rb +32 -15
  224. data/lib/bf_ruby2/models/permission_resource_entity_paged_metadata.rb +32 -15
  225. data/lib/bf_ruby2/models/price_calculation_paged_metadata.rb +32 -15
  226. data/lib/bf_ruby2/models/pricing_component.rb +48 -15
  227. data/lib/bf_ruby2/models/pricing_component_coupon_modifier.rb +40 -15
  228. data/lib/bf_ruby2/models/pricing_component_migration_value.rb +12 -15
  229. data/lib/bf_ruby2/models/pricing_component_paged_metadata.rb +32 -15
  230. data/lib/bf_ruby2/models/pricing_component_quantity_request.rb +12 -15
  231. data/lib/bf_ruby2/models/pricing_component_tier.rb +16 -15
  232. data/lib/bf_ruby2/models/pricing_component_tier_paged_metadata.rb +32 -15
  233. data/lib/bf_ruby2/models/pricing_component_value.rb +20 -15
  234. data/lib/bf_ruby2/models/pricing_component_value_change_amendment.rb +28 -15
  235. data/lib/bf_ruby2/models/pricing_component_value_change_paged_metadata.rb +32 -15
  236. data/lib/bf_ruby2/models/pricing_component_value_migration_amendment_mapping.rb +16 -15
  237. data/lib/bf_ruby2/models/pricing_component_value_paged_metadata.rb +32 -15
  238. data/lib/bf_ruby2/models/pricing_component_value_request.rb +8 -15
  239. data/lib/bf_ruby2/models/pricing_component_value_response_paged_metadata.rb +32 -15
  240. data/lib/bf_ruby2/models/product.rb +37 -16
  241. data/lib/bf_ruby2/models/product_coupon_modifier.rb +40 -15
  242. data/lib/bf_ruby2/models/product_paged_metadata.rb +32 -15
  243. data/lib/bf_ruby2/models/product_payments_result_paged_metadata.rb +32 -15
  244. data/lib/bf_ruby2/models/product_rate_plan.rb +45 -16
  245. data/lib/bf_ruby2/models/product_rate_plan_migration_amendment.rb +36 -15
  246. data/lib/bf_ruby2/models/product_rate_plan_paged_metadata.rb +32 -15
  247. data/lib/bf_ruby2/models/product_rate_plan_payments_result_paged_metadata.rb +32 -15
  248. data/lib/bf_ruby2/models/profile.rb +28 -15
  249. data/lib/bf_ruby2/models/profile_paged_metadata.rb +32 -15
  250. data/lib/bf_ruby2/models/quote_request.rb +20 -15
  251. data/lib/bf_ruby2/models/quote_request_value.rb +12 -15
  252. data/lib/bf_ruby2/models/recalculate_charge_batch_request.rb +4 -15
  253. data/lib/bf_ruby2/models/recalculate_charge_batch_response.rb +4 -15
  254. data/lib/bf_ruby2/models/recalculate_charge_batch_response_paged_metadata.rb +32 -15
  255. data/lib/bf_ruby2/models/recalculate_charge_request.rb +8 -15
  256. data/lib/bf_ruby2/models/receipt.rb +24 -15
  257. data/lib/bf_ruby2/models/receipt_paged_metadata.rb +32 -15
  258. data/lib/bf_ruby2/models/refund.rb +36 -15
  259. data/lib/bf_ruby2/models/refund_paged_metadata.rb +32 -15
  260. data/lib/bf_ruby2/models/resume_request.rb +4 -15
  261. data/lib/bf_ruby2/models/resume_subscription_amendment.rb +24 -15
  262. data/lib/bf_ruby2/models/revenue_attribution.rb +88 -15
  263. data/lib/bf_ruby2/models/revenue_attribution_paged_metadata.rb +32 -15
  264. data/lib/bf_ruby2/models/revive_subscription_request.rb +8 -15
  265. data/lib/bf_ruby2/models/role.rb +4 -15
  266. data/lib/bf_ruby2/models/role_paged_metadata.rb +32 -15
  267. data/lib/bf_ruby2/models/rule_satisfaction.rb +4 -15
  268. data/lib/bf_ruby2/models/search_result_paged_metadata.rb +32 -15
  269. data/lib/bf_ruby2/models/service_end_amendment.rb +24 -15
  270. data/lib/bf_ruby2/models/single_recalculate_charge_request.rb +12 -15
  271. data/lib/bf_ruby2/models/stripe_ach_token_paged_metadata.rb +32 -15
  272. data/lib/bf_ruby2/models/stripe_auth_capture_request.rb +12 -15
  273. data/lib/bf_ruby2/models/stripe_object.rb +4 -15
  274. data/lib/bf_ruby2/models/stripe_token_paged_metadata.rb +32 -15
  275. data/lib/bf_ruby2/models/subscription.rb +52 -15
  276. data/lib/bf_ruby2/models/subscription_cancellation_paged_metadata.rb +32 -15
  277. data/lib/bf_ruby2/models/subscription_charge.rb +28 -15
  278. data/lib/bf_ruby2/models/subscription_charge_paged_metadata.rb +32 -15
  279. data/lib/bf_ruby2/models/subscription_ltv_result_paged_metadata.rb +32 -15
  280. data/lib/bf_ruby2/models/subscription_paged_metadata.rb +32 -15
  281. data/lib/bf_ruby2/models/swagger_type_list.rb +4 -15
  282. data/lib/bf_ruby2/models/swagger_type_list_inv.rb +8 -15
  283. data/lib/bf_ruby2/models/swagger_type_list_subs.rb +12 -15
  284. data/lib/bf_ruby2/models/taxation_link_paged_metadata.rb +32 -15
  285. data/lib/bf_ruby2/models/taxation_strategy_paged_metadata.rb +32 -15
  286. data/lib/bf_ruby2/models/tiered_pricing_component.rb +48 -15
  287. data/lib/bf_ruby2/models/tiered_volume_pricing_component.rb +48 -15
  288. data/lib/bf_ruby2/models/time_request.rb +4 -15
  289. data/lib/bf_ruby2/models/time_response.rb +4 -15
  290. data/lib/bf_ruby2/models/time_response_paged_metadata.rb +32 -15
  291. data/lib/bf_ruby2/models/time_zone.rb +4 -15
  292. data/lib/bf_ruby2/models/timer_amendment.rb +24 -15
  293. data/lib/bf_ruby2/models/tokenization_pre_auth_paged_metadata.rb +32 -15
  294. data/lib/bf_ruby2/models/trust_commerce_token_paged_metadata.rb +32 -15
  295. data/lib/bf_ruby2/models/unit_discount.rb +4 -15
  296. data/lib/bf_ruby2/models/unit_of_measure.rb +20 -15
  297. data/lib/bf_ruby2/models/unit_of_measure_coupon_modifier.rb +40 -15
  298. data/lib/bf_ruby2/models/unit_of_measure_paged_metadata.rb +32 -15
  299. data/lib/bf_ruby2/models/update_address_request.rb +12 -15
  300. data/lib/bf_ruby2/models/update_component_value_amendment.rb +40 -15
  301. data/lib/bf_ruby2/models/update_pricing_component_value_change_result.rb +4 -15
  302. data/lib/bf_ruby2/models/update_pricing_component_value_request.rb +11 -22
  303. data/lib/bf_ruby2/models/update_pricing_component_value_response.rb +4 -15
  304. data/lib/bf_ruby2/models/update_pricing_component_value_response_paged_metadata.rb +32 -15
  305. data/lib/bf_ruby2/models/update_profile_request.rb +8 -15
  306. data/lib/bf_ruby2/models/update_role_request.rb +8 -15
  307. data/lib/bf_ruby2/models/update_subscription_request.rb +8 -15
  308. data/lib/bf_ruby2/models/usage.rb +36 -15
  309. data/lib/bf_ruby2/models/usage_paged_metadata.rb +32 -15
  310. data/lib/bf_ruby2/models/usage_period_paged_metadata.rb +32 -15
  311. data/lib/bf_ruby2/models/usage_rounding_strategy_paged_metadata.rb +32 -15
  312. data/lib/bf_ruby2/models/usage_session.rb +24 -15
  313. data/lib/bf_ruby2/models/usage_session_paged_metadata.rb +32 -15
  314. data/lib/bf_ruby2/models/user.rb +40 -15
  315. data/lib/bf_ruby2/models/user_creation_request.rb +36 -15
  316. data/lib/bf_ruby2/models/user_creation_response_paged_metadata.rb +32 -15
  317. data/lib/bf_ruby2/models/user_paged_metadata.rb +32 -15
  318. data/lib/bf_ruby2/models/username.rb +16 -15
  319. data/lib/bf_ruby2/models/username_paged_metadata.rb +32 -15
  320. data/lib/bf_ruby2/models/webhook_paged_metadata.rb +32 -15
  321. data/lib/bf_ruby2/version.rb +2 -13
  322. data/spec/api/accounts_api_spec.rb +15 -13
  323. data/spec/api/addresses_api_spec.rb +2 -13
  324. data/spec/api/amendments_api_spec.rb +2 -13
  325. data/spec/api/analytics_api_spec.rb +2 -13
  326. data/spec/api/auditlogs_api_spec.rb +2 -13
  327. data/spec/api/charges_api_spec.rb +14 -13
  328. data/spec/api/clients_api_spec.rb +2 -13
  329. data/spec/api/configurations_api_spec.rb +2 -13
  330. data/spec/api/couponbook_api_spec.rb +2 -13
  331. data/spec/api/couponbookdefinition_api_spec.rb +2 -13
  332. data/spec/api/coupondefinition_api_spec.rb +2 -13
  333. data/spec/api/couponinstance_api_spec.rb +2 -13
  334. data/spec/api/couponmodifier_api_spec.rb +2 -13
  335. data/spec/api/couponrule_api_spec.rb +2 -13
  336. data/spec/api/coupons_api_spec.rb +2 -13
  337. data/spec/api/creditnotes_api_spec.rb +2 -13
  338. data/spec/api/cybersourcetokens_api_spec.rb +2 -13
  339. data/spec/api/dunninglines_api_spec.rb +2 -13
  340. data/spec/api/emailproviders_api_spec.rb +2 -13
  341. data/spec/api/emails_api_spec.rb +2 -13
  342. data/spec/api/emailsubscriptions_api_spec.rb +2 -13
  343. data/spec/api/fixedtermdefinitions_api_spec.rb +2 -13
  344. data/spec/api/fixedterms_api_spec.rb +2 -13
  345. data/spec/api/invoices_api_spec.rb +2 -13
  346. data/spec/api/metadata_api_spec.rb +2 -13
  347. data/spec/api/notifications_api_spec.rb +2 -13
  348. data/spec/api/organizations_api_spec.rb +2 -13
  349. data/spec/api/passwords_api_spec.rb +2 -13
  350. data/spec/api/paymentmethods_api_spec.rb +2 -13
  351. data/spec/api/paymentmethodsubscriptionlinks_api_spec.rb +2 -13
  352. data/spec/api/payments_api_spec.rb +2 -13
  353. data/spec/api/periods_api_spec.rb +2 -13
  354. data/spec/api/permissions_api_spec.rb +2 -13
  355. data/spec/api/pricingcalculator_api_spec.rb +2 -13
  356. data/spec/api/pricingcomponents_api_spec.rb +2 -13
  357. data/spec/api/pricingcomponenttiers_api_spec.rb +2 -13
  358. data/spec/api/pricingcomponentvaluechanges_api_spec.rb +2 -13
  359. data/spec/api/pricingcomponentvalues_api_spec.rb +2 -13
  360. data/spec/api/productrateplans_api_spec.rb +2 -13
  361. data/spec/api/products_api_spec.rb +2 -13
  362. data/spec/api/profiles_api_spec.rb +2 -13
  363. data/spec/api/quotes_api_spec.rb +2 -13
  364. data/spec/api/receipts_api_spec.rb +2 -13
  365. data/spec/api/refunds_api_spec.rb +2 -13
  366. data/spec/api/roles_api_spec.rb +2 -13
  367. data/spec/api/search_api_spec.rb +2 -13
  368. data/spec/api/subscriptions_api_spec.rb +15 -13
  369. data/spec/api/synch_app_configs_api_spec.rb +2 -13
  370. data/spec/api/synch_configs_api_spec.rb +2 -13
  371. data/spec/api/synch_jobs_api_spec.rb +2 -13
  372. data/spec/api/taxationlinks_api_spec.rb +2 -13
  373. data/spec/api/taxationstrategies_api_spec.rb +2 -13
  374. data/spec/api/time_api_spec.rb +2 -13
  375. data/spec/api/tokenization_api_spec.rb +4 -15
  376. data/spec/api/unitofmeasure_api_spec.rb +2 -13
  377. data/spec/api/usage_api_spec.rb +2 -13
  378. data/spec/api/usageperiods_api_spec.rb +2 -13
  379. data/spec/api/usageroundingstrategies_api_spec.rb +2 -13
  380. data/spec/api/usagesessions_api_spec.rb +2 -13
  381. data/spec/api/usernames_api_spec.rb +2 -13
  382. data/spec/api/users_api_spec.rb +2 -13
  383. data/spec/api/vaultedgateways_api_spec.rb +2 -13
  384. data/spec/api/webhooks_api_spec.rb +2 -13
  385. data/spec/api_client_spec.rb +1 -12
  386. data/spec/configuration_spec.rb +1 -12
  387. data/spec/models/account_ltv_result_paged_metadata_spec.rb +2 -13
  388. data/spec/models/account_paged_metadata_spec.rb +2 -13
  389. data/spec/models/account_payments_result_paged_metadata_spec.rb +2 -13
  390. data/spec/models/account_spec.rb +2 -13
  391. data/spec/models/add_charge_request_spec.rb +2 -13
  392. data/spec/models/add_charge_to_account_response_paged_metadata_spec.rb +2 -13
  393. data/spec/models/add_charge_to_account_response_spec.rb +2 -13
  394. data/spec/models/add_charges_to_account_api_request_spec.rb +2 -13
  395. data/spec/models/add_coupon_code_request_spec.rb +2 -13
  396. data/spec/models/add_payment_method_request_spec.rb +2 -13
  397. data/spec/models/add_taxation_strategy_request_spec.rb +2 -13
  398. data/spec/models/address_paged_metadata_spec.rb +2 -13
  399. data/spec/models/address_spec.rb +2 -13
  400. data/spec/models/aggregating_component_spec.rb +2 -13
  401. data/spec/models/amendment_discard_amendment_spec.rb +2 -13
  402. data/spec/models/amendment_paged_metadata_spec.rb +2 -13
  403. data/spec/models/amendment_price_n_time_paged_metadata_spec.rb +2 -13
  404. data/spec/models/amendment_spec.rb +2 -13
  405. data/spec/models/api_configuration_paged_metadata_spec.rb +2 -13
  406. data/spec/models/api_quote_paged_metadata_spec.rb +2 -13
  407. data/spec/models/api_quote_response_quantity_spec.rb +2 -13
  408. data/spec/models/api_quote_spec.rb +2 -13
  409. data/spec/models/audit_entry_paged_metadata_spec.rb +2 -13
  410. data/spec/models/audit_entry_spec.rb +2 -13
  411. data/spec/models/auth_capture_request_spec.rb +2 -13
  412. data/spec/models/authorize_net_token_paged_metadata_spec.rb +2 -13
  413. data/spec/models/bank_account_verification_paged_metadata_spec.rb +2 -13
  414. data/spec/models/batch_update_pricing_component_values_request_spec.rb +2 -13
  415. data/spec/models/bf_error_spec.rb +2 -13
  416. data/spec/models/bf_permission_paged_metadata_spec.rb +2 -13
  417. data/spec/models/bf_permission_spec.rb +2 -13
  418. data/spec/models/billforward_managed_payments_result_paged_metadata_spec.rb +2 -13
  419. data/spec/models/billing_entity_base_spec.rb +2 -13
  420. data/spec/models/braintree_auth_capture_request_spec.rb +2 -13
  421. data/spec/models/braintree_capture_request_spec.rb +2 -13
  422. data/spec/models/braintree_token_paged_metadata_spec.rb +2 -13
  423. data/spec/models/cancel_subscription_request_spec.rb +2 -13
  424. data/spec/models/cancellation_amendment_spec.rb +2 -13
  425. data/spec/models/cass_churn_result_paged_metadata_spec.rb +2 -13
  426. data/spec/models/cass_payment_result_paged_metadata_spec.rb +2 -13
  427. data/spec/models/cass_upgrade_result_paged_metadata_spec.rb +2 -13
  428. data/spec/models/client_paged_metadata_spec.rb +2 -13
  429. data/spec/models/client_spec.rb +2 -13
  430. data/spec/models/component_change_spec.rb +2 -13
  431. data/spec/models/component_cost_spec.rb +2 -13
  432. data/spec/models/compound_usage_session_spec.rb +2 -13
  433. data/spec/models/compound_usage_spec.rb +2 -13
  434. data/spec/models/coupon_book_definition_paged_metadata_spec.rb +2 -13
  435. data/spec/models/coupon_book_definition_spec.rb +2 -13
  436. data/spec/models/coupon_book_paged_metadata_spec.rb +2 -13
  437. data/spec/models/coupon_book_spec.rb +2 -13
  438. data/spec/models/coupon_definition_paged_metadata_spec.rb +2 -13
  439. data/spec/models/coupon_definition_spec.rb +2 -13
  440. data/spec/models/coupon_discount_estimate_spec.rb +2 -13
  441. data/spec/models/coupon_discount_spec.rb +2 -13
  442. data/spec/models/coupon_instance_existing_value_spec.rb +2 -13
  443. data/spec/models/coupon_instance_paged_metadata_spec.rb +2 -13
  444. data/spec/models/coupon_instance_spec.rb +2 -13
  445. data/spec/models/coupon_modifier_base_paged_metadata_spec.rb +2 -13
  446. data/spec/models/coupon_modifier_base_spec.rb +2 -13
  447. data/spec/models/coupon_paged_metadata_spec.rb +2 -13
  448. data/spec/models/coupon_rule_paged_metadata_spec.rb +2 -13
  449. data/spec/models/coupon_rule_spec.rb +2 -13
  450. data/spec/models/coupon_spec.rb +2 -13
  451. data/spec/models/coupon_unique_codes_request_spec.rb +2 -13
  452. data/spec/models/coupon_unique_codes_response_paged_metadata_spec.rb +2 -13
  453. data/spec/models/coupon_unique_codes_response_spec.rb +2 -13
  454. data/spec/models/coupon_wrapper_response_spec.rb +2 -13
  455. data/spec/models/create_account_profile_request_spec.rb +2 -13
  456. data/spec/models/create_account_request_spec.rb +2 -13
  457. data/spec/models/create_address_request_spec.rb +2 -13
  458. data/spec/models/create_aggregating_component_request_spec.rb +2 -13
  459. data/spec/models/create_aggregating_subscription_request_spec.rb +2 -13
  460. data/spec/models/create_profile_address_request_spec.rb +2 -13
  461. data/spec/models/create_subscription_batch_request_spec.rb +2 -13
  462. data/spec/models/create_subscription_charge_amendment_spec.rb +2 -23
  463. data/spec/models/create_subscription_request_spec.rb +14 -13
  464. data/spec/models/credit_account_request_spec.rb +2 -13
  465. data/spec/models/credit_note_paged_metadata_spec.rb +2 -13
  466. data/spec/models/credit_note_spec.rb +2 -13
  467. data/spec/models/credit_subscription_request_spec.rb +2 -13
  468. data/spec/models/cybersource_token_paged_metadata_spec.rb +2 -13
  469. data/spec/models/data_synchronisation_app_configuration_paged_metadata_spec.rb +2 -13
  470. data/spec/models/data_synchronisation_configuration_paged_metadata_spec.rb +2 -13
  471. data/spec/models/data_synchronisation_configuration_spec.rb +2 -13
  472. data/spec/models/data_synchronization_job_paged_metadata_spec.rb +2 -13
  473. data/spec/models/debts_result_paged_metadata_spec.rb +2 -13
  474. data/spec/models/dunning_line_paged_metadata_spec.rb +2 -13
  475. data/spec/models/dunning_line_spec.rb +2 -13
  476. data/spec/models/dynamic_metadata_spec.rb +2 -13
  477. data/spec/models/email_paged_metadata_spec.rb +2 -13
  478. data/spec/models/email_provider_paged_metadata_spec.rb +2 -13
  479. data/spec/models/email_provider_spec.rb +2 -13
  480. data/spec/models/email_spec.rb +2 -13
  481. data/spec/models/email_subscription_paged_metadata_spec.rb +2 -13
  482. data/spec/models/email_subscription_spec.rb +2 -13
  483. data/spec/models/end_trial_amendment_spec.rb +2 -13
  484. data/spec/models/event_data_spec.rb +2 -13
  485. data/spec/models/event_spec.rb +2 -13
  486. data/spec/models/file_sham_spec.rb +2 -13
  487. data/spec/models/fixed_term_definition_paged_metadata_spec.rb +2 -13
  488. data/spec/models/fixed_term_expiry_amendment_spec.rb +2 -13
  489. data/spec/models/fixed_term_paged_metadata_spec.rb +2 -13
  490. data/spec/models/fixed_term_spec.rb +2 -13
  491. data/spec/models/flat_pricing_component_spec.rb +2 -13
  492. data/spec/models/import_invoice_line_spec.rb +2 -13
  493. data/spec/models/insertable_billing_entity_spec.rb +2 -13
  494. data/spec/models/invoice_charge_request_spec.rb +2 -13
  495. data/spec/models/invoice_line_payment_paged_metadata_spec.rb +2 -13
  496. data/spec/models/invoice_line_payment_spec.rb +2 -13
  497. data/spec/models/invoice_line_spec.rb +2 -13
  498. data/spec/models/invoice_next_execution_attempt_amendment_spec.rb +2 -13
  499. data/spec/models/invoice_outstanding_charges_amendment_spec.rb +2 -13
  500. data/spec/models/invoice_paged_metadata_spec.rb +2 -13
  501. data/spec/models/invoice_payment_spec.rb +2 -13
  502. data/spec/models/invoice_recalculation_amendment_spec.rb +2 -13
  503. data/spec/models/invoice_recalculation_request_spec.rb +2 -13
  504. data/spec/models/invoice_spec.rb +20 -13
  505. data/spec/models/issue_invoice_amendment_spec.rb +2 -13
  506. data/spec/models/metadata_key_values_paged_metadata_spec.rb +2 -13
  507. data/spec/models/migration_request_spec.rb +2 -13
  508. data/spec/models/model_alias_spec.rb +2 -13
  509. data/spec/models/mutable_billing_entity_spec.rb +2 -13
  510. data/spec/models/nested_charge_request_spec.rb +2 -13
  511. data/spec/models/notification_paged_metadata_spec.rb +2 -13
  512. data/spec/models/notification_spec.rb +2 -13
  513. data/spec/models/organization_paged_metadata_spec.rb +2 -13
  514. data/spec/models/organization_spec.rb +2 -13
  515. data/spec/models/password_paged_metadata_spec.rb +2 -13
  516. data/spec/models/password_reset_request_spec.rb +2 -13
  517. data/spec/models/password_spec.rb +2 -13
  518. data/spec/models/pause_request_spec.rb +2 -13
  519. data/spec/models/payment_method_paged_metadata_spec.rb +2 -13
  520. data/spec/models/payment_method_spec.rb +2 -13
  521. data/spec/models/payment_method_subscription_link_paged_metadata_spec.rb +2 -13
  522. data/spec/models/payment_method_subscription_link_spec.rb +2 -13
  523. data/spec/models/payment_paged_metadata_spec.rb +2 -13
  524. data/spec/models/payment_retry_request_spec.rb +2 -13
  525. data/spec/models/payment_spec.rb +2 -13
  526. data/spec/models/pending_component_value_change_spec.rb +2 -13
  527. data/spec/models/period_paged_metadata_spec.rb +2 -13
  528. data/spec/models/period_spec.rb +2 -13
  529. data/spec/models/permission_action_entity_paged_metadata_spec.rb +2 -13
  530. data/spec/models/permission_resource_entity_paged_metadata_spec.rb +2 -13
  531. data/spec/models/price_calculation_paged_metadata_spec.rb +2 -13
  532. data/spec/models/pricing_component_coupon_modifier_spec.rb +2 -13
  533. data/spec/models/pricing_component_migration_value_spec.rb +2 -13
  534. data/spec/models/pricing_component_paged_metadata_spec.rb +2 -13
  535. data/spec/models/pricing_component_quantity_request_spec.rb +2 -13
  536. data/spec/models/pricing_component_spec.rb +2 -13
  537. data/spec/models/pricing_component_tier_paged_metadata_spec.rb +2 -13
  538. data/spec/models/pricing_component_tier_spec.rb +2 -13
  539. data/spec/models/pricing_component_value_change_amendment_spec.rb +2 -13
  540. data/spec/models/pricing_component_value_change_paged_metadata_spec.rb +2 -13
  541. data/spec/models/pricing_component_value_migration_amendment_mapping_spec.rb +2 -13
  542. data/spec/models/pricing_component_value_paged_metadata_spec.rb +2 -13
  543. data/spec/models/pricing_component_value_request_spec.rb +2 -13
  544. data/spec/models/pricing_component_value_response_paged_metadata_spec.rb +2 -13
  545. data/spec/models/pricing_component_value_spec.rb +2 -13
  546. data/spec/models/product_coupon_modifier_spec.rb +2 -13
  547. data/spec/models/product_paged_metadata_spec.rb +2 -13
  548. data/spec/models/product_payments_result_paged_metadata_spec.rb +2 -13
  549. data/spec/models/product_rate_plan_migration_amendment_spec.rb +2 -13
  550. data/spec/models/product_rate_plan_paged_metadata_spec.rb +2 -13
  551. data/spec/models/product_rate_plan_payments_result_paged_metadata_spec.rb +2 -13
  552. data/spec/models/product_rate_plan_spec.rb +2 -13
  553. data/spec/models/product_spec.rb +2 -13
  554. data/spec/models/profile_paged_metadata_spec.rb +2 -13
  555. data/spec/models/profile_spec.rb +2 -13
  556. data/spec/models/quote_request_spec.rb +2 -13
  557. data/spec/models/quote_request_value_spec.rb +2 -13
  558. data/spec/models/recalculate_charge_batch_request_spec.rb +2 -13
  559. data/spec/models/recalculate_charge_batch_response_paged_metadata_spec.rb +2 -13
  560. data/spec/models/recalculate_charge_batch_response_spec.rb +2 -13
  561. data/spec/models/recalculate_charge_request_spec.rb +2 -13
  562. data/spec/models/receipt_paged_metadata_spec.rb +2 -13
  563. data/spec/models/receipt_spec.rb +2 -13
  564. data/spec/models/refund_paged_metadata_spec.rb +2 -13
  565. data/spec/models/refund_spec.rb +2 -13
  566. data/spec/models/resume_request_spec.rb +2 -13
  567. data/spec/models/resume_subscription_amendment_spec.rb +2 -13
  568. data/spec/models/revenue_attribution_paged_metadata_spec.rb +2 -13
  569. data/spec/models/revenue_attribution_spec.rb +2 -13
  570. data/spec/models/revive_subscription_request_spec.rb +2 -13
  571. data/spec/models/role_paged_metadata_spec.rb +2 -13
  572. data/spec/models/role_spec.rb +2 -13
  573. data/spec/models/rule_satisfaction_spec.rb +2 -13
  574. data/spec/models/search_result_paged_metadata_spec.rb +2 -13
  575. data/spec/models/service_end_amendment_spec.rb +2 -13
  576. data/spec/models/single_recalculate_charge_request_spec.rb +2 -13
  577. data/spec/models/stripe_ach_token_paged_metadata_spec.rb +2 -13
  578. data/spec/models/stripe_auth_capture_request_spec.rb +2 -13
  579. data/spec/models/stripe_object_spec.rb +2 -13
  580. data/spec/models/stripe_token_paged_metadata_spec.rb +2 -13
  581. data/spec/models/subscription_cancellation_paged_metadata_spec.rb +2 -13
  582. data/spec/models/subscription_charge_paged_metadata_spec.rb +2 -13
  583. data/spec/models/subscription_charge_spec.rb +2 -13
  584. data/spec/models/subscription_ltv_result_paged_metadata_spec.rb +2 -13
  585. data/spec/models/subscription_paged_metadata_spec.rb +2 -13
  586. data/spec/models/subscription_spec.rb +8 -13
  587. data/spec/models/swagger_type_list_inv_spec.rb +2 -13
  588. data/spec/models/swagger_type_list_spec.rb +2 -13
  589. data/spec/models/swagger_type_list_subs_spec.rb +2 -13
  590. data/spec/models/taxation_link_paged_metadata_spec.rb +2 -13
  591. data/spec/models/taxation_strategy_paged_metadata_spec.rb +2 -13
  592. data/spec/models/tiered_pricing_component_spec.rb +2 -13
  593. data/spec/models/tiered_volume_pricing_component_spec.rb +2 -13
  594. data/spec/models/time_request_spec.rb +2 -13
  595. data/spec/models/time_response_paged_metadata_spec.rb +2 -13
  596. data/spec/models/time_response_spec.rb +2 -13
  597. data/spec/models/time_zone_spec.rb +2 -13
  598. data/spec/models/timer_amendment_spec.rb +2 -13
  599. data/spec/models/tokenization_pre_auth_paged_metadata_spec.rb +2 -13
  600. data/spec/models/trust_commerce_token_paged_metadata_spec.rb +2 -13
  601. data/spec/models/unit_discount_spec.rb +2 -13
  602. data/spec/models/unit_of_measure_coupon_modifier_spec.rb +2 -13
  603. data/spec/models/unit_of_measure_paged_metadata_spec.rb +2 -13
  604. data/spec/models/unit_of_measure_spec.rb +2 -13
  605. data/spec/models/update_address_request_spec.rb +2 -13
  606. data/spec/models/update_component_value_amendment_spec.rb +2 -13
  607. data/spec/models/update_pricing_component_value_change_result_spec.rb +2 -13
  608. data/spec/models/update_pricing_component_value_request_spec.rb +2 -13
  609. data/spec/models/update_pricing_component_value_response_paged_metadata_spec.rb +2 -13
  610. data/spec/models/update_pricing_component_value_response_spec.rb +2 -13
  611. data/spec/models/update_profile_request_spec.rb +2 -13
  612. data/spec/models/update_role_request_spec.rb +2 -13
  613. data/spec/models/update_subscription_request_spec.rb +2 -13
  614. data/spec/models/usage_paged_metadata_spec.rb +2 -13
  615. data/spec/models/usage_period_paged_metadata_spec.rb +2 -13
  616. data/spec/models/usage_rounding_strategy_paged_metadata_spec.rb +2 -13
  617. data/spec/models/usage_session_paged_metadata_spec.rb +2 -13
  618. data/spec/models/usage_session_spec.rb +2 -13
  619. data/spec/models/usage_spec.rb +2 -13
  620. data/spec/models/user_creation_request_spec.rb +2 -13
  621. data/spec/models/user_creation_response_paged_metadata_spec.rb +2 -13
  622. data/spec/models/user_paged_metadata_spec.rb +2 -13
  623. data/spec/models/user_spec.rb +2 -13
  624. data/spec/models/username_paged_metadata_spec.rb +2 -13
  625. data/spec/models/username_spec.rb +2 -13
  626. data/spec/models/webhook_paged_metadata_spec.rb +2 -13
  627. data/spec/spec_helper.rb +1 -12
  628. metadata +12 -9
  629. data/bf_ruby2-1.0.0.gem +0 -0
  630. data/bf_ruby2-1.2016.229.gem +0 -0
  631. data/bf_ruby2-1.2016.230.gem +0 -0
@@ -6,18 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.2.3-SNAPSHOT
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module Bfwd
51
40
  @api_client.config.logger.debug "Calling API: PasswordsApi.create_password ..."
52
41
  end
53
42
  # verify the required parameter 'password' is set
54
- fail ArgumentError, "Missing the required parameter 'password' when calling PasswordsApi.create_password" if password.nil?
43
+ if @api_client.config.client_side_validation && password.nil?
44
+ fail ArgumentError, "Missing the required parameter 'password' when calling PasswordsApi.create_password"
45
+ end
55
46
  # resource path
56
- local_var_path = "/passwords".sub('{format}','json')
47
+ local_var_path = "/passwords"
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['application/json; charset=utf-8']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/json; charset=utf-8']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -6,18 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.2.3-SNAPSHOT
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module Bfwd
51
40
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.create_payment_method ..."
52
41
  end
53
42
  # verify the required parameter 'payment_method' is set
54
- fail ArgumentError, "Missing the required parameter 'payment_method' when calling PaymentmethodsApi.create_payment_method" if payment_method.nil?
43
+ if @api_client.config.client_side_validation && payment_method.nil?
44
+ fail ArgumentError, "Missing the required parameter 'payment_method' when calling PaymentmethodsApi.create_payment_method"
45
+ end
55
46
  # resource path
56
- local_var_path = "/payment-methods".sub('{format}','json')
47
+ local_var_path = "/payment-methods"
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['text/xml', 'application/xml', 'application/json; charset=utf-8']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/json; charset=utf-8']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -110,9 +97,11 @@ module Bfwd
110
97
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.delete_payment_method ..."
111
98
  end
112
99
  # verify the required parameter 'payment_method_id' is set
113
- fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentmethodsApi.delete_payment_method" if payment_method_id.nil?
100
+ if @api_client.config.client_side_validation && payment_method_id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentmethodsApi.delete_payment_method"
102
+ end
114
103
  # resource path
115
- local_var_path = "/payment-methods/{payment-method-ID}".sub('{format}','json').sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
104
+ local_var_path = "/payment-methods/{payment-method-ID}".sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
116
105
 
117
106
  # query parameters
118
107
  query_params = {}
@@ -120,14 +109,10 @@ module Bfwd
120
109
 
121
110
  # header parameters
122
111
  header_params = {}
123
-
124
112
  # HTTP header 'Accept' (if needed)
125
- local_header_accept = ['application/json; charset=utf-8']
126
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
127
-
113
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
128
114
  # HTTP header 'Content-Type'
129
- local_header_content_type = ['text/plain']
130
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
115
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
131
116
 
132
117
  # form parameters
133
118
  form_params = {}
@@ -177,11 +162,11 @@ module Bfwd
177
162
  if @api_client.config.debugging
178
163
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.get_all_payment_methods ..."
179
164
  end
180
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
165
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
181
166
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
182
167
  end
183
168
  # resource path
184
- local_var_path = "/payment-methods".sub('{format}','json')
169
+ local_var_path = "/payment-methods"
185
170
 
186
171
  # query parameters
187
172
  query_params = {}
@@ -194,14 +179,8 @@ module Bfwd
194
179
 
195
180
  # header parameters
196
181
  header_params = {}
197
-
198
182
  # HTTP header 'Accept' (if needed)
199
- local_header_accept = ['application/json; charset=utf-8']
200
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
201
-
202
- # HTTP header 'Content-Type'
203
- local_header_content_type = []
204
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
183
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
205
184
 
206
185
  # form parameters
207
186
  form_params = {}
@@ -256,12 +235,14 @@ module Bfwd
256
235
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.get_payment_method_by_account_id ..."
257
236
  end
258
237
  # verify the required parameter 'account_id' is set
259
- fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentmethodsApi.get_payment_method_by_account_id" if account_id.nil?
260
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
238
+ if @api_client.config.client_side_validation && account_id.nil?
239
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling PaymentmethodsApi.get_payment_method_by_account_id"
240
+ end
241
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
261
242
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
262
243
  end
263
244
  # resource path
264
- local_var_path = "/payment-methods/account/{account-ID}".sub('{format}','json').sub('{' + 'account-ID' + '}', account_id.to_s)
245
+ local_var_path = "/payment-methods/account/{account-ID}".sub('{' + 'account-ID' + '}', account_id.to_s)
265
246
 
266
247
  # query parameters
267
248
  query_params = {}
@@ -275,14 +256,10 @@ module Bfwd
275
256
 
276
257
  # header parameters
277
258
  header_params = {}
278
-
279
259
  # HTTP header 'Accept' (if needed)
280
- local_header_accept = ['application/json; charset=utf-8']
281
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
282
-
260
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
283
261
  # HTTP header 'Content-Type'
284
- local_header_content_type = ['text/plain']
285
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
262
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
286
263
 
287
264
  # form parameters
288
265
  form_params = {}
@@ -325,9 +302,11 @@ module Bfwd
325
302
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.get_payment_method_by_id ..."
326
303
  end
327
304
  # verify the required parameter 'payment_method_id' is set
328
- fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentmethodsApi.get_payment_method_by_id" if payment_method_id.nil?
305
+ if @api_client.config.client_side_validation && payment_method_id.nil?
306
+ fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentmethodsApi.get_payment_method_by_id"
307
+ end
329
308
  # resource path
330
- local_var_path = "/payment-methods/{payment-method-ID}".sub('{format}','json').sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
309
+ local_var_path = "/payment-methods/{payment-method-ID}".sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
331
310
 
332
311
  # query parameters
333
312
  query_params = {}
@@ -335,14 +314,10 @@ module Bfwd
335
314
 
336
315
  # header parameters
337
316
  header_params = {}
338
-
339
317
  # HTTP header 'Accept' (if needed)
340
- local_header_accept = ['application/json; charset=utf-8']
341
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
342
-
318
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
343
319
  # HTTP header 'Content-Type'
344
- local_header_content_type = ['text/plain']
345
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
320
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
346
321
 
347
322
  # form parameters
348
323
  form_params = {}
@@ -385,9 +360,11 @@ module Bfwd
385
360
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.get_payment_method_by_link_id ..."
386
361
  end
387
362
  # verify the required parameter 'link_id' is set
388
- fail ArgumentError, "Missing the required parameter 'link_id' when calling PaymentmethodsApi.get_payment_method_by_link_id" if link_id.nil?
363
+ if @api_client.config.client_side_validation && link_id.nil?
364
+ fail ArgumentError, "Missing the required parameter 'link_id' when calling PaymentmethodsApi.get_payment_method_by_link_id"
365
+ end
389
366
  # resource path
390
- local_var_path = "/payment-methods/link-id/{linkID}".sub('{format}','json').sub('{' + 'linkID' + '}', link_id.to_s)
367
+ local_var_path = "/payment-methods/link-id/{linkID}".sub('{' + 'linkID' + '}', link_id.to_s)
391
368
 
392
369
  # query parameters
393
370
  query_params = {}
@@ -395,14 +372,10 @@ module Bfwd
395
372
 
396
373
  # header parameters
397
374
  header_params = {}
398
-
399
375
  # HTTP header 'Accept' (if needed)
400
- local_header_accept = ['application/json; charset=utf-8']
401
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
402
-
376
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
403
377
  # HTTP header 'Content-Type'
404
- local_header_content_type = ['text/plain']
405
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
378
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
406
379
 
407
380
  # form parameters
408
381
  form_params = {}
@@ -455,16 +428,18 @@ module Bfwd
455
428
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.get_payment_method_by_payment_gateway ..."
456
429
  end
457
430
  # verify the required parameter 'gateway' is set
458
- fail ArgumentError, "Missing the required parameter 'gateway' when calling PaymentmethodsApi.get_payment_method_by_payment_gateway" if gateway.nil?
431
+ if @api_client.config.client_side_validation && gateway.nil?
432
+ fail ArgumentError, "Missing the required parameter 'gateway' when calling PaymentmethodsApi.get_payment_method_by_payment_gateway"
433
+ end
459
434
  # verify enum value
460
- unless ['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(gateway)
435
+ if @api_client.config.client_side_validation && !['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(gateway)
461
436
  fail ArgumentError, "invalid value for 'gateway', must be one of cybersource_token, card_vault, paypal_simple, locustworld, free, coupon, credit_note, stripe, braintree, balanced, paypal, billforward_test, offline, trial, stripeACH, authorizeNet, spreedly, sagePay, trustCommerce, payvision, kash"
462
437
  end
463
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
438
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
464
439
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
465
440
  end
466
441
  # resource path
467
- local_var_path = "/payment-methods/gateway/{gateway}".sub('{format}','json').sub('{' + 'gateway' + '}', gateway.to_s)
442
+ local_var_path = "/payment-methods/gateway/{gateway}".sub('{' + 'gateway' + '}', gateway.to_s)
468
443
 
469
444
  # query parameters
470
445
  query_params = {}
@@ -477,14 +452,8 @@ module Bfwd
477
452
 
478
453
  # header parameters
479
454
  header_params = {}
480
-
481
455
  # HTTP header 'Accept' (if needed)
482
- local_header_accept = ['application/json; charset=utf-8']
483
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
484
-
485
- # HTTP header 'Content-Type'
486
- local_header_content_type = []
487
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
456
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
488
457
 
489
458
  # form parameters
490
459
  form_params = {}
@@ -525,23 +494,21 @@ module Bfwd
525
494
  @api_client.config.logger.debug "Calling API: PaymentmethodsApi.update_payment_method ..."
526
495
  end
527
496
  # verify the required parameter 'payment_method' is set
528
- fail ArgumentError, "Missing the required parameter 'payment_method' when calling PaymentmethodsApi.update_payment_method" if payment_method.nil?
497
+ if @api_client.config.client_side_validation && payment_method.nil?
498
+ fail ArgumentError, "Missing the required parameter 'payment_method' when calling PaymentmethodsApi.update_payment_method"
499
+ end
529
500
  # resource path
530
- local_var_path = "/payment-methods".sub('{format}','json')
501
+ local_var_path = "/payment-methods"
531
502
 
532
503
  # query parameters
533
504
  query_params = {}
534
505
 
535
506
  # header parameters
536
507
  header_params = {}
537
-
538
508
  # HTTP header 'Accept' (if needed)
539
- local_header_accept = ['text/xml', 'application/xml', 'application/json; charset=utf-8']
540
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
541
-
509
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
542
510
  # HTTP header 'Content-Type'
543
- local_header_content_type = ['application/json; charset=utf-8']
544
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
511
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
545
512
 
546
513
  # form parameters
547
514
  form_params = {}
@@ -6,18 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.2.3-SNAPSHOT
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module Bfwd
51
40
  @api_client.config.logger.debug "Calling API: PaymentmethodsubscriptionlinksApi.create_payment_method_subscription_link ..."
52
41
  end
53
42
  # verify the required parameter 'payment_method' is set
54
- fail ArgumentError, "Missing the required parameter 'payment_method' when calling PaymentmethodsubscriptionlinksApi.create_payment_method_subscription_link" if payment_method.nil?
43
+ if @api_client.config.client_side_validation && payment_method.nil?
44
+ fail ArgumentError, "Missing the required parameter 'payment_method' when calling PaymentmethodsubscriptionlinksApi.create_payment_method_subscription_link"
45
+ end
55
46
  # resource path
56
- local_var_path = "/payment-method-subscription-links".sub('{format}','json')
47
+ local_var_path = "/payment-method-subscription-links"
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['text/xml', 'application/xml', 'application/json; charset=utf-8']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/json; charset=utf-8']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -110,11 +97,15 @@ module Bfwd
110
97
  @api_client.config.logger.debug "Calling API: PaymentmethodsubscriptionlinksApi.retire_payment_method_subscription_link ..."
111
98
  end
112
99
  # verify the required parameter 'payment_method_subscription_link_id' is set
113
- fail ArgumentError, "Missing the required parameter 'payment_method_subscription_link_id' when calling PaymentmethodsubscriptionlinksApi.retire_payment_method_subscription_link" if payment_method_subscription_link_id.nil?
100
+ if @api_client.config.client_side_validation && payment_method_subscription_link_id.nil?
101
+ fail ArgumentError, "Missing the required parameter 'payment_method_subscription_link_id' when calling PaymentmethodsubscriptionlinksApi.retire_payment_method_subscription_link"
102
+ end
114
103
  # verify the required parameter 'organizations' is set
115
- fail ArgumentError, "Missing the required parameter 'organizations' when calling PaymentmethodsubscriptionlinksApi.retire_payment_method_subscription_link" if organizations.nil?
104
+ if @api_client.config.client_side_validation && organizations.nil?
105
+ fail ArgumentError, "Missing the required parameter 'organizations' when calling PaymentmethodsubscriptionlinksApi.retire_payment_method_subscription_link"
106
+ end
116
107
  # resource path
117
- local_var_path = "/payment-method-subscription-links/{payment-method-subscription-link-ID}".sub('{format}','json').sub('{' + 'payment-method-subscription-link-ID' + '}', payment_method_subscription_link_id.to_s)
108
+ local_var_path = "/payment-method-subscription-links/{payment-method-subscription-link-ID}".sub('{' + 'payment-method-subscription-link-ID' + '}', payment_method_subscription_link_id.to_s)
118
109
 
119
110
  # query parameters
120
111
  query_params = {}
@@ -122,14 +113,10 @@ module Bfwd
122
113
 
123
114
  # header parameters
124
115
  header_params = {}
125
-
126
116
  # HTTP header 'Accept' (if needed)
127
- local_header_accept = ['application/json; charset=utf-8']
128
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
129
-
117
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
130
118
  # HTTP header 'Content-Type'
131
- local_header_content_type = ['text/plain']
132
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
119
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
133
120
 
134
121
  # form parameters
135
122
  form_params = {}
@@ -6,18 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
-
10
- Licensed under the Apache License, Version 2.0 (the "License");
11
- you may not use this file except in compliance with the License.
12
- You may obtain a copy of the License at
13
-
14
- http://www.apache.org/licenses/LICENSE-2.0
15
-
16
- Unless required by applicable law or agreed to in writing, software
17
- distributed under the License is distributed on an "AS IS" BASIS,
18
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
- See the License for the specific language governing permissions and
20
- limitations under the License.
9
+ Swagger Codegen version: 2.2.3-SNAPSHOT
21
10
 
22
11
  =end
23
12
 
@@ -51,23 +40,21 @@ module Bfwd
51
40
  @api_client.config.logger.debug "Calling API: PaymentsApi.create_payment ..."
52
41
  end
53
42
  # verify the required parameter 'payment' is set
54
- fail ArgumentError, "Missing the required parameter 'payment' when calling PaymentsApi.create_payment" if payment.nil?
43
+ if @api_client.config.client_side_validation && payment.nil?
44
+ fail ArgumentError, "Missing the required parameter 'payment' when calling PaymentsApi.create_payment"
45
+ end
55
46
  # resource path
56
- local_var_path = "/payments".sub('{format}','json')
47
+ local_var_path = "/payments"
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['text/xml', 'application/xml', 'application/json; charset=utf-8']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/json; charset=utf-8']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -117,11 +104,11 @@ module Bfwd
117
104
  if @api_client.config.debugging
118
105
  @api_client.config.logger.debug "Calling API: PaymentsApi.get_all_payments ..."
119
106
  end
120
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
107
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
121
108
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
122
109
  end
123
110
  # resource path
124
- local_var_path = "/payments".sub('{format}','json')
111
+ local_var_path = "/payments"
125
112
 
126
113
  # query parameters
127
114
  query_params = {}
@@ -134,14 +121,8 @@ module Bfwd
134
121
 
135
122
  # header parameters
136
123
  header_params = {}
137
-
138
124
  # HTTP header 'Accept' (if needed)
139
- local_header_accept = ['application/json; charset=utf-8']
140
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
141
-
142
- # HTTP header 'Content-Type'
143
- local_header_content_type = []
144
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
125
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
145
126
 
146
127
  # form parameters
147
128
  form_params = {}
@@ -194,14 +175,18 @@ module Bfwd
194
175
  @api_client.config.logger.debug "Calling API: PaymentsApi.get_payment_as_csv ..."
195
176
  end
196
177
  # verify the required parameter 'received_start' is set
197
- fail ArgumentError, "Missing the required parameter 'received_start' when calling PaymentsApi.get_payment_as_csv" if received_start.nil?
178
+ if @api_client.config.client_side_validation && received_start.nil?
179
+ fail ArgumentError, "Missing the required parameter 'received_start' when calling PaymentsApi.get_payment_as_csv"
180
+ end
198
181
  # verify the required parameter 'received_end' is set
199
- fail ArgumentError, "Missing the required parameter 'received_end' when calling PaymentsApi.get_payment_as_csv" if received_end.nil?
200
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
182
+ if @api_client.config.client_side_validation && received_end.nil?
183
+ fail ArgumentError, "Missing the required parameter 'received_end' when calling PaymentsApi.get_payment_as_csv"
184
+ end
185
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
201
186
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
202
187
  end
203
188
  # resource path
204
- local_var_path = "/payments/csv".sub('{format}','json')
189
+ local_var_path = "/payments/csv"
205
190
 
206
191
  # query parameters
207
192
  query_params = {}
@@ -215,14 +200,8 @@ module Bfwd
215
200
 
216
201
  # header parameters
217
202
  header_params = {}
218
-
219
203
  # HTTP header 'Accept' (if needed)
220
- local_header_accept = ['text/csv']
221
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
222
-
223
- # HTTP header 'Content-Type'
224
- local_header_content_type = []
225
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
204
+ header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
226
205
 
227
206
  # form parameters
228
207
  form_params = {}
@@ -265,9 +244,11 @@ module Bfwd
265
244
  @api_client.config.logger.debug "Calling API: PaymentsApi.get_payment_by_id ..."
266
245
  end
267
246
  # verify the required parameter 'payment_id' is set
268
- fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentsApi.get_payment_by_id" if payment_id.nil?
247
+ if @api_client.config.client_side_validation && payment_id.nil?
248
+ fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentsApi.get_payment_by_id"
249
+ end
269
250
  # resource path
270
- local_var_path = "/payments/{payment-ID}".sub('{format}','json').sub('{' + 'payment-ID' + '}', payment_id.to_s)
251
+ local_var_path = "/payments/{payment-ID}".sub('{' + 'payment-ID' + '}', payment_id.to_s)
271
252
 
272
253
  # query parameters
273
254
  query_params = {}
@@ -275,14 +256,10 @@ module Bfwd
275
256
 
276
257
  # header parameters
277
258
  header_params = {}
278
-
279
259
  # HTTP header 'Accept' (if needed)
280
- local_header_accept = ['application/json; charset=utf-8']
281
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
282
-
260
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
283
261
  # HTTP header 'Content-Type'
284
- local_header_content_type = ['text/plain']
285
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
262
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
286
263
 
287
264
  # form parameters
288
265
  form_params = {}
@@ -335,12 +312,14 @@ module Bfwd
335
312
  @api_client.config.logger.debug "Calling API: PaymentsApi.get_payment_by_invoice_id ..."
336
313
  end
337
314
  # verify the required parameter 'invoice_id' is set
338
- fail ArgumentError, "Missing the required parameter 'invoice_id' when calling PaymentsApi.get_payment_by_invoice_id" if invoice_id.nil?
339
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
315
+ if @api_client.config.client_side_validation && invoice_id.nil?
316
+ fail ArgumentError, "Missing the required parameter 'invoice_id' when calling PaymentsApi.get_payment_by_invoice_id"
317
+ end
318
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
340
319
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
341
320
  end
342
321
  # resource path
343
- local_var_path = "/payments/invoice/{invoice-ID}".sub('{format}','json').sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
322
+ local_var_path = "/payments/invoice/{invoice-ID}".sub('{' + 'invoice-ID' + '}', invoice_id.to_s)
344
323
 
345
324
  # query parameters
346
325
  query_params = {}
@@ -353,14 +332,10 @@ module Bfwd
353
332
 
354
333
  # header parameters
355
334
  header_params = {}
356
-
357
335
  # HTTP header 'Accept' (if needed)
358
- local_header_accept = ['application/json; charset=utf-8']
359
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
360
-
336
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
361
337
  # HTTP header 'Content-Type'
362
- local_header_content_type = ['text/plain']
363
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
338
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
364
339
 
365
340
  # form parameters
366
341
  form_params = {}
@@ -413,16 +388,18 @@ module Bfwd
413
388
  @api_client.config.logger.debug "Calling API: PaymentsApi.get_payment_by_payment_gateway ..."
414
389
  end
415
390
  # verify the required parameter 'gateway' is set
416
- fail ArgumentError, "Missing the required parameter 'gateway' when calling PaymentsApi.get_payment_by_payment_gateway" if gateway.nil?
391
+ if @api_client.config.client_side_validation && gateway.nil?
392
+ fail ArgumentError, "Missing the required parameter 'gateway' when calling PaymentsApi.get_payment_by_payment_gateway"
393
+ end
417
394
  # verify enum value
418
- unless ['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(gateway)
395
+ if @api_client.config.client_side_validation && !['cybersource_token', 'card_vault', 'paypal_simple', 'locustworld', 'free', 'coupon', 'credit_note', 'stripe', 'braintree', 'balanced', 'paypal', 'billforward_test', 'offline', 'trial', 'stripeACH', 'authorizeNet', 'spreedly', 'sagePay', 'trustCommerce', 'payvision', 'kash'].include?(gateway)
419
396
  fail ArgumentError, "invalid value for 'gateway', must be one of cybersource_token, card_vault, paypal_simple, locustworld, free, coupon, credit_note, stripe, braintree, balanced, paypal, billforward_test, offline, trial, stripeACH, authorizeNet, spreedly, sagePay, trustCommerce, payvision, kash"
420
397
  end
421
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
398
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
422
399
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
423
400
  end
424
401
  # resource path
425
- local_var_path = "/payments/gateway/{gateway}".sub('{format}','json').sub('{' + 'gateway' + '}', gateway.to_s)
402
+ local_var_path = "/payments/gateway/{gateway}".sub('{' + 'gateway' + '}', gateway.to_s)
426
403
 
427
404
  # query parameters
428
405
  query_params = {}
@@ -435,14 +412,8 @@ module Bfwd
435
412
 
436
413
  # header parameters
437
414
  header_params = {}
438
-
439
415
  # HTTP header 'Accept' (if needed)
440
- local_header_accept = ['application/json; charset=utf-8']
441
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
442
-
443
- # HTTP header 'Content-Type'
444
- local_header_content_type = []
445
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
416
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
446
417
 
447
418
  # form parameters
448
419
  form_params = {}
@@ -495,12 +466,14 @@ module Bfwd
495
466
  @api_client.config.logger.debug "Calling API: PaymentsApi.get_payment_by_payment_method_id ..."
496
467
  end
497
468
  # verify the required parameter 'payment_method_id' is set
498
- fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentsApi.get_payment_by_payment_method_id" if payment_method_id.nil?
499
- if opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
469
+ if @api_client.config.client_side_validation && payment_method_id.nil?
470
+ fail ArgumentError, "Missing the required parameter 'payment_method_id' when calling PaymentsApi.get_payment_by_payment_method_id"
471
+ end
472
+ if @api_client.config.client_side_validation && opts[:'order'] && !['ASC', 'DESC'].include?(opts[:'order'])
500
473
  fail ArgumentError, 'invalid value for "order", must be one of ASC, DESC'
501
474
  end
502
475
  # resource path
503
- local_var_path = "/payments/payment-method/{payment-method-ID}".sub('{format}','json').sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
476
+ local_var_path = "/payments/payment-method/{payment-method-ID}".sub('{' + 'payment-method-ID' + '}', payment_method_id.to_s)
504
477
 
505
478
  # query parameters
506
479
  query_params = {}
@@ -513,14 +486,10 @@ module Bfwd
513
486
 
514
487
  # header parameters
515
488
  header_params = {}
516
-
517
489
  # HTTP header 'Accept' (if needed)
518
- local_header_accept = ['application/json; charset=utf-8']
519
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
520
-
490
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
521
491
  # HTTP header 'Content-Type'
522
- local_header_content_type = ['text/plain']
523
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
492
+ header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain'])
524
493
 
525
494
  # form parameters
526
495
  form_params = {}
@@ -561,23 +530,21 @@ module Bfwd
561
530
  @api_client.config.logger.debug "Calling API: PaymentsApi.update_payment ..."
562
531
  end
563
532
  # verify the required parameter 'payment' is set
564
- fail ArgumentError, "Missing the required parameter 'payment' when calling PaymentsApi.update_payment" if payment.nil?
533
+ if @api_client.config.client_side_validation && payment.nil?
534
+ fail ArgumentError, "Missing the required parameter 'payment' when calling PaymentsApi.update_payment"
535
+ end
565
536
  # resource path
566
- local_var_path = "/payments".sub('{format}','json')
537
+ local_var_path = "/payments"
567
538
 
568
539
  # query parameters
569
540
  query_params = {}
570
541
 
571
542
  # header parameters
572
543
  header_params = {}
573
-
574
544
  # HTTP header 'Accept' (if needed)
575
- local_header_accept = ['text/xml', 'application/xml', 'application/json; charset=utf-8']
576
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
577
-
545
+ header_params['Accept'] = @api_client.select_header_accept(['text/xml', 'application/xml', 'application/json; charset=utf-8'])
578
546
  # HTTP header 'Content-Type'
579
- local_header_content_type = ['application/json; charset=utf-8']
580
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
547
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=utf-8'])
581
548
 
582
549
  # form parameters
583
550
  form_params = {}