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
@@ -0,0 +1,287 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ class InlineResponse20015
16
+ attr_accessor :client_reference_information
17
+
18
+ # Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid
19
+ attr_accessor :id
20
+
21
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2023-05-17T22:47:57Z` equals May 17, 2023, at 22:47:57 (10:47:57 PM). The `T` separates the date and the time. The `Z` indicates UTC.
22
+ attr_accessor :submit_time_utc
23
+
24
+ # Message describing the status of the currency conversion request. Values: - `PENDING` - `DECLINED` - `INVALID_REQUEST` - `SERVER_ERROR` - `OFFER_DECLINED` - `AUTHORIZED` - `AUTHORIZATION_DECLINED` - `AUTHORIZATION_FAILURE` - `REVERSED` - `CAPTURED` - `REFUNDED` - `CANCELLED`
25
+ attr_accessor :status
26
+
27
+ attr_accessor :error_information
28
+
29
+ attr_accessor :order_information
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'client_reference_information' => :'clientReferenceInformation',
35
+ :'id' => :'id',
36
+ :'submit_time_utc' => :'submitTimeUtc',
37
+ :'status' => :'status',
38
+ :'error_information' => :'errorInformation',
39
+ :'order_information' => :'orderInformation'
40
+ }
41
+ end
42
+
43
+ # Attribute mapping from JSON key to ruby-style variable name.
44
+ def self.json_map
45
+ {
46
+ :'client_reference_information' => :'client_reference_information',
47
+ :'id' => :'id',
48
+ :'submit_time_utc' => :'submit_time_utc',
49
+ :'status' => :'status',
50
+ :'error_information' => :'error_information',
51
+ :'order_information' => :'order_information'
52
+ }
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.swagger_types
57
+ {
58
+ :'client_reference_information' => :'InlineResponse20015ClientReferenceInformation',
59
+ :'id' => :'String',
60
+ :'submit_time_utc' => :'String',
61
+ :'status' => :'String',
62
+ :'error_information' => :'InlineResponse2018ErrorInformation',
63
+ :'order_information' => :'InlineResponse2018OrderInformation'
64
+ }
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ return unless attributes.is_a?(Hash)
71
+
72
+ # convert string to symbol for hash key
73
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
74
+
75
+ if attributes.has_key?(:'clientReferenceInformation')
76
+ self.client_reference_information = attributes[:'clientReferenceInformation']
77
+ end
78
+
79
+ if attributes.has_key?(:'id')
80
+ self.id = attributes[:'id']
81
+ end
82
+
83
+ if attributes.has_key?(:'submitTimeUtc')
84
+ self.submit_time_utc = attributes[:'submitTimeUtc']
85
+ end
86
+
87
+ if attributes.has_key?(:'status')
88
+ self.status = attributes[:'status']
89
+ end
90
+
91
+ if attributes.has_key?(:'errorInformation')
92
+ self.error_information = attributes[:'errorInformation']
93
+ end
94
+
95
+ if attributes.has_key?(:'orderInformation')
96
+ self.order_information = attributes[:'orderInformation']
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ invalid_properties = Array.new
104
+ if @id.nil?
105
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
106
+ end
107
+
108
+ if @submit_time_utc.nil?
109
+ invalid_properties.push('invalid value for "submit_time_utc", submit_time_utc cannot be nil.')
110
+ end
111
+
112
+ if @status.nil?
113
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
114
+ end
115
+
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ return false if @id.nil?
123
+ return false if @submit_time_utc.nil?
124
+ return false if @status.nil?
125
+ true
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] id Value to be assigned
130
+ def id=(id)
131
+ #if id.nil?
132
+ #fail ArgumentError, 'id cannot be nil'
133
+ #end
134
+
135
+ @id = id
136
+ end
137
+
138
+ # Custom attribute writer method with validation
139
+ # @param [Object] submit_time_utc Value to be assigned
140
+ def submit_time_utc=(submit_time_utc)
141
+ #if submit_time_utc.nil?
142
+ #fail ArgumentError, 'submit_time_utc cannot be nil'
143
+ #end
144
+
145
+ @submit_time_utc = submit_time_utc
146
+ end
147
+
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] status Value to be assigned
150
+ def status=(status)
151
+ #if status.nil?
152
+ #fail ArgumentError, 'status cannot be nil'
153
+ #end
154
+
155
+ @status = status
156
+ end
157
+
158
+ # Checks equality by comparing each attribute.
159
+ # @param [Object] Object to be compared
160
+ def ==(o)
161
+ return true if self.equal?(o)
162
+ self.class == o.class &&
163
+ client_reference_information == o.client_reference_information &&
164
+ id == o.id &&
165
+ submit_time_utc == o.submit_time_utc &&
166
+ status == o.status &&
167
+ error_information == o.error_information &&
168
+ order_information == o.order_information
169
+ end
170
+
171
+ # @see the `==` method
172
+ # @param [Object] Object to be compared
173
+ def eql?(o)
174
+ self == o
175
+ end
176
+
177
+ # Calculates hash code according to all attributes.
178
+ # @return [Fixnum] Hash code
179
+ def hash
180
+ [client_reference_information, id, submit_time_utc, status, error_information, order_information].hash
181
+ end
182
+
183
+ # Builds the object from hash
184
+ # @param [Hash] attributes Model attributes in the form of hash
185
+ # @return [Object] Returns the model itself
186
+ def build_from_hash(attributes)
187
+ return nil unless attributes.is_a?(Hash)
188
+ self.class.swagger_types.each_pair do |key, type|
189
+ if type =~ /\AArray<(.*)>/i
190
+ # check to ensure the input is an array given that the the attribute
191
+ # is documented as an array but the input is not
192
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
193
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
194
+ end
195
+ elsif !attributes[self.class.attribute_map[key]].nil?
196
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
197
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
198
+ end
199
+
200
+ self
201
+ end
202
+
203
+ # Deserializes the data based on type
204
+ # @param string type Data type
205
+ # @param string value Value to be deserialized
206
+ # @return [Object] Deserialized data
207
+ def _deserialize(type, value)
208
+ case type.to_sym
209
+ when :DateTime
210
+ DateTime.parse(value)
211
+ when :Date
212
+ Date.parse(value)
213
+ when :String
214
+ value.to_s
215
+ when :Integer
216
+ value.to_i
217
+ when :Float
218
+ value.to_f
219
+ when :BOOLEAN
220
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
221
+ true
222
+ else
223
+ false
224
+ end
225
+ when :Object
226
+ # generic object (usually a Hash), return directly
227
+ value
228
+ when /\AArray<(?<inner_type>.+)>\z/
229
+ inner_type = Regexp.last_match[:inner_type]
230
+ value.map { |v| _deserialize(inner_type, v) }
231
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
232
+ k_type = Regexp.last_match[:k_type]
233
+ v_type = Regexp.last_match[:v_type]
234
+ {}.tap do |hash|
235
+ value.each do |k, v|
236
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
237
+ end
238
+ end
239
+ else # model
240
+ temp_model = CyberSource.const_get(type).new
241
+ temp_model.build_from_hash(value)
242
+ end
243
+ end
244
+
245
+ # Returns the string representation of the object
246
+ # @return [String] String presentation of the object
247
+ def to_s
248
+ to_hash.to_s
249
+ end
250
+
251
+ # to_body is an alias to to_hash (backward compatibility)
252
+ # @return [Hash] Returns the object in the form of hash
253
+ def to_body
254
+ to_hash
255
+ end
256
+
257
+ # Returns the object in the form of hash
258
+ # @return [Hash] Returns the object in the form of hash
259
+ def to_hash
260
+ hash = {}
261
+ self.class.attribute_map.each_pair do |attr, param|
262
+ value = self.send(attr)
263
+ next if value.nil?
264
+ hash[param] = _to_hash(value)
265
+ end
266
+ hash
267
+ end
268
+
269
+ # Outputs non-array value in the form of hash
270
+ # For object, use to_hash. Otherwise, just return the value
271
+ # @param [Object] value Any valid value
272
+ # @return [Hash] Returns the value in the form of hash
273
+ def _to_hash(value)
274
+ if value.is_a?(Array)
275
+ value.compact.map { |v| _to_hash(v) }
276
+ elsif value.is_a?(Hash)
277
+ {}.tap do |hash|
278
+ value.each { |k, v| hash[k] = _to_hash(v) }
279
+ end
280
+ elsif value.respond_to? :to_hash
281
+ value.to_hash
282
+ else
283
+ value
284
+ end
285
+ end
286
+ end
287
+ end
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class InlineResponse20014ClientReferenceInformation
15
+ class InlineResponse20015ClientReferenceInformation
16
16
  # Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction.
17
17
  attr_accessor :code
18
18
 
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class InlineResponse200Content
15
+ class InlineResponse2001Content
16
16
  # The MIME type of the Asset.
17
17
  attr_accessor :type
18
18
 
@@ -13,45 +13,24 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse2002
16
+ # UUID uniquely generated for this comments.
16
17
  attr_accessor :id
17
18
 
18
- attr_accessor :field_type
19
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
20
+ attr_accessor :submit_time_utc
19
21
 
20
- attr_accessor :label
22
+ # The status of the submitted transaction. Possible values are: - `ACCEPTED` - `REJECTED`
23
+ attr_accessor :status
21
24
 
22
- attr_accessor :customer_visible
23
-
24
- attr_accessor :text_min_length
25
-
26
- attr_accessor :text_max_length
27
-
28
- attr_accessor :possible_values
29
-
30
- attr_accessor :text_default_value
31
-
32
- attr_accessor :merchant_id
33
-
34
- attr_accessor :reference_type
35
-
36
- attr_accessor :read_only
37
-
38
- attr_accessor :merchant_defined_data_index
25
+ attr_accessor :_embedded
39
26
 
40
27
  # Attribute mapping from ruby-style variable name to JSON key.
41
28
  def self.attribute_map
42
29
  {
43
30
  :'id' => :'id',
44
- :'field_type' => :'fieldType',
45
- :'label' => :'label',
46
- :'customer_visible' => :'customerVisible',
47
- :'text_min_length' => :'textMinLength',
48
- :'text_max_length' => :'textMaxLength',
49
- :'possible_values' => :'possibleValues',
50
- :'text_default_value' => :'textDefaultValue',
51
- :'merchant_id' => :'merchantId',
52
- :'reference_type' => :'referenceType',
53
- :'read_only' => :'readOnly',
54
- :'merchant_defined_data_index' => :'merchantDefinedDataIndex'
31
+ :'submit_time_utc' => :'submitTimeUtc',
32
+ :'status' => :'status',
33
+ :'_embedded' => :'_embedded'
55
34
  }
56
35
  end
57
36
 
@@ -59,35 +38,19 @@ module CyberSource
59
38
  def self.json_map
60
39
  {
61
40
  :'id' => :'id',
62
- :'field_type' => :'field_type',
63
- :'label' => :'label',
64
- :'customer_visible' => :'customer_visible',
65
- :'text_min_length' => :'text_min_length',
66
- :'text_max_length' => :'text_max_length',
67
- :'possible_values' => :'possible_values',
68
- :'text_default_value' => :'text_default_value',
69
- :'merchant_id' => :'merchant_id',
70
- :'reference_type' => :'reference_type',
71
- :'read_only' => :'read_only',
72
- :'merchant_defined_data_index' => :'merchant_defined_data_index'
41
+ :'submit_time_utc' => :'submit_time_utc',
42
+ :'status' => :'status',
43
+ :'_embedded' => :'_embedded'
73
44
  }
74
45
  end
75
46
 
76
47
  # Attribute type mapping.
77
48
  def self.swagger_types
78
49
  {
79
- :'id' => :'Integer',
80
- :'field_type' => :'String',
81
- :'label' => :'String',
82
- :'customer_visible' => :'BOOLEAN',
83
- :'text_min_length' => :'Integer',
84
- :'text_max_length' => :'Integer',
85
- :'possible_values' => :'String',
86
- :'text_default_value' => :'String',
87
- :'merchant_id' => :'String',
88
- :'reference_type' => :'String',
89
- :'read_only' => :'BOOLEAN',
90
- :'merchant_defined_data_index' => :'Integer'
50
+ :'id' => :'String',
51
+ :'submit_time_utc' => :'String',
52
+ :'status' => :'String',
53
+ :'_embedded' => :'InlineResponse2002Embedded'
91
54
  }
92
55
  end
93
56
 
@@ -103,48 +66,16 @@ module CyberSource
103
66
  self.id = attributes[:'id']
104
67
  end
105
68
 
106
- if attributes.has_key?(:'fieldType')
107
- self.field_type = attributes[:'fieldType']
108
- end
109
-
110
- if attributes.has_key?(:'label')
111
- self.label = attributes[:'label']
112
- end
113
-
114
- if attributes.has_key?(:'customerVisible')
115
- self.customer_visible = attributes[:'customerVisible']
116
- end
117
-
118
- if attributes.has_key?(:'textMinLength')
119
- self.text_min_length = attributes[:'textMinLength']
120
- end
121
-
122
- if attributes.has_key?(:'textMaxLength')
123
- self.text_max_length = attributes[:'textMaxLength']
124
- end
125
-
126
- if attributes.has_key?(:'possibleValues')
127
- self.possible_values = attributes[:'possibleValues']
128
- end
129
-
130
- if attributes.has_key?(:'textDefaultValue')
131
- self.text_default_value = attributes[:'textDefaultValue']
69
+ if attributes.has_key?(:'submitTimeUtc')
70
+ self.submit_time_utc = attributes[:'submitTimeUtc']
132
71
  end
133
72
 
134
- if attributes.has_key?(:'merchantId')
135
- self.merchant_id = attributes[:'merchantId']
73
+ if attributes.has_key?(:'status')
74
+ self.status = attributes[:'status']
136
75
  end
137
76
 
138
- if attributes.has_key?(:'referenceType')
139
- self.reference_type = attributes[:'referenceType']
140
- end
141
-
142
- if attributes.has_key?(:'readOnly')
143
- self.read_only = attributes[:'readOnly']
144
- end
145
-
146
- if attributes.has_key?(:'merchantDefinedDataIndex')
147
- self.merchant_defined_data_index = attributes[:'merchantDefinedDataIndex']
77
+ if attributes.has_key?(:'_embedded')
78
+ self._embedded = attributes[:'_embedded']
148
79
  end
149
80
  end
150
81
 
@@ -161,23 +92,21 @@ module CyberSource
161
92
  true
162
93
  end
163
94
 
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] id Value to be assigned
97
+ def id=(id)
98
+ @id = id
99
+ end
100
+
164
101
  # Checks equality by comparing each attribute.
165
102
  # @param [Object] Object to be compared
166
103
  def ==(o)
167
104
  return true if self.equal?(o)
168
105
  self.class == o.class &&
169
106
  id == o.id &&
170
- field_type == o.field_type &&
171
- label == o.label &&
172
- customer_visible == o.customer_visible &&
173
- text_min_length == o.text_min_length &&
174
- text_max_length == o.text_max_length &&
175
- possible_values == o.possible_values &&
176
- text_default_value == o.text_default_value &&
177
- merchant_id == o.merchant_id &&
178
- reference_type == o.reference_type &&
179
- read_only == o.read_only &&
180
- merchant_defined_data_index == o.merchant_defined_data_index
107
+ submit_time_utc == o.submit_time_utc &&
108
+ status == o.status &&
109
+ _embedded == o._embedded
181
110
  end
182
111
 
183
112
  # @see the `==` method
@@ -189,7 +118,7 @@ module CyberSource
189
118
  # Calculates hash code according to all attributes.
190
119
  # @return [Fixnum] Hash code
191
120
  def hash
192
- [id, field_type, label, customer_visible, text_min_length, text_max_length, possible_values, text_default_value, merchant_id, reference_type, read_only, merchant_defined_data_index].hash
121
+ [id, submit_time_utc, status, _embedded].hash
193
122
  end
194
123
 
195
124
  # Builds the object from hash
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # This object includes either a capture or reversal object. They each has the status of the action and link to the GET method to the following-on capture transaction or reversal transaction.
16
- class InlineResponse2001Embedded
16
+ class InlineResponse2002Embedded
17
17
  attr_accessor :capture
18
18
 
19
19
  attr_accessor :reversal
@@ -37,8 +37,8 @@ module CyberSource
37
37
  # Attribute type mapping.
38
38
  def self.swagger_types
39
39
  {
40
- :'capture' => :'InlineResponse2001EmbeddedCapture',
41
- :'reversal' => :'InlineResponse2001EmbeddedReversal'
40
+ :'capture' => :'InlineResponse2002EmbeddedCapture',
41
+ :'reversal' => :'InlineResponse2002EmbeddedReversal'
42
42
  }
43
43
  end
44
44
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # This object includes the status of the action and link to the GET method to the following-on capture transaction.
16
- class InlineResponse2001EmbeddedCapture
16
+ class InlineResponse2002EmbeddedCapture
17
17
  # The status of the capture if the capture is called.
18
18
  attr_accessor :status
19
19
 
@@ -39,7 +39,7 @@ module CyberSource
39
39
  def self.swagger_types
40
40
  {
41
41
  :'status' => :'String',
42
- :'_links' => :'InlineResponse2001EmbeddedCaptureLinks'
42
+ :'_links' => :'InlineResponse2002EmbeddedCaptureLinks'
43
43
  }
44
44
  end
45
45
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # The link to the GET method to the capture transaction if the capture is called.
16
- class InlineResponse2001EmbeddedCaptureLinks
16
+ class InlineResponse2002EmbeddedCaptureLinks
17
17
  attr_accessor :_self
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,7 +33,7 @@ module CyberSource
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'_self' => :'InlineResponse2001EmbeddedCaptureLinksSelf'
36
+ :'_self' => :'InlineResponse2002EmbeddedCaptureLinksSelf'
37
37
  }
38
38
  end
39
39
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # The object holds http method and endpoint if the capture is called.
16
- class InlineResponse2001EmbeddedCaptureLinksSelf
16
+ class InlineResponse2002EmbeddedCaptureLinksSelf
17
17
  # This is the endpoint of the resource that was created by the successful request.
18
18
  attr_accessor :href
19
19
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # This object includes the status of the action and link to the GET method to the following-on reversal transaction.
16
- class InlineResponse2001EmbeddedReversal
16
+ class InlineResponse2002EmbeddedReversal
17
17
  # The status of the reversal if the auth reversal is called.
18
18
  attr_accessor :status
19
19
 
@@ -39,7 +39,7 @@ module CyberSource
39
39
  def self.swagger_types
40
40
  {
41
41
  :'status' => :'String',
42
- :'_links' => :'InlineResponse2001EmbeddedReversalLinks'
42
+ :'_links' => :'InlineResponse2002EmbeddedReversalLinks'
43
43
  }
44
44
  end
45
45
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # The link to the GET method to the reversal transaction if the auth reversal is called.
16
- class InlineResponse2001EmbeddedReversalLinks
16
+ class InlineResponse2002EmbeddedReversalLinks
17
17
  attr_accessor :_self
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,7 +33,7 @@ module CyberSource
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'_self' => :'InlineResponse2001EmbeddedReversalLinksSelf'
36
+ :'_self' => :'InlineResponse2002EmbeddedReversalLinksSelf'
37
37
  }
38
38
  end
39
39
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # The object holds http method and endpoint if the reversal is called.
16
- class InlineResponse2001EmbeddedReversalLinksSelf
16
+ class InlineResponse2002EmbeddedReversalLinksSelf
17
17
  # This is the endpoint of the resource that was created by the successful request.
18
18
  attr_accessor :href
19
19