cybersource_rest_client 0.0.22 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (502) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +197 -108
  3. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +219 -0
  4. data/lib/cybersource_rest_client/api/customer_api.rb +360 -0
  5. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +516 -0
  6. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +516 -0
  7. data/lib/cybersource_rest_client/api/decision_manager_api.rb +15 -15
  8. data/lib/cybersource_rest_client/api/download_dtd_api.rb +1 -1
  9. data/lib/cybersource_rest_client/api/download_xsd_api.rb +1 -1
  10. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +165 -174
  11. data/lib/cybersource_rest_client/api/key_generation_api.rb +10 -6
  12. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +1 -1
  13. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +65 -0
  14. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +1 -1
  15. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +131 -136
  16. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +1 -1
  18. data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
  19. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +45 -0
  20. data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
  21. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +219 -0
  22. data/lib/cybersource_rest_client/api/taxes_api.rb +160 -0
  23. data/lib/cybersource_rest_client/api/user_management_api.rb +4 -4
  24. data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -0
  25. data/lib/cybersource_rest_client/api/void_api.rb +8 -8
  26. data/lib/cybersource_rest_client/api_client.rb +37 -24
  27. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  28. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +14 -5
  29. data/lib/cybersource_rest_client/models/{create_decision_manager_case_request.rb → create_bundled_decision_manager_case_request.rb} +50 -14
  30. data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
  31. data/lib/cybersource_rest_client/models/create_p12_keys_request.rb +194 -0
  32. data/lib/cybersource_rest_client/models/create_payment_request.rb +10 -1
  33. data/lib/cybersource_rest_client/models/create_search_request.rb +7 -7
  34. data/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +194 -0
  35. data/lib/cybersource_rest_client/models/customer.rb +292 -0
  36. data/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +194 -0
  37. data/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +194 -0
  38. data/lib/cybersource_rest_client/models/inline_response_200.rb +203 -0
  39. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +214 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_1_key_information.rb +224 -0
  41. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +193 -0
  42. data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → inline_response_200_2_key_information.rb} +55 -56
  43. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +204 -0
  44. data/lib/cybersource_rest_client/models/inline_response_200_3_key_information.rb +234 -0
  45. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bill_to.rb → inline_response_200_key_information.rb} +44 -44
  46. data/lib/cybersource_rest_client/models/inline_response_201.rb +214 -0
  47. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +225 -0
  48. data/lib/cybersource_rest_client/models/inline_response_201_1_certificate_information.rb +214 -0
  49. data/lib/cybersource_rest_client/models/inline_response_201_1_key_information.rb +264 -0
  50. data/lib/cybersource_rest_client/models/inline_response_201_error_information.rb +195 -0
  51. data/lib/cybersource_rest_client/models/{instrument_identifier_bank_account.rb → inline_response_201_key_information.rb} +73 -61
  52. data/lib/cybersource_rest_client/models/inline_response_400.rb +9 -26
  53. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +214 -0
  54. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_details.rb → inline_response_400_details.rb} +3 -3
  55. data/lib/cybersource_rest_client/models/{payment_instrument_bank_account.rb → inline_response_400_errors.rb} +27 -6
  56. data/lib/cybersource_rest_client/models/{instrument_identifier_response.rb → instrument_identifier.rb} +39 -20
  57. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response.rb +1 -1
  58. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +54 -4
  59. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  60. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
  61. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details.rb +2 -2
  62. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response.rb +1 -1
  63. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +1 -1
  64. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get502_response.rb +2 -2
  65. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +2 -2
  66. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_invoice_history.rb +2 -2
  67. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details.rb +1 -1
  68. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +2 -2
  69. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details.rb +4 -4
  70. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post202_response.rb +1 -1
  71. data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +1 -1
  72. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details.rb +3 -3
  73. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +1 -1
  74. data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +4 -4
  75. data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +215 -0
  76. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_card.rb → kmsv2keyssym_client_reference_information.rb} +36 -26
  77. data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +200 -0
  78. data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +215 -0
  79. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +318 -0
  80. data/lib/cybersource_rest_client/models/patch_customer_request.rb +292 -0
  81. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +235 -0
  82. data/lib/cybersource_rest_client/models/{embedded_instrument_identifier_response.rb → patch_instrument_identifier_request.rb} +45 -50
  83. data/lib/cybersource_rest_client/models/{payment_instrument_instrument_identifier_request.rb → patch_payment_instrument_request.rb} +92 -20
  84. data/lib/cybersource_rest_client/models/{update_instrument_identifier_request.rb → payer_auth_setup_request.rb} +32 -5
  85. data/lib/cybersource_rest_client/models/payment_instrument.rb +51 -18
  86. data/lib/cybersource_rest_client/models/{payment_instruments_for_instrument_identifier.rb → payment_instrument_list_for_customer.rb} +9 -19
  87. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded.rb → payment_instrument_list_for_customer__embedded.rb} +3 -3
  88. data/lib/cybersource_rest_client/models/{payment_instrument_for_instrument_identifier_links.rb → payment_instrument_list_for_customer__links.rb} +6 -6
  89. data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_first.rb +184 -0
  90. data/lib/cybersource_rest_client/models/{payment_instrument_self_link.rb → payment_instrument_list_for_customer__links_last.rb} +2 -1
  91. data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_next.rb +184 -0
  92. data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_prev.rb +184 -0
  93. data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_self.rb +184 -0
  94. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response.rb → payment_instrument_paginated.rb} +9 -19
  95. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +318 -0
  96. data/lib/cybersource_rest_client/models/post_customer_request.rb +292 -0
  97. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +235 -0
  98. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response.rb → post_instrument_identifier_request.rb} +39 -20
  99. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb → post_payment_instrument_request.rb} +52 -19
  100. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response.rb +1 -1
  101. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response.rb +1 -1
  102. data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response.rb +1 -1
  103. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +3 -3
  104. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +2 -2
  105. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +40 -4
  106. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +1 -1
  107. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +3 -3
  108. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_client_reference_information.rb +1 -1
  109. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features.rb +1 -1
  110. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +4 -4
  111. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
  112. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +16 -16
  113. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
  114. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details.rb +1 -1
  115. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +1 -1
  116. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information.rb +1 -1
  117. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
  118. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +14 -5
  119. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links.rb +40 -4
  120. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +3 -3
  121. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -1
  122. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  123. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +2 -2
  124. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
  125. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +2 -2
  126. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +40 -4
  127. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +16 -16
  128. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_card.rb +1 -1
  129. data/lib/cybersource_rest_client/models/{embedded_instrument_identifier_request.rb → pts_v2_payments_post201_response_payment_information_instrument_identifier.rb} +15 -23
  130. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +3 -3
  131. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +1 -1
  132. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
  133. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +1 -1
  134. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +8 -8
  135. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +2 -2
  136. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.rb +2 -2
  137. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer.rb +1 -1
  138. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +5 -5
  139. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -3
  140. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes.rb +8 -8
  141. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity.rb +1 -1
  142. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing.rb +1 -1
  143. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +220 -0
  144. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_customer.rb +208 -0
  145. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_instrument_identifier.rb → pts_v2_payments_post201_response_token_information_instrument_identifier.rb} +15 -23
  146. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_payment_instrument.rb +208 -0
  147. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_shipping_address.rb +208 -0
  148. data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
  149. data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +3 -3
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +2 -2
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  153. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
  154. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +3 -3
  155. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +1 -1
  156. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +2 -2
  157. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +3 -3
  158. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
  159. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +2 -2
  160. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +1 -1
  161. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +2 -2
  162. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
  163. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +1 -1
  164. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +3 -3
  165. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
  166. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
  167. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +4 -4
  168. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer.rb +1 -1
  169. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options.rb +1 -1
  170. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +1 -1
  171. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +1 -1
  172. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +1 -1
  173. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +2 -2
  174. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +3 -3
  175. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +27 -2
  176. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +1 -1
  177. data/lib/cybersource_rest_client/models/{instrument_identifier_update.rb → ptsv2payments_health_care_information.rb} +11 -8
  178. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bank_account.rb → ptsv2payments_health_care_information_amount_details.rb} +32 -50
  179. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +2 -2
  180. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +5 -5
  181. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +16 -16
  182. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
  183. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +1 -1
  184. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +1 -1
  185. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +10 -10
  186. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +1 -1
  187. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +31 -6
  188. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +6 -6
  189. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_passenger.rb +2 -2
  190. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +8 -8
  191. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +47 -2
  192. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +8 -8
  193. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +38 -4
  194. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +2 -2
  195. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier.rb +208 -0
  196. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token.rb +199 -0
  197. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_instrument.rb +208 -0
  198. data/lib/cybersource_rest_client/models/{ptsv2paymentsidrefunds_payment_information_payment_type.rb → ptsv2payments_payment_information_payment_type.rb} +4 -4
  199. data/lib/cybersource_rest_client/models/{ptsv2paymentsidrefunds_payment_information_payment_type_method.rb → ptsv2payments_payment_information_payment_type_method.rb} +1 -1
  200. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_shipping_address.rb +208 -0
  201. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +4 -4
  202. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -18
  203. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +5 -5
  204. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +31 -7
  205. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +55 -15
  206. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
  207. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer.rb +2 -2
  208. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +2 -2
  209. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +2 -2
  210. data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +22 -4
  211. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_payment_instrument.rb +186 -0
  212. data/lib/cybersource_rest_client/models/{authorization_options.rb → ptsv2payments_token_information_shipping_address.rb} +11 -8
  213. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +11 -2
  214. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_agency.rb +1 -1
  215. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb +1146 -0
  216. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_rental_address.rb +349 -0
  217. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_return_address.rb +299 -0
  218. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_tax_details.rb +309 -0
  219. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +2 -2
  220. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +1 -1
  221. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +25 -25
  222. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +4 -4
  223. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +2 -2
  224. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +19 -19
  225. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer.rb +2 -2
  226. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +1 -1
  227. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +2 -2
  228. data/lib/cybersource_rest_client/models/ptsv2paymentsid_merchant_information.rb +1 -1
  229. data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +1 -1
  230. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +1 -1
  231. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
  232. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information.rb +1 -1
  233. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +1 -1
  234. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +15 -15
  235. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +10 -10
  236. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +3 -3
  237. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +1 -1
  238. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
  239. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +2 -2
  240. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +3 -3
  241. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +1 -1
  242. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +6 -6
  243. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +38 -2
  244. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -5
  245. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +2 -2
  246. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +1 -1
  247. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +2 -2
  248. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
  249. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +1 -1
  250. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +1 -1
  251. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +1 -1
  252. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  253. data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
  254. data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +1 -1
  255. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +1 -1
  256. data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +5 -5
  257. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
  258. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +1 -1
  259. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +9 -9
  260. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +4 -4
  261. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +2 -2
  262. data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
  263. data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
  264. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +4 -14
  265. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +1 -1
  266. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_error_information.rb +205 -0
  267. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +5 -15
  268. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +1 -1
  269. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +246 -0
  270. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +249 -0
  271. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information.rb +205 -0
  272. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +7 -17
  273. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_error_information.rb +205 -0
  274. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb +4 -4
  275. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +225 -0
  276. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +32 -5
  277. data/lib/cybersource_rest_client/models/{risk_v1_authentications_post201_response_consumer_authentication_information.rb → risk_v1_decisions_post201_response_consumer_authentication_information.rb} +28 -3
  278. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +205 -0
  279. data/lib/cybersource_rest_client/models/{risk_v1_authentications_post201_response_order_information.rb → risk_v1_decisions_post201_response_order_information.rb} +2 -2
  280. data/lib/cybersource_rest_client/models/{risk_v1_authentications_post201_response_order_information_amount_details.rb → risk_v1_decisions_post201_response_order_information_amount_details.rb} +2 -2
  281. data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +3 -3
  282. data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response_1.rb +225 -0
  283. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +4 -14
  284. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_error_information.rb +205 -0
  285. data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +2 -2
  286. data/lib/cybersource_rest_client/models/riskv1addressverifications_client_reference_information.rb +2 -2
  287. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +6 -6
  288. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +5 -5
  289. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +7 -7
  290. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +26 -1
  291. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +3 -3
  292. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +13 -4
  293. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +4 -4
  294. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
  295. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +1 -1
  296. data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +1 -1
  297. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_amount_details.rb +2 -2
  298. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +10 -10
  299. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +5 -5
  300. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +13 -4
  301. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +4 -4
  302. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
  303. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +2 -2
  304. data/lib/cybersource_rest_client/models/{riskv1authentications_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +2 -2
  305. data/lib/cybersource_rest_client/models/{instrument_identifier_enrollable_card.rb → riskv1authenticationsetups_payment_information.rb} +24 -25
  306. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +286 -0
  307. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +199 -0
  308. data/lib/cybersource_rest_client/models/{riskv1authentications_payment_information_fluid_data.rb → riskv1authenticationsetups_payment_information_fluid_data.rb} +3 -3
  309. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +325 -0
  310. data/lib/cybersource_rest_client/models/{riskv1authentications_processing_information.rb → riskv1authenticationsetups_processing_information.rb} +2 -2
  311. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +184 -0
  312. data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +2 -2
  313. data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information.rb → riskv1decisions_consumer_authentication_information.rb} +29 -4
  314. data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information_strong_authentication.rb → riskv1decisions_consumer_authentication_information_strong_authentication.rb} +1 -1
  315. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +236 -5
  316. data/lib/cybersource_rest_client/models/{riskv1authentications_merchant_information.rb → riskv1decisions_merchant_information.rb} +2 -2
  317. data/lib/cybersource_rest_client/models/{riskv1authentications_merchant_information_merchant_descriptor.rb → riskv1decisions_merchant_information_merchant_descriptor.rb} +2 -2
  318. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +74 -4
  319. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +2 -2
  320. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +10 -10
  321. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +104 -9
  322. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +72 -13
  323. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +47 -4
  324. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +4 -4
  325. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
  326. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +187 -0
  327. data/lib/cybersource_rest_client/models/riskv1decisions_processor_information.rb +13 -4
  328. data/lib/cybersource_rest_client/models/{riskv1decisions_card_verification.rb → riskv1decisions_processor_information_card_verification.rb} +1 -1
  329. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +13 -4
  330. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +25 -4
  331. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +26 -16
  332. data/lib/cybersource_rest_client/models/{riskv1authentications_travel_information_passengers.rb → riskv1decisions_travel_information_passengers.rb} +1 -1
  333. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +1 -1
  334. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +9 -9
  335. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +5 -5
  336. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +3 -3
  337. data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +1 -1
  338. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +10 -10
  339. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +1 -1
  340. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +6 -6
  341. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +2 -2
  342. data/lib/cybersource_rest_client/models/search_request.rb +214 -0
  343. data/lib/cybersource_rest_client/models/shipping_address.rb +235 -0
  344. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer.rb +233 -0
  345. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +186 -0
  346. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__links.rb → shipping_address_list_for_customer__links.rb} +6 -6
  347. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_first.rb +184 -0
  348. data/lib/cybersource_rest_client/models/{pi_for_ii_link_self.rb → shipping_address_list_for_customer__links_last.rb} +2 -2
  349. data/lib/cybersource_rest_client/models/{instrument_identifier_payment_instruments_link.rb → shipping_address_list_for_customer__links_next.rb} +2 -1
  350. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_prev.rb +184 -0
  351. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_self.rb +184 -0
  352. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_delete409_response.rb → shipping_address_paginated.rb} +55 -5
  353. data/lib/cybersource_rest_client/models/tax_request.rb +219 -0
  354. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb → tms_error.rb} +27 -6
  355. data/lib/cybersource_rest_client/models/{detail.rb → tms_error_details.rb} +3 -3
  356. data/lib/cybersource_rest_client/models/tms_error_response.rb +185 -0
  357. data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +292 -0
  358. data/lib/cybersource_rest_client/models/{tokenize_request.rb → tmsv2customers__embedded.rb} +15 -20
  359. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options.rb → tmsv2customers__embedded_authorization_options.rb} +2 -2
  360. data/lib/cybersource_rest_client/models/{initiator.rb → tmsv2customers__embedded_authorization_options_initiator.rb} +2 -2
  361. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +318 -0
  362. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__embedded.rb → tmsv2customers__embedded_default_payment_instrument__embedded.rb} +3 -2
  363. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb} +45 -50
  364. data/lib/cybersource_rest_client/models/{model_409_links.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links.rb} +12 -3
  365. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links_self.rb +184 -0
  366. data/lib/cybersource_rest_client/models/{instrument_identifier_card.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bank_account.rb} +21 -20
  367. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +325 -0
  368. data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_card.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb} +6 -32
  369. data/lib/cybersource_rest_client/models/{issuer.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_issuer.rb} +7 -16
  370. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +184 -0
  371. data/lib/cybersource_rest_client/models/{payment_instruments_links.rb → tmsv2customers__embedded_default_payment_instrument__links.rb} +14 -5
  372. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links_self.rb +184 -0
  373. data/lib/cybersource_rest_client/models/{create_instrument_identifier_request.rb → tmsv2customers__embedded_default_payment_instrument_bank_account.rb} +21 -33
  374. data/lib/cybersource_rest_client/models/{bill_to.rb → tmsv2customers__embedded_default_payment_instrument_bill_to.rb} +27 -45
  375. data/lib/cybersource_rest_client/models/{buyer_information.rb → tmsv2customers__embedded_default_payment_instrument_buyer_information.rb} +6 -39
  376. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_buyer_information_issued_by.rb → tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb} +17 -2
  377. data/lib/cybersource_rest_client/models/{personal_identification.rb → tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb} +19 -4
  378. data/lib/cybersource_rest_client/models/{payment_instrument_card.rb → tmsv2customers__embedded_default_payment_instrument_card.rb} +21 -62
  379. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +224 -0
  380. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb → tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb} +30 -25
  381. data/lib/cybersource_rest_client/models/{merchant_information.rb → tmsv2customers__embedded_default_payment_instrument_merchant_information.rb} +2 -2
  382. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_descriptor.rb → tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb} +17 -2
  383. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +184 -0
  384. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_processing_information.rb → tmsv2customers__embedded_default_payment_instrument_processing_information.rb} +3 -5
  385. data/lib/cybersource_rest_client/models/{merchant_initiated_transaction.rb → tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb} +17 -17
  386. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +235 -0
  387. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links.rb → tmsv2customers__embedded_default_shipping_address__links.rb} +14 -5
  388. data/lib/cybersource_rest_client/models/{pi_for_ii_link_last.rb → tmsv2customers__embedded_default_shipping_address__links_customer.rb} +2 -2
  389. data/lib/cybersource_rest_client/models/{pi_for_ii_link_first.rb → tmsv2customers__embedded_default_shipping_address__links_self.rb} +2 -2
  390. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_metadata.rb → tmsv2customers__embedded_default_shipping_address_metadata.rb} +2 -2
  391. data/lib/cybersource_rest_client/models/{riskv1authentications_order_information_ship_to.rb → tmsv2customers__embedded_default_shipping_address_ship_to.rb} +140 -150
  392. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_merchant_initiated_transaction.rb → tmsv2customers__embedded_merchant_initiated_transaction.rb} +2 -2
  393. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_payment_instruments.rb +184 -0
  394. data/lib/cybersource_rest_client/models/{instrument_identifier_processing_information.rb → tmsv2customers__embedded_processing_information.rb} +2 -2
  395. data/lib/cybersource_rest_client/models/{instrument_identifier_tokenized_card.rb → tmsv2customers__embedded_tokenized_card.rb} +33 -32
  396. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_tokenized_card_card.rb → tmsv2customers__embedded_tokenized_card_card.rb} +5 -23
  397. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response__links.rb → tmsv2customers__links.rb} +10 -19
  398. data/lib/cybersource_rest_client/models/tmsv2customers__links_payment_instruments.rb +184 -0
  399. data/lib/cybersource_rest_client/models/{model_409_link.rb → tmsv2customers__links_self.rb} +2 -1
  400. data/lib/cybersource_rest_client/models/tmsv2customers__links_shipping_address.rb +184 -0
  401. data/lib/cybersource_rest_client/models/tmsv2customers_buyer_information.rb +224 -0
  402. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_travel_information.rb → tmsv2customers_client_reference_information.rb} +24 -26
  403. data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +184 -0
  404. data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +184 -0
  405. data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +209 -0
  406. data/lib/cybersource_rest_client/models/{metadata.rb → tmsv2customers_metadata.rb} +2 -2
  407. data/lib/cybersource_rest_client/models/tmsv2customers_object_information.rb +224 -0
  408. data/lib/cybersource_rest_client/models/tokenize_parameters.rb +1 -1
  409. data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → tokenize_parameters_card_info.rb} +1 -1
  410. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +4 -4
  411. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +2 -2
  412. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +1 -1
  413. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +2 -2
  414. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +1 -1
  415. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
  416. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +1 -1
  417. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +4 -4
  418. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +10 -10
  419. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +1 -1
  420. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
  421. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +8 -8
  422. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
  423. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +3 -3
  424. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +4 -4
  425. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
  426. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +28 -3
  427. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  428. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
  429. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +1 -1
  430. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options.rb +1 -1
  431. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +5 -5
  432. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +8 -8
  433. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information.rb +5 -15
  434. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information_applications.rb +244 -0
  435. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +1 -1
  436. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +1 -1
  437. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +1 -1
  438. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +5 -5
  439. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +4 -4
  440. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
  441. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +2 -2
  442. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +3 -3
  443. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
  444. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +1 -1
  445. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
  446. data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
  447. data/lib/cybersource_rest_client/models/validate_request.rb +2 -2
  448. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response.rb +255 -0
  449. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response__links_payment_instruments.rb → vas_v2_payments_post201_response__links.rb} +8 -8
  450. data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_tokenized_card.rb → vas_v2_payments_post201_response_order_information.rb} +75 -67
  451. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_jurisdiction.rb +384 -0
  452. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_line_items.rb +271 -0
  453. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_tax_details.rb +224 -0
  454. data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +194 -0
  455. data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +225 -0
  456. data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response.rb +237 -0
  457. data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_details.rb +209 -0
  458. data/lib/cybersource_rest_client/models/vas_v2_tax_voids_post400_response.rb +225 -0
  459. data/lib/cybersource_rest_client/models/vasv2tax_buyer_information.rb +199 -0
  460. data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information.rb +218 -0
  461. data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information_partner.rb +224 -0
  462. data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +199 -0
  463. data/lib/cybersource_rest_client/models/vasv2tax_order_information.rb +248 -0
  464. data/lib/cybersource_rest_client/models/vasv2tax_order_information_bill_to.rb +324 -0
  465. data/lib/cybersource_rest_client/models/vasv2tax_order_information_invoice_details.rb +199 -0
  466. data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +501 -0
  467. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +275 -0
  468. data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +275 -0
  469. data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +349 -0
  470. data/lib/cybersource_rest_client/models/vasv2tax_order_information_shipping_details.rb +274 -0
  471. data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +278 -0
  472. data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information.rb +218 -0
  473. data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information_partner.rb +224 -0
  474. data/lib/cybersource_rest_client/models/void_tax_request.rb +183 -0
  475. metadata +199 -110
  476. data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
  477. data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +0 -246
  478. data/lib/cybersource_rest_client/models/error_response_with_hal.rb +0 -174
  479. data/lib/cybersource_rest_client/models/existing_instrument_identifier_id.rb +0 -175
  480. data/lib/cybersource_rest_client/models/payment_instruments_array.rb +0 -175
  481. data/lib/cybersource_rest_client/models/personal_identification_array.rb +0 -174
  482. data/lib/cybersource_rest_client/models/pi_for_ii_link_next.rb +0 -184
  483. data/lib/cybersource_rest_client/models/pi_for_ii_link_prev.rb +0 -184
  484. data/lib/cybersource_rest_client/models/processing_information.rb +0 -195
  485. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +0 -259
  486. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_delete409_response__links.rb +0 -183
  487. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links_self.rb +0 -183
  488. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bill_to.rb +0 -467
  489. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb +0 -278
  490. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +0 -369
  491. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_first.rb +0 -184
  492. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_last.rb +0 -184
  493. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_next.rb +0 -184
  494. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_prev.rb +0 -184
  495. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_self.rb +0 -184
  496. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb +0 -184
  497. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_information.rb +0 -183
  498. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links_self.rb +0 -183
  499. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_authorization_options_initiator.rb +0 -183
  500. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_issuer.rb +0 -208
  501. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_processing_information.rb +0 -183
  502. data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +0 -246
@@ -14,13 +14,13 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class TssV2TransactionsPost201ResponseEmbeddedPointOfSaleInformation
17
- # Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. #### FDC Nashville Global To have your account configured to support this field, contact CyberSource Customer Support. This value must be a value that FDC Nashville Global issued to you. For details, see the `terminal_id` field description in [Card-Present Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/) **For Payouts**: This field is applicable for CtV.
17
+ # Identifier for the terminal at your retail location. You can define this value yourself, but consult the processor for requirements. #### CyberSource through VisaNet A list of all possible values is stored in your CyberSource account. If terminal ID validation is enabled for your CyberSource account, the value you send for this field is validated against the list each time you include the field in a request. To enable or disable terminal ID validation, contact CyberSource Customer Support. When you do not include this field in a request, CyberSource uses the default value that is defined in your CyberSource account. #### FDC Nashville Global To have your account configured to support this field, contact CyberSource Customer Support. This value must be a value that FDC Nashville Global issued to you. #### For Payouts This field is applicable for CyberSource through VisaNet. #### GPX Identifier for the terminal at your retail location. A list of all possible values is stored in your account. If terminal ID validation is enabled for your account, the value you send for this field is validated against the list each time you include the field in a request. To enable or disable terminal ID validation, contact customer support. When you do not include this field in a request, the default value that is defined in your account is used. Optional for authorizations. #### Used by **Authorization** Optional for the following processors. When you do not include this field in a request, the default value that is defined in your account is used. - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - SIX - Chase Paymentech Solutions: Optional field. If you include this field in your request, you must also include `pointOfSaleInformation.catLevel`. - FDMS Nashville: The default value that is defined in your account is used. - GPX - OmniPay Direct: Optional field. For the following processors, this field is not used. - GPN - JCN Gateway - RBS WorldPay Atlanta - TSYS Acquiring Solutions - Worldpay VAP #### Card Present reply Terminal identifier assigned by the acquirer. This value must be printed on the receipt.
18
18
  attr_accessor :terminal_id
19
19
 
20
- # Terminal serial number assigned by the hardware manufacturer. This value is provided by the client software that is installed on the POS terminal. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. This field is supported only on American Express Direct, FDC Nashville Global, and SIX. For details, see the `terminal_serial_number` field description in [Card-Present Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/)
20
+ # Terminal serial number assigned by the hardware manufacturer. This value is provided by the client software that is installed on the POS terminal. This value is not forwarded to the processor. Instead, the value is forwarded to the reporting functionality. #### Used by **Authorization and Credit** Optional. This field is supported only by client software that is installed on your POS terminals for the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
21
21
  attr_accessor :terminal_serial_number
22
22
 
23
- # Value created by the client software that uniquely identifies the POS device. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. This field is supported only for specific CyberSource integrations. For details, see the `pos_device_id` field description in the [Card-Present Processing Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/)
23
+ # Value created by the client software that uniquely identifies the POS device. CyberSource does not forward this value to the processor. Instead, the value is forwarded to the CyberSource reporting functionality. This field is supported only for authorizations and credits on these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX Optional field. String (32)
24
24
  attr_accessor :device_id
25
25
 
26
26
  attr_accessor :partner
@@ -20,7 +20,7 @@ module CyberSource
20
20
  # Payouts transaction type. Required for OCT transactions. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. **Note** When the request includes this field, this value overrides the information in your CyberSource account. For valid values, see the `invoiceHeader_businessApplicationID` field description in [Payouts Using the Simple Order API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SO/Payouts_SO_API.pdf)
21
21
  attr_accessor :business_application_id
22
22
 
23
- # Type of transaction. Certain card associations use this information when determining discount rates to charge you. Required for Verified by Visa and MasterCard SecureCode transactions. This field can contain one of these values: * 5: `vbv` (Successful Verified by Visa transaction) * 6: `spa` (MasterCard SecureCode transaction) * 7: `internet` (default) (eCommerce order placed by using a Web site) * 8: `vbv_attempted` (Verified by Visa transaction was attempted but not authenticated) * E: `vbv_failure` (Depending on your payment processor, you may receive this result if Visa’s directory service is not available) * F: `spa_failure` (MasterCard SecureCode authentication failed) * M: `moto` (Mail order or telephone order) * P: `retail` (Point-of-sale transaction) * R: `recurring` (Recurring transaction) * S: `install` (Installment payment)
23
+ # Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only `internet`, `moto`, `recurring`, and `recurring_internet` are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \"Commerce Indicators,\" on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication,\" page 195. #### Other Types of Transactions See Appendix I, \"Commerce Indicators,\" on page 441. #### Card Present You must set this field to `retail`. This field is required for a card-present transaction.
24
24
  attr_accessor :commerce_indicator
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -16,7 +16,7 @@ module CyberSource
16
16
  class TssV2TransactionsPost201ResponseEmbeddedProcessorInformation
17
17
  attr_accessor :processor
18
18
 
19
- # Authorization code. Returned only when the processor returns this value.
19
+ # Authorization code. Returned only when the processor returns this value. The length of this value depends on your processor. Returned by authorization service. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit credit. #### Elavon Encrypted Account Number Program The returned value is OFFLINE. #### TSYS Acquiring Solutions The returned value for a successful zero amount authorization is 000000.
20
20
  attr_accessor :approval_code
21
21
 
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -14,10 +14,10 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries
17
- # An unique identification number assigned by CyberSource to identify the submitted request. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response.
17
+ # An unique identification number to identify the submitted request. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. #### PIN debit Returned for all PIN debit services.
18
18
  attr_accessor :id
19
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.
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. Returned by authorization service. #### PIN debit Time when the PIN debit credit, PIN debit purchase or PIN debit reversal was requested. Returned by PIN debit credit, PIN debit purchase or PIN debit reversal.
21
21
  attr_accessor :submit_time_utc
22
22
 
23
23
  # Your CyberSource merchant ID.
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class TssV2TransactionsPost400Response
17
- # 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.
17
+ # 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. Returned by authorization service. #### PIN debit Time when the PIN debit credit, PIN debit purchase or PIN debit reversal was requested. Returned by PIN debit credit, PIN debit purchase or PIN debit reversal.
18
18
  attr_accessor :submit_time_utc
19
19
 
20
20
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
@@ -38,8 +38,8 @@ module CyberSource
38
38
  # Attribute type mapping.
39
39
  def self.swagger_types
40
40
  {
41
- :'client_reference_information' => :'Riskv1authenticationsClientReferenceInformation',
42
- :'processing_information' => :'Riskv1authenticationsProcessingInformation',
41
+ :'client_reference_information' => :'Riskv1authenticationsetupsClientReferenceInformation',
42
+ :'processing_information' => :'Riskv1authenticationsetupsProcessingInformation',
43
43
  :'order_information' => :'Riskv1authenticationresultsOrderInformation',
44
44
  :'payment_information' => :'Riskv1authenticationresultsPaymentInformation',
45
45
  :'consumer_authentication_information' => :'Riskv1authenticationresultsConsumerAuthenticationInformation'
@@ -0,0 +1,255 @@
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 VasV2PaymentsPost201Response
17
+ attr_accessor :_links
18
+
19
+ # An unique identification number to identify the submitted request. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. #### PIN debit Returned for all PIN debit services.
20
+ attr_accessor :id
21
+
22
+ # 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. Returned by authorization service. #### PIN debit Time when the PIN debit credit, PIN debit purchase or PIN debit reversal was requested. Returned by PIN debit credit, PIN debit purchase or PIN debit reversal.
23
+ attr_accessor :submit_time_utc
24
+
25
+ # The status of the submitted transaction. Possible values: - COMPLETED
26
+ attr_accessor :status
27
+
28
+ attr_accessor :client_reference_information
29
+
30
+ attr_accessor :tax_information
31
+
32
+ attr_accessor :order_information
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'_links' => :'_links',
38
+ :'id' => :'id',
39
+ :'submit_time_utc' => :'submitTimeUtc',
40
+ :'status' => :'status',
41
+ :'client_reference_information' => :'clientReferenceInformation',
42
+ :'tax_information' => :'taxInformation',
43
+ :'order_information' => :'orderInformation'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'_links' => :'VasV2PaymentsPost201ResponseLinks',
51
+ :'id' => :'String',
52
+ :'submit_time_utc' => :'String',
53
+ :'status' => :'String',
54
+ :'client_reference_information' => :'PtsV2PaymentsPost201ResponseClientReferenceInformation',
55
+ :'tax_information' => :'VasV2PaymentsPost201ResponseTaxInformation',
56
+ :'order_information' => :'VasV2PaymentsPost201ResponseOrderInformation'
57
+ }
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ return unless attributes.is_a?(Hash)
64
+
65
+ # convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
+
68
+ if attributes.has_key?(:'_links')
69
+ self._links = attributes[:'_links']
70
+ end
71
+
72
+ if attributes.has_key?(:'id')
73
+ self.id = attributes[:'id']
74
+ end
75
+
76
+ if attributes.has_key?(:'submitTimeUtc')
77
+ self.submit_time_utc = attributes[:'submitTimeUtc']
78
+ end
79
+
80
+ if attributes.has_key?(:'status')
81
+ self.status = attributes[:'status']
82
+ end
83
+
84
+ if attributes.has_key?(:'clientReferenceInformation')
85
+ self.client_reference_information = attributes[:'clientReferenceInformation']
86
+ end
87
+
88
+ if attributes.has_key?(:'taxInformation')
89
+ self.tax_information = attributes[:'taxInformation']
90
+ end
91
+
92
+ if attributes.has_key?(:'orderInformation')
93
+ self.order_information = attributes[:'orderInformation']
94
+ end
95
+ end
96
+
97
+ # Show invalid properties with the reasons. Usually used together with valid?
98
+ # @return Array for valid properties with the reasons
99
+ def list_invalid_properties
100
+ invalid_properties = Array.new
101
+ if !@id.nil? && @id.to_s.length > 26
102
+ invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 26.')
103
+ end
104
+
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ return false if !@id.nil? && @id.to_s.length > 26
112
+ true
113
+ end
114
+
115
+ # Custom attribute writer method with validation
116
+ # @param [Object] id Value to be assigned
117
+ def id=(id)
118
+ if !id.nil? && id.to_s.length > 26
119
+ fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 26.'
120
+ end
121
+
122
+ @id = id
123
+ end
124
+
125
+ # Checks equality by comparing each attribute.
126
+ # @param [Object] Object to be compared
127
+ def ==(o)
128
+ return true if self.equal?(o)
129
+ self.class == o.class &&
130
+ _links == o._links &&
131
+ id == o.id &&
132
+ submit_time_utc == o.submit_time_utc &&
133
+ status == o.status &&
134
+ client_reference_information == o.client_reference_information &&
135
+ tax_information == o.tax_information &&
136
+ order_information == o.order_information
137
+ end
138
+
139
+ # @see the `==` method
140
+ # @param [Object] Object to be compared
141
+ def eql?(o)
142
+ self == o
143
+ end
144
+
145
+ # Calculates hash code according to all attributes.
146
+ # @return [Fixnum] Hash code
147
+ def hash
148
+ [_links, id, submit_time_utc, status, client_reference_information, tax_information, order_information].hash
149
+ end
150
+
151
+ # Builds the object from hash
152
+ # @param [Hash] attributes Model attributes in the form of hash
153
+ # @return [Object] Returns the model itself
154
+ def build_from_hash(attributes)
155
+ return nil unless attributes.is_a?(Hash)
156
+ self.class.swagger_types.each_pair do |key, type|
157
+ if type =~ /\AArray<(.*)>/i
158
+ # check to ensure the input is an array given that the the attribute
159
+ # is documented as an array but the input is not
160
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
161
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
162
+ end
163
+ elsif !attributes[self.class.attribute_map[key]].nil?
164
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
165
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
166
+ end
167
+
168
+ self
169
+ end
170
+
171
+ # Deserializes the data based on type
172
+ # @param string type Data type
173
+ # @param string value Value to be deserialized
174
+ # @return [Object] Deserialized data
175
+ def _deserialize(type, value)
176
+ case type.to_sym
177
+ when :DateTime
178
+ DateTime.parse(value)
179
+ when :Date
180
+ Date.parse(value)
181
+ when :String
182
+ value.to_s
183
+ when :Integer
184
+ value.to_i
185
+ when :Float
186
+ value.to_f
187
+ when :BOOLEAN
188
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
189
+ true
190
+ else
191
+ false
192
+ end
193
+ when :Object
194
+ # generic object (usually a Hash), return directly
195
+ value
196
+ when /\AArray<(?<inner_type>.+)>\z/
197
+ inner_type = Regexp.last_match[:inner_type]
198
+ value.map { |v| _deserialize(inner_type, v) }
199
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
200
+ k_type = Regexp.last_match[:k_type]
201
+ v_type = Regexp.last_match[:v_type]
202
+ {}.tap do |hash|
203
+ value.each do |k, v|
204
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
205
+ end
206
+ end
207
+ else # model
208
+ temp_model = CyberSource.const_get(type).new
209
+ temp_model.build_from_hash(value)
210
+ end
211
+ end
212
+
213
+ # Returns the string representation of the object
214
+ # @return [String] String presentation of the object
215
+ def to_s
216
+ to_hash.to_s
217
+ end
218
+
219
+ # to_body is an alias to to_hash (backward compatibility)
220
+ # @return [Hash] Returns the object in the form of hash
221
+ def to_body
222
+ to_hash
223
+ end
224
+
225
+ # Returns the object in the form of hash
226
+ # @return [Hash] Returns the object in the form of hash
227
+ def to_hash
228
+ hash = {}
229
+ self.class.attribute_map.each_pair do |attr, param|
230
+ value = self.send(attr)
231
+ next if value.nil?
232
+ hash[param] = _to_hash(value)
233
+ end
234
+ hash
235
+ end
236
+
237
+ # Outputs non-array value in the form of hash
238
+ # For object, use to_hash. Otherwise, just return the value
239
+ # @param [Object] value Any valid value
240
+ # @return [Hash] Returns the value in the form of hash
241
+ def _to_hash(value)
242
+ if value.is_a?(Array)
243
+ value.compact.map { |v| _to_hash(v) }
244
+ elsif value.is_a?(Hash)
245
+ {}.tap do |hash|
246
+ value.each { |k, v| hash[k] = _to_hash(v) }
247
+ end
248
+ elsif value.respond_to? :to_hash
249
+ value.to_hash
250
+ else
251
+ value
252
+ end
253
+ end
254
+ end
255
+ end
@@ -13,20 +13,20 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class TmsV1InstrumentIdentifiersPost200ResponseLinksPaymentInstruments
17
- attr_accessor :href
16
+ class VasV2PaymentsPost201ResponseLinks
17
+ attr_accessor :void
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
21
21
  {
22
- :'href' => :'href'
22
+ :'void' => :'void'
23
23
  }
24
24
  end
25
25
 
26
26
  # Attribute type mapping.
27
27
  def self.swagger_types
28
28
  {
29
- :'href' => :'String'
29
+ :'void' => :'PtsV2PaymentsPost201ResponseLinksSelf'
30
30
  }
31
31
  end
32
32
 
@@ -38,8 +38,8 @@ module CyberSource
38
38
  # convert string to symbol for hash key
39
39
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
40
 
41
- if attributes.has_key?(:'href')
42
- self.href = attributes[:'href']
41
+ if attributes.has_key?(:'void')
42
+ self.void = attributes[:'void']
43
43
  end
44
44
  end
45
45
 
@@ -61,7 +61,7 @@ module CyberSource
61
61
  def ==(o)
62
62
  return true if self.equal?(o)
63
63
  self.class == o.class &&
64
- href == o.href
64
+ void == o.void
65
65
  end
66
66
 
67
67
  # @see the `==` method
@@ -73,7 +73,7 @@ module CyberSource
73
73
  # Calculates hash code according to all attributes.
74
74
  # @return [Fixnum] Hash code
75
75
  def hash
76
- [href].hash
76
+ [void].hash
77
77
  end
78
78
 
79
79
  # Builds the object from hash
@@ -13,41 +13,43 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- # The Network Token associated with the Instrument Identifier (PAN)
17
- class TmsV1InstrumentIdentifiersPost200ResponseTokenizedCard
18
- # Issuer state for the Network Token Valid values: - ACTIVE - SUSPENDED - DELETED
19
- attr_accessor :state
16
+ class VasV2PaymentsPost201ResponseOrderInformation
17
+ # Total amount of tax exempt amounts. This value is the sum of the values for all the `orderInformation.lineItems[].exemptAmount` fields in the tax calculation request.
18
+ attr_accessor :exempt_amount
20
19
 
21
- # The Network Token expiration month, automatically updated
22
- attr_accessor :expiration_month
20
+ # Total amount of all taxable amounts. This value is the sum of the values for all the `orderInformation.lineItems[].taxAmount` fields in the tax calculation request.
21
+ attr_accessor :taxable_amount
23
22
 
24
- # The Network Token expiration year, automatically updated
25
- attr_accessor :expiration_year
23
+ # Total amount of tax for all lineItems in the tax calculation request.
24
+ attr_accessor :tax_amount
26
25
 
27
- # The Network Token brand Valid values: - visa - mastercard
28
- attr_accessor :type
26
+ attr_accessor :line_items
29
27
 
30
- attr_accessor :card
28
+ attr_accessor :tax_details
29
+
30
+ attr_accessor :amount_details
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
- :'state' => :'state',
36
- :'expiration_month' => :'expirationMonth',
37
- :'expiration_year' => :'expirationYear',
38
- :'type' => :'type',
39
- :'card' => :'card'
35
+ :'exempt_amount' => :'exemptAmount',
36
+ :'taxable_amount' => :'taxableAmount',
37
+ :'tax_amount' => :'taxAmount',
38
+ :'line_items' => :'lineItems',
39
+ :'tax_details' => :'taxDetails',
40
+ :'amount_details' => :'amountDetails'
40
41
  }
41
42
  end
42
43
 
43
44
  # Attribute type mapping.
44
45
  def self.swagger_types
45
46
  {
46
- :'state' => :'String',
47
- :'expiration_month' => :'String',
48
- :'expiration_year' => :'String',
49
- :'type' => :'String',
50
- :'card' => :'TmsV1InstrumentIdentifiersPost200ResponseTokenizedCardCard'
47
+ :'exempt_amount' => :'String',
48
+ :'taxable_amount' => :'String',
49
+ :'tax_amount' => :'String',
50
+ :'line_items' => :'Array<VasV2PaymentsPost201ResponseOrderInformationLineItems>',
51
+ :'tax_details' => :'Array<VasV2PaymentsPost201ResponseOrderInformationTaxDetails>',
52
+ :'amount_details' => :'Ptsv2paymentsidreversalsReversalInformationAmountDetails'
51
53
  }
52
54
  end
53
55
 
@@ -59,24 +61,32 @@ module CyberSource
59
61
  # convert string to symbol for hash key
60
62
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
61
63
 
62
- if attributes.has_key?(:'state')
63
- self.state = attributes[:'state']
64
+ if attributes.has_key?(:'exemptAmount')
65
+ self.exempt_amount = attributes[:'exemptAmount']
66
+ end
67
+
68
+ if attributes.has_key?(:'taxableAmount')
69
+ self.taxable_amount = attributes[:'taxableAmount']
64
70
  end
65
71
 
66
- if attributes.has_key?(:'expirationMonth')
67
- self.expiration_month = attributes[:'expirationMonth']
72
+ if attributes.has_key?(:'taxAmount')
73
+ self.tax_amount = attributes[:'taxAmount']
68
74
  end
69
75
 
70
- if attributes.has_key?(:'expirationYear')
71
- self.expiration_year = attributes[:'expirationYear']
76
+ if attributes.has_key?(:'lineItems')
77
+ if (value = attributes[:'lineItems']).is_a?(Array)
78
+ self.line_items = value
79
+ end
72
80
  end
73
81
 
74
- if attributes.has_key?(:'type')
75
- self.type = attributes[:'type']
82
+ if attributes.has_key?(:'taxDetails')
83
+ if (value = attributes[:'taxDetails']).is_a?(Array)
84
+ self.tax_details = value
85
+ end
76
86
  end
77
87
 
78
- if attributes.has_key?(:'card')
79
- self.card = attributes[:'card']
88
+ if attributes.has_key?(:'amountDetails')
89
+ self.amount_details = attributes[:'amountDetails']
80
90
  end
81
91
  end
82
92
 
@@ -84,20 +94,16 @@ module CyberSource
84
94
  # @return Array for valid properties with the reasons
85
95
  def list_invalid_properties
86
96
  invalid_properties = Array.new
87
- if !@expiration_month.nil? && @expiration_month.to_s.length > 2
88
- invalid_properties.push('invalid value for "expiration_month", the character length must be smaller than or equal to 2.')
89
- end
90
-
91
- if !@expiration_month.nil? && @expiration_month.to_s.length < 2
92
- invalid_properties.push('invalid value for "expiration_month", the character length must be great than or equal to 2.')
97
+ if !@exempt_amount.nil? && @exempt_amount.to_s.length > 15
98
+ invalid_properties.push('invalid value for "exempt_amount", the character length must be smaller than or equal to 15.')
93
99
  end
94
100
 
95
- if !@expiration_year.nil? && @expiration_year.to_s.length > 4
96
- invalid_properties.push('invalid value for "expiration_year", the character length must be smaller than or equal to 4.')
101
+ if !@taxable_amount.nil? && @taxable_amount.to_s.length > 15
102
+ invalid_properties.push('invalid value for "taxable_amount", the character length must be smaller than or equal to 15.')
97
103
  end
98
104
 
99
- if !@expiration_year.nil? && @expiration_year.to_s.length < 4
100
- invalid_properties.push('invalid value for "expiration_year", the character length must be great than or equal to 4.')
105
+ if !@tax_amount.nil? && @tax_amount.to_s.length > 15
106
+ invalid_properties.push('invalid value for "tax_amount", the character length must be smaller than or equal to 15.')
101
107
  end
102
108
 
103
109
  invalid_properties
@@ -106,39 +112,40 @@ module CyberSource
106
112
  # Check to see if the all the properties in the model are valid
107
113
  # @return true if the model is valid
108
114
  def valid?
109
- return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
110
- return false if !@expiration_month.nil? && @expiration_month.to_s.length < 2
111
- return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
112
- return false if !@expiration_year.nil? && @expiration_year.to_s.length < 4
115
+ return false if !@exempt_amount.nil? && @exempt_amount.to_s.length > 15
116
+ return false if !@taxable_amount.nil? && @taxable_amount.to_s.length > 15
117
+ return false if !@tax_amount.nil? && @tax_amount.to_s.length > 15
113
118
  true
114
119
  end
115
120
 
116
121
  # Custom attribute writer method with validation
117
- # @param [Object] expiration_month Value to be assigned
118
- def expiration_month=(expiration_month)
119
- if !expiration_month.nil? && expiration_month.to_s.length > 2
120
- fail ArgumentError, 'invalid value for "expiration_month", the character length must be smaller than or equal to 2.'
121
- end
122
-
123
- if !expiration_month.nil? && expiration_month.to_s.length < 2
124
- fail ArgumentError, 'invalid value for "expiration_month", the character length must be great than or equal to 2.'
122
+ # @param [Object] exempt_amount Value to be assigned
123
+ def exempt_amount=(exempt_amount)
124
+ if !exempt_amount.nil? && exempt_amount.to_s.length > 15
125
+ fail ArgumentError, 'invalid value for "exempt_amount", the character length must be smaller than or equal to 15.'
125
126
  end
126
127
 
127
- @expiration_month = expiration_month
128
+ @exempt_amount = exempt_amount
128
129
  end
129
130
 
130
131
  # Custom attribute writer method with validation
131
- # @param [Object] expiration_year Value to be assigned
132
- def expiration_year=(expiration_year)
133
- if !expiration_year.nil? && expiration_year.to_s.length > 4
134
- fail ArgumentError, 'invalid value for "expiration_year", the character length must be smaller than or equal to 4.'
132
+ # @param [Object] taxable_amount Value to be assigned
133
+ def taxable_amount=(taxable_amount)
134
+ if !taxable_amount.nil? && taxable_amount.to_s.length > 15
135
+ fail ArgumentError, 'invalid value for "taxable_amount", the character length must be smaller than or equal to 15.'
135
136
  end
136
137
 
137
- if !expiration_year.nil? && expiration_year.to_s.length < 4
138
- fail ArgumentError, 'invalid value for "expiration_year", the character length must be great than or equal to 4.'
138
+ @taxable_amount = taxable_amount
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] tax_amount Value to be assigned
143
+ def tax_amount=(tax_amount)
144
+ if !tax_amount.nil? && tax_amount.to_s.length > 15
145
+ fail ArgumentError, 'invalid value for "tax_amount", the character length must be smaller than or equal to 15.'
139
146
  end
140
147
 
141
- @expiration_year = expiration_year
148
+ @tax_amount = tax_amount
142
149
  end
143
150
 
144
151
  # Checks equality by comparing each attribute.
@@ -146,11 +153,12 @@ module CyberSource
146
153
  def ==(o)
147
154
  return true if self.equal?(o)
148
155
  self.class == o.class &&
149
- state == o.state &&
150
- expiration_month == o.expiration_month &&
151
- expiration_year == o.expiration_year &&
152
- type == o.type &&
153
- card == o.card
156
+ exempt_amount == o.exempt_amount &&
157
+ taxable_amount == o.taxable_amount &&
158
+ tax_amount == o.tax_amount &&
159
+ line_items == o.line_items &&
160
+ tax_details == o.tax_details &&
161
+ amount_details == o.amount_details
154
162
  end
155
163
 
156
164
  # @see the `==` method
@@ -162,7 +170,7 @@ module CyberSource
162
170
  # Calculates hash code according to all attributes.
163
171
  # @return [Fixnum] Hash code
164
172
  def hash
165
- [state, expiration_month, expiration_year, type, card].hash
173
+ [exempt_amount, taxable_amount, tax_amount, line_items, tax_details, amount_details].hash
166
174
  end
167
175
 
168
176
  # Builds the object from hash