cybersource_rest_client 0.0.79 → 0.0.80

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 (214) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +1 -0
  3. data/lib/AuthenticationSDK/util/Cache.rb +14 -0
  4. data/lib/AuthenticationSDK/util/Constants.rb +2 -0
  5. data/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb +81 -0
  6. data/lib/AuthenticationSDK/util/JWT/JWTUtility.rb +154 -0
  7. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +8 -4
  8. data/lib/cybersource_rest_client/api/batches_api.rb +29 -13
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +15 -3
  10. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -1
  11. data/lib/cybersource_rest_client/api/capture_api.rb +5 -1
  12. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +5 -1
  13. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +5 -1
  14. data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
  15. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +18 -6
  16. data/lib/cybersource_rest_client/api/credit_api.rb +5 -1
  17. data/lib/cybersource_rest_client/api/customer_api.rb +22 -6
  18. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +27 -7
  19. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +27 -7
  20. data/lib/cybersource_rest_client/api/decision_manager_api.rb +28 -8
  21. data/lib/cybersource_rest_client/api/device_de_association_api.rb +13 -5
  22. data/lib/cybersource_rest_client/api/device_search_api.rb +16 -8
  23. data/lib/cybersource_rest_client/api/download_dtd_api.rb +5 -1
  24. data/lib/cybersource_rest_client/api/download_xsd_api.rb +5 -1
  25. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +10 -2
  26. data/lib/cybersource_rest_client/api/flex_api_api.rb +5 -1
  27. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +33 -9
  28. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +5 -1
  29. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +10 -2
  30. data/lib/cybersource_rest_client/api/invoices_api.rb +35 -7
  31. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +41 -13
  32. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +13 -5
  33. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +29 -13
  34. data/lib/cybersource_rest_client/api/microform_integration_api.rb +5 -1
  35. data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
  36. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
  37. data/lib/cybersource_rest_client/api/offers_api.rb +13 -5
  38. data/lib/cybersource_rest_client/api/orders_api.rb +10 -2
  39. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +15 -3
  40. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +5 -1
  41. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +22 -6
  42. data/lib/cybersource_rest_client/api/payment_links_api.rb +20 -4
  43. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +5 -1
  44. data/lib/cybersource_rest_client/api/payments_api.rb +30 -6
  45. data/lib/cybersource_rest_client/api/payouts_api.rb +5 -1
  46. data/lib/cybersource_rest_client/api/plans_api.rb +40 -8
  47. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
  48. data/lib/cybersource_rest_client/api/push_funds_api.rb +5 -1
  49. data/lib/cybersource_rest_client/api/refund_api.rb +10 -2
  50. data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
  51. data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
  52. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +25 -5
  53. data/lib/cybersource_rest_client/api/reports_api.rb +15 -3
  54. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +5 -1
  55. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +5 -1
  56. data/lib/cybersource_rest_client/api/reversal_api.rb +10 -2
  57. data/lib/cybersource_rest_client/api/search_transactions_api.rb +10 -2
  58. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +10 -2
  59. data/lib/cybersource_rest_client/api/subscriptions_api.rb +49 -17
  60. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +10 -2
  61. data/lib/cybersource_rest_client/api/taxes_api.rb +10 -2
  62. data/lib/cybersource_rest_client/api/token_api.rb +14 -6
  63. data/lib/cybersource_rest_client/api/tokenize_api.rb +103 -0
  64. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +105 -4
  65. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +20 -4
  66. data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
  67. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +10 -2
  68. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +5 -1
  69. data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
  70. data/lib/cybersource_rest_client/api/user_management_search_api.rb +5 -1
  71. data/lib/cybersource_rest_client/api/verification_api.rb +10 -2
  72. data/lib/cybersource_rest_client/api/void_api.rb +25 -5
  73. data/lib/cybersource_rest_client/models/create_plan_request.rb +1 -11
  74. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  75. data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
  76. data/lib/cybersource_rest_client/models/create_subscription_response.rb +15 -5
  77. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +13 -2
  78. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb +196 -0
  79. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb +11 -1
  80. data/lib/cybersource_rest_client/models/get_subscription_response.rb +11 -1
  81. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +1 -1
  82. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +1 -1
  83. data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +1 -1
  84. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +22 -22
  85. data/lib/cybersource_rest_client/models/inline_response_200.rb +9 -44
  86. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +29 -31
  87. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +33 -37
  88. data/lib/cybersource_rest_client/models/{inline_response_200_9_devices.rb → inline_response_200_10_devices.rb} +2 -2
  89. data/lib/cybersource_rest_client/models/{inline_response_200_9_payment_processor_to_terminal_map.rb → inline_response_200_10_payment_processor_to_terminal_map.rb} +1 -1
  90. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +47 -86
  91. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded.rb → inline_response_200_11__embedded.rb} +2 -2
  92. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links.rb → inline_response_200_11__embedded__links.rb} +2 -2
  93. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links_reports.rb → inline_response_200_11__embedded__links_reports.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_batches.rb → inline_response_200_11__embedded_batches.rb} +3 -3
  95. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_totals.rb → inline_response_200_11__embedded_totals.rb} +1 -1
  96. data/lib/cybersource_rest_client/models/inline_response_200_11__links.rb +16 -17
  97. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +47 -49
  98. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +201 -0
  99. data/lib/cybersource_rest_client/models/{inline_response_200_11__links_report.rb → inline_response_200_12__links_report.rb} +1 -1
  100. data/lib/cybersource_rest_client/models/{inline_response_200_11_billing.rb → inline_response_200_12_billing.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +102 -31
  102. data/lib/cybersource_rest_client/models/{inline_response_200_12_records.rb → inline_response_200_13_records.rb} +3 -3
  103. data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record.rb → inline_response_200_13_response_record.rb} +2 -2
  104. data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record_additional_updates.rb → inline_response_200_13_response_record_additional_updates.rb} +1 -1
  105. data/lib/cybersource_rest_client/models/{inline_response_200_12_source_record.rb → inline_response_200_13_source_record.rb} +1 -1
  106. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +18 -84
  107. data/lib/cybersource_rest_client/models/inline_response_200_15.rb +287 -0
  108. data/lib/cybersource_rest_client/models/{inline_response_200_14_client_reference_information.rb → inline_response_200_15_client_reference_information.rb} +1 -1
  109. data/lib/cybersource_rest_client/models/{inline_response_200_content.rb → inline_response_200_1_content.rb} +1 -1
  110. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +32 -103
  111. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded.rb → inline_response_200_2__embedded.rb} +3 -3
  112. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture.rb → inline_response_200_2__embedded_capture.rb} +2 -2
  113. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links.rb → inline_response_200_2__embedded_capture__links.rb} +2 -2
  114. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links_self.rb → inline_response_200_2__embedded_capture__links_self.rb} +1 -1
  115. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal.rb → inline_response_200_2__embedded_reversal.rb} +2 -2
  116. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links.rb → inline_response_200_2__embedded_reversal__links.rb} +2 -2
  117. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links_self.rb → inline_response_200_2__embedded_reversal__links_self.rb} +1 -1
  118. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +100 -54
  119. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +65 -25
  120. data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information.rb → inline_response_200_4_integration_information.rb} +2 -2
  121. data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information_tenant_configurations.rb → inline_response_200_4_integration_information_tenant_configurations.rb} +1 -1
  122. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +25 -126
  123. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +1 -12
  124. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +129 -51
  125. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +55 -10
  126. data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +10 -55
  128. data/lib/cybersource_rest_client/models/{inline_response_200_10__links.rb → inline_response_200_details.rb} +18 -17
  129. data/lib/cybersource_rest_client/models/inline_response_200_errors.rb +213 -0
  130. data/lib/cybersource_rest_client/models/inline_response_200_responses.rb +224 -0
  131. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +15 -5
  132. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +9 -9
  133. data/lib/cybersource_rest_client/models/patch_customer_request.rb +9 -9
  134. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +3 -3
  135. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +9 -9
  136. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb +8 -8
  137. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  138. data/lib/cybersource_rest_client/models/payments_products.rb +15 -5
  139. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +9 -9
  140. data/lib/cybersource_rest_client/models/post_customer_request.rb +9 -9
  141. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +3 -3
  142. data/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb +211 -0
  143. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +9 -9
  144. data/lib/cybersource_rest_client/models/post_tokenize_request.rb +199 -0
  145. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +22 -5
  146. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +1 -1
  147. data/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb +190 -0
  148. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information.rb → tms_merchant_information.rb} +2 -2
  149. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb → tms_merchant_information_merchant_descriptor.rb} +1 -1
  150. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb → tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb} +1 -1
  151. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb → tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb} +2 -2
  152. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb → tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb} +1 -1
  153. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb → tmsv2tokenize_default_payment_instrument_instrument_identifier.rb} +1 -1
  154. data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +205 -0
  155. data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb +247 -0
  156. data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb +289 -0
  157. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded.rb → tmsv2tokenize_token_information_customer__embedded.rb} +3 -3
  158. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb} +10 -10
  159. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb} +1 -1
  160. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb} +3 -3
  161. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb} +1 -1
  162. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bank_account.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb} +1 -1
  163. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bill_to.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb} +1 -1
  164. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb} +2 -2
  165. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb} +2 -2
  166. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb} +1 -1
  167. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb} +4 -4
  168. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb} +3 -3
  169. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_customer.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb} +1 -1
  170. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb} +1 -1
  171. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb} +1 -1
  172. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_ship_to.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb} +1 -1
  173. data/lib/cybersource_rest_client/models/{tmsv2customers__links.rb → tmsv2tokenize_token_information_customer__links.rb} +4 -4
  174. data/lib/cybersource_rest_client/models/{tmsv2customers__links_payment_instruments.rb → tmsv2tokenize_token_information_customer__links_payment_instruments.rb} +1 -1
  175. data/lib/cybersource_rest_client/models/{tmsv2customers__links_self.rb → tmsv2tokenize_token_information_customer__links_self.rb} +1 -1
  176. data/lib/cybersource_rest_client/models/{tmsv2customers__links_shipping_address.rb → tmsv2tokenize_token_information_customer__links_shipping_address.rb} +1 -1
  177. data/lib/cybersource_rest_client/models/{tmsv2customers_buyer_information.rb → tmsv2tokenize_token_information_customer_buyer_information.rb} +1 -1
  178. data/lib/cybersource_rest_client/models/{tmsv2customers_client_reference_information.rb → tmsv2tokenize_token_information_customer_client_reference_information.rb} +1 -1
  179. data/lib/cybersource_rest_client/models/{tmsv2customers_default_payment_instrument.rb → tmsv2tokenize_token_information_customer_default_payment_instrument.rb} +1 -1
  180. data/lib/cybersource_rest_client/models/{tmsv2customers_default_shipping_address.rb → tmsv2tokenize_token_information_customer_default_shipping_address.rb} +1 -1
  181. data/lib/cybersource_rest_client/models/{tmsv2customers_merchant_defined_information.rb → tmsv2tokenize_token_information_customer_merchant_defined_information.rb} +1 -1
  182. data/lib/cybersource_rest_client/models/{tmsv2customers_metadata.rb → tmsv2tokenize_token_information_customer_metadata.rb} +1 -1
  183. data/lib/cybersource_rest_client/models/{tmsv2customers_object_information.rb → tmsv2tokenize_token_information_customer_object_information.rb} +1 -1
  184. data/lib/cybersource_rest_client/models/{rbsv1subscriptions_client_reference_information_partner.rb → tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb} +41 -24
  185. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb +189 -0
  186. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb +189 -0
  187. data/lib/cybersource_rest_client/models/update_subscription.rb +1 -1
  188. data/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb +25 -5
  189. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb +41 -5
  190. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb +1 -0
  191. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb +3 -3
  192. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb +24 -5
  193. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb +196 -0
  194. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb +124 -5
  195. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb +15 -5
  196. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb +15 -5
  197. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb +213 -0
  198. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb +213 -0
  199. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb +30 -0
  200. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb +8 -0
  201. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb +7 -0
  202. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb +189 -0
  203. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb +196 -0
  204. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb +1 -0
  205. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb +74 -5
  206. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb +1 -0
  207. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb +39 -5
  208. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -0
  209. data/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +113 -0
  210. data/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb +131 -0
  211. data/lib/cybersource_rest_client.rb +80 -62
  212. metadata +85 -64
  213. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +0 -239
  214. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +0 -256
@@ -19,12 +19,12 @@ module CyberSource
19
19
  @api_client = api_client
20
20
  @api_client.set_configuration(config)
21
21
  end
22
- # Activate a Subscription
23
- # Activate a `SUSPENDED` Subscription
22
+ # Reactivating a Suspended Subscription
23
+ # # Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription. You can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. If no value is specified, the system will default to `true`. **Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html). You can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html).
24
24
  #
25
25
  # @param id Subscription Id
26
26
  # @param [Hash] opts the optional parameters
27
- # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (default to true)
27
+ # @option opts [BOOLEAN] :process_missed_payments Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored. (default to true)
28
28
  # @return [ActivateSubscriptionResponse]
29
29
  #
30
30
  def activate_subscription(id, opts = {})
@@ -32,11 +32,11 @@ module CyberSource
32
32
  return data, status_code, headers
33
33
  end
34
34
 
35
- # Activate a Subscription
36
- # Activate a `SUSPENDED` Subscription
35
+ # Reactivating a Suspended Subscription
36
+ # # Reactivating a Suspended Subscription You can reactivate a suspended subscription for the next billing cycle. You cannot reactivate a canceled or completed subscription. You can specify whether you want to process missed payments for the period during which the subscription was suspended using the `processMissedPayments` query parameter by setting it to true or false. If no value is specified, the system will default to `true`. **Important:** The \"processMissedPayments\" query parameter is only effective when the Ask each time before reactivating option is selected in the reactivation settings. If any other option is chosen, the value provided in the request will be ignored by the system. For more information, see the [Recurring Billing User Guide](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/user/all/rest/recurring-billing-user/recurring-billing-user-about-guide.html). You can check how many payments were missed and the total amount by retrieving the subscription details, where you will find the `reactivationInformation` object. See: [Retrieving a Subscription](https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing-dev/recur-bill-subscriptions/recur-bill-getting-a-subscription.html).
37
37
  # @param id Subscription Id
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true.
39
+ # @option opts [BOOLEAN] :process_missed_payments Indicates if missed payments should be processed from the period when the subscription was suspended. By default, this is set to true. When any option other than \"Ask each time before reactivating\" is selected in the reactivation settings, the value that you enter will be ignored.
40
40
  # @return [Array<(ActivateSubscriptionResponse, Fixnum, Hash)>] ActivateSubscriptionResponse data, response status code and response headers
41
41
  def activate_subscription_with_http_info(id, opts = {})
42
42
 
@@ -57,7 +57,7 @@ module CyberSource
57
57
 
58
58
  # query parameters
59
59
  query_params = {}
60
- query_params[:'processSkippedPayments'] = opts[:'process_skipped_payments'] if !opts[:'process_skipped_payments'].nil?
60
+ query_params[:'processMissedPayments'] = opts[:'process_missed_payments'] if !opts[:'process_missed_payments'].nil?
61
61
 
62
62
  # header parameters
63
63
  header_params = {}
@@ -77,7 +77,11 @@ module CyberSource
77
77
  end
78
78
  inbound_mle_status = "false"
79
79
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["activate_subscription","activate_subscription_with_http_info"])
80
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
80
+ begin
81
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
82
+ rescue
83
+ raise
84
+ end
81
85
  end
82
86
  auth_names = []
83
87
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -152,7 +156,11 @@ module CyberSource
152
156
  end
153
157
  inbound_mle_status = "false"
154
158
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["cancel_subscription","cancel_subscription_with_http_info"])
155
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
159
+ begin
160
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
161
+ rescue
162
+ raise
163
+ end
156
164
  end
157
165
  auth_names = []
158
166
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -225,7 +233,11 @@ module CyberSource
225
233
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
226
234
  inbound_mle_status = "false"
227
235
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_subscription","create_subscription_with_http_info"])
228
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
236
+ begin
237
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
238
+ rescue
239
+ raise
240
+ end
229
241
  end
230
242
  auth_names = []
231
243
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -306,7 +318,11 @@ module CyberSource
306
318
  end
307
319
  inbound_mle_status = "false"
308
320
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_subscriptions","get_all_subscriptions_with_http_info"])
309
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
321
+ begin
322
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
323
+ rescue
324
+ raise
325
+ end
310
326
  end
311
327
  auth_names = []
312
328
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -381,7 +397,11 @@ module CyberSource
381
397
  end
382
398
  inbound_mle_status = "false"
383
399
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription","get_subscription_with_http_info"])
384
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
400
+ begin
401
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
402
+ rescue
403
+ raise
404
+ end
385
405
  end
386
406
  auth_names = []
387
407
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -450,7 +470,11 @@ module CyberSource
450
470
  end
451
471
  inbound_mle_status = "false"
452
472
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription_code","get_subscription_code_with_http_info"])
453
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
473
+ begin
474
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
475
+ rescue
476
+ raise
477
+ end
454
478
  end
455
479
  auth_names = []
456
480
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -471,7 +495,7 @@ module CyberSource
471
495
  return data, status_code, headers
472
496
  end
473
497
  # Suspend a Subscription
474
- # Suspend a Subscription
498
+ # Suspend a Subscription
475
499
  #
476
500
  # @param id Subscription Id
477
501
  # @param [Hash] opts the optional parameters
@@ -483,7 +507,7 @@ module CyberSource
483
507
  end
484
508
 
485
509
  # Suspend a Subscription
486
- # Suspend a Subscription
510
+ # Suspend a Subscription
487
511
  # @param id Subscription Id
488
512
  # @param [Hash] opts the optional parameters
489
513
  # @return [Array<(SuspendSubscriptionResponse, Fixnum, Hash)>] SuspendSubscriptionResponse data, response status code and response headers
@@ -525,7 +549,11 @@ module CyberSource
525
549
  end
526
550
  inbound_mle_status = "false"
527
551
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["suspend_subscription","suspend_subscription_with_http_info"])
528
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
552
+ begin
553
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
554
+ rescue
555
+ raise
556
+ end
529
557
  end
530
558
  auth_names = []
531
559
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -604,7 +632,11 @@ module CyberSource
604
632
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateSubscription', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
605
633
  inbound_mle_status = "false"
606
634
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_subscription","update_subscription_with_http_info"])
607
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
635
+ begin
636
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
637
+ rescue
638
+ raise
639
+ end
608
640
  end
609
641
  auth_names = []
610
642
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -78,7 +78,11 @@ module CyberSource
78
78
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest1', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
79
79
  inbound_mle_status = "false"
80
80
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_follow_on_subscription","create_follow_on_subscription_with_http_info"])
81
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
81
+ begin
82
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
83
+ rescue
84
+ raise
85
+ end
82
86
  end
83
87
  auth_names = []
84
88
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -153,7 +157,11 @@ module CyberSource
153
157
  end
154
158
  inbound_mle_status = "false"
155
159
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_follow_on_subscription","get_follow_on_subscription_with_http_info"])
156
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
160
+ begin
161
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
162
+ rescue
163
+ raise
164
+ end
157
165
  end
158
166
  auth_names = []
159
167
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -72,7 +72,11 @@ module CyberSource
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TaxRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
73
  inbound_mle_status = "false"
74
74
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["calculate_tax","calculate_tax_with_http_info"])
75
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
75
+ begin
76
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ rescue
78
+ raise
79
+ end
76
80
  end
77
81
  auth_names = []
78
82
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -151,7 +155,11 @@ module CyberSource
151
155
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidTaxRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
152
156
  inbound_mle_status = "false"
153
157
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_tax","void_tax_with_http_info"])
154
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
158
+ begin
159
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
160
+ rescue
161
+ raise
162
+ end
155
163
  end
156
164
  auth_names = []
157
165
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -26,7 +26,7 @@ module CyberSource
26
26
  # @param token_provider The token provider.
27
27
  # @param asset_type The type of asset.
28
28
  # @param [Hash] opts the optional parameters
29
- # @return [InlineResponse200]
29
+ # @return [InlineResponse2001]
30
30
  #
31
31
  def get_card_art_asset(instrument_identifier_id, token_provider, asset_type, opts = {})
32
32
  data, status_code, headers = get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, asset_type, opts)
@@ -39,7 +39,7 @@ module CyberSource
39
39
  # @param token_provider The token provider.
40
40
  # @param asset_type The type of asset.
41
41
  # @param [Hash] opts the optional parameters
42
- # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
42
+ # @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
43
43
  def get_card_art_asset_with_http_info(instrument_identifier_id, token_provider, asset_type, opts = {})
44
44
 
45
45
  if @api_client.config.debugging
@@ -94,7 +94,11 @@ module CyberSource
94
94
  end
95
95
  inbound_mle_status = "false"
96
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
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
97
+ begin
98
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
99
+ rescue
100
+ raise
101
+ end
98
102
  end
99
103
  auth_names = []
100
104
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -103,7 +107,7 @@ module CyberSource
103
107
  :form_params => form_params,
104
108
  :body => post_body,
105
109
  :auth_names => auth_names,
106
- :return_type => 'InlineResponse200')
110
+ :return_type => 'InlineResponse2001')
107
111
  if @api_client.config.debugging
108
112
  begin
109
113
  raise
@@ -174,9 +178,13 @@ module CyberSource
174
178
  post_body = @api_client.object_to_http_body(post_payment_credentials_request)
175
179
  sdk_tracker = SdkTracker.new
176
180
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostPaymentCredentialsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
177
- inbound_mle_status = "false"
181
+ inbound_mle_status = "optional"
178
182
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_token_payment_credentials","post_token_payment_credentials_with_http_info"])
179
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
183
+ begin
184
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
185
+ rescue
186
+ raise
187
+ end
180
188
  end
181
189
  auth_names = []
182
190
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -0,0 +1,103 @@
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 TokenizeApi
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
+ # Tokenize
23
+ # | | | | | --- | --- | --- | |The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\"TOKEN_CREATE\"** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.<br>In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed.
24
+ #
25
+ # @param post_tokenize_request
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
28
+ # @return [InlineResponse200]
29
+ #
30
+ def tokenize(post_tokenize_request, opts = {})
31
+ data, status_code, headers = tokenize_with_http_info(post_tokenize_request, opts)
32
+ return data, status_code, headers
33
+ end
34
+
35
+ # Tokenize
36
+ # | | | | | --- | --- | --- | |The **Tokenize API** endpoint facilitates the creation of various TMS tokens such as Customers, Payment Instruments, Shipping Addresses, and Instrument Identifiers in a single operation. The request includes a processingInformation object, which specifies **\&quot;TOKEN_CREATE\&quot;** and the types of tokens to be created. The **tokenInformation** section of the request includes detailed information relevant to each token type. This includes attributes for Customers, Payment Instruments, Shipping Addresses, Instrument Identifiers and Transient Token data. The payload is flexible, allowing for different combinations of tokens to be created in a single request.|&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|The **API response** includes a responses array, which details the outcome of the tokenization process for each requested resource type, such as Customer, Payment Instrument, Shipping Address, and Instrument Identifier. Each entry in this array provides an HTTP status code such as **201/200 for successful creations**, and a unique identifier for the newly created token.&lt;br&gt;In cases where token creation encounters issues, the response includes a **non-2XX** status code and an errors array for the affected resource. Each error object in the array details the **error type and a descriptive message** providing insight into why a particular token creation was not attempted or failed.
37
+ # @param post_tokenize_request
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :profile_id The Id of a profile containing user specific TMS configuration.
40
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
41
+ def tokenize_with_http_info(post_tokenize_request, opts = {})
42
+
43
+ if @api_client.config.debugging
44
+ begin
45
+ raise
46
+ @api_client.config.logger.debug 'Calling API: TokenizeApi.tokenize ...'
47
+ rescue
48
+ puts 'Cannot write to log'
49
+ end
50
+ end
51
+ # verify the required parameter 'post_tokenize_request' is set
52
+ if @api_client.config.client_side_validation && post_tokenize_request.nil?
53
+ fail ArgumentError, "Missing the required parameter 'post_tokenize_request' when calling TokenizeApi.tokenize"
54
+ end
55
+ # resource path
56
+ local_var_path = 'tms/v2/tokenize'
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
67
+ header_params[:'profile-id'] = opts[:'profile_id'] if !opts[:'profile_id'].nil?
68
+
69
+ # form parameters
70
+ form_params = {}
71
+
72
+ # http body (model)
73
+ post_body = @api_client.object_to_http_body(post_tokenize_request)
74
+ sdk_tracker = SdkTracker.new
75
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostTokenizeRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
76
+ inbound_mle_status = "mandatory"
77
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["tokenize","tokenize_with_http_info"])
78
+ begin
79
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
80
+ rescue
81
+ raise
82
+ end
83
+ end
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 => 'InlineResponse200')
92
+ if @api_client.config.debugging
93
+ begin
94
+ raise
95
+ @api_client.config.logger.debug "API called: TokenizeApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ rescue
97
+ puts 'Cannot write to log'
98
+ end
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+ end
103
+ end
@@ -77,7 +77,11 @@ module CyberSource
77
77
  end
78
78
  inbound_mle_status = "false"
79
79
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_tokenized_card","delete_tokenized_card_with_http_info"])
80
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
80
+ begin
81
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
82
+ rescue
83
+ raise
84
+ end
81
85
  end
82
86
  auth_names = []
83
87
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
@@ -154,7 +158,11 @@ module CyberSource
154
158
  end
155
159
  inbound_mle_status = "false"
156
160
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_tokenized_card","get_tokenized_card_with_http_info"])
157
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
161
+ begin
162
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
163
+ rescue
164
+ raise
165
+ end
158
166
  end
159
167
  auth_names = []
160
168
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -174,6 +182,95 @@ module CyberSource
174
182
  end
175
183
  return data, status_code, headers
176
184
  end
185
+ # Simulate Issuer Life Cycle Management Events
186
+ # **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.
187
+ #
188
+ # @param profile_id The Id of a profile containing user specific TMS configuration.
189
+ # @param tokenized_card_id The Id of a tokenized card.
190
+ # @param post_issuer_life_cycle_simulation_request
191
+ # @param [Hash] opts the optional parameters
192
+ # @return [nil]
193
+ #
194
+ def post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {})
195
+ data, status_code, headers = post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts)
196
+ return data, status_code, headers
197
+ end
198
+
199
+ # Simulate Issuer Life Cycle Management Events
200
+ # **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.
201
+ # @param profile_id The Id of a profile containing user specific TMS configuration.
202
+ # @param tokenized_card_id The Id of a tokenized card.
203
+ # @param post_issuer_life_cycle_simulation_request
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
206
+ def post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, opts = {})
207
+
208
+ if @api_client.config.debugging
209
+ begin
210
+ raise
211
+ @api_client.config.logger.debug 'Calling API: TokenizedCardApi.post_issuer_life_cycle_simulation ...'
212
+ rescue
213
+ puts 'Cannot write to log'
214
+ end
215
+ end
216
+ # verify the required parameter 'profile_id' is set
217
+ if @api_client.config.client_side_validation && profile_id.nil?
218
+ fail ArgumentError, "Missing the required parameter 'profile_id' when calling TokenizedCardApi.post_issuer_life_cycle_simulation"
219
+ end
220
+ # verify the required parameter 'tokenized_card_id' is set
221
+ if @api_client.config.client_side_validation && tokenized_card_id.nil?
222
+ fail ArgumentError, "Missing the required parameter 'tokenized_card_id' when calling TokenizedCardApi.post_issuer_life_cycle_simulation"
223
+ end
224
+ # verify the required parameter 'post_issuer_life_cycle_simulation_request' is set
225
+ if @api_client.config.client_side_validation && post_issuer_life_cycle_simulation_request.nil?
226
+ fail ArgumentError, "Missing the required parameter 'post_issuer_life_cycle_simulation_request' when calling TokenizedCardApi.post_issuer_life_cycle_simulation"
227
+ end
228
+ # resource path
229
+ local_var_path = 'tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations'.sub('{' + 'tokenizedCardId' + '}', tokenized_card_id.to_s)
230
+
231
+ # query parameters
232
+ query_params = {}
233
+
234
+ # header parameters
235
+ header_params = {}
236
+ # HTTP header 'Accept' (if needed)
237
+ header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
238
+ # HTTP header 'Content-Type'
239
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
240
+ header_params[:'profile-id'] = profile_id
241
+
242
+ # form parameters
243
+ form_params = {}
244
+
245
+ # http body (model)
246
+ post_body = @api_client.object_to_http_body(post_issuer_life_cycle_simulation_request)
247
+ sdk_tracker = SdkTracker.new
248
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostIssuerLifeCycleSimulationRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
249
+ inbound_mle_status = "false"
250
+ 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"])
251
+ begin
252
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
253
+ rescue
254
+ raise
255
+ end
256
+ end
257
+ auth_names = []
258
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
259
+ :header_params => header_params,
260
+ :query_params => query_params,
261
+ :form_params => form_params,
262
+ :body => post_body,
263
+ :auth_names => auth_names)
264
+ if @api_client.config.debugging
265
+ begin
266
+ raise
267
+ @api_client.config.logger.debug "API called: TokenizedCardApi#post_issuer_life_cycle_simulation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
268
+ rescue
269
+ puts 'Cannot write to log'
270
+ end
271
+ end
272
+ return data, status_code, headers
273
+ end
177
274
  # Create a Tokenized Card
178
275
  # | | | | | --- | --- | --- | |**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.
179
276
  #
@@ -228,9 +325,13 @@ module CyberSource
228
325
  post_body = @api_client.object_to_http_body(tokenizedcard_request)
229
326
  sdk_tracker = SdkTracker.new
230
327
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TokenizedcardRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
231
- inbound_mle_status = "false"
328
+ inbound_mle_status = "optional"
232
329
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_tokenized_card","post_tokenized_card_with_http_info"])
233
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
330
+ begin
331
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
332
+ rescue
333
+ raise
334
+ end
234
335
  end
235
336
  auth_names = []
236
337
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -80,7 +80,11 @@ module CyberSource
80
80
  end
81
81
  inbound_mle_status = "false"
82
82
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batch_details","get_transaction_batch_details_with_http_info"])
83
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
83
+ begin
84
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
85
+ rescue
86
+ raise
87
+ end
84
88
  end
85
89
  auth_names = []
86
90
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -154,7 +158,11 @@ module CyberSource
154
158
  end
155
159
  inbound_mle_status = "false"
156
160
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batch_id","get_transaction_batch_id_with_http_info"])
157
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
161
+ begin
162
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
163
+ rescue
164
+ raise
165
+ end
158
166
  end
159
167
  auth_names = []
160
168
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -237,7 +245,11 @@ module CyberSource
237
245
  end
238
246
  inbound_mle_status = "false"
239
247
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batches","get_transaction_batches_with_http_info"])
240
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
248
+ begin
249
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
250
+ rescue
251
+ raise
252
+ end
241
253
  end
242
254
  auth_names = []
243
255
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -318,7 +330,11 @@ module CyberSource
318
330
  end
319
331
  inbound_mle_status = "false"
320
332
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["upload_transaction_batch","upload_transaction_batch_with_http_info"])
321
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
333
+ begin
334
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
335
+ rescue
336
+ raise
337
+ end
322
338
  end
323
339
  auth_names = []
324
340
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -74,7 +74,11 @@ module CyberSource
74
74
  end
75
75
  inbound_mle_status = "false"
76
76
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction","get_transaction_with_http_info"])
77
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ begin
78
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
79
+ rescue
80
+ raise
81
+ end
78
82
  end
79
83
  auth_names = []
80
84
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -74,7 +74,11 @@ module CyberSource
74
74
  end
75
75
  inbound_mle_status = "false"
76
76
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_payment_credentials_for_transient_token","get_payment_credentials_for_transient_token_with_http_info"])
77
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ begin
78
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
79
+ rescue
80
+ raise
81
+ end
78
82
  end
79
83
  auth_names = []
80
84
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -149,7 +153,11 @@ module CyberSource
149
153
  end
150
154
  inbound_mle_status = "false"
151
155
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_for_transient_token","get_transaction_for_transient_token_with_http_info"])
152
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
156
+ begin
157
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
158
+ rescue
159
+ raise
160
+ end
153
161
  end
154
162
  auth_names = []
155
163
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -72,7 +72,11 @@ module CyberSource
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateUnifiedCheckoutCaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
73
  inbound_mle_status = "false"
74
74
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_unified_checkout_capture_context","generate_unified_checkout_capture_context_with_http_info"])
75
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
75
+ begin
76
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ rescue
78
+ raise
79
+ end
76
80
  end
77
81
  auth_names = []
78
82
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -80,7 +80,11 @@ module CyberSource
80
80
  end
81
81
  inbound_mle_status = "false"
82
82
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_users","get_users_with_http_info"])
83
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
83
+ begin
84
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
85
+ rescue
86
+ raise
87
+ end
84
88
  end
85
89
  auth_names = []
86
90
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -72,7 +72,11 @@ module CyberSource
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
73
  inbound_mle_status = "false"
74
74
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["search_users","search_users_with_http_info"])
75
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
75
+ begin
76
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ rescue
78
+ raise
79
+ end
76
80
  end
77
81
  auth_names = []
78
82
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,