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
@@ -13,57 +13,96 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse2007
16
- # Total number of results.
17
- attr_accessor :total_count
16
+ # Webhook Id. This is generated by the server.
17
+ attr_accessor :webhook_id
18
18
 
19
- # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.
20
- attr_accessor :offset
19
+ # Organization ID.
20
+ attr_accessor :organization_id
21
21
 
22
- # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500.
23
- attr_accessor :limit
22
+ attr_accessor :products
24
23
 
25
- # A comma separated list of the following form: `submitTimeUtc:desc`
26
- attr_accessor :sort
24
+ # The client's endpoint (URL) to receive webhooks.
25
+ attr_accessor :webhook_url
27
26
 
28
- # Results for this page, this could be below the limit.
29
- attr_accessor :count
27
+ # The client's health check endpoint (URL).
28
+ attr_accessor :health_check_url
30
29
 
31
- # A collection of devices
32
- attr_accessor :devices
30
+ # Webhook status.
31
+ attr_accessor :status
32
+
33
+ # Client friendly webhook name.
34
+ attr_accessor :name
35
+
36
+ # Client friendly webhook description.
37
+ attr_accessor :description
38
+
39
+ attr_accessor :retry_policy
40
+
41
+ attr_accessor :security_policy
42
+
43
+ # Date on which webhook was created/registered.
44
+ attr_accessor :created_on
45
+
46
+ # Date on which webhook was most recently updated.
47
+ attr_accessor :updated_on
48
+
49
+ # The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. This field is optional. Possible values: - SELF - DESCENDANTS
50
+ attr_accessor :notification_scope
33
51
 
34
52
  # Attribute mapping from ruby-style variable name to JSON key.
35
53
  def self.attribute_map
36
54
  {
37
- :'total_count' => :'totalCount',
38
- :'offset' => :'offset',
39
- :'limit' => :'limit',
40
- :'sort' => :'sort',
41
- :'count' => :'count',
42
- :'devices' => :'devices'
55
+ :'webhook_id' => :'webhookId',
56
+ :'organization_id' => :'organizationId',
57
+ :'products' => :'products',
58
+ :'webhook_url' => :'webhookUrl',
59
+ :'health_check_url' => :'healthCheckUrl',
60
+ :'status' => :'status',
61
+ :'name' => :'name',
62
+ :'description' => :'description',
63
+ :'retry_policy' => :'retryPolicy',
64
+ :'security_policy' => :'securityPolicy',
65
+ :'created_on' => :'createdOn',
66
+ :'updated_on' => :'updatedOn',
67
+ :'notification_scope' => :'notificationScope'
43
68
  }
44
69
  end
45
70
 
46
71
  # Attribute mapping from JSON key to ruby-style variable name.
47
72
  def self.json_map
48
73
  {
49
- :'total_count' => :'total_count',
50
- :'offset' => :'offset',
51
- :'limit' => :'limit',
52
- :'sort' => :'sort',
53
- :'count' => :'count',
54
- :'devices' => :'devices'
74
+ :'webhook_id' => :'webhook_id',
75
+ :'organization_id' => :'organization_id',
76
+ :'products' => :'products',
77
+ :'webhook_url' => :'webhook_url',
78
+ :'health_check_url' => :'health_check_url',
79
+ :'status' => :'status',
80
+ :'name' => :'name',
81
+ :'description' => :'description',
82
+ :'retry_policy' => :'retry_policy',
83
+ :'security_policy' => :'security_policy',
84
+ :'created_on' => :'created_on',
85
+ :'updated_on' => :'updated_on',
86
+ :'notification_scope' => :'notification_scope'
55
87
  }
56
88
  end
57
89
 
58
90
  # Attribute type mapping.
59
91
  def self.swagger_types
60
92
  {
61
- :'total_count' => :'Integer',
62
- :'offset' => :'Integer',
63
- :'limit' => :'Integer',
64
- :'sort' => :'String',
65
- :'count' => :'Integer',
66
- :'devices' => :'Array<InlineResponse2007Devices>'
93
+ :'webhook_id' => :'String',
94
+ :'organization_id' => :'String',
95
+ :'products' => :'Array<Notificationsubscriptionsv2webhooksProducts>',
96
+ :'webhook_url' => :'String',
97
+ :'health_check_url' => :'String',
98
+ :'status' => :'String',
99
+ :'name' => :'String',
100
+ :'description' => :'String',
101
+ :'retry_policy' => :'Notificationsubscriptionsv2webhooksRetryPolicy',
102
+ :'security_policy' => :'Notificationsubscriptionsv2webhooksSecurityPolicy',
103
+ :'created_on' => :'String',
104
+ :'updated_on' => :'String',
105
+ :'notification_scope' => :'String'
67
106
  }
68
107
  end
69
108
 
@@ -75,30 +114,62 @@ module CyberSource
75
114
  # convert string to symbol for hash key
76
115
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
116
 
78
- if attributes.has_key?(:'totalCount')
79
- self.total_count = attributes[:'totalCount']
117
+ if attributes.has_key?(:'webhookId')
118
+ self.webhook_id = attributes[:'webhookId']
80
119
  end
81
120
 
82
- if attributes.has_key?(:'offset')
83
- self.offset = attributes[:'offset']
121
+ if attributes.has_key?(:'organizationId')
122
+ self.organization_id = attributes[:'organizationId']
84
123
  end
85
124
 
86
- if attributes.has_key?(:'limit')
87
- self.limit = attributes[:'limit']
125
+ if attributes.has_key?(:'products')
126
+ if (value = attributes[:'products']).is_a?(Array)
127
+ self.products = value
128
+ end
88
129
  end
89
130
 
90
- if attributes.has_key?(:'sort')
91
- self.sort = attributes[:'sort']
131
+ if attributes.has_key?(:'webhookUrl')
132
+ self.webhook_url = attributes[:'webhookUrl']
92
133
  end
93
134
 
94
- if attributes.has_key?(:'count')
95
- self.count = attributes[:'count']
135
+ if attributes.has_key?(:'healthCheckUrl')
136
+ self.health_check_url = attributes[:'healthCheckUrl']
96
137
  end
97
138
 
98
- if attributes.has_key?(:'devices')
99
- if (value = attributes[:'devices']).is_a?(Array)
100
- self.devices = value
101
- end
139
+ if attributes.has_key?(:'status')
140
+ self.status = attributes[:'status']
141
+ else
142
+ self.status = 'INACTIVE'
143
+ end
144
+
145
+ if attributes.has_key?(:'name')
146
+ self.name = attributes[:'name']
147
+ end
148
+
149
+ if attributes.has_key?(:'description')
150
+ self.description = attributes[:'description']
151
+ end
152
+
153
+ if attributes.has_key?(:'retryPolicy')
154
+ self.retry_policy = attributes[:'retryPolicy']
155
+ end
156
+
157
+ if attributes.has_key?(:'securityPolicy')
158
+ self.security_policy = attributes[:'securityPolicy']
159
+ end
160
+
161
+ if attributes.has_key?(:'createdOn')
162
+ self.created_on = attributes[:'createdOn']
163
+ end
164
+
165
+ if attributes.has_key?(:'updatedOn')
166
+ self.updated_on = attributes[:'updatedOn']
167
+ end
168
+
169
+ if attributes.has_key?(:'notificationScope')
170
+ self.notification_scope = attributes[:'notificationScope']
171
+ else
172
+ self.notification_scope = 'DESCENDANTS'
102
173
  end
103
174
  end
104
175
 
@@ -120,12 +191,19 @@ module CyberSource
120
191
  def ==(o)
121
192
  return true if self.equal?(o)
122
193
  self.class == o.class &&
123
- total_count == o.total_count &&
124
- offset == o.offset &&
125
- limit == o.limit &&
126
- sort == o.sort &&
127
- count == o.count &&
128
- devices == o.devices
194
+ webhook_id == o.webhook_id &&
195
+ organization_id == o.organization_id &&
196
+ products == o.products &&
197
+ webhook_url == o.webhook_url &&
198
+ health_check_url == o.health_check_url &&
199
+ status == o.status &&
200
+ name == o.name &&
201
+ description == o.description &&
202
+ retry_policy == o.retry_policy &&
203
+ security_policy == o.security_policy &&
204
+ created_on == o.created_on &&
205
+ updated_on == o.updated_on &&
206
+ notification_scope == o.notification_scope
129
207
  end
130
208
 
131
209
  # @see the `==` method
@@ -137,7 +215,7 @@ module CyberSource
137
215
  # Calculates hash code according to all attributes.
138
216
  # @return [Fixnum] Hash code
139
217
  def hash
140
- [total_count, offset, limit, sort, count, devices].hash
218
+ [webhook_id, organization_id, products, webhook_url, health_check_url, status, name, description, retry_policy, security_policy, created_on, updated_on, notification_scope].hash
141
219
  end
142
220
 
143
221
  # Builds the object from hash
@@ -13,15 +13,32 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse2008
16
- # Possible values: - OK
17
- attr_accessor :status
16
+ # Total number of results.
17
+ attr_accessor :total_count
18
18
 
19
+ # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.
20
+ attr_accessor :offset
21
+
22
+ # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500.
23
+ attr_accessor :limit
24
+
25
+ # A comma separated list of the following form: `submitTimeUtc:desc`
26
+ attr_accessor :sort
27
+
28
+ # Results for this page, this could be below the limit.
29
+ attr_accessor :count
30
+
31
+ # A collection of devices
19
32
  attr_accessor :devices
20
33
 
21
34
  # Attribute mapping from ruby-style variable name to JSON key.
22
35
  def self.attribute_map
23
36
  {
24
- :'status' => :'status',
37
+ :'total_count' => :'totalCount',
38
+ :'offset' => :'offset',
39
+ :'limit' => :'limit',
40
+ :'sort' => :'sort',
41
+ :'count' => :'count',
25
42
  :'devices' => :'devices'
26
43
  }
27
44
  end
@@ -29,7 +46,11 @@ module CyberSource
29
46
  # Attribute mapping from JSON key to ruby-style variable name.
30
47
  def self.json_map
31
48
  {
32
- :'status' => :'status',
49
+ :'total_count' => :'total_count',
50
+ :'offset' => :'offset',
51
+ :'limit' => :'limit',
52
+ :'sort' => :'sort',
53
+ :'count' => :'count',
33
54
  :'devices' => :'devices'
34
55
  }
35
56
  end
@@ -37,8 +58,12 @@ module CyberSource
37
58
  # Attribute type mapping.
38
59
  def self.swagger_types
39
60
  {
40
- :'status' => :'String',
41
- :'devices' => :'Array<Dmsv3devicesdeassociateDevices>'
61
+ :'total_count' => :'Integer',
62
+ :'offset' => :'Integer',
63
+ :'limit' => :'Integer',
64
+ :'sort' => :'String',
65
+ :'count' => :'Integer',
66
+ :'devices' => :'Array<InlineResponse2008Devices>'
42
67
  }
43
68
  end
44
69
 
@@ -50,8 +75,24 @@ module CyberSource
50
75
  # convert string to symbol for hash key
51
76
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
77
 
53
- if attributes.has_key?(:'status')
54
- self.status = attributes[:'status']
78
+ if attributes.has_key?(:'totalCount')
79
+ self.total_count = attributes[:'totalCount']
80
+ end
81
+
82
+ if attributes.has_key?(:'offset')
83
+ self.offset = attributes[:'offset']
84
+ end
85
+
86
+ if attributes.has_key?(:'limit')
87
+ self.limit = attributes[:'limit']
88
+ end
89
+
90
+ if attributes.has_key?(:'sort')
91
+ self.sort = attributes[:'sort']
92
+ end
93
+
94
+ if attributes.has_key?(:'count')
95
+ self.count = attributes[:'count']
55
96
  end
56
97
 
57
98
  if attributes.has_key?(:'devices')
@@ -79,7 +120,11 @@ module CyberSource
79
120
  def ==(o)
80
121
  return true if self.equal?(o)
81
122
  self.class == o.class &&
82
- status == o.status &&
123
+ total_count == o.total_count &&
124
+ offset == o.offset &&
125
+ limit == o.limit &&
126
+ sort == o.sort &&
127
+ count == o.count &&
83
128
  devices == o.devices
84
129
  end
85
130
 
@@ -92,7 +137,7 @@ module CyberSource
92
137
  # Calculates hash code according to all attributes.
93
138
  # @return [Fixnum] Hash code
94
139
  def hash
95
- [status, devices].hash
140
+ [total_count, offset, limit, sort, count, devices].hash
96
141
  end
97
142
 
98
143
  # Builds the object from hash
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class InlineResponse2007Devices
15
+ class InlineResponse2008Devices
16
16
  attr_accessor :reader_id
17
17
 
18
18
  attr_accessor :terminal_serial_number
@@ -13,32 +13,15 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse2009
16
- # Total number of results.
17
- attr_accessor :total_count
16
+ # Possible values: - OK
17
+ attr_accessor :status
18
18
 
19
- # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.
20
- attr_accessor :offset
21
-
22
- # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500.
23
- attr_accessor :limit
24
-
25
- # A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate`
26
- attr_accessor :sort
27
-
28
- # Results for this page, this could be below the limit.
29
- attr_accessor :count
30
-
31
- # A collection of devices
32
19
  attr_accessor :devices
33
20
 
34
21
  # Attribute mapping from ruby-style variable name to JSON key.
35
22
  def self.attribute_map
36
23
  {
37
- :'total_count' => :'totalCount',
38
- :'offset' => :'offset',
39
- :'limit' => :'limit',
40
- :'sort' => :'sort',
41
- :'count' => :'count',
24
+ :'status' => :'status',
42
25
  :'devices' => :'devices'
43
26
  }
44
27
  end
@@ -46,11 +29,7 @@ module CyberSource
46
29
  # Attribute mapping from JSON key to ruby-style variable name.
47
30
  def self.json_map
48
31
  {
49
- :'total_count' => :'total_count',
50
- :'offset' => :'offset',
51
- :'limit' => :'limit',
52
- :'sort' => :'sort',
53
- :'count' => :'count',
32
+ :'status' => :'status',
54
33
  :'devices' => :'devices'
55
34
  }
56
35
  end
@@ -58,12 +37,8 @@ module CyberSource
58
37
  # Attribute type mapping.
59
38
  def self.swagger_types
60
39
  {
61
- :'total_count' => :'Integer',
62
- :'offset' => :'Integer',
63
- :'limit' => :'Integer',
64
- :'sort' => :'String',
65
- :'count' => :'Integer',
66
- :'devices' => :'Array<InlineResponse2009Devices>'
40
+ :'status' => :'String',
41
+ :'devices' => :'Array<Dmsv3devicesdeassociateDevices>'
67
42
  }
68
43
  end
69
44
 
@@ -75,24 +50,8 @@ module CyberSource
75
50
  # convert string to symbol for hash key
76
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
52
 
78
- if attributes.has_key?(:'totalCount')
79
- self.total_count = attributes[:'totalCount']
80
- end
81
-
82
- if attributes.has_key?(:'offset')
83
- self.offset = attributes[:'offset']
84
- end
85
-
86
- if attributes.has_key?(:'limit')
87
- self.limit = attributes[:'limit']
88
- end
89
-
90
- if attributes.has_key?(:'sort')
91
- self.sort = attributes[:'sort']
92
- end
93
-
94
- if attributes.has_key?(:'count')
95
- self.count = attributes[:'count']
53
+ if attributes.has_key?(:'status')
54
+ self.status = attributes[:'status']
96
55
  end
97
56
 
98
57
  if attributes.has_key?(:'devices')
@@ -120,11 +79,7 @@ module CyberSource
120
79
  def ==(o)
121
80
  return true if self.equal?(o)
122
81
  self.class == o.class &&
123
- total_count == o.total_count &&
124
- offset == o.offset &&
125
- limit == o.limit &&
126
- sort == o.sort &&
127
- count == o.count &&
82
+ status == o.status &&
128
83
  devices == o.devices
129
84
  end
130
85
 
@@ -137,7 +92,7 @@ module CyberSource
137
92
  # Calculates hash code according to all attributes.
138
93
  # @return [Fixnum] Hash code
139
94
  def hash
140
- [total_count, offset, limit, sort, count, devices].hash
95
+ [status, devices].hash
141
96
  end
142
97
 
143
98
  # Builds the object from hash
@@ -12,33 +12,34 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class InlineResponse20010Links
16
- # Valid Values: * self * first * last * prev * next
17
- attr_accessor :rel
15
+ class InlineResponse200Details
16
+ # The name of the field that caused the error.
17
+ attr_accessor :name
18
18
 
19
- attr_accessor :href
19
+ # The location of the field that caused the error.
20
+ attr_accessor :location
20
21
 
21
22
  # Attribute mapping from ruby-style variable name to JSON key.
22
23
  def self.attribute_map
23
24
  {
24
- :'rel' => :'rel',
25
- :'href' => :'href'
25
+ :'name' => :'name',
26
+ :'location' => :'location'
26
27
  }
27
28
  end
28
29
 
29
30
  # Attribute mapping from JSON key to ruby-style variable name.
30
31
  def self.json_map
31
32
  {
32
- :'rel' => :'rel',
33
- :'href' => :'href'
33
+ :'name' => :'name',
34
+ :'location' => :'location'
34
35
  }
35
36
  end
36
37
 
37
38
  # Attribute type mapping.
38
39
  def self.swagger_types
39
40
  {
40
- :'rel' => :'String',
41
- :'href' => :'String'
41
+ :'name' => :'String',
42
+ :'location' => :'String'
42
43
  }
43
44
  end
44
45
 
@@ -50,12 +51,12 @@ module CyberSource
50
51
  # convert string to symbol for hash key
51
52
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
53
 
53
- if attributes.has_key?(:'rel')
54
- self.rel = attributes[:'rel']
54
+ if attributes.has_key?(:'name')
55
+ self.name = attributes[:'name']
55
56
  end
56
57
 
57
- if attributes.has_key?(:'href')
58
- self.href = attributes[:'href']
58
+ if attributes.has_key?(:'location')
59
+ self.location = attributes[:'location']
59
60
  end
60
61
  end
61
62
 
@@ -77,8 +78,8 @@ module CyberSource
77
78
  def ==(o)
78
79
  return true if self.equal?(o)
79
80
  self.class == o.class &&
80
- rel == o.rel &&
81
- href == o.href
81
+ name == o.name &&
82
+ location == o.location
82
83
  end
83
84
 
84
85
  # @see the `==` method
@@ -90,7 +91,7 @@ module CyberSource
90
91
  # Calculates hash code according to all attributes.
91
92
  # @return [Fixnum] Hash code
92
93
  def hash
93
- [rel, href].hash
94
+ [name, location].hash
94
95
  end
95
96
 
96
97
  # Builds the object from hash