cybersource_rest_client 0.0.49 → 0.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (254) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +5 -0
  3. data/lib/AuthenticationSDK/util/Constants.rb +2 -0
  4. data/lib/cybersource_rest_client/api/batches_api.rb +330 -0
  5. data/lib/cybersource_rest_client/api/customer_api.rb +55 -47
  6. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +112 -104
  7. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +112 -104
  8. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +93 -81
  9. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  10. data/lib/cybersource_rest_client/api/microform_integration_api.rb +89 -0
  11. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +55 -49
  12. data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
  13. data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
  14. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/token_api.rb +112 -0
  16. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
  18. data/lib/cybersource_rest_client/api_client.rb +11 -0
  19. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included.rb +185 -0
  20. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
  21. data/lib/cybersource_rest_client/models/body.rb +42 -32
  22. data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
  23. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
  24. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
  25. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +216 -0
  26. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  27. data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
  28. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
  29. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
  30. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
  35. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
  42. data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
  43. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
  44. data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
  45. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
  46. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
  47. data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
  51. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
  52. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
  55. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
  56. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
  57. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
  58. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
  59. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
  60. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
  61. data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
  62. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
  63. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
  65. data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
  66. data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
  67. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
  68. data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
  69. data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
  70. data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
  71. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
  74. data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
  75. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
  76. data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
  77. data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
  78. data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
  79. data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
  80. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
  81. data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
  82. data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
  84. data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
  85. data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
  86. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
  87. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
  88. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
  89. data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
  90. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
  91. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
  92. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
  93. data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
  95. data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
  96. data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
  97. data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
  98. data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
  99. data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
  100. data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
  101. data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
  102. data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
  103. data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
  104. data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
  105. data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
  106. data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
  107. data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
  108. data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
  109. data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
  110. data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
  111. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
  112. data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
  113. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  114. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
  115. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  116. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  117. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  118. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
  119. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
  120. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
  121. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  122. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
  123. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
  124. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
  125. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
  126. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  127. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
  128. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
  129. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
  130. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
  131. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
  132. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  133. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  134. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +1 -1
  135. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  143. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
  144. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +0 -18
  145. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
  146. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
  147. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
  148. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +1 -21
  149. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  150. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  151. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
  152. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
  153. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
  154. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
  155. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
  156. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
  163. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
  164. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  165. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
  166. data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
  167. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
  168. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
  169. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
  170. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
  171. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
  172. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
  173. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
  174. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
  175. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
  176. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
  177. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
  178. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
  179. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
  180. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
  181. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
  182. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
  183. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
  184. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
  185. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
  186. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
  187. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
  188. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
  189. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
  190. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
  191. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  192. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  193. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
  194. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
  195. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
  196. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  197. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  198. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  199. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  200. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
  201. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
  202. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
  203. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  204. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  205. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
  206. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
  207. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  208. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
  209. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
  210. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
  211. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  212. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
  213. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  214. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
  215. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
  216. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
  217. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
  218. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
  219. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
  220. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
  221. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  222. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
  223. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
  224. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
  225. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
  226. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
  227. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
  228. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
  229. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
  230. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
  231. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
  232. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
  233. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
  234. data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
  235. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
  236. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
  237. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  238. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
  239. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  240. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
  241. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
  242. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
  243. data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
  244. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
  245. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
  246. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
  247. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
  248. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
  249. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
  250. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
  251. data/lib/cybersource_rest_client.rb +112 -13
  252. metadata +114 -15
  253. data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
  254. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -0,0 +1,206 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class InlineResponse2006OrderInformationBillTo
17
+ # Customer’s first name.
18
+ attr_accessor :first_name
19
+
20
+ # Customer’s last name.
21
+ attr_accessor :last_name
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'first_name' => :'firstName',
27
+ :'last_name' => :'lastName'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'first_name' => :'String',
35
+ :'last_name' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'firstName')
48
+ self.first_name = attributes[:'firstName']
49
+ end
50
+
51
+ if attributes.has_key?(:'lastName')
52
+ self.last_name = attributes[:'lastName']
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Custom attribute writer method with validation
70
+ # @param [Object] first_name Value to be assigned
71
+ def first_name=(first_name)
72
+ @first_name = first_name
73
+ end
74
+
75
+ # Custom attribute writer method with validation
76
+ # @param [Object] last_name Value to be assigned
77
+ def last_name=(last_name)
78
+ @last_name = last_name
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ first_name == o.first_name &&
87
+ last_name == o.last_name
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Fixnum] Hash code
98
+ def hash
99
+ [first_name, last_name].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ self.class.swagger_types.each_pair do |key, type|
108
+ if type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ end
114
+ elsif !attributes[self.class.attribute_map[key]].nil?
115
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ # Deserializes the data based on type
123
+ # @param string type Data type
124
+ # @param string value Value to be deserialized
125
+ # @return [Object] Deserialized data
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ temp_model = CyberSource.const_get(type).new
160
+ temp_model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ # Returns the string representation of the object
165
+ # @return [String] String presentation of the object
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_hash (backward compatibility)
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_body
173
+ to_hash
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ next if value.nil?
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ # Outputs non-array value in the form of hash
189
+ # For object, use to_hash. Otherwise, just return the value
190
+ # @param [Object] value Any valid value
191
+ # @return [Hash] Returns the value in the form of hash
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map { |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+ end
206
+ end
@@ -0,0 +1,183 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class InlineResponse2006PaymentInformation
17
+ attr_accessor :customer
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'customer' => :'customer'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'customer' => :'InlineResponse2006PaymentInformationCustomer'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'customer')
42
+ self.customer = attributes[:'customer']
43
+ end
44
+ end
45
+
46
+ # Show invalid properties with the reasons. Usually used together with valid?
47
+ # @return Array for valid properties with the reasons
48
+ def list_invalid_properties
49
+ invalid_properties = Array.new
50
+ invalid_properties
51
+ end
52
+
53
+ # Check to see if the all the properties in the model are valid
54
+ # @return true if the model is valid
55
+ def valid?
56
+ true
57
+ end
58
+
59
+ # Checks equality by comparing each attribute.
60
+ # @param [Object] Object to be compared
61
+ def ==(o)
62
+ return true if self.equal?(o)
63
+ self.class == o.class &&
64
+ customer == o.customer
65
+ end
66
+
67
+ # @see the `==` method
68
+ # @param [Object] Object to be compared
69
+ def eql?(o)
70
+ self == o
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Fixnum] Hash code
75
+ def hash
76
+ [customer].hash
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.swagger_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ temp_model = CyberSource.const_get(type).new
137
+ temp_model.build_from_hash(value)
138
+ end
139
+ end
140
+
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ next if value.nil?
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Outputs non-array value in the form of hash
166
+ # For object, use to_hash. Otherwise, just return the value
167
+ # @param [Object] value Any valid value
168
+ # @return [Hash] Returns the value in the form of hash
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map { |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+ end
183
+ end
@@ -0,0 +1,190 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class InlineResponse2006PaymentInformationCustomer
17
+ # Unique identifier for the Customer token used in the transaction. When you include this value in your request, many of the fields that are normally required for an authorization or credit become optional.
18
+ attr_accessor :id
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'id' => :'id'
24
+ }
25
+ end
26
+
27
+ # Attribute type mapping.
28
+ def self.swagger_types
29
+ {
30
+ :'id' => :'String'
31
+ }
32
+ end
33
+
34
+ # Initializes the object
35
+ # @param [Hash] attributes Model attributes in the form of hash
36
+ def initialize(attributes = {})
37
+ return unless attributes.is_a?(Hash)
38
+
39
+ # convert string to symbol for hash key
40
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
41
+
42
+ if attributes.has_key?(:'id')
43
+ self.id = attributes[:'id']
44
+ end
45
+ end
46
+
47
+ # Show invalid properties with the reasons. Usually used together with valid?
48
+ # @return Array for valid properties with the reasons
49
+ def list_invalid_properties
50
+ invalid_properties = Array.new
51
+ invalid_properties
52
+ end
53
+
54
+ # Check to see if the all the properties in the model are valid
55
+ # @return true if the model is valid
56
+ def valid?
57
+ true
58
+ end
59
+
60
+ # Custom attribute writer method with validation
61
+ # @param [Object] id Value to be assigned
62
+ def id=(id)
63
+ @id = id
64
+ end
65
+
66
+ # Checks equality by comparing each attribute.
67
+ # @param [Object] Object to be compared
68
+ def ==(o)
69
+ return true if self.equal?(o)
70
+ self.class == o.class &&
71
+ id == o.id
72
+ end
73
+
74
+ # @see the `==` method
75
+ # @param [Object] Object to be compared
76
+ def eql?(o)
77
+ self == o
78
+ end
79
+
80
+ # Calculates hash code according to all attributes.
81
+ # @return [Fixnum] Hash code
82
+ def hash
83
+ [id].hash
84
+ end
85
+
86
+ # Builds the object from hash
87
+ # @param [Hash] attributes Model attributes in the form of hash
88
+ # @return [Object] Returns the model itself
89
+ def build_from_hash(attributes)
90
+ return nil unless attributes.is_a?(Hash)
91
+ self.class.swagger_types.each_pair do |key, type|
92
+ if type =~ /\AArray<(.*)>/i
93
+ # check to ensure the input is an array given that the the attribute
94
+ # is documented as an array but the input is not
95
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
97
+ end
98
+ elsif !attributes[self.class.attribute_map[key]].nil?
99
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
100
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
101
+ end
102
+
103
+ self
104
+ end
105
+
106
+ # Deserializes the data based on type
107
+ # @param string type Data type
108
+ # @param string value Value to be deserialized
109
+ # @return [Object] Deserialized data
110
+ def _deserialize(type, value)
111
+ case type.to_sym
112
+ when :DateTime
113
+ DateTime.parse(value)
114
+ when :Date
115
+ Date.parse(value)
116
+ when :String
117
+ value.to_s
118
+ when :Integer
119
+ value.to_i
120
+ when :Float
121
+ value.to_f
122
+ when :BOOLEAN
123
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
124
+ true
125
+ else
126
+ false
127
+ end
128
+ when :Object
129
+ # generic object (usually a Hash), return directly
130
+ value
131
+ when /\AArray<(?<inner_type>.+)>\z/
132
+ inner_type = Regexp.last_match[:inner_type]
133
+ value.map { |v| _deserialize(inner_type, v) }
134
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
135
+ k_type = Regexp.last_match[:k_type]
136
+ v_type = Regexp.last_match[:v_type]
137
+ {}.tap do |hash|
138
+ value.each do |k, v|
139
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
140
+ end
141
+ end
142
+ else # model
143
+ temp_model = CyberSource.const_get(type).new
144
+ temp_model.build_from_hash(value)
145
+ end
146
+ end
147
+
148
+ # Returns the string representation of the object
149
+ # @return [String] String presentation of the object
150
+ def to_s
151
+ to_hash.to_s
152
+ end
153
+
154
+ # to_body is an alias to to_hash (backward compatibility)
155
+ # @return [Hash] Returns the object in the form of hash
156
+ def to_body
157
+ to_hash
158
+ end
159
+
160
+ # Returns the object in the form of hash
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ next if value.nil?
167
+ hash[param] = _to_hash(value)
168
+ end
169
+ hash
170
+ end
171
+
172
+ # Outputs non-array value in the form of hash
173
+ # For object, use to_hash. Otherwise, just return the value
174
+ # @param [Object] value Any valid value
175
+ # @return [Hash] Returns the value in the form of hash
176
+ def _to_hash(value)
177
+ if value.is_a?(Array)
178
+ value.compact.map { |v| _to_hash(v) }
179
+ elsif value.is_a?(Hash)
180
+ {}.tap do |hash|
181
+ value.each { |k, v| hash[k] = _to_hash(v) }
182
+ end
183
+ elsif value.respond_to? :to_hash
184
+ value.to_hash
185
+ else
186
+ value
187
+ end
188
+ end
189
+ end
190
+ end
@@ -13,42 +13,34 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- # The public key in JSON Web Key (JWK) format. This format is useful for client side encryption in JavaScript based implementations.
17
- class FlexV1KeysPost200ResponseJwk
18
- # Algorithm used to encrypt the public key.
19
- attr_accessor :kty
16
+ class InlineResponse2006PlanInformation
17
+ # Plan code
18
+ attr_accessor :code
20
19
 
21
- # Defines whether to use the key for encryption (enc) or verifying a signature (sig). Always returned as enc.
22
- attr_accessor :use
20
+ # Plan name
21
+ attr_accessor :name
23
22
 
24
- # The key ID in JWK format.
25
- attr_accessor :kid
23
+ attr_accessor :billing_period
26
24
 
27
- # JWK RSA Modulus
28
- attr_accessor :n
29
-
30
- # JWK RSA Exponent
31
- attr_accessor :e
25
+ attr_accessor :billing_cycles
32
26
 
33
27
  # Attribute mapping from ruby-style variable name to JSON key.
34
28
  def self.attribute_map
35
29
  {
36
- :'kty' => :'kty',
37
- :'use' => :'use',
38
- :'kid' => :'kid',
39
- :'n' => :'n',
40
- :'e' => :'e'
30
+ :'code' => :'code',
31
+ :'name' => :'name',
32
+ :'billing_period' => :'billingPeriod',
33
+ :'billing_cycles' => :'billingCycles'
41
34
  }
42
35
  end
43
36
 
44
37
  # Attribute type mapping.
45
38
  def self.swagger_types
46
39
  {
47
- :'kty' => :'String',
48
- :'use' => :'String',
49
- :'kid' => :'String',
50
- :'n' => :'String',
51
- :'e' => :'String'
40
+ :'code' => :'String',
41
+ :'name' => :'String',
42
+ :'billing_period' => :'InlineResponse200PlanInformationBillingPeriod',
43
+ :'billing_cycles' => :'InlineResponse2006PlanInformationBillingCycles'
52
44
  }
53
45
  end
54
46
 
@@ -60,24 +52,20 @@ module CyberSource
60
52
  # convert string to symbol for hash key
61
53
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
54
 
63
- if attributes.has_key?(:'kty')
64
- self.kty = attributes[:'kty']
65
- end
66
-
67
- if attributes.has_key?(:'use')
68
- self.use = attributes[:'use']
55
+ if attributes.has_key?(:'code')
56
+ self.code = attributes[:'code']
69
57
  end
70
58
 
71
- if attributes.has_key?(:'kid')
72
- self.kid = attributes[:'kid']
59
+ if attributes.has_key?(:'name')
60
+ self.name = attributes[:'name']
73
61
  end
74
62
 
75
- if attributes.has_key?(:'n')
76
- self.n = attributes[:'n']
63
+ if attributes.has_key?(:'billingPeriod')
64
+ self.billing_period = attributes[:'billingPeriod']
77
65
  end
78
66
 
79
- if attributes.has_key?(:'e')
80
- self.e = attributes[:'e']
67
+ if attributes.has_key?(:'billingCycles')
68
+ self.billing_cycles = attributes[:'billingCycles']
81
69
  end
82
70
  end
83
71
 
@@ -94,16 +82,27 @@ module CyberSource
94
82
  true
95
83
  end
96
84
 
85
+ # Custom attribute writer method with validation
86
+ # @param [Object] code Value to be assigned
87
+ def code=(code)
88
+ @code = code
89
+ end
90
+
91
+ # Custom attribute writer method with validation
92
+ # @param [Object] name Value to be assigned
93
+ def name=(name)
94
+ @name = name
95
+ end
96
+
97
97
  # Checks equality by comparing each attribute.
98
98
  # @param [Object] Object to be compared
99
99
  def ==(o)
100
100
  return true if self.equal?(o)
101
101
  self.class == o.class &&
102
- kty == o.kty &&
103
- use == o.use &&
104
- kid == o.kid &&
105
- n == o.n &&
106
- e == o.e
102
+ code == o.code &&
103
+ name == o.name &&
104
+ billing_period == o.billing_period &&
105
+ billing_cycles == o.billing_cycles
107
106
  end
108
107
 
109
108
  # @see the `==` method
@@ -115,7 +114,7 @@ module CyberSource
115
114
  # Calculates hash code according to all attributes.
116
115
  # @return [Fixnum] Hash code
117
116
  def hash
118
- [kty, use, kid, n, e].hash
117
+ [code, name, billing_period, billing_cycles].hash
119
118
  end
120
119
 
121
120
  # Builds the object from hash