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,654 @@
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 'uri'
13
+ require 'AuthenticationSDK/util/MLEUtility'
14
+ module CyberSource
15
+ class NetworkTokensApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default, config)
19
+ @api_client = api_client
20
+ @api_client.set_configuration(config)
21
+ end
22
+ # Retrieve Card Art
23
+ # Retrieves Card Art for a specific Instrument Identifier. The Card Art is a visual representation of the cardholder's payment card. Card Art is only available if a Network Token is successfully provisioned.
24
+ #
25
+ # @param instrument_identifier_id The Id of an Instrument Identifier.
26
+ # @param token_provider The token provider.
27
+ # @param asset_type The type of asset.
28
+ # @param [Hash] opts the optional parameters
29
+ # @return [InlineResponse2002]
30
+ #
31
+ def get_card_art_asset(instrument_identifier_id, token_provider, asset_type, opts = {})
32
+ data, status_code, headers = get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, asset_type, opts)
33
+ return data, status_code, headers
34
+ end
35
+
36
+ # Retrieve Card Art
37
+ # Retrieves Card Art for a specific Instrument Identifier. The Card Art is a visual representation of the cardholder's payment card. Card Art is only available if a Network Token is successfully provisioned.
38
+ # @param instrument_identifier_id The Id of an Instrument Identifier.
39
+ # @param token_provider The token provider.
40
+ # @param asset_type The type of asset.
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
43
+ def get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, asset_type, opts = {})
44
+
45
+ if @api_client.config.debugging
46
+ begin
47
+ raise
48
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.get_card_art_asset ...'
49
+ rescue
50
+ puts 'Cannot write to log'
51
+ end
52
+ end
53
+ # verify the required parameter 'instrument_identifier_id' is set
54
+ if @api_client.config.client_side_validation && instrument_identifier_id.nil?
55
+ fail ArgumentError, "Missing the required parameter 'instrument_identifier_id' when calling NetworkTokensApi.get_card_art_asset"
56
+ end
57
+ # verify the required parameter 'token_provider' is set
58
+ if @api_client.config.client_side_validation && token_provider.nil?
59
+ fail ArgumentError, "Missing the required parameter 'token_provider' when calling NetworkTokensApi.get_card_art_asset"
60
+ end
61
+ # verify enum value
62
+ if @api_client.config.client_side_validation && !['vts', 'mdes', 'amex', 'mscof'].include?(token_provider)
63
+ fail ArgumentError, "invalid value for 'token_provider', must be one of vts, mdes, amex, mscof"
64
+ end
65
+ # verify the required parameter 'asset_type' is set
66
+ if @api_client.config.client_side_validation && asset_type.nil?
67
+ fail ArgumentError, "Missing the required parameter 'asset_type' when calling NetworkTokensApi.get_card_art_asset"
68
+ end
69
+ # verify enum value
70
+ if @api_client.config.client_side_validation && !['card-art-combined', 'brand-logo', 'issuer-logo', 'icon-logo'].include?(asset_type)
71
+ fail ArgumentError, "invalid value for 'asset_type', must be one of card-art-combined, brand-logo, issuer-logo, icon-logo"
72
+ end
73
+ # resource path
74
+ local_var_path = 'tms/v2/tokens/{instrumentIdentifierId}/{tokenProvider}/assets/{assetType}'.sub('{' + 'instrumentIdentifierId' + '}', instrument_identifier_id.to_s).sub('{' + 'tokenProvider' + '}', token_provider.to_s).sub('{' + 'assetType' + '}', asset_type.to_s)
75
+
76
+ # query parameters
77
+ query_params = {}
78
+
79
+ # header parameters
80
+ header_params = {}
81
+ # HTTP header 'Accept' (if needed)
82
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
83
+ # HTTP header 'Content-Type'
84
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
85
+
86
+ # form parameters
87
+ form_params = {}
88
+
89
+ # http body (model)
90
+ if 'GET' == 'POST'
91
+ post_body = '{}'
92
+ else
93
+ post_body = nil
94
+ end
95
+ inbound_mle_status = "false"
96
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_card_art_asset","get_card_art_asset_with_http_info"])
97
+ begin
98
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
99
+ rescue
100
+ raise
101
+ end
102
+ end
103
+
104
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_card_art_asset","get_card_art_asset_with_http_info"])
105
+
106
+ auth_names = []
107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
108
+ :header_params => header_params,
109
+ :query_params => query_params,
110
+ :form_params => form_params,
111
+ :body => post_body,
112
+ :auth_names => auth_names,
113
+ :return_type => 'InlineResponse2002',
114
+ :isResponseMLEForApi => is_response_mle_for_api)
115
+ if @api_client.config.debugging
116
+ begin
117
+ raise
118
+ @api_client.config.logger.debug "API called: NetworkTokensApi#get_card_art_asset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
119
+ rescue
120
+ puts 'Cannot write to log'
121
+ end
122
+ end
123
+ return data, status_code, headers
124
+ end
125
+ # Retrieve a Tokenized Card
126
+ # |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires. This API returns the details of a tokenized card stored in TMS. You can use this API to check the status of a tokenized card and retrieve details such as the last four digits of the underlying card, expiration date, and card type.
127
+ #
128
+ # @param tokenized_card_id The Id of a tokenized card.
129
+ # @param [Hash] opts the optional parameters
130
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
131
+ # @return [InlineResponse2001]
132
+ #
133
+ def get_tokenized_card(tokenized_card_id, opts = {})
134
+ data, status_code, headers = get_tokenized_card_with_http_info(tokenized_card_id, opts)
135
+ return data, status_code, headers
136
+ end
137
+
138
+ # Retrieve a Tokenized Card
139
+ # |**Tokenized Cards**&lt;br&gt;A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires. This API returns the details of a tokenized card stored in TMS. You can use this API to check the status of a tokenized card and retrieve details such as the last four digits of the underlying card, expiration date, and card type.
140
+ # @param tokenized_card_id The Id of a tokenized card.
141
+ # @param [Hash] opts the optional parameters
142
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
143
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
144
+ def get_tokenized_card_with_http_info(tokenized_card_id, opts = {})
145
+
146
+ if @api_client.config.debugging
147
+ begin
148
+ raise
149
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.get_tokenized_card ...'
150
+ rescue
151
+ puts 'Cannot write to log'
152
+ end
153
+ end
154
+ # verify the required parameter 'tokenized_card_id' is set
155
+ if @api_client.config.client_side_validation && tokenized_card_id.nil?
156
+ fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling NetworkTokensApi.get_tokenized_card"
157
+ end
158
+ # resource path
159
+ local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
160
+
161
+ # query parameters
162
+ query_params = {}
163
+
164
+ # header parameters
165
+ header_params = {}
166
+ # HTTP header 'Accept' (if needed)
167
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
168
+ # HTTP header 'Content-Type'
169
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
170
+ header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
171
+
172
+ # form parameters
173
+ form_params = {}
174
+
175
+ # http body (model)
176
+ if 'GET' == 'POST'
177
+ post_body = '{}'
178
+ else
179
+ post_body = nil
180
+ end
181
+ inbound_mle_status = "false"
182
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_tokenized_card","get_tokenized_card_with_http_info"])
183
+ begin
184
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
185
+ rescue
186
+ raise
187
+ end
188
+ end
189
+
190
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_tokenized_card","get_tokenized_card_with_http_info"])
191
+
192
+ auth_names = []
193
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
194
+ :header_params => header_params,
195
+ :query_params => query_params,
196
+ :form_params => form_params,
197
+ :body => post_body,
198
+ :auth_names => auth_names,
199
+ :return_type => 'InlineResponse2001',
200
+ :isResponseMLEForApi => is_response_mle_for_api)
201
+ if @api_client.config.debugging
202
+ begin
203
+ raise
204
+ @api_client.config.logger.debug "API called: NetworkTokensApi#get_tokenized_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
205
+ rescue
206
+ puts 'Cannot write to log'
207
+ end
208
+ end
209
+ return data, status_code, headers
210
+ end
211
+ # Simulate Issuer Life Cycle Management Events
212
+ # **Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment.
213
+ #
214
+ # @param profile_id The Id of a profile containing user specific TMS configuration.
215
+ # @param tokenized_card_id The Id of a tokenized card.
216
+ # @param post_issuer_life_cycle_simulation_request
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [nil]
219
+ #
220
+ def post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {})
221
+ data, status_code, headers = post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts)
222
+ return data, status_code, headers
223
+ end
224
+
225
+ # Simulate Issuer Life Cycle Management Events
226
+ # **Lifecycle Management Events**&lt;br&gt;Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment.
227
+ # @param profile_id The Id of a profile containing user specific TMS configuration.
228
+ # @param tokenized_card_id The Id of a tokenized card.
229
+ # @param post_issuer_life_cycle_simulation_request
230
+ # @param [Hash] opts the optional parameters
231
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
232
+ def post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {})
233
+
234
+ if @api_client.config.debugging
235
+ begin
236
+ raise
237
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.post_issuer_life_cycle_simulation ...'
238
+ rescue
239
+ puts 'Cannot write to log'
240
+ end
241
+ end
242
+ # verify the required parameter 'profile_id' is set
243
+ if @api_client.config.client_side_validation && profile_id.nil?
244
+ fail ArgumentError, "Missing the required parameter 'profile_id' when calling NetworkTokensApi.post_issuer_life_cycle_simulation"
245
+ end
246
+ # verify the required parameter 'tokenized_card_id' is set
247
+ if @api_client.config.client_side_validation && tokenized_card_id.nil?
248
+ fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling NetworkTokensApi.post_issuer_life_cycle_simulation"
249
+ end
250
+ # verify the required parameter 'post_issuer_life_cycle_simulation_request' is set
251
+ if @api_client.config.client_side_validation && post_issuer_life_cycle_simulation_request.nil?
252
+ fail ArgumentError, "Missing the required parameter 'post_issuer_life_cycle_simulation_request' when calling NetworkTokensApi.post_issuer_life_cycle_simulation"
253
+ end
254
+ # resource path
255
+ local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
256
+
257
+ # query parameters
258
+ query_params = {}
259
+
260
+ # header parameters
261
+ header_params = {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
266
+ header_params[:'profile-id'] = profile_id
267
+
268
+ # form parameters
269
+ form_params = {}
270
+
271
+ # http body (model)
272
+ post_body = @api_client.object_to_http_body(post_issuer_life_cycle_simulation_request)
273
+ sdk_tracker = SdkTracker.new
274
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostIssuerLifeCycleSimulationRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
275
+ inbound_mle_status = "false"
276
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_issuer_life_cycle_simulation","post_issuer_life_cycle_simulation_with_http_info"])
277
+ begin
278
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
279
+ rescue
280
+ raise
281
+ end
282
+ end
283
+
284
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_issuer_life_cycle_simulation","post_issuer_life_cycle_simulation_with_http_info"])
285
+
286
+ auth_names = []
287
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
288
+ :header_params => header_params,
289
+ :query_params => query_params,
290
+ :form_params => form_params,
291
+ :body => post_body,
292
+ :auth_names => auth_names,
293
+ :isResponseMLEForApi => is_response_mle_for_api)
294
+ if @api_client.config.debugging
295
+ begin
296
+ raise
297
+ @api_client.config.logger.debug "API called: NetworkTokensApi#post_issuer_life_cycle_simulation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
298
+ rescue
299
+ puts 'Cannot write to log'
300
+ end
301
+ end
302
+ return data, status_code, headers
303
+ end
304
+ # Generate Payment Credentials v2
305
+ # **Note**: This resource will be replace by [payment credentials version 3](#/paths/~1tms~1v3~1tokens~1{tokenId}~1payment-credentials/post). The SDK will remain available for now; however, it will no longer be documented or maintain in the Developer Centre.<br> **Token**<br>A Token can represent your tokenized Customer, Payment Instrument, Instrument Identifier or Tokenized Card information.<br> **Payment Credentials**<br>Contains payment information such as the network token, generated cryptogram for Visa & MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.<br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.<br>Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
306
+ #
307
+ # @param token_id The Id of a token representing a Customer, Payment Instrument or Instrument Identifier.
308
+ # @param post_payment_credentials_request
309
+ # @param [Hash] opts the optional parameters
310
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
311
+ # @return [String]
312
+ #
313
+ def post_token_payment_credentials(token_id, post_payment_credentials_request, opts = {})
314
+ data, status_code, headers = post_token_payment_credentials_with_http_info(token_id, post_payment_credentials_request, opts)
315
+ return data, status_code, headers
316
+ end
317
+
318
+ # Generate Payment Credentials v2
319
+ # **Note**: This resource will be replace by [payment credentials version 3](#/paths/~1tms~1v3~1tokens~1{tokenId}~1payment-credentials/post). The SDK will remain available for now; however, it will no longer be documented or maintain in the Developer Centre.&lt;br&gt; **Token**&lt;br&gt;A Token can represent your tokenized Customer, Payment Instrument, Instrument Identifier or Tokenized Card information.&lt;br&gt; **Payment Credentials**&lt;br&gt;Contains payment information such as the network token, generated cryptogram for Visa &amp; MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.&lt;br&gt;Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.&lt;br&gt;Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
320
+ # @param token_id The Id of a token representing a Customer, Payment Instrument or Instrument Identifier.
321
+ # @param post_payment_credentials_request
322
+ # @param [Hash] opts the optional parameters
323
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
324
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
325
+ def post_token_payment_credentials_with_http_info(token_id, post_payment_credentials_request, opts = {})
326
+
327
+ if @api_client.config.debugging
328
+ begin
329
+ raise
330
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.post_token_payment_credentials ...'
331
+ rescue
332
+ puts 'Cannot write to log'
333
+ end
334
+ end
335
+ # verify the required parameter 'token_id' is set
336
+ if @api_client.config.client_side_validation && token_id.nil?
337
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling NetworkTokensApi.post_token_payment_credentials"
338
+ end
339
+ # verify the required parameter 'post_payment_credentials_request' is set
340
+ if @api_client.config.client_side_validation && post_payment_credentials_request.nil?
341
+ fail ArgumentError, "Missing the required parameter 'post_payment_credentials_request' when calling NetworkTokensApi.post_token_payment_credentials"
342
+ end
343
+ # resource path
344
+ local_var_path = 'tms/v2/tokens/{tokenId}/payment-credentials'.sub('{' + 'tokenId' + '}', token_id.to_s)
345
+
346
+ # query parameters
347
+ query_params = {}
348
+
349
+ # header parameters
350
+ header_params = {}
351
+ # HTTP header 'Accept' (if needed)
352
+ header_params['Accept'] = @api_client.select_header_accept(['application/jose;charset=utf-8'])
353
+ # HTTP header 'Content-Type'
354
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
355
+ header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
356
+
357
+ # form parameters
358
+ form_params = {}
359
+
360
+ # http body (model)
361
+ post_body = @api_client.object_to_http_body(post_payment_credentials_request)
362
+ sdk_tracker = SdkTracker.new
363
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostPaymentCredentialsRequest1', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
364
+ inbound_mle_status = "optional"
365
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_token_payment_credentials","post_token_payment_credentials_with_http_info"])
366
+ begin
367
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
368
+ rescue
369
+ raise
370
+ end
371
+ end
372
+
373
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_token_payment_credentials","post_token_payment_credentials_with_http_info"])
374
+
375
+ auth_names = []
376
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
377
+ :header_params => header_params,
378
+ :query_params => query_params,
379
+ :form_params => form_params,
380
+ :body => post_body,
381
+ :auth_names => auth_names,
382
+ :return_type => 'String',
383
+ :isResponseMLEForApi => is_response_mle_for_api)
384
+ if @api_client.config.debugging
385
+ begin
386
+ raise
387
+ @api_client.config.logger.debug "API called: NetworkTokensApi#post_token_payment_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
388
+ rescue
389
+ puts 'Cannot write to log'
390
+ end
391
+ end
392
+ return data, status_code, headers
393
+ end
394
+ # Generate Payment Credentials Latest Version v3
395
+ # **Payment Credentials**<br>Contains payment information such as the network token, generated TAVV cryptogram for Visa & MasterCard, dynamic CVV for Amex, or DTVV cryptogram for VISA. This latest version (v3) returns the Primary Account Number details, if the network token is not present. The response is provided in JSON Web Encryption (JWE) format. <br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.<br>Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
396
+ #
397
+ # @param token_id The Id of a token representing a Customer, Payment Instrument or Instrument Identifier.
398
+ # @param post_payment_credentials_request
399
+ # @param [Hash] opts the optional parameters
400
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
401
+ # @return [InlineResponse2011]
402
+ #
403
+ def post_token_payment_credentials_v3(token_id, post_payment_credentials_request, opts = {})
404
+ data, status_code, headers = post_token_payment_credentials_v3_with_http_info(token_id, post_payment_credentials_request, opts)
405
+ return data, status_code, headers
406
+ end
407
+
408
+ # Generate Payment Credentials Latest Version v3
409
+ # **Payment Credentials**&lt;br&gt;Contains payment information such as the network token, generated TAVV cryptogram for Visa &amp; MasterCard, dynamic CVV for Amex, or DTVV cryptogram for VISA. This latest version (v3) returns the Primary Account Number details, if the network token is not present. The response is provided in JSON Web Encryption (JWE) format. &lt;br&gt;Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.&lt;br&gt;Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
410
+ # @param token_id The Id of a token representing a Customer, Payment Instrument or Instrument Identifier.
411
+ # @param post_payment_credentials_request
412
+ # @param [Hash] opts the optional parameters
413
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
414
+ # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers
415
+ def post_token_payment_credentials_v3_with_http_info(token_id, post_payment_credentials_request, opts = {})
416
+
417
+ if @api_client.config.debugging
418
+ begin
419
+ raise
420
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.post_token_payment_credentials_v3 ...'
421
+ rescue
422
+ puts 'Cannot write to log'
423
+ end
424
+ end
425
+ # verify the required parameter 'token_id' is set
426
+ if @api_client.config.client_side_validation && token_id.nil?
427
+ fail ArgumentError, "Missing the required parameter 'token_id' when calling NetworkTokensApi.post_token_payment_credentials_v3"
428
+ end
429
+ # verify the required parameter 'post_payment_credentials_request' is set
430
+ if @api_client.config.client_side_validation && post_payment_credentials_request.nil?
431
+ fail ArgumentError, "Missing the required parameter 'post_payment_credentials_request' when calling NetworkTokensApi.post_token_payment_credentials_v3"
432
+ end
433
+ # resource path
434
+ local_var_path = 'tms/v3/tokens/{tokenId}/payment-credentials'.sub('{' + 'tokenId' + '}', token_id.to_s)
435
+
436
+ # query parameters
437
+ query_params = {}
438
+
439
+ # header parameters
440
+ header_params = {}
441
+ # HTTP header 'Accept' (if needed)
442
+ header_params['Accept'] = @api_client.select_header_accept(['application/jose;charset=utf-8'])
443
+ # HTTP header 'Content-Type'
444
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
445
+ header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
446
+
447
+ # form parameters
448
+ form_params = {}
449
+
450
+ # http body (model)
451
+ post_body = @api_client.object_to_http_body(post_payment_credentials_request)
452
+ sdk_tracker = SdkTracker.new
453
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostPaymentCredentialsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
454
+ inbound_mle_status = "optional"
455
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_token_payment_credentials_v3","post_token_payment_credentials_v3_with_http_info"])
456
+ begin
457
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
458
+ rescue
459
+ raise
460
+ end
461
+ end
462
+
463
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_token_payment_credentials_v3","post_token_payment_credentials_v3_with_http_info"])
464
+
465
+ auth_names = []
466
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
467
+ :header_params => header_params,
468
+ :query_params => query_params,
469
+ :form_params => form_params,
470
+ :body => post_body,
471
+ :auth_names => auth_names,
472
+ :return_type => 'InlineResponse2011',
473
+ :isResponseMLEForApi => is_response_mle_for_api)
474
+ if @api_client.config.debugging
475
+ begin
476
+ raise
477
+ @api_client.config.logger.debug "API called: NetworkTokensApi#post_token_payment_credentials_v3\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
478
+ rescue
479
+ puts 'Cannot write to log'
480
+ end
481
+ end
482
+ return data, status_code, headers
483
+ end
484
+ # Create a Tokenized Card
485
+ # **Tokenized cards**<br>A Tokenized card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires. This API submits a request to the card association to create a network token. If successful, a tokenized card will be created in TMS to represent the network token.
486
+ #
487
+ # @param post_tokenized_card_request
488
+ # @param [Hash] opts the optional parameters
489
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
490
+ # @return [InlineResponse2001]
491
+ #
492
+ def post_tokenized_card(post_tokenized_card_request, opts = {})
493
+ data, status_code, headers = post_tokenized_card_with_http_info(post_tokenized_card_request, opts)
494
+ return data, status_code, headers
495
+ end
496
+
497
+ # Create a Tokenized Card
498
+ # **Tokenized cards**&lt;br&gt;A Tokenized card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires. This API submits a request to the card association to create a network token. If successful, a tokenized card will be created in TMS to represent the network token.
499
+ # @param post_tokenized_card_request
500
+ # @param [Hash] opts the optional parameters
501
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
502
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
503
+ def post_tokenized_card_with_http_info(post_tokenized_card_request, opts = {})
504
+
505
+ if @api_client.config.debugging
506
+ begin
507
+ raise
508
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.post_tokenized_card ...'
509
+ rescue
510
+ puts 'Cannot write to log'
511
+ end
512
+ end
513
+ # verify the required parameter 'post_tokenized_card_request' is set
514
+ if @api_client.config.client_side_validation && post_tokenized_card_request.nil?
515
+ fail ArgumentError, "Missing the required parameter 'post_tokenized_card_request' when calling NetworkTokensApi.post_tokenized_card"
516
+ end
517
+ # resource path
518
+ local_var_path = 'tms/v2/tokenized-cards'
519
+
520
+ # query parameters
521
+ query_params = {}
522
+
523
+ # header parameters
524
+ header_params = {}
525
+ # HTTP header 'Accept' (if needed)
526
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
527
+ # HTTP header 'Content-Type'
528
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
529
+ header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
530
+
531
+ # form parameters
532
+ form_params = {}
533
+
534
+ # http body (model)
535
+ post_body = @api_client.object_to_http_body(post_tokenized_card_request)
536
+ sdk_tracker = SdkTracker.new
537
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostTokenizedCardRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
538
+ inbound_mle_status = "optional"
539
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_tokenized_card","post_tokenized_card_with_http_info"])
540
+ begin
541
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
542
+ rescue
543
+ raise
544
+ end
545
+ end
546
+
547
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_tokenized_card","post_tokenized_card_with_http_info"])
548
+
549
+ auth_names = []
550
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
551
+ :header_params => header_params,
552
+ :query_params => query_params,
553
+ :form_params => form_params,
554
+ :body => post_body,
555
+ :auth_names => auth_names,
556
+ :return_type => 'InlineResponse2001',
557
+ :isResponseMLEForApi => is_response_mle_for_api)
558
+ if @api_client.config.debugging
559
+ begin
560
+ raise
561
+ @api_client.config.logger.debug "API called: NetworkTokensApi#post_tokenized_card\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
562
+ rescue
563
+ puts 'Cannot write to log'
564
+ end
565
+ end
566
+ return data, status_code, headers
567
+ end
568
+ # Delete a Tokenized Card
569
+ # This API attempts to delete a network token from the card association with a specified reason. | If successful, the corresponding tokenized card will be deleted. | The reason for deletion can be specified to provide context for the deletion operation.
570
+ #
571
+ # @param tokenized_card_id The Id of a tokenized card.
572
+ # @param [Hash] opts the optional parameters
573
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
574
+ # @option opts [TmsTokenizedCardDeleteRequest] :post_tokenized_card_delete_request
575
+ # @return [nil]
576
+ #
577
+ def post_tokenized_card_delete(tokenized_card_id, opts = {})
578
+ data, status_code, headers = post_tokenized_card_delete_with_http_info(tokenized_card_id, opts)
579
+ return data, status_code, headers
580
+ end
581
+
582
+ # Delete a Tokenized Card
583
+ # This API attempts to delete a network token from the card association with a specified reason. | If successful, the corresponding tokenized card will be deleted. | The reason for deletion can be specified to provide context for the deletion operation.
584
+ # @param tokenized_card_id The Id of a tokenized card.
585
+ # @param [Hash] opts the optional parameters
586
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
587
+ # @option opts [TmsTokenizedCardDeleteRequest] :post_tokenized_card_delete_request
588
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
589
+ def post_tokenized_card_delete_with_http_info(tokenized_card_id, opts = {})
590
+
591
+ if @api_client.config.debugging
592
+ begin
593
+ raise
594
+ @api_client.config.logger.debug 'Calling API: NetworkTokensApi.post_tokenized_card_delete ...'
595
+ rescue
596
+ puts 'Cannot write to log'
597
+ end
598
+ end
599
+ # verify the required parameter 'tokenized_card_id' is set
600
+ if @api_client.config.client_side_validation && tokenized_card_id.nil?
601
+ fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling NetworkTokensApi.post_tokenized_card_delete"
602
+ end
603
+ # resource path
604
+ local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}/delete'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
605
+
606
+ # query parameters
607
+ query_params = {}
608
+
609
+ # header parameters
610
+ header_params = {}
611
+ # HTTP header 'Accept' (if needed)
612
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
613
+ # HTTP header 'Content-Type'
614
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
615
+ header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
616
+
617
+ # form parameters
618
+ form_params = {}
619
+
620
+ # http body (model)
621
+ post_body = @api_client.object_to_http_body(opts[:'post_tokenized_card_delete_request'])
622
+ sdk_tracker = SdkTracker.new
623
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TmsTokenizedCardDeleteRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
624
+ inbound_mle_status = "optional"
625
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_tokenized_card_delete","post_tokenized_card_delete_with_http_info"])
626
+ begin
627
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
628
+ rescue
629
+ raise
630
+ end
631
+ end
632
+
633
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["post_tokenized_card_delete","post_tokenized_card_delete_with_http_info"])
634
+
635
+ auth_names = []
636
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
637
+ :header_params => header_params,
638
+ :query_params => query_params,
639
+ :form_params => form_params,
640
+ :body => post_body,
641
+ :auth_names => auth_names,
642
+ :isResponseMLEForApi => is_response_mle_for_api)
643
+ if @api_client.config.debugging
644
+ begin
645
+ raise
646
+ @api_client.config.logger.debug "API called: NetworkTokensApi#post_tokenized_card_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
647
+ rescue
648
+ puts 'Cannot write to log'
649
+ end
650
+ end
651
+ return data, status_code, headers
652
+ end
653
+ end
654
+ end
@@ -153,7 +153,7 @@ module CyberSource
153
153
  post_body = @api_client.object_to_http_body(create_plan_request)
154
154
  sdk_tracker = SdkTracker.new
155
155
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreatePlanRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
156
- inbound_mle_status = "false"
156
+ inbound_mle_status = "optional"
157
157
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_plan","create_plan_with_http_info"])
158
158
  begin
159
159
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)