cybersource_rest_client 0.0.82 → 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 (400) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +98 -42
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +85 -44
  4. data/lib/AuthenticationSDK/logging/log_configuration.rb +2 -1
  5. data/lib/AuthenticationSDK/util/AuthJWEUtility.rb +1 -0
  6. data/lib/AuthenticationSDK/util/Cache.rb +7 -4
  7. data/lib/AuthenticationSDK/util/Constants.rb +8 -0
  8. data/lib/AuthenticationSDK/util/MLEUtility.rb +9 -0
  9. data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
  10. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
  11. data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
  12. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
  13. data/lib/cybersource_rest_client/api/enrollment_api.rb +2 -2
  14. data/lib/cybersource_rest_client/api/instructions_api.rb +10 -10
  15. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
  16. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
  17. data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
  18. data/lib/cybersource_rest_client/api/offers_api.rb +117 -0
  19. data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
  20. data/lib/cybersource_rest_client/api/pull_funds_api.rb +404 -0
  21. data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
  22. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
  23. data/lib/cybersource_rest_client/api/{transient_token_data_api.rb → transient_token_data_v2_api.rb} +91 -9
  24. data/lib/cybersource_rest_client/api/unified_checkout_v1_capture_context_api.rb +104 -0
  25. data/lib/cybersource_rest_client/api_client.rb +4 -0
  26. data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
  27. data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +1 -1
  28. data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +1 -1
  29. data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +1 -1
  30. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +1 -1
  31. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +1 -1
  32. data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +1 -1
  33. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge.rb +369 -0
  34. data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge_encryption_jwk.rb +336 -0
  35. data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +7 -7
  36. data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +1 -1
  37. data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +1 -1
  38. data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +1 -1
  39. data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +1 -1
  40. data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +1 -1
  41. data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +1 -1
  42. data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +1 -1
  43. data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +1 -1
  44. data/lib/cybersource_rest_client/models/add_negative_list_request.rb +1 -1
  45. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
  46. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
  47. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
  48. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
  49. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
  50. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
  51. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
  52. data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
  53. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information.rb +15 -5
  54. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_msd.rb +196 -0
  55. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
  56. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
  57. data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
  58. data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
  59. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  60. data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
  61. data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +1 -1
  62. data/lib/cybersource_rest_client/models/generate_unified_checkout_v1_capture_context_request.rb +334 -0
  63. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +1 -1
  64. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details.rb +240 -0
  65. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +213 -0
  66. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
  67. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
  68. data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
  69. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
  70. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_cycles_completed_count.rb +191 -0
  71. data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
  72. data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
  73. data/lib/cybersource_rest_client/models/inline_response_200_5_integration_information.rb +15 -5
  74. data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +27 -6
  75. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +15 -5
  76. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_payments.rb +25 -5
  77. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +15 -5
  78. data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +25 -5
  79. data/lib/cybersource_rest_client/models/inline_response_201_9.rb +297 -0
  80. data/lib/cybersource_rest_client/models/{kmsegressv2keysasym_client_reference_information.rb → inline_response_201_9_client_reference_information.rb} +2 -3
  81. data/lib/cybersource_rest_client/models/{inline_response_200_16_error_information.rb → inline_response_201_9_error_information.rb} +1 -1
  82. data/lib/cybersource_rest_client/models/{inline_response_200_16_order_information.rb → inline_response_201_9_order_information.rb} +2 -2
  83. data/lib/cybersource_rest_client/models/{inline_response_200_16_order_information_currency_conversion.rb → inline_response_201_9_order_information_currency_conversion.rb} +2 -2
  84. data/lib/cybersource_rest_client/models/{inline_response_200_16_order_information_currency_conversion_offer.rb → inline_response_201_9_order_information_currency_conversion_offer.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/inline_response_201_9_processor_information.rb +196 -0
  86. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +236 -0
  87. data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
  88. data/lib/cybersource_rest_client/models/inline_response_400_11.rb +235 -0
  89. data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_11_details.rb} +3 -3
  90. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +281 -0
  91. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
  92. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
  93. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
  94. data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
  95. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
  96. data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
  97. data/lib/cybersource_rest_client/models/inline_response_404.rb +10 -20
  98. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +7 -42
  99. data/lib/cybersource_rest_client/models/inline_response_404_2.rb +8 -7
  100. data/lib/cybersource_rest_client/models/{inline_response_404_1_details.rb → inline_response_404_2_details.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +26 -2
  102. data/lib/cybersource_rest_client/models/inline_response_404_4.rb +17 -29
  103. data/lib/cybersource_rest_client/models/{inline_response_404_3_details.rb → inline_response_404_4_details.rb} +1 -1
  104. data/lib/cybersource_rest_client/models/inline_response_404_5.rb +28 -28
  105. data/lib/cybersource_rest_client/models/inline_response_404_6.rb +223 -0
  106. data/lib/cybersource_rest_client/models/inline_response_404_errors.rb +201 -0
  107. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  108. data/lib/cybersource_rest_client/models/{inline_response_500_4.rb → inline_response_502_2.rb} +1 -1
  109. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
  110. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
  111. data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
  112. data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
  113. data/lib/cybersource_rest_client/models/offer_request.rb +219 -0
  114. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
  115. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  116. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
  117. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +1 -1
  118. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
  119. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  120. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
  121. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → payment_instrument_list__embedded_payment_instruments.rb} +2 -2
  122. data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
  123. data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
  124. data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
  125. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
  126. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations.rb +189 -0
  127. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features.rb +189 -0
  128. data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features_gateway_agnostic.rb +189 -0
  129. data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
  130. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_info_features_portfolio_accessof_sensi_data.rb +190 -0
  131. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +205 -5
  132. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_after_pay.rb +190 -0
  133. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_apple_pay.rb +190 -0
  134. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_bancontact.rb +190 -0
  135. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_click_to_pay.rb +190 -0
  136. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_decision_manager.rb +190 -0
  137. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_dragon_pay.rb +190 -0
  138. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_e_check.rb +190 -0
  139. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_google_pay.rb +190 -0
  140. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_ideal.rb +190 -0
  141. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_konbini.rb +190 -0
  142. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_multibanco.rb +190 -0
  143. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_my_bank.rb +190 -0
  144. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_p24.rb +190 -0
  145. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_pay_pal.rb +190 -0
  146. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_payer_authentication.rb +190 -0
  147. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_tink_pay_by_bank.rb +190 -0
  148. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_token_management.rb +190 -0
  149. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_unified_click_to_pay_sdk.rb +190 -0
  150. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_venmo.rb +190 -0
  151. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
  152. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
  153. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
  154. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  155. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
  156. data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
  157. data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
  158. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +55 -5
  159. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
  160. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_account_information.rb +189 -0
  161. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
  162. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
  163. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
  164. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +1 -1
  165. data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
  166. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
  167. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +2 -2
  168. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
  169. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
  170. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
  171. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  172. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
  173. 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
  174. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
  175. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
  176. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +23 -6
  177. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
  178. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
  179. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +16 -6
  180. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +213 -0
  181. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
  182. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
  183. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
  184. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
  185. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
  186. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_avs.rb +196 -0
  187. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
  188. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
  189. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_aggregator_information.rb +317 -0
  190. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_aggregator_information_sub_merchant.rb +196 -0
  191. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
  192. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_client_reference_information.rb +247 -0
  193. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_merchant_information.rb +189 -0
  194. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_merchant_information_merchant_descriptor.rb +349 -0
  195. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information.rb +206 -0
  196. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +275 -0
  197. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_info_funding_options_initiator_origin_ini_transaction.rb +222 -0
  198. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +308 -0
  199. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_funding_options.rb +189 -0
  200. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_funding_options_initiator.rb +228 -0
  201. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_payouts_options.rb +196 -0
  202. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_recurring_options.rb +190 -0
  203. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_recipient_information.rb +607 -0
  204. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_recipient_information_personal_identification.rb +265 -0
  205. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information.rb +595 -0
  206. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_account.rb +213 -0
  207. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_consumer_authentication.rb +206 -0
  208. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_consumer_authentication_strong_authentication.rb +264 -0
  209. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information.rb +255 -0
  210. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_card.rb +291 -0
  211. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_customer.rb +196 -0
  212. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_instrument_identifier.rb +196 -0
  213. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_payment_instrument.rb +196 -0
  214. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_tokenized_card.rb +281 -0
  215. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_personal_identification.rb +274 -0
  216. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidrefund_order_information.rb +194 -0
  217. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidrefund_order_information_amount_details.rb +205 -0
  218. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidreversal_reversal_information.rb +194 -0
  219. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidreversal_reversal_information_amount_details.rb +205 -0
  220. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +15 -14
  221. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +298 -0
  222. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information.rb +219 -0
  223. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_card.rb +264 -0
  224. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_customer.rb +196 -0
  225. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_instrument_identifier.rb +196 -0
  226. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_payment_instrument.rb +196 -0
  227. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +36 -6
  228. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +1 -1
  229. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +1 -19
  230. data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
  231. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
  232. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
  233. data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
  234. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
  235. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
  236. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
  237. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
  238. data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
  239. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +52 -5
  240. data/lib/cybersource_rest_client/models/ptsv2credits_sender_information.rb +18 -1
  241. data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
  242. data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
  243. data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
  244. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
  245. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
  246. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
  247. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
  248. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
  249. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
  250. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
  251. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
  252. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
  253. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
  254. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +89 -6
  255. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
  256. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +56 -5
  257. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
  258. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
  259. data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
  260. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
  261. data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
  262. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
  263. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
  264. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
  265. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +18 -1
  266. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
  267. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
  268. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
  269. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
  270. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +22 -5
  271. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
  272. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
  273. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
  274. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +1 -1
  275. data/lib/cybersource_rest_client/models/pull_funds201_response.rb +270 -0
  276. data/lib/cybersource_rest_client/models/pull_funds201_response__links.rb +239 -0
  277. data/lib/cybersource_rest_client/models/pull_funds201_response__links_customer.rb +202 -0
  278. data/lib/cybersource_rest_client/models/pull_funds201_response__links_instrument_identifier.rb +202 -0
  279. data/lib/cybersource_rest_client/models/pull_funds201_response__links_payment_instrument.rb +202 -0
  280. data/lib/cybersource_rest_client/models/pull_funds201_response__links_refund.rb +202 -0
  281. data/lib/cybersource_rest_client/models/pull_funds201_response__links_reversal.rb +202 -0
  282. data/lib/cybersource_rest_client/models/pull_funds201_response__links_self.rb +202 -0
  283. data/lib/cybersource_rest_client/models/pull_funds201_response_error_information.rb +225 -0
  284. data/lib/cybersource_rest_client/models/pull_funds201_response_error_information_details.rb +213 -0
  285. data/lib/cybersource_rest_client/models/pull_funds201_response_order_information.rb +189 -0
  286. data/lib/cybersource_rest_client/models/pull_funds201_response_order_information_amount_details.rb +222 -0
  287. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +331 -0
  288. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information_consumer_authentication_response.rb +196 -0
  289. data/lib/cybersource_rest_client/models/pull_funds_refund201_response.rb +260 -0
  290. data/lib/cybersource_rest_client/models/pull_funds_refund201_response__links.rb +189 -0
  291. data/lib/cybersource_rest_client/models/pull_funds_refund201_response__links_self.rb +202 -0
  292. data/lib/cybersource_rest_client/models/pull_funds_refund201_response_processor_information.rb +213 -0
  293. data/lib/cybersource_rest_client/models/pull_funds_refund_request.rb +204 -0
  294. data/lib/cybersource_rest_client/models/pull_funds_request.rb +259 -0
  295. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response.rb +260 -0
  296. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response__links.rb +189 -0
  297. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response__links_self.rb +202 -0
  298. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_error_information.rb +219 -0
  299. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_error_information_details.rb +207 -0
  300. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_processor_information.rb +247 -0
  301. data/lib/cybersource_rest_client/models/pull_funds_reversal400_response.rb +258 -0
  302. data/lib/cybersource_rest_client/models/pull_funds_reversal_request.rb +204 -0
  303. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +1 -1
  304. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +55 -5
  305. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_merchant_advice.rb +213 -0
  306. data/lib/cybersource_rest_client/models/push_funds_request.rb +11 -1
  307. data/lib/cybersource_rest_client/models/rbsv1subscriptions_order_information.rb +189 -0
  308. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +15 -5
  309. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  310. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -10
  311. data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +0 -9
  312. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -1
  313. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
  314. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
  315. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +1 -1
  316. data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +1 -1
  317. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +39 -6
  318. data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
  319. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
  320. data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
  321. data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
  322. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +23 -2
  323. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
  324. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
  325. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
  326. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_bank_applications.rb +201 -0
  327. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
  328. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
  329. data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
  330. data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +1 -1
  331. data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
  332. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
  333. data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
  334. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
  335. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
  336. data/lib/cybersource_rest_client/models/ucv1sessions_appearance.rb +207 -0
  337. data/lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb +1645 -0
  338. data/lib/cybersource_rest_client/models/ucv1sessions_capture_mandate.rb +296 -0
  339. data/lib/cybersource_rest_client/models/ucv1sessions_capture_mandate_cpf.rb +190 -0
  340. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +229 -0
  341. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate_tms.rb +204 -0
  342. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +311 -0
  343. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
  344. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
  345. data/lib/cybersource_rest_client/models/ucv1sessions_data_buyer_information.rb +259 -0
  346. data/lib/cybersource_rest_client/models/ucv1sessions_data_buyer_information_personal_identification.rb +224 -0
  347. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +247 -0
  348. data/lib/cybersource_rest_client/models/ucv1sessions_data_device_information.rb +196 -0
  349. data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
  350. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_defined_information.rb +214 -0
  351. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +206 -0
  352. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +332 -0
  353. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +241 -0
  354. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +353 -0
  355. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details_tax_details.rb +213 -0
  356. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to.rb +483 -0
  357. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to_company.rb +298 -0
  358. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
  359. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
  360. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
  361. data/lib/cybersource_rest_client/models/{riskv1liststypeentries_client_reference_information.rb → ucv1sessions_data_order_information_shipping_details.rb} +24 -43
  362. data/lib/cybersource_rest_client/models/ucv1sessions_data_payment_information.rb +189 -0
  363. data/lib/cybersource_rest_client/models/ucv1sessions_data_payment_information_card.rb +196 -0
  364. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +294 -0
  365. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options.rb +233 -0
  366. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options_initiator.rb +200 -0
  367. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
  368. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
  369. data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +383 -0
  370. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
  371. data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
  372. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations.rb +210 -0
  373. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_clicktopay.rb +190 -0
  374. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_googlepay.rb +192 -0
  375. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token.rb +216 -0
  376. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_customer.rb +196 -0
  377. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_instrument_identifiers.rb +195 -0
  378. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_payment_instruments.rb +195 -0
  379. data/lib/cybersource_rest_client/models/ucv1sessions_transient_token_response_options.rb +190 -0
  380. data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
  381. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to_company.rb +20 -20
  382. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -1
  383. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to.rb +483 -0
  384. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to_company.rb +366 -0
  385. data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +1 -1
  386. data/lib/cybersource_rest_client/models/validate_request.rb +1 -1
  387. data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
  388. data/lib/cybersource_rest_client/models/{riskv1authenticationsetups_client_reference_information.rb → vasv1currencyconversion_client_reference_information.rb} +43 -26
  389. data/lib/cybersource_rest_client/models/vasv1currencyconversion_client_reference_information_partner.rb +213 -0
  390. data/lib/cybersource_rest_client/models/vasv1currencyconversion_order_information.rb +199 -0
  391. data/lib/cybersource_rest_client/models/vasv1currencyconversion_order_information_amount_details.rb +213 -0
  392. data/lib/cybersource_rest_client/models/vasv1currencyconversion_order_information_currency_conversion.rb +198 -0
  393. data/lib/cybersource_rest_client/models/vasv1currencyconversion_payment_information.rb +189 -0
  394. data/lib/cybersource_rest_client/models/vasv1currencyconversion_payment_information_card.rb +196 -0
  395. data/lib/cybersource_rest_client/models/vasv1currencyconversion_point_of_sale_information.rb +213 -0
  396. data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +1 -1
  397. data/lib/cybersource_rest_client.rb +222 -22
  398. metadata +281 -75
  399. data/lib/cybersource_rest_client/api/token_api.rb +0 -306
  400. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
@@ -239,7 +239,7 @@ module CyberSource
239
239
  post_body = @api_client.object_to_http_body(create_subscription_request)
240
240
  sdk_tracker = SdkTracker.new
241
241
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
242
- inbound_mle_status = "false"
242
+ inbound_mle_status = "optional"
243
243
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_subscription","create_subscription_with_http_info"])
244
244
  begin
245
245
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
@@ -278,6 +278,7 @@ module CyberSource
278
278
  # @option opts [String] :code Filter by Subscription Code
279
279
  # @option opts [String] :status Filter by Subscription Status
280
280
  # @option opts [String] :customer_id Filter by Customer Id
281
+ # @option opts [String] :client_reference_information_code Filter by Client Reference Information Code / Merchant Reference Number
281
282
  # @return [GetAllSubscriptionsResponse]
282
283
  #
283
284
  def get_all_subscriptions(opts = {})
@@ -293,6 +294,7 @@ module CyberSource
293
294
  # @option opts [String] :code Filter by Subscription Code
294
295
  # @option opts [String] :status Filter by Subscription Status
295
296
  # @option opts [String] :customer_id Filter by Customer Id
297
+ # @option opts [String] :client_reference_information_code Filter by Client Reference Information Code / Merchant Reference Number
296
298
  # @return [Array<(GetAllSubscriptionsResponse, Fixnum, Hash)>] GetAllSubscriptionsResponse data, response status code and response headers
297
299
  def get_all_subscriptions_with_http_info(opts = {})
298
300
 
@@ -314,6 +316,7 @@ module CyberSource
314
316
  query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
315
317
  query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
316
318
  query_params[:'customerId'] = opts[:'customer_id'] if !opts[:'customer_id'].nil?
319
+ query_params[:'clientReferenceInformationCode'] = opts[:'client_reference_information_code'] if !opts[:'client_reference_information_code'].nil?
317
320
 
318
321
  # header parameters
319
322
  header_params = {}
@@ -521,6 +524,185 @@ module CyberSource
521
524
  end
522
525
  return data, status_code, headers
523
526
  end
527
+ # Get Payments for a Subscription
528
+ # Retrieve a list of payments for a specific subscription by its ID.
529
+ #
530
+ # @param id Subscription Id
531
+ # @param [Hash] opts the optional parameters
532
+ # @option opts [Integer] :offset Page offset number.
533
+ # @option opts [Integer] :limit Number of items to be returned. Default - &#x60;20&#x60;, Max - &#x60;100&#x60;
534
+ # @option opts [Integer] :scheduled_payments_count Number of existing scheduled payments to be returned. Default - &#x60;5&#x60;, Max - &#x60;9999&#x60;
535
+ # @return [GetSubscriptionsPaymentsResponse]
536
+ #
537
+ def subscriptions_id_payments_get(id, opts = {})
538
+ data, status_code, headers = subscriptions_id_payments_get_with_http_info(id, opts)
539
+ return data, status_code, headers
540
+ end
541
+
542
+ # Get Payments for a Subscription
543
+ # Retrieve a list of payments for a specific subscription by its ID.
544
+ # @param id Subscription Id
545
+ # @param [Hash] opts the optional parameters
546
+ # @option opts [Integer] :offset Page offset number.
547
+ # @option opts [Integer] :limit Number of items to be returned. Default - &#x60;20&#x60;, Max - &#x60;100&#x60;
548
+ # @option opts [Integer] :scheduled_payments_count Number of existing scheduled payments to be returned. Default - &#x60;5&#x60;, Max - &#x60;9999&#x60;
549
+ # @return [Array<(GetSubscriptionsPaymentsResponse, Fixnum, Hash)>] GetSubscriptionsPaymentsResponse data, response status code and response headers
550
+ def subscriptions_id_payments_get_with_http_info(id, opts = {})
551
+
552
+ if @api_client.config.debugging
553
+ begin
554
+ raise
555
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.subscriptions_id_payments_get ...'
556
+ rescue
557
+ puts 'Cannot write to log'
558
+ end
559
+ end
560
+ # verify the required parameter 'id' is set
561
+ if @api_client.config.client_side_validation && id.nil?
562
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.subscriptions_id_payments_get"
563
+ end
564
+ # resource path
565
+ local_var_path = 'rbs/v1/subscriptions/{id}/payments'.sub('{' + 'id' + '}', id.to_s)
566
+
567
+ # query parameters
568
+ query_params = {}
569
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
570
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
571
+ query_params[:'scheduledPaymentsCount'] = opts[:'scheduled_payments_count'] if !opts[:'scheduled_payments_count'].nil?
572
+
573
+ # header parameters
574
+ header_params = {}
575
+ # HTTP header 'Accept' (if needed)
576
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
577
+ # HTTP header 'Content-Type'
578
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
579
+
580
+ # form parameters
581
+ form_params = {}
582
+
583
+ # http body (model)
584
+ if 'GET' == 'POST'
585
+ post_body = '{}'
586
+ else
587
+ post_body = nil
588
+ end
589
+ inbound_mle_status = "false"
590
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["subscriptions_id_payments_get","subscriptions_id_payments_get_with_http_info"])
591
+ begin
592
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
593
+ rescue
594
+ raise
595
+ end
596
+ end
597
+
598
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["subscriptions_id_payments_get","subscriptions_id_payments_get_with_http_info"])
599
+
600
+ auth_names = []
601
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
602
+ :header_params => header_params,
603
+ :query_params => query_params,
604
+ :form_params => form_params,
605
+ :body => post_body,
606
+ :auth_names => auth_names,
607
+ :return_type => 'GetSubscriptionsPaymentsResponse',
608
+ :isResponseMLEForApi => is_response_mle_for_api)
609
+ if @api_client.config.debugging
610
+ begin
611
+ raise
612
+ @api_client.config.logger.debug "API called: SubscriptionsApi#subscriptions_id_payments_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
613
+ rescue
614
+ puts 'Cannot write to log'
615
+ end
616
+ end
617
+ return data, status_code, headers
618
+ end
619
+ # Update Payments for a subscription
620
+ # Modifies the state of a subscription's payments. Currently, the only possible modifications are \"skipping\" and \"restoring\" payments. Marking a payment as \"skipped\" means it will not be processed when its scheduled time arrives. \"Restoring\" a payment removes it from the list of payments to be skipped.
621
+ #
622
+ # @param id Subscription Id
623
+ # @param update_payments Modify payments of a subscription
624
+ # @param [Hash] opts the optional parameters
625
+ # @return [GetSubscriptionsPaymentsResponse1]
626
+ #
627
+ def subscriptions_id_payments_put(id, update_payments, opts = {})
628
+ data, status_code, headers = subscriptions_id_payments_put_with_http_info(id, update_payments, opts)
629
+ return data, status_code, headers
630
+ end
631
+
632
+ # Update Payments for a subscription
633
+ # Modifies the state of a subscription&#39;s payments. Currently, the only possible modifications are \&quot;skipping\&quot; and \&quot;restoring\&quot; payments. Marking a payment as \&quot;skipped\&quot; means it will not be processed when its scheduled time arrives. \&quot;Restoring\&quot; a payment removes it from the list of payments to be skipped.
634
+ # @param id Subscription Id
635
+ # @param update_payments Modify payments of a subscription
636
+ # @param [Hash] opts the optional parameters
637
+ # @return [Array<(GetSubscriptionsPaymentsResponse1, Fixnum, Hash)>] GetSubscriptionsPaymentsResponse1 data, response status code and response headers
638
+ def subscriptions_id_payments_put_with_http_info(id, update_payments, opts = {})
639
+
640
+ if @api_client.config.debugging
641
+ begin
642
+ raise
643
+ @api_client.config.logger.debug 'Calling API: SubscriptionsApi.subscriptions_id_payments_put ...'
644
+ rescue
645
+ puts 'Cannot write to log'
646
+ end
647
+ end
648
+ # verify the required parameter 'id' is set
649
+ if @api_client.config.client_side_validation && id.nil?
650
+ fail ArgumentError, "Missing the required parameter 'id' when calling SubscriptionsApi.subscriptions_id_payments_put"
651
+ end
652
+ # verify the required parameter 'update_payments' is set
653
+ if @api_client.config.client_side_validation && update_payments.nil?
654
+ fail ArgumentError, "Missing the required parameter 'update_payments' when calling SubscriptionsApi.subscriptions_id_payments_put"
655
+ end
656
+ # resource path
657
+ local_var_path = 'rbs/v1/subscriptions/{id}/payments'.sub('{' + 'id' + '}', id.to_s)
658
+
659
+ # query parameters
660
+ query_params = {}
661
+
662
+ # header parameters
663
+ header_params = {}
664
+ # HTTP header 'Accept' (if needed)
665
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
666
+ # HTTP header 'Content-Type'
667
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
668
+
669
+ # form parameters
670
+ form_params = {}
671
+
672
+ # http body (model)
673
+ post_body = @api_client.object_to_http_body(update_payments)
674
+ sdk_tracker = SdkTracker.new
675
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdatePayments', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
676
+ inbound_mle_status = "false"
677
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["subscriptions_id_payments_put","subscriptions_id_payments_put_with_http_info"])
678
+ begin
679
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
680
+ rescue
681
+ raise
682
+ end
683
+ end
684
+
685
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["subscriptions_id_payments_put","subscriptions_id_payments_put_with_http_info"])
686
+
687
+ auth_names = []
688
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
689
+ :header_params => header_params,
690
+ :query_params => query_params,
691
+ :form_params => form_params,
692
+ :body => post_body,
693
+ :auth_names => auth_names,
694
+ :return_type => 'GetSubscriptionsPaymentsResponse1',
695
+ :isResponseMLEForApi => is_response_mle_for_api)
696
+ if @api_client.config.debugging
697
+ begin
698
+ raise
699
+ @api_client.config.logger.debug "API called: SubscriptionsApi#subscriptions_id_payments_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
700
+ rescue
701
+ puts 'Cannot write to log'
702
+ end
703
+ end
704
+ return data, status_code, headers
705
+ end
524
706
  # Suspend a Subscription
525
707
  # Suspend a Subscription
526
708
  #
@@ -159,7 +159,7 @@ module CyberSource
159
159
  else
160
160
  post_body = nil
161
161
  end
162
- inbound_mle_status = "false"
162
+ inbound_mle_status = "optional"
163
163
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_follow_on_subscription","get_follow_on_subscription_with_http_info"])
164
164
  begin
165
165
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'uri'
13
13
  require 'AuthenticationSDK/util/MLEUtility'
14
14
  module CyberSource
15
- class TransientTokenDataApi
15
+ class TransientTokenDataV2Api
16
16
  attr_accessor :api_client
17
17
 
18
18
  def initialize(api_client = ApiClient.default, config)
@@ -22,7 +22,7 @@ module CyberSource
22
22
  # Get Payment Credentials
23
23
  # Retrieve the Payment data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will return PCI payment data captured by the Unified Checkout platform.
24
24
  #
25
- # @param payment_credentials_reference The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction
25
+ # @param payment_credentials_reference The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction.
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @return [String]
28
28
  #
@@ -33,7 +33,7 @@ module CyberSource
33
33
 
34
34
  # Get Payment Credentials
35
35
  # Retrieve the Payment data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will return PCI payment data captured by the Unified Checkout platform.
36
- # @param payment_credentials_reference The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction
36
+ # @param payment_credentials_reference The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction.
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
39
39
  def get_payment_credentials_for_transient_token_with_http_info(payment_credentials_reference, opts = {})
@@ -41,14 +41,14 @@ module CyberSource
41
41
  if @api_client.config.debugging
42
42
  begin
43
43
  raise
44
- @api_client.config.logger.debug 'Calling API: TransientTokenDataApi.get_payment_credentials_for_transient_token ...'
44
+ @api_client.config.logger.debug 'Calling API: TransientTokenDataV2Api.get_payment_credentials_for_transient_token ...'
45
45
  rescue
46
46
  puts 'Cannot write to log'
47
47
  end
48
48
  end
49
49
  # verify the required parameter 'payment_credentials_reference' is set
50
50
  if @api_client.config.client_side_validation && payment_credentials_reference.nil?
51
- fail ArgumentError, "Missing the required parameter 'payment_credentials_reference' when calling TransientTokenDataApi.get_payment_credentials_for_transient_token"
51
+ fail ArgumentError, "Missing the required parameter 'payment_credentials_reference' when calling TransientTokenDataV2Api.get_payment_credentials_for_transient_token"
52
52
  end
53
53
  # resource path
54
54
  local_var_path = 'flex/v2/payment-credentials/{paymentCredentialsReference}'.sub('{' + 'paymentCredentialsReference' + '}', payment_credentials_reference.to_s)
@@ -95,7 +95,7 @@ module CyberSource
95
95
  if @api_client.config.debugging
96
96
  begin
97
97
  raise
98
- @api_client.config.logger.debug "API called: TransientTokenDataApi#get_payment_credentials_for_transient_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ @api_client.config.logger.debug "API called: TransientTokenDataV2Api#get_payment_credentials_for_transient_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
99
  rescue
100
100
  puts 'Cannot write to log'
101
101
  end
@@ -124,14 +124,14 @@ module CyberSource
124
124
  if @api_client.config.debugging
125
125
  begin
126
126
  raise
127
- @api_client.config.logger.debug 'Calling API: TransientTokenDataApi.get_transaction_for_transient_token ...'
127
+ @api_client.config.logger.debug 'Calling API: TransientTokenDataV2Api.get_transaction_for_transient_token ...'
128
128
  rescue
129
129
  puts 'Cannot write to log'
130
130
  end
131
131
  end
132
132
  # verify the required parameter 'transient_token' is set
133
133
  if @api_client.config.client_side_validation && transient_token.nil?
134
- fail ArgumentError, "Missing the required parameter 'transient_token' when calling TransientTokenDataApi.get_transaction_for_transient_token"
134
+ fail ArgumentError, "Missing the required parameter 'transient_token' when calling TransientTokenDataV2Api.get_transaction_for_transient_token"
135
135
  end
136
136
  # resource path
137
137
  local_var_path = 'up/v1/payment-details/{transientToken}'.sub('{' + 'transientToken' + '}', transient_token.to_s)
@@ -177,7 +177,89 @@ module CyberSource
177
177
  if @api_client.config.debugging
178
178
  begin
179
179
  raise
180
- @api_client.config.logger.debug "API called: TransientTokenDataApi#get_transaction_for_transient_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
180
+ @api_client.config.logger.debug "API called: TransientTokenDataV2Api#get_transaction_for_transient_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
+ rescue
182
+ puts 'Cannot write to log'
183
+ end
184
+ end
185
+ return data, status_code, headers
186
+ end
187
+ # Get Transient Token Data v2
188
+ # Retrieve data captured through Unified Checkout. This API retrieves the detailed information associated with a Transient Token by looking it up in TMS and using its ID (the jti claim from the /flex/v2/tokens JWT response). The response returns a decrypted version of the Transient Token; however, PCI-sensitive payment data (PAN) is never returned and is always masked.<br><br> Example jti value: 1D42LRF04LYTMO3I1G8JX6GO6S1PUFM2R4CQLU51267E0EOQ7X2169A99674E16E
189
+ #
190
+ # @param jti The jti within the Transient Token jwt returned by the Unified Checkout application
191
+ # @param [Hash] opts the optional parameters
192
+ # @return [nil]
193
+ #
194
+ def get_transaction_for_transient_token_jti(jti, opts = {})
195
+ data, status_code, headers = get_transaction_for_transient_token_jti_with_http_info(jti, opts)
196
+ return data, status_code, headers
197
+ end
198
+
199
+ # Get Transient Token Data v2
200
+ # Retrieve data captured through Unified Checkout. This API retrieves the detailed information associated with a Transient Token by looking it up in TMS and using its ID (the jti claim from the /flex/v2/tokens JWT response). The response returns a decrypted version of the Transient Token; however, PCI-sensitive payment data (PAN) is never returned and is always masked.&lt;br&gt;&lt;br&gt; Example jti value: 1D42LRF04LYTMO3I1G8JX6GO6S1PUFM2R4CQLU51267E0EOQ7X2169A99674E16E
201
+ # @param jti The jti within the Transient Token jwt returned by the Unified Checkout application
202
+ # @param [Hash] opts the optional parameters
203
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
204
+ def get_transaction_for_transient_token_jti_with_http_info(jti, opts = {})
205
+
206
+ if @api_client.config.debugging
207
+ begin
208
+ raise
209
+ @api_client.config.logger.debug 'Calling API: TransientTokenDataV2Api.get_transaction_for_transient_token_jti ...'
210
+ rescue
211
+ puts 'Cannot write to log'
212
+ end
213
+ end
214
+ # verify the required parameter 'jti' is set
215
+ if @api_client.config.client_side_validation && jti.nil?
216
+ fail ArgumentError, "Missing the required parameter 'jti' when calling TransientTokenDataV2Api.get_transaction_for_transient_token_jti"
217
+ end
218
+ # resource path
219
+ local_var_path = 'flex/v2/payment-details/{jti}'.sub('{' + 'jti' + '}', jti.to_s)
220
+
221
+ # query parameters
222
+ query_params = {}
223
+
224
+ # header parameters
225
+ header_params = {}
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
228
+ # HTTP header 'Content-Type'
229
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
230
+
231
+ # form parameters
232
+ form_params = {}
233
+
234
+ # http body (model)
235
+ if 'GET' == 'POST'
236
+ post_body = '{}'
237
+ else
238
+ post_body = nil
239
+ end
240
+ inbound_mle_status = "false"
241
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_for_transient_token_jti","get_transaction_for_transient_token_jti_with_http_info"])
242
+ begin
243
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
244
+ rescue
245
+ raise
246
+ end
247
+ end
248
+
249
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_transaction_for_transient_token_jti","get_transaction_for_transient_token_jti_with_http_info"])
250
+
251
+ auth_names = []
252
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
253
+ :header_params => header_params,
254
+ :query_params => query_params,
255
+ :form_params => form_params,
256
+ :body => post_body,
257
+ :auth_names => auth_names,
258
+ :isResponseMLEForApi => is_response_mle_for_api)
259
+ if @api_client.config.debugging
260
+ begin
261
+ raise
262
+ @api_client.config.logger.debug "API called: TransientTokenDataV2Api#get_transaction_for_transient_token_jti\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
181
263
  rescue
182
264
  puts 'Cannot write to log'
183
265
  end
@@ -0,0 +1,104 @@
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 UnifiedCheckoutV1CaptureContextApi
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
+ # Generate Unified Checkout V1 Capture Context
23
+ # Unified Checkout is a powerful product within the Digital Acceptance Suite. Unified Checkout is designed to assist merchants with the adoption and inclusion of digital payments within their payment acceptance page. With Unified Checkout Integration you can add digital payment methods to create familiar, convenient and seamless payment experiences that are designed to reduce checkout friction and increase conversions. Click to Pay Drop-in UI is built on the Unified Checkout platform. For more information about Unified Checkout, see the [Unified Checkout Developer Guides Page](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-intro.html). For examples on how to integrate Unified Checkout within your webpage please see our [GitHub Unified Checkout Samples](https://github.com/CyberSource/cybersource-unified-checkout-sample-java). Generate Unified Checkout V1 Capture Context Generate a one-time use capture context used for the invocation of Unified Checkout. The Request wil contain all of the parameters for how Unified Checkout will operate within a client webpage. The resulting payload will be a JWT signed object that can be used to initiate Unified Checkout or Click to Pay Drop-in UI within a web page
24
+ #
25
+ # @param generate_unified_checkout_v1_capture_context_request
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [String]
28
+ #
29
+ def generate_unified_checkout_v1_capture_context(generate_unified_checkout_v1_capture_context_request, opts = {})
30
+ data, status_code, headers = generate_unified_checkout_v1_capture_context_with_http_info(generate_unified_checkout_v1_capture_context_request, opts)
31
+ return data, status_code, headers
32
+ end
33
+
34
+ # Generate Unified Checkout V1 Capture Context
35
+ # Unified Checkout is a powerful product within the Digital Acceptance Suite. Unified Checkout is designed to assist merchants with the adoption and inclusion of digital payments within their payment acceptance page. With Unified Checkout Integration you can add digital payment methods to create familiar, convenient and seamless payment experiences that are designed to reduce checkout friction and increase conversions. Click to Pay Drop-in UI is built on the Unified Checkout platform. For more information about Unified Checkout, see the [Unified Checkout Developer Guides Page](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-intro.html). For examples on how to integrate Unified Checkout within your webpage please see our [GitHub Unified Checkout Samples](https://github.com/CyberSource/cybersource-unified-checkout-sample-java). Generate Unified Checkout V1 Capture Context Generate a one-time use capture context used for the invocation of Unified Checkout. The Request wil contain all of the parameters for how Unified Checkout will operate within a client webpage. The resulting payload will be a JWT signed object that can be used to initiate Unified Checkout or Click to Pay Drop-in UI within a web page
36
+ # @param generate_unified_checkout_v1_capture_context_request
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
39
+ def generate_unified_checkout_v1_capture_context_with_http_info(generate_unified_checkout_v1_capture_context_request, opts = {})
40
+
41
+ if @api_client.config.debugging
42
+ begin
43
+ raise
44
+ @api_client.config.logger.debug 'Calling API: UnifiedCheckoutV1CaptureContextApi.generate_unified_checkout_v1_capture_context ...'
45
+ rescue
46
+ puts 'Cannot write to log'
47
+ end
48
+ end
49
+ # verify the required parameter 'generate_unified_checkout_v1_capture_context_request' is set
50
+ if @api_client.config.client_side_validation && generate_unified_checkout_v1_capture_context_request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'generate_unified_checkout_v1_capture_context_request' when calling UnifiedCheckoutV1CaptureContextApi.generate_unified_checkout_v1_capture_context"
52
+ end
53
+ # resource path
54
+ local_var_path = 'uc/v1/sessions'
55
+
56
+ # query parameters
57
+ query_params = {}
58
+
59
+ # header parameters
60
+ header_params = {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/jwt'])
63
+ # HTTP header 'Content-Type'
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
65
+
66
+ # form parameters
67
+ form_params = {}
68
+
69
+ # http body (model)
70
+ post_body = @api_client.object_to_http_body(generate_unified_checkout_v1_capture_context_request)
71
+ sdk_tracker = SdkTracker.new
72
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateUnifiedCheckoutV1CaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
+ inbound_mle_status = "false"
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_unified_checkout_v1_capture_context","generate_unified_checkout_v1_capture_context_with_http_info"])
75
+ begin
76
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ rescue
78
+ raise
79
+ end
80
+ end
81
+
82
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["generate_unified_checkout_v1_capture_context","generate_unified_checkout_v1_capture_context_with_http_info"])
83
+
84
+ auth_names = []
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
86
+ :header_params => header_params,
87
+ :query_params => query_params,
88
+ :form_params => form_params,
89
+ :body => post_body,
90
+ :auth_names => auth_names,
91
+ :return_type => 'String',
92
+ :isResponseMLEForApi => is_response_mle_for_api)
93
+ if @api_client.config.debugging
94
+ begin
95
+ raise
96
+ @api_client.config.logger.debug "API called: UnifiedCheckoutV1CaptureContextApi#generate_unified_checkout_v1_capture_context\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
97
+ rescue
98
+ puts 'Cannot write to log'
99
+ end
100
+ end
101
+ return data, status_code, headers
102
+ end
103
+ end
104
+ end
@@ -250,6 +250,10 @@ module CyberSource
250
250
  token = "Bearer " + token
251
251
  header_params['Authorization'] = token
252
252
  end
253
+ header_params['v-c-sdk-telemetry-merchant-id'] = @merchantconfig.merchantId
254
+ if @merchantconfig.isSDK
255
+ header_params['v-c-sdk-telemetry-mcp'] = @merchantconfig.isSDK.to_s
256
+ end
253
257
  # header_params.each do |key, value|
254
258
  # log_obj.logger.info("#{key} : #{value}")
255
259
  # end
@@ -19,12 +19,15 @@ module CyberSource
19
19
 
20
20
  attr_accessor :payment_information
21
21
 
22
+ attr_accessor :token_information
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'client_reference_information' => :'clientReferenceInformation',
26
28
  :'processing_information' => :'processingInformation',
27
- :'payment_information' => :'paymentInformation'
29
+ :'payment_information' => :'paymentInformation',
30
+ :'token_information' => :'tokenInformation'
28
31
  }
29
32
  end
30
33
 
@@ -33,7 +36,8 @@ module CyberSource
33
36
  {
34
37
  :'client_reference_information' => :'client_reference_information',
35
38
  :'processing_information' => :'processing_information',
36
- :'payment_information' => :'payment_information'
39
+ :'payment_information' => :'payment_information',
40
+ :'token_information' => :'token_information'
37
41
  }
38
42
  end
39
43
 
@@ -42,7 +46,8 @@ module CyberSource
42
46
  {
43
47
  :'client_reference_information' => :'Bavsv1accountvalidationsClientReferenceInformation',
44
48
  :'processing_information' => :'Bavsv1accountvalidationsProcessingInformation',
45
- :'payment_information' => :'Bavsv1accountvalidationsPaymentInformation'
49
+ :'payment_information' => :'Bavsv1accountvalidationsPaymentInformation',
50
+ :'token_information' => :'Bavsv1accountvalidationsTokenInformation'
46
51
  }
47
52
  end
48
53
 
@@ -65,6 +70,10 @@ module CyberSource
65
70
  if attributes.has_key?(:'paymentInformation')
66
71
  self.payment_information = attributes[:'paymentInformation']
67
72
  end
73
+
74
+ if attributes.has_key?(:'tokenInformation')
75
+ self.token_information = attributes[:'tokenInformation']
76
+ end
68
77
  end
69
78
 
70
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -97,7 +106,8 @@ module CyberSource
97
106
  self.class == o.class &&
98
107
  client_reference_information == o.client_reference_information &&
99
108
  processing_information == o.processing_information &&
100
- payment_information == o.payment_information
109
+ payment_information == o.payment_information &&
110
+ token_information == o.token_information
101
111
  end
102
112
 
103
113
  # @see the `==` method
@@ -109,7 +119,7 @@ module CyberSource
109
119
  # Calculates hash code according to all attributes.
110
120
  # @return [Fixnum] Hash code
111
121
  def hash
112
- [client_reference_information, processing_information, payment_information].hash
122
+ [client_reference_information, processing_information, payment_information, token_information].hash
113
123
  end
114
124
 
115
125
  # Builds the object from hash
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Decline Threshold data.
15
+ # Decline Threshold data. Defines the maximum transaction amount the consumer is willing to authorize under this mandate.
16
16
  class Acpv1instructionsDeclineThreshold
17
17
  # Transaction Decline Threshold amount.
18
18
  attr_accessor :amount
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Mandate data.
15
+ # Mandate data. Defines the consumer's spending authorization for a purchase intent, including merchant preferences, amount limits, and product details.
16
16
  class Acpv1instructionsMandates
17
17
  # Unique identifier with in the context of a purchase-intent for the mandate. Assigned by Partner. Id shall not be reused when a mandate is updated/deleted.
18
18
  attr_accessor :mandate_id
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Frequency of the transaction. Specifies how often the transaction occurs. If the mandate contains a recurring instruction, a recurring frequency must be provided and the request.isRecurring flag should be set to true.
15
+ # Frequency of the transaction. Specifies how often the transaction occurs. If the mandate contains a recurring instruction, a recurring frequency must be provided and the request.isRecurring flag should be set to true.
16
16
  class Acpv1instructionsRecurringPaymentInformation
17
17
  # Frequency of the transaction. Possible values: - `WEEKLY` - `MONTHLY` - `YEARLY`
18
18
  attr_accessor :occurrence
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Payment/Transaction Confirmation Data provided by the payment processor/acquirer
15
+ # Payment/Transaction Confirmation Data provided by the payment processor/acquirer.
16
16
  class Acpv1instructionsinstructionIdconfirmationsProcessorInformation
17
17
  # A unique reference ID that represents the dynamic data associated with a transaction
18
18
  attr_accessor :dynamic_data_id
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Details of the PAN associated with the enrolled card
15
+ # Details of the PAN associated with the enrolled card. Contains processor verification results.
16
16
  class Acpv1instructionsinstructionIdconfirmationsProcessorInformationPaymentInstrument
17
17
  attr_accessor :verification_results
18
18
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Amount Detail data.
15
+ # Amount Detail data. Breaks down the total transaction amount into components.
16
16
  class Acpv1instructionsinstructionIdcredentialsOrderInformationAmountDetail
17
17
  # The final amount that the customer needs to pay or paid.
18
18
  attr_accessor :total_amount