cybersource_rest_client 0.0.83 → 0.0.84

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 (222) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +46 -27
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +82 -48
  4. data/lib/AuthenticationSDK/util/Cache.rb +7 -4
  5. data/lib/AuthenticationSDK/util/Constants.rb +6 -0
  6. data/lib/AuthenticationSDK/util/MLEUtility.rb +9 -0
  7. data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
  8. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
  9. data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
  10. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
  11. data/lib/cybersource_rest_client/api/enrollment_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/instructions_api.rb +10 -10
  13. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
  15. data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
  16. data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
  17. data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
  18. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
  19. data/lib/cybersource_rest_client/api_client.rb +4 -0
  20. data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
  21. data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +1 -1
  22. data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +1 -1
  23. data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +1 -1
  24. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +1 -1
  25. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +1 -1
  26. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +1 -1
  27. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge.rb +369 -0
  28. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge_encryption_jwk.rb +336 -0
  29. data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +7 -7
  30. data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +1 -1
  31. data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +1 -1
  32. data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +1 -1
  33. data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +1 -1
  34. data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +1 -1
  35. data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +1 -1
  36. data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +1 -1
  37. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +1 -1
  38. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
  39. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
  40. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
  41. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
  42. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
  43. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
  44. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
  45. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
  46. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
  47. data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
  48. data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
  49. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +22 -5
  50. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
  51. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
  52. data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
  54. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_cycles_completed_count.rb +191 -0
  55. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
  56. data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +26 -5
  57. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +15 -5
  58. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_payments.rb +25 -5
  59. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +15 -5
  60. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +25 -5
  61. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +30 -75
  62. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
  63. data/lib/cybersource_rest_client/models/inline_response_400_11.rb +235 -0
  64. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_11_details.rb} +3 -3
  65. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +281 -0
  66. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
  67. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
  68. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
  69. data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
  70. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
  71. data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
  72. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  74. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
  75. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
  76. data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
  77. data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
  78. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
  79. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  80. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
  81. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
  82. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  83. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
  84. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → payment_instrument_list__embedded_payment_instruments.rb} +2 -2
  85. data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
  86. data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
  87. data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
  88. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
  89. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations.rb +189 -0
  90. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features.rb +189 -0
  91. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features_gateway_agnostic.rb +189 -0
  92. data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
  93. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
  94. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
  95. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
  96. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  97. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
  98. data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
  100. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +41 -1
  101. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
  102. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_account_information.rb +189 -0
  103. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
  104. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
  105. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
  106. data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
  107. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
  108. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
  109. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
  110. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
  111. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
  112. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
  113. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_payment_information_tokenized_card.rb → pts_v2_payments_post201_response_payment_account_information_tokenized_card.rb} +1 -1
  114. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
  115. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
  116. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +23 -6
  117. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
  118. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
  119. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
  120. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +1 -1
  121. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
  122. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
  123. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
  124. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
  125. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
  126. data/lib/cybersource_rest_client/models/{pull_funds201_response_processor_information_avs.rb → pts_v2_payouts_post201_response_processor_information_avs.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
  128. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
  129. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
  130. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +1 -1
  131. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +18 -5
  132. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +19 -6
  133. data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
  134. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
  135. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
  136. data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
  137. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
  138. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
  139. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
  140. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
  141. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
  142. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
  143. data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
  144. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
  145. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
  146. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
  147. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
  148. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
  149. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
  150. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
  151. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
  152. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
  153. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
  154. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
  155. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
  156. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +72 -6
  157. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
  158. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +56 -5
  159. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
  160. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
  161. data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
  162. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
  163. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
  166. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
  167. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +18 -1
  168. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
  169. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
  170. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
  171. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
  172. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
  173. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
  174. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
  175. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +36 -6
  176. data/lib/cybersource_rest_client/models/pull_funds_request.rb +11 -1
  177. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +45 -5
  178. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  179. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
  180. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
  181. data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
  182. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
  183. data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
  184. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
  185. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +22 -1
  186. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
  187. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
  188. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
  189. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_bank_applications.rb +201 -0
  190. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
  191. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
  192. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
  193. data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
  194. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
  195. data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
  196. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
  197. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
  198. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +44 -14
  199. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
  200. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
  201. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +22 -5
  202. data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
  203. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +22 -5
  204. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +18 -1
  205. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +16 -6
  206. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +86 -12
  207. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
  208. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
  209. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
  210. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_shipping_details.rb +213 -0
  211. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +38 -1
  212. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
  213. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
  214. data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +107 -53
  215. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
  216. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
  217. data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
  218. data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
  219. data/lib/cybersource_rest_client.rb +71 -12
  220. metadata +78 -19
  221. data/lib/cybersource_rest_client/api/token_api.rb +0 -306
  222. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
@@ -0,0 +1,338 @@
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.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ # MPP payment credentials response. The 'token' field Contains the RSA-OAEP encrypted network token ciphertext. All other fields are display-only metadata.
16
+ class MppCredentialsResponse200
17
+ # Base64-encoded RSA-OAEP encrypted token ciphertext. Must not be parsed by client/server — forwarded opaquely to the Server Enabler.
18
+ attr_accessor :token
19
+
20
+ # Card network. Possible values: - `visa` - `mastercard` - `amex` - `discover`
21
+ attr_accessor :network
22
+
23
+ # Last four digits of the card number as displayed to cardholder.
24
+ attr_accessor :last_four
25
+
26
+ # Token expiration month (e.g., '06'). Display only.
27
+ attr_accessor :expiration_month
28
+
29
+ # Token expiration year, four digits (e.g., '2028'). Display only.
30
+ attr_accessor :expiration_year
31
+
32
+ # Base64-encoded cryptogram from TSP. Present only for network_token type. Display only.
33
+ attr_accessor :dynamic_data
34
+
35
+ # Electronic Commerce Indicator (e.g., '05', '07'). Present only for network_token type. Display only.
36
+ attr_accessor :eci
37
+
38
+ # Payment Account Reference — a stable reference to the underlying funding account.
39
+ attr_accessor :payment_account_reference
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'token' => :'token',
45
+ :'network' => :'network',
46
+ :'last_four' => :'lastFour',
47
+ :'expiration_month' => :'expirationMonth',
48
+ :'expiration_year' => :'expirationYear',
49
+ :'dynamic_data' => :'dynamicData',
50
+ :'eci' => :'eci',
51
+ :'payment_account_reference' => :'paymentAccountReference'
52
+ }
53
+ end
54
+
55
+ # Attribute mapping from JSON key to ruby-style variable name.
56
+ def self.json_map
57
+ {
58
+ :'token' => :'token',
59
+ :'network' => :'network',
60
+ :'last_four' => :'last_four',
61
+ :'expiration_month' => :'expiration_month',
62
+ :'expiration_year' => :'expiration_year',
63
+ :'dynamic_data' => :'dynamic_data',
64
+ :'eci' => :'eci',
65
+ :'payment_account_reference' => :'payment_account_reference'
66
+ }
67
+ end
68
+
69
+ # Attribute type mapping.
70
+ def self.swagger_types
71
+ {
72
+ :'token' => :'String',
73
+ :'network' => :'String',
74
+ :'last_four' => :'String',
75
+ :'expiration_month' => :'String',
76
+ :'expiration_year' => :'String',
77
+ :'dynamic_data' => :'String',
78
+ :'eci' => :'String',
79
+ :'payment_account_reference' => :'String'
80
+ }
81
+ end
82
+
83
+ # Initializes the object
84
+ # @param [Hash] attributes Model attributes in the form of hash
85
+ def initialize(attributes = {})
86
+ return unless attributes.is_a?(Hash)
87
+
88
+ # convert string to symbol for hash key
89
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
90
+
91
+ if attributes.has_key?(:'token')
92
+ self.token = attributes[:'token']
93
+ end
94
+
95
+ if attributes.has_key?(:'network')
96
+ self.network = attributes[:'network']
97
+ end
98
+
99
+ if attributes.has_key?(:'lastFour')
100
+ self.last_four = attributes[:'lastFour']
101
+ end
102
+
103
+ if attributes.has_key?(:'expirationMonth')
104
+ self.expiration_month = attributes[:'expirationMonth']
105
+ end
106
+
107
+ if attributes.has_key?(:'expirationYear')
108
+ self.expiration_year = attributes[:'expirationYear']
109
+ end
110
+
111
+ if attributes.has_key?(:'dynamicData')
112
+ self.dynamic_data = attributes[:'dynamicData']
113
+ end
114
+
115
+ if attributes.has_key?(:'eci')
116
+ self.eci = attributes[:'eci']
117
+ end
118
+
119
+ if attributes.has_key?(:'paymentAccountReference')
120
+ self.payment_account_reference = attributes[:'paymentAccountReference']
121
+ end
122
+ end
123
+
124
+ # Show invalid properties with the reasons. Usually used together with valid?
125
+ # @return Array for valid properties with the reasons
126
+ def list_invalid_properties
127
+ invalid_properties = Array.new
128
+ if @token.nil?
129
+ invalid_properties.push('invalid value for "token", token cannot be nil.')
130
+ end
131
+
132
+ if @network.nil?
133
+ invalid_properties.push('invalid value for "network", network cannot be nil.')
134
+ end
135
+
136
+ if @last_four.nil?
137
+ invalid_properties.push('invalid value for "last_four", last_four cannot be nil.')
138
+ end
139
+
140
+ if @expiration_month.nil?
141
+ invalid_properties.push('invalid value for "expiration_month", expiration_month cannot be nil.')
142
+ end
143
+
144
+ if @expiration_year.nil?
145
+ invalid_properties.push('invalid value for "expiration_year", expiration_year cannot be nil.')
146
+ end
147
+
148
+ if @dynamic_data.nil?
149
+ invalid_properties.push('invalid value for "dynamic_data", dynamic_data cannot be nil.')
150
+ end
151
+
152
+ if @eci.nil?
153
+ invalid_properties.push('invalid value for "eci", eci cannot be nil.')
154
+ end
155
+
156
+ if @payment_account_reference.nil?
157
+ invalid_properties.push('invalid value for "payment_account_reference", payment_account_reference cannot be nil.')
158
+ end
159
+
160
+ invalid_properties
161
+ end
162
+
163
+ # Check to see if the all the properties in the model are valid
164
+ # @return true if the model is valid
165
+ def valid?
166
+ return false if @token.nil?
167
+ return false if @network.nil?
168
+ return false if @last_four.nil?
169
+ return false if @expiration_month.nil?
170
+ return false if @expiration_year.nil?
171
+ return false if @dynamic_data.nil?
172
+ return false if @eci.nil?
173
+ return false if @payment_account_reference.nil?
174
+ true
175
+ end
176
+
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] last_four Value to be assigned
179
+ def last_four=(last_four)
180
+ #if last_four.nil?
181
+ #fail ArgumentError, 'last_four cannot be nil'
182
+ #end
183
+
184
+ @last_four = last_four
185
+ end
186
+
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] expiration_month Value to be assigned
189
+ def expiration_month=(expiration_month)
190
+ #if expiration_month.nil?
191
+ #fail ArgumentError, 'expiration_month cannot be nil'
192
+ #end
193
+
194
+ @expiration_month = expiration_month
195
+ end
196
+
197
+ # Custom attribute writer method with validation
198
+ # @param [Object] expiration_year Value to be assigned
199
+ def expiration_year=(expiration_year)
200
+ #if expiration_year.nil?
201
+ #fail ArgumentError, 'expiration_year cannot be nil'
202
+ #end
203
+
204
+ @expiration_year = expiration_year
205
+ end
206
+
207
+ # Checks equality by comparing each attribute.
208
+ # @param [Object] Object to be compared
209
+ def ==(o)
210
+ return true if self.equal?(o)
211
+ self.class == o.class &&
212
+ token == o.token &&
213
+ network == o.network &&
214
+ last_four == o.last_four &&
215
+ expiration_month == o.expiration_month &&
216
+ expiration_year == o.expiration_year &&
217
+ dynamic_data == o.dynamic_data &&
218
+ eci == o.eci &&
219
+ payment_account_reference == o.payment_account_reference
220
+ end
221
+
222
+ # @see the `==` method
223
+ # @param [Object] Object to be compared
224
+ def eql?(o)
225
+ self == o
226
+ end
227
+
228
+ # Calculates hash code according to all attributes.
229
+ # @return [Fixnum] Hash code
230
+ def hash
231
+ [token, network, last_four, expiration_month, expiration_year, dynamic_data, eci, payment_account_reference].hash
232
+ end
233
+
234
+ # Builds the object from hash
235
+ # @param [Hash] attributes Model attributes in the form of hash
236
+ # @return [Object] Returns the model itself
237
+ def build_from_hash(attributes)
238
+ return nil unless attributes.is_a?(Hash)
239
+ self.class.swagger_types.each_pair do |key, type|
240
+ if type =~ /\AArray<(.*)>/i
241
+ # check to ensure the input is an array given that the the attribute
242
+ # is documented as an array but the input is not
243
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
244
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
245
+ end
246
+ elsif !attributes[self.class.attribute_map[key]].nil?
247
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
248
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
249
+ end
250
+
251
+ self
252
+ end
253
+
254
+ # Deserializes the data based on type
255
+ # @param string type Data type
256
+ # @param string value Value to be deserialized
257
+ # @return [Object] Deserialized data
258
+ def _deserialize(type, value)
259
+ case type.to_sym
260
+ when :DateTime
261
+ DateTime.parse(value)
262
+ when :Date
263
+ Date.parse(value)
264
+ when :String
265
+ value.to_s
266
+ when :Integer
267
+ value.to_i
268
+ when :Float
269
+ value.to_f
270
+ when :BOOLEAN
271
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
272
+ true
273
+ else
274
+ false
275
+ end
276
+ when :Object
277
+ # generic object (usually a Hash), return directly
278
+ value
279
+ when /\AArray<(?<inner_type>.+)>\z/
280
+ inner_type = Regexp.last_match[:inner_type]
281
+ value.map { |v| _deserialize(inner_type, v) }
282
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
283
+ k_type = Regexp.last_match[:k_type]
284
+ v_type = Regexp.last_match[:v_type]
285
+ {}.tap do |hash|
286
+ value.each do |k, v|
287
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
288
+ end
289
+ end
290
+ else # model
291
+ temp_model = CyberSource.const_get(type).new
292
+ temp_model.build_from_hash(value)
293
+ end
294
+ end
295
+
296
+ # Returns the string representation of the object
297
+ # @return [String] String presentation of the object
298
+ def to_s
299
+ to_hash.to_s
300
+ end
301
+
302
+ # to_body is an alias to to_hash (backward compatibility)
303
+ # @return [Hash] Returns the object in the form of hash
304
+ def to_body
305
+ to_hash
306
+ end
307
+
308
+ # Returns the object in the form of hash
309
+ # @return [Hash] Returns the object in the form of hash
310
+ def to_hash
311
+ hash = {}
312
+ self.class.attribute_map.each_pair do |attr, param|
313
+ value = self.send(attr)
314
+ next if value.nil?
315
+ hash[param] = _to_hash(value)
316
+ end
317
+ hash
318
+ end
319
+
320
+ # Outputs non-array value in the form of hash
321
+ # For object, use to_hash. Otherwise, just return the value
322
+ # @param [Object] value Any valid value
323
+ # @return [Hash] Returns the value in the form of hash
324
+ def _to_hash(value)
325
+ if value.is_a?(Array)
326
+ value.compact.map { |v| _to_hash(v) }
327
+ elsif value.is_a?(Hash)
328
+ {}.tap do |hash|
329
+ value.each { |k, v| hash[k] = _to_hash(v) }
330
+ end
331
+ elsif value.respond_to? :to_hash
332
+ value.to_hash
333
+ else
334
+ value
335
+ end
336
+ end
337
+ end
338
+ end
@@ -107,7 +107,7 @@ module CyberSource
107
107
  :'merchant_information' => :'TmsMerchantInformation',
108
108
  :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier',
109
109
  :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata',
110
- :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded'
110
+ :'_embedded' => :'Tmsv1paymentinstrumentsEmbedded'
111
111
  }
112
112
  end
113
113
 
@@ -79,7 +79,7 @@ module CyberSource
79
79
  :'default_payment_instrument' => :'Tmsv2tokenizeTokenInformationCustomerDefaultPaymentInstrument',
80
80
  :'default_shipping_address' => :'Tmsv2tokenizeTokenInformationCustomerDefaultShippingAddress',
81
81
  :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerMetadata',
82
- :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbedded'
82
+ :'_embedded' => :'Tmsv2customersEmbedded'
83
83
  }
84
84
  end
85
85
 
@@ -107,7 +107,7 @@ module CyberSource
107
107
  :'merchant_information' => :'TmsMerchantInformation',
108
108
  :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier',
109
109
  :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata',
110
- :'_embedded' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentEmbedded'
110
+ :'_embedded' => :'Tmsv1paymentinstrumentsEmbedded'
111
111
  }
112
112
  end
113
113
 
@@ -33,7 +33,7 @@ module CyberSource
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'payment_instruments' => :'Array<PaymentInstrumentList1EmbeddedPaymentInstruments>'
36
+ :'payment_instruments' => :'Array<PatchPaymentInstrumentRequest>'
37
37
  }
38
38
  end
39
39
 
@@ -33,7 +33,7 @@ module CyberSource
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'payment_instruments' => :'Array<Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrument>'
36
+ :'payment_instruments' => :'Array<PaymentInstrumentListEmbeddedPaymentInstruments>'
37
37
  }
38
38
  end
39
39
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # Additional resources for the Payment Instrument.
16
- class PaymentInstrumentList1EmbeddedEmbedded
16
+ class PaymentInstrumentListEmbeddedEmbedded
17
17
  attr_accessor :instrument_identifier
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class PaymentInstrumentList1EmbeddedPaymentInstruments
15
+ class PaymentInstrumentListEmbeddedPaymentInstruments
16
16
  attr_accessor :_links
17
17
 
18
18
  # The Id of the Payment Instrument Token.
@@ -107,7 +107,7 @@ module CyberSource
107
107
  :'merchant_information' => :'TmsMerchantInformation',
108
108
  :'instrument_identifier' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentInstrumentIdentifier',
109
109
  :'metadata' => :'Tmsv2tokenizeTokenInformationCustomerEmbeddedDefaultPaymentInstrumentMetadata',
110
- :'_embedded' => :'PaymentInstrumentList1EmbeddedEmbedded'
110
+ :'_embedded' => :'PaymentInstrumentListEmbeddedEmbedded'
111
111
  }
112
112
  end
113
113
 
@@ -55,6 +55,10 @@ module CyberSource
55
55
 
56
56
  attr_accessor :batch_upload
57
57
 
58
+ attr_accessor :transact_guard
59
+
60
+ attr_accessor :microform
61
+
58
62
  # Attribute mapping from ruby-style variable name to JSON key.
59
63
  def self.attribute_map
60
64
  {
@@ -78,7 +82,9 @@ module CyberSource
78
82
  :'unified_checkout' => :'unifiedCheckout',
79
83
  :'receivables_manager' => :'receivablesManager',
80
84
  :'service_fee' => :'serviceFee',
81
- :'batch_upload' => :'batchUpload'
85
+ :'batch_upload' => :'batchUpload',
86
+ :'transact_guard' => :'transactGuard',
87
+ :'microform' => :'microform'
82
88
  }
83
89
  end
84
90
 
@@ -105,7 +111,9 @@ module CyberSource
105
111
  :'unified_checkout' => :'unified_checkout',
106
112
  :'receivables_manager' => :'receivables_manager',
107
113
  :'service_fee' => :'service_fee',
108
- :'batch_upload' => :'batch_upload'
114
+ :'batch_upload' => :'batch_upload',
115
+ :'transact_guard' => :'transact_guard',
116
+ :'microform' => :'microform'
109
117
  }
110
118
  end
111
119
 
@@ -132,7 +140,9 @@ module CyberSource
132
140
  :'unified_checkout' => :'PaymentsProductsUnifiedCheckout',
133
141
  :'receivables_manager' => :'PaymentsProductsTax',
134
142
  :'service_fee' => :'PaymentsProductsServiceFee',
135
- :'batch_upload' => :'PaymentsProductsTax'
143
+ :'batch_upload' => :'PaymentsProductsTax',
144
+ :'transact_guard' => :'PaymentsProductsTax',
145
+ :'microform' => :'PaymentsProductsMicroform'
136
146
  }
137
147
  end
138
148
 
@@ -227,6 +237,14 @@ module CyberSource
227
237
  if attributes.has_key?(:'batchUpload')
228
238
  self.batch_upload = attributes[:'batchUpload']
229
239
  end
240
+
241
+ if attributes.has_key?(:'transactGuard')
242
+ self.transact_guard = attributes[:'transactGuard']
243
+ end
244
+
245
+ if attributes.has_key?(:'microform')
246
+ self.microform = attributes[:'microform']
247
+ end
230
248
  end
231
249
 
232
250
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -267,7 +285,9 @@ module CyberSource
267
285
  unified_checkout == o.unified_checkout &&
268
286
  receivables_manager == o.receivables_manager &&
269
287
  service_fee == o.service_fee &&
270
- batch_upload == o.batch_upload
288
+ batch_upload == o.batch_upload &&
289
+ transact_guard == o.transact_guard &&
290
+ microform == o.microform
271
291
  end
272
292
 
273
293
  # @see the `==` method
@@ -279,7 +299,7 @@ module CyberSource
279
299
  # Calculates hash code according to all attributes.
280
300
  # @return [Fixnum] Hash code
281
301
  def hash
282
- [card_processing, alternative_payment_methods, card_present_connect, cybs_ready_terminal, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, payment_orchestration, payouts, differential_fee, pay_by_link, unified_checkout, receivables_manager, service_fee, batch_upload].hash
302
+ [card_processing, alternative_payment_methods, card_present_connect, cybs_ready_terminal, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, payment_orchestration, payouts, differential_fee, pay_by_link, unified_checkout, receivables_manager, service_fee, batch_upload, transact_guard, microform].hash
283
303
  end
284
304
 
285
305
  # Builds the object from hash
@@ -13,14 +13,19 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class PaymentsProductsCurrencyConversionConfigurationInformationConfigurationsProcessors
16
- # The merchant identifier for the Currency Conversion service. Check with your Currency Conversion Provider for details.
16
+ # The name of the provider.
17
+ attr_accessor :provider
18
+
19
+ # A unique identifier value assigned to each merchant. Assigned by the provider.
17
20
  attr_accessor :merchant_id
18
21
 
22
+ # This code identifies the financial institution acting as the acquirer.
19
23
  attr_accessor :acquirer_id
20
24
 
21
25
  # Attribute mapping from ruby-style variable name to JSON key.
22
26
  def self.attribute_map
23
27
  {
28
+ :'provider' => :'provider',
24
29
  :'merchant_id' => :'merchantId',
25
30
  :'acquirer_id' => :'acquirerId'
26
31
  }
@@ -29,6 +34,7 @@ module CyberSource
29
34
  # Attribute mapping from JSON key to ruby-style variable name.
30
35
  def self.json_map
31
36
  {
37
+ :'provider' => :'provider',
32
38
  :'merchant_id' => :'merchant_id',
33
39
  :'acquirer_id' => :'acquirer_id'
34
40
  }
@@ -37,6 +43,7 @@ module CyberSource
37
43
  # Attribute type mapping.
38
44
  def self.swagger_types
39
45
  {
46
+ :'provider' => :'String',
40
47
  :'merchant_id' => :'String',
41
48
  :'acquirer_id' => :'String'
42
49
  }
@@ -50,6 +57,10 @@ module CyberSource
50
57
  # convert string to symbol for hash key
51
58
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
59
 
60
+ if attributes.has_key?(:'provider')
61
+ self.provider = attributes[:'provider']
62
+ end
63
+
53
64
  if attributes.has_key?(:'merchantId')
54
65
  self.merchant_id = attributes[:'merchantId']
55
66
  end
@@ -77,6 +88,7 @@ module CyberSource
77
88
  def ==(o)
78
89
  return true if self.equal?(o)
79
90
  self.class == o.class &&
91
+ provider == o.provider &&
80
92
  merchant_id == o.merchant_id &&
81
93
  acquirer_id == o.acquirer_id
82
94
  end
@@ -90,7 +102,7 @@ module CyberSource
90
102
  # Calculates hash code according to all attributes.
91
103
  # @return [Fixnum] Hash code
92
104
  def hash
93
- [merchant_id, acquirer_id].hash
105
+ [provider, merchant_id, acquirer_id].hash
94
106
  end
95
107
 
96
108
  # Builds the object from hash