cybersource_rest_client 0.0.48 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) 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/payments_api.rb +71 -0
  13. data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
  14. data/lib/cybersource_rest_client/api/push_funds_api.rb +131 -0
  15. data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
  16. data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/token_api.rb +112 -0
  18. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
  19. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
  20. data/lib/cybersource_rest_client/api_client.rb +11 -0
  21. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers.rb → accountupdaterv1batches_included.rb} +9 -9
  22. data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
  23. data/lib/cybersource_rest_client/models/body.rb +42 -32
  24. data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
  25. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
  26. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
  27. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers_provider_name.rb → generate_capture_context_request.rb} +36 -17
  28. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  29. data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
  30. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
  31. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
  32. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
  33. data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
  34. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
  35. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
  42. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
  43. data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
  44. data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
  45. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
  46. data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
  47. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
  48. data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
  49. data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
  50. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
  51. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
  52. data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
  53. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
  54. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
  55. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
  56. data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
  57. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
  58. data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
  59. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
  60. data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
  61. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information.rb +224 -0
  62. data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
  63. data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
  64. data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
  65. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
  66. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
  67. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +228 -0
  68. data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
  69. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
  70. data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
  71. data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
  73. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
  74. data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
  75. data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
  76. data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
  77. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
  78. data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
  79. data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
  80. data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
  81. data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
  82. data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
  83. data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
  84. data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
  85. data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
  86. data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
  87. data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
  88. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
  89. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
  90. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
  91. data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
  93. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
  94. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
  95. data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
  96. data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
  97. data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
  98. data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
  99. data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
  100. data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
  101. data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
  102. data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
  103. data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
  104. data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
  105. data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
  106. data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
  107. data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
  108. data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
  109. data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
  110. data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
  111. data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
  112. data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
  113. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
  114. data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
  115. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  116. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
  117. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  118. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
  119. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
  120. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +2 -2
  121. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
  122. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
  123. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
  124. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  125. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
  126. data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
  127. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
  128. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
  129. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  130. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
  131. data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
  132. data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
  133. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
  134. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
  135. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +262 -0
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +192 -0
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +344 -0
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +318 -0
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +201 -0
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank.rb +183 -0
  143. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account.rb +184 -0
  144. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type.rb +183 -0
  145. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +184 -0
  146. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +238 -0
  147. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs.rb +190 -0
  148. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection.rb +184 -0
  149. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
  153. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -4
  154. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +5 -2
  155. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  156. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  157. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information.rb +226 -0
  158. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +17 -1
  159. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  160. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  161. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  162. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +215 -0
  163. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +318 -0
  164. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information.rb +238 -0
  165. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +206 -0
  166. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +225 -0
  167. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +270 -0
  168. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +208 -0
  169. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +224 -0
  170. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +190 -0
  171. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +236 -0
  172. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +297 -0
  173. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +206 -0
  174. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +184 -0
  175. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +183 -0
  176. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +183 -0
  177. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb +190 -0
  178. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +384 -0
  179. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information.rb +183 -0
  180. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +281 -0
  181. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb +190 -0
  182. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb +190 -0
  183. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb +190 -0
  184. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +206 -0
  185. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +425 -0
  186. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +206 -0
  187. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb +183 -0
  188. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +270 -0
  189. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +222 -0
  190. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -1
  191. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
  192. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -19
  193. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
  194. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +30 -4
  195. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
  196. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
  197. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
  198. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +20 -4
  199. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
  200. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +2 -12
  201. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +15 -5
  202. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  203. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
  204. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
  205. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
  206. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
  207. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
  208. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +63 -4
  209. data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → ptsv2paymentsidcaptures_buyer_information_personal_identification.rb} +15 -24
  210. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
  211. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
  212. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +65 -1
  213. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
  214. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
  215. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +297 -0
  216. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
  217. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
  218. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
  219. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +14 -4
  220. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +37 -5
  221. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet.rb +190 -0
  222. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type.rb +203 -0
  223. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method.rb +184 -0
  224. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +35 -4
  225. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +184 -0
  226. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
  227. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
  228. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
  229. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
  230. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information.rb +184 -0
  231. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information.rb +206 -0
  232. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information.rb +192 -0
  233. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_customer.rb → ptsv2refreshpaymentstatusid_payment_information_customer.rb} +1 -1
  234. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type.rb +193 -0
  235. data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +186 -0
  236. data/lib/cybersource_rest_client/models/push_funds201_response.rb +301 -0
  237. data/lib/cybersource_rest_client/models/push_funds201_response__links.rb +210 -0
  238. data/lib/cybersource_rest_client/models/push_funds201_response__links_customer.rb +195 -0
  239. data/lib/cybersource_rest_client/models/push_funds201_response__links_instrument_identifier.rb +195 -0
  240. data/lib/cybersource_rest_client/models/push_funds201_response__links_payment_instrument.rb +195 -0
  241. data/lib/cybersource_rest_client/models/push_funds201_response__links_self.rb +195 -0
  242. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → push_funds201_response_client_reference_information.rb} +28 -47
  243. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +217 -0
  244. data/lib/cybersource_rest_client/models/push_funds201_response_error_information_details.rb +206 -0
  245. data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information.rb +183 -0
  246. data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor.rb +222 -0
  247. data/lib/cybersource_rest_client/models/push_funds201_response_order_information.rb +183 -0
  248. data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +247 -0
  249. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +264 -0
  250. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +183 -0
  251. data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information_card.rb +206 -0
  252. data/lib/cybersource_rest_client/models/push_funds400_response.rb +247 -0
  253. data/lib/cybersource_rest_client/models/push_funds400_response_details.rb +194 -0
  254. data/lib/cybersource_rest_client/models/push_funds401_response.rb +226 -0
  255. data/lib/cybersource_rest_client/models/push_funds404_response.rb +226 -0
  256. data/lib/cybersource_rest_client/models/push_funds502_response.rb +236 -0
  257. data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -0
  258. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
  259. data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
  260. data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
  261. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
  262. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
  263. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
  264. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
  265. data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
  266. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
  267. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
  268. data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
  269. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
  270. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
  271. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
  272. data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
  273. data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
  274. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
  275. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
  276. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
  277. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
  278. data/lib/cybersource_rest_client/models/refresh_payment_status_request.rb +210 -0
  279. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  280. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  281. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
  282. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
  283. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
  284. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
  285. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
  286. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
  287. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
  288. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  289. data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
  290. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
  291. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
  292. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
  293. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  294. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
  295. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
  296. data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
  297. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
  298. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
  299. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
  300. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  301. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
  302. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
  303. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
  304. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
  305. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
  306. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
  307. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
  308. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
  309. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
  310. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
  311. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
  312. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
  313. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
  314. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
  315. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
  316. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
  317. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
  318. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
  319. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
  320. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
  321. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
  322. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
  323. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
  324. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
  325. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
  326. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
  327. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
  328. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
  329. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
  330. data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
  331. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
  332. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
  333. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
  334. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
  335. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
  336. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  337. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
  338. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
  339. data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
  340. data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
  341. data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
  342. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
  343. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
  344. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
  345. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
  346. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
  347. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
  348. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
  349. data/lib/cybersource_rest_client.rb +189 -16
  350. metadata +191 -18
  351. data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
  352. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -0,0 +1,247 @@
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 PushFunds400Response
17
+ # A unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
18
+ attr_accessor :id
19
+
20
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC.
21
+ attr_accessor :submit_time_utc
22
+
23
+ # Possible values: - INVALID_REQUEST
24
+ attr_accessor :status
25
+
26
+ # The reason of the status. Possible values: - INVALID_DATA - MISSING_FIELD - INVALID_MERCHANT_CONFIGURATION - INVALID_REQUEST - INVALID_PAYMENT_ID
27
+ attr_accessor :reason
28
+
29
+ # The detail message related to the status and reason listed above. Possible values: - Declined - One or more fields in the request contains invalid data - Declined - The request is missing one or more fields - Declined - There is a problem with your CyberSource merchant configuration.
30
+ attr_accessor :message
31
+
32
+ attr_accessor :details
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'id' => :'id',
38
+ :'submit_time_utc' => :'submitTimeUtc',
39
+ :'status' => :'status',
40
+ :'reason' => :'reason',
41
+ :'message' => :'message',
42
+ :'details' => :'details'
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'id' => :'String',
50
+ :'submit_time_utc' => :'String',
51
+ :'status' => :'String',
52
+ :'reason' => :'String',
53
+ :'message' => :'String',
54
+ :'details' => :'Array<PushFunds400ResponseDetails>'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ return unless attributes.is_a?(Hash)
62
+
63
+ # convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
+
66
+ if attributes.has_key?(:'id')
67
+ self.id = attributes[:'id']
68
+ end
69
+
70
+ if attributes.has_key?(:'submitTimeUtc')
71
+ self.submit_time_utc = attributes[:'submitTimeUtc']
72
+ end
73
+
74
+ if attributes.has_key?(:'status')
75
+ self.status = attributes[:'status']
76
+ end
77
+
78
+ if attributes.has_key?(:'reason')
79
+ self.reason = attributes[:'reason']
80
+ end
81
+
82
+ if attributes.has_key?(:'message')
83
+ self.message = attributes[:'message']
84
+ end
85
+
86
+ if attributes.has_key?(:'details')
87
+ if (value = attributes[:'details']).is_a?(Array)
88
+ self.details = value
89
+ end
90
+ end
91
+ end
92
+
93
+ # Show invalid properties with the reasons. Usually used together with valid?
94
+ # @return Array for valid properties with the reasons
95
+ def list_invalid_properties
96
+ invalid_properties = Array.new
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ true
104
+ end
105
+
106
+ # Custom attribute writer method with validation
107
+ # @param [Object] id Value to be assigned
108
+ def id=(id)
109
+ @id = id
110
+ end
111
+
112
+ # Custom attribute writer method with validation
113
+ # @param [Object] submit_time_utc Value to be assigned
114
+ def submit_time_utc=(submit_time_utc)
115
+ @submit_time_utc = submit_time_utc
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ id == o.id &&
124
+ submit_time_utc == o.submit_time_utc &&
125
+ status == o.status &&
126
+ reason == o.reason &&
127
+ message == o.message &&
128
+ details == o.details
129
+ end
130
+
131
+ # @see the `==` method
132
+ # @param [Object] Object to be compared
133
+ def eql?(o)
134
+ self == o
135
+ end
136
+
137
+ # Calculates hash code according to all attributes.
138
+ # @return [Fixnum] Hash code
139
+ def hash
140
+ [id, submit_time_utc, status, reason, message, details].hash
141
+ end
142
+
143
+ # Builds the object from hash
144
+ # @param [Hash] attributes Model attributes in the form of hash
145
+ # @return [Object] Returns the model itself
146
+ def build_from_hash(attributes)
147
+ return nil unless attributes.is_a?(Hash)
148
+ self.class.swagger_types.each_pair do |key, type|
149
+ if type =~ /\AArray<(.*)>/i
150
+ # check to ensure the input is an array given that the the attribute
151
+ # is documented as an array but the input is not
152
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
153
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
154
+ end
155
+ elsif !attributes[self.class.attribute_map[key]].nil?
156
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
157
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
158
+ end
159
+
160
+ self
161
+ end
162
+
163
+ # Deserializes the data based on type
164
+ # @param string type Data type
165
+ # @param string value Value to be deserialized
166
+ # @return [Object] Deserialized data
167
+ def _deserialize(type, value)
168
+ case type.to_sym
169
+ when :DateTime
170
+ DateTime.parse(value)
171
+ when :Date
172
+ Date.parse(value)
173
+ when :String
174
+ value.to_s
175
+ when :Integer
176
+ value.to_i
177
+ when :Float
178
+ value.to_f
179
+ when :BOOLEAN
180
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
181
+ true
182
+ else
183
+ false
184
+ end
185
+ when :Object
186
+ # generic object (usually a Hash), return directly
187
+ value
188
+ when /\AArray<(?<inner_type>.+)>\z/
189
+ inner_type = Regexp.last_match[:inner_type]
190
+ value.map { |v| _deserialize(inner_type, v) }
191
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
192
+ k_type = Regexp.last_match[:k_type]
193
+ v_type = Regexp.last_match[:v_type]
194
+ {}.tap do |hash|
195
+ value.each do |k, v|
196
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
197
+ end
198
+ end
199
+ else # model
200
+ temp_model = CyberSource.const_get(type).new
201
+ temp_model.build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ next if value.nil?
224
+ hash[param] = _to_hash(value)
225
+ end
226
+ hash
227
+ end
228
+
229
+ # Outputs non-array value in the form of hash
230
+ # For object, use to_hash. Otherwise, just return the value
231
+ # @param [Object] value Any valid value
232
+ # @return [Hash] Returns the value in the form of hash
233
+ def _to_hash(value)
234
+ if value.is_a?(Array)
235
+ value.compact.map { |v| _to_hash(v) }
236
+ elsif value.is_a?(Hash)
237
+ {}.tap do |hash|
238
+ value.each { |k, v| hash[k] = _to_hash(v) }
239
+ end
240
+ elsif value.respond_to? :to_hash
241
+ value.to_hash
242
+ else
243
+ value
244
+ end
245
+ end
246
+ end
247
+ end
@@ -0,0 +1,194 @@
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 PushFunds400ResponseDetails
17
+ # This is the flattened JSON object field name/path that is either missing or invalid.
18
+ attr_accessor :field
19
+
20
+ # Possible reasons for the error. Possible values: - MISSING_FIELD - INVALID_DATA
21
+ attr_accessor :reason
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'field' => :'field',
27
+ :'reason' => :'reason'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.swagger_types
33
+ {
34
+ :'field' => :'String',
35
+ :'reason' => :'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?(:'field')
48
+ self.field = attributes[:'field']
49
+ end
50
+
51
+ if attributes.has_key?(:'reason')
52
+ self.reason = attributes[:'reason']
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
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ field == o.field &&
75
+ reason == o.reason
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [field, reason].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = CyberSource.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+ end
194
+ end
@@ -0,0 +1,226 @@
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 PushFunds401Response
17
+ # A unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
18
+ attr_accessor :id
19
+
20
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC.
21
+ attr_accessor :submit_time_utc
22
+
23
+ # The reason of the status. Possible values: - UNAUTHORIZED
24
+ attr_accessor :reason
25
+
26
+ # The detail message related to the status and reason listed above. Possible values: - Authentication Failed
27
+ attr_accessor :message
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'id' => :'id',
33
+ :'submit_time_utc' => :'submitTimeUtc',
34
+ :'reason' => :'reason',
35
+ :'message' => :'message'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'id' => :'String',
43
+ :'submit_time_utc' => :'String',
44
+ :'reason' => :'String',
45
+ :'message' => :'String'
46
+ }
47
+ end
48
+
49
+ # Initializes the object
50
+ # @param [Hash] attributes Model attributes in the form of hash
51
+ def initialize(attributes = {})
52
+ return unless attributes.is_a?(Hash)
53
+
54
+ # convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
+
57
+ if attributes.has_key?(:'id')
58
+ self.id = attributes[:'id']
59
+ end
60
+
61
+ if attributes.has_key?(:'submitTimeUtc')
62
+ self.submit_time_utc = attributes[:'submitTimeUtc']
63
+ end
64
+
65
+ if attributes.has_key?(:'reason')
66
+ self.reason = attributes[:'reason']
67
+ end
68
+
69
+ if attributes.has_key?(:'message')
70
+ self.message = attributes[:'message']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ true
85
+ end
86
+
87
+ # Custom attribute writer method with validation
88
+ # @param [Object] id Value to be assigned
89
+ def id=(id)
90
+ @id = id
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] submit_time_utc Value to be assigned
95
+ def submit_time_utc=(submit_time_utc)
96
+ @submit_time_utc = submit_time_utc
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ id == o.id &&
105
+ submit_time_utc == o.submit_time_utc &&
106
+ reason == o.reason &&
107
+ message == o.message
108
+ end
109
+
110
+ # @see the `==` method
111
+ # @param [Object] Object to be compared
112
+ def eql?(o)
113
+ self == o
114
+ end
115
+
116
+ # Calculates hash code according to all attributes.
117
+ # @return [Fixnum] Hash code
118
+ def hash
119
+ [id, submit_time_utc, reason, message].hash
120
+ end
121
+
122
+ # Builds the object from hash
123
+ # @param [Hash] attributes Model attributes in the form of hash
124
+ # @return [Object] Returns the model itself
125
+ def build_from_hash(attributes)
126
+ return nil unless attributes.is_a?(Hash)
127
+ self.class.swagger_types.each_pair do |key, type|
128
+ if type =~ /\AArray<(.*)>/i
129
+ # check to ensure the input is an array given that the the attribute
130
+ # is documented as an array but the input is not
131
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
132
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
133
+ end
134
+ elsif !attributes[self.class.attribute_map[key]].nil?
135
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
136
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
137
+ end
138
+
139
+ self
140
+ end
141
+
142
+ # Deserializes the data based on type
143
+ # @param string type Data type
144
+ # @param string value Value to be deserialized
145
+ # @return [Object] Deserialized data
146
+ def _deserialize(type, value)
147
+ case type.to_sym
148
+ when :DateTime
149
+ DateTime.parse(value)
150
+ when :Date
151
+ Date.parse(value)
152
+ when :String
153
+ value.to_s
154
+ when :Integer
155
+ value.to_i
156
+ when :Float
157
+ value.to_f
158
+ when :BOOLEAN
159
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
160
+ true
161
+ else
162
+ false
163
+ end
164
+ when :Object
165
+ # generic object (usually a Hash), return directly
166
+ value
167
+ when /\AArray<(?<inner_type>.+)>\z/
168
+ inner_type = Regexp.last_match[:inner_type]
169
+ value.map { |v| _deserialize(inner_type, v) }
170
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
171
+ k_type = Regexp.last_match[:k_type]
172
+ v_type = Regexp.last_match[:v_type]
173
+ {}.tap do |hash|
174
+ value.each do |k, v|
175
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
176
+ end
177
+ end
178
+ else # model
179
+ temp_model = CyberSource.const_get(type).new
180
+ temp_model.build_from_hash(value)
181
+ end
182
+ end
183
+
184
+ # Returns the string representation of the object
185
+ # @return [String] String presentation of the object
186
+ def to_s
187
+ to_hash.to_s
188
+ end
189
+
190
+ # to_body is an alias to to_hash (backward compatibility)
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_body
193
+ to_hash
194
+ end
195
+
196
+ # Returns the object in the form of hash
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_hash
199
+ hash = {}
200
+ self.class.attribute_map.each_pair do |attr, param|
201
+ value = self.send(attr)
202
+ next if value.nil?
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+ end
226
+ end