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,213 @@
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 Upv1capturecontextsDataOrderInformationInvoiceDetails
16
+ # Invoice number
17
+ attr_accessor :invoice_number
18
+
19
+ # Product description
20
+ attr_accessor :product_description
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'invoice_number' => :'invoiceNumber',
26
+ :'product_description' => :'productDescription'
27
+ }
28
+ end
29
+
30
+ # Attribute mapping from JSON key to ruby-style variable name.
31
+ def self.json_map
32
+ {
33
+ :'invoice_number' => :'invoice_number',
34
+ :'product_description' => :'product_description'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'invoice_number' => :'String',
42
+ :'product_description' => :'String'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
+
54
+ if attributes.has_key?(:'invoiceNumber')
55
+ self.invoice_number = attributes[:'invoiceNumber']
56
+ end
57
+
58
+ if attributes.has_key?(:'productDescription')
59
+ self.product_description = attributes[:'productDescription']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ true
74
+ end
75
+
76
+ # Custom attribute writer method with validation
77
+ # @param [Object] invoice_number Value to be assigned
78
+ def invoice_number=(invoice_number)
79
+ @invoice_number = invoice_number
80
+ end
81
+
82
+ # Custom attribute writer method with validation
83
+ # @param [Object] product_description Value to be assigned
84
+ def product_description=(product_description)
85
+ @product_description = product_description
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ invoice_number == o.invoice_number &&
94
+ product_description == o.product_description
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Fixnum] Hash code
105
+ def hash
106
+ [invoice_number, product_description].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ self.class.swagger_types.each_pair do |key, type|
115
+ if type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :DateTime
136
+ DateTime.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :BOOLEAN
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ temp_model = CyberSource.const_get(type).new
167
+ temp_model.build_from_hash(value)
168
+ end
169
+ end
170
+
171
+ # Returns the string representation of the object
172
+ # @return [String] String presentation of the object
173
+ def to_s
174
+ to_hash.to_s
175
+ end
176
+
177
+ # to_body is an alias to to_hash (backward compatibility)
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_body
180
+ to_hash
181
+ end
182
+
183
+ # Returns the object in the form of hash
184
+ # @return [Hash] Returns the object in the form of hash
185
+ def to_hash
186
+ hash = {}
187
+ self.class.attribute_map.each_pair do |attr, param|
188
+ value = self.send(attr)
189
+ next if value.nil?
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end
@@ -13,66 +13,96 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Upv1capturecontextsDataOrderInformationLineItems
16
+ # Code identifying the product.
16
17
  attr_accessor :product_code
17
18
 
19
+ # Name of the product.
18
20
  attr_accessor :product_name
19
21
 
22
+ # Stock Keeping Unit identifier
20
23
  attr_accessor :product_sku
21
24
 
25
+ # Quantity of the product
22
26
  attr_accessor :quantity
23
27
 
28
+ # Price per unit
24
29
  attr_accessor :unit_price
25
30
 
31
+ # Unit of measure (e.g. EA, KG, LB)
26
32
  attr_accessor :unit_of_measure
27
33
 
34
+ # Total amount for the line item
28
35
  attr_accessor :total_amount
29
36
 
37
+ # Tax amount applied
30
38
  attr_accessor :tax_amount
31
39
 
40
+ # Tax rate applied
32
41
  attr_accessor :tax_rate
33
42
 
43
+ # Indicates if tax applied after discount
34
44
  attr_accessor :tax_applied_after_discount
35
45
 
46
+ # Tax status indicator
36
47
  attr_accessor :tax_status_indicator
37
48
 
49
+ # Tax type code
38
50
  attr_accessor :tax_type_code
39
51
 
52
+ # Indicates if amount includes tax
40
53
  attr_accessor :amount_includes_tax
41
54
 
55
+ # Type of supply
42
56
  attr_accessor :type_of_supply
43
57
 
58
+ # Commodity code
44
59
  attr_accessor :commodity_code
45
60
 
61
+ # Discount amount applied
46
62
  attr_accessor :discount_amount
47
63
 
64
+ # Indicates if discount applied
48
65
  attr_accessor :discount_applied
49
66
 
67
+ # Discount rate applied
50
68
  attr_accessor :discount_rate
51
69
 
70
+ # Invoice number for the line item
52
71
  attr_accessor :invoice_number
53
72
 
54
73
  attr_accessor :tax_details
55
74
 
75
+ # Fulfillment type
56
76
  attr_accessor :fulfillment_type
57
77
 
78
+ # Weight of the product
58
79
  attr_accessor :weight
59
80
 
81
+ # Weight identifier
60
82
  attr_accessor :weight_identifier
61
83
 
84
+ # Unit of weight of the product
62
85
  attr_accessor :weight_unit
63
86
 
87
+ # Reference data code
64
88
  attr_accessor :reference_data_code
65
89
 
90
+ # Reference data number
66
91
  attr_accessor :reference_data_number
67
92
 
93
+ # Unit tax amount
68
94
  attr_accessor :unit_tax_amount
69
95
 
96
+ # Description of the product
70
97
  attr_accessor :product_description
71
98
 
99
+ # Gift card currency
72
100
  attr_accessor :gift_card_currency
73
101
 
102
+ # Shipping destination types
74
103
  attr_accessor :shipping_destination_types
75
104
 
105
+ # Indicates if item is a gift
76
106
  attr_accessor :gift
77
107
 
78
108
  attr_accessor :passenger
@@ -13,20 +13,28 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Upv1capturecontextsDataOrderInformationLineItemsPassenger
16
+ # Passenger type
16
17
  attr_accessor :type
17
18
 
19
+ # Passenger status
18
20
  attr_accessor :status
19
21
 
22
+ # Passenger phone number
20
23
  attr_accessor :phone
21
24
 
25
+ # Passenger first name
22
26
  attr_accessor :first_name
23
27
 
28
+ # Passenger last name
24
29
  attr_accessor :last_name
25
30
 
31
+ # Passenger ID
26
32
  attr_accessor :id
27
33
 
34
+ # Passenger email
28
35
  attr_accessor :email
29
36
 
37
+ # Passenger nationality
30
38
  attr_accessor :nationality
31
39
 
32
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -13,18 +13,25 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Upv1capturecontextsDataOrderInformationLineItemsTaxDetails
16
+ # Type of tax
16
17
  attr_accessor :type
17
18
 
19
+ # Tax amount
18
20
  attr_accessor :amount
19
21
 
22
+ # Tax rate
20
23
  attr_accessor :rate
21
24
 
25
+ # Tax code
22
26
  attr_accessor :code
23
27
 
28
+ # Tax Identifier
24
29
  attr_accessor :tax_id
25
30
 
31
+ # Indicates if tax applied
26
32
  attr_accessor :applied
27
33
 
34
+ # Tax exemption code
28
35
  attr_accessor :exemption_code
29
36
 
30
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,189 @@
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 Upv1capturecontextsDataPaymentInformation
16
+ attr_accessor :card
17
+
18
+ # Attribute mapping from ruby-style variable name to JSON key.
19
+ def self.attribute_map
20
+ {
21
+ :'card' => :'card'
22
+ }
23
+ end
24
+
25
+ # Attribute mapping from JSON key to ruby-style variable name.
26
+ def self.json_map
27
+ {
28
+ :'card' => :'card'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.swagger_types
34
+ {
35
+ :'card' => :'Upv1capturecontextsDataPaymentInformationCard'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ return unless attributes.is_a?(Hash)
43
+
44
+ # convert string to symbol for hash key
45
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
+
47
+ if attributes.has_key?(:'card')
48
+ self.card = attributes[:'card']
49
+ end
50
+ end
51
+
52
+ # Show invalid properties with the reasons. Usually used together with valid?
53
+ # @return Array for valid properties with the reasons
54
+ def list_invalid_properties
55
+ invalid_properties = Array.new
56
+ invalid_properties
57
+ end
58
+
59
+ # Check to see if the all the properties in the model are valid
60
+ # @return true if the model is valid
61
+ def valid?
62
+ true
63
+ end
64
+
65
+ # Checks equality by comparing each attribute.
66
+ # @param [Object] Object to be compared
67
+ def ==(o)
68
+ return true if self.equal?(o)
69
+ self.class == o.class &&
70
+ card == o.card
71
+ end
72
+
73
+ # @see the `==` method
74
+ # @param [Object] Object to be compared
75
+ def eql?(o)
76
+ self == o
77
+ end
78
+
79
+ # Calculates hash code according to all attributes.
80
+ # @return [Fixnum] Hash code
81
+ def hash
82
+ [card].hash
83
+ end
84
+
85
+ # Builds the object from hash
86
+ # @param [Hash] attributes Model attributes in the form of hash
87
+ # @return [Object] Returns the model itself
88
+ def build_from_hash(attributes)
89
+ return nil unless attributes.is_a?(Hash)
90
+ self.class.swagger_types.each_pair do |key, type|
91
+ if type =~ /\AArray<(.*)>/i
92
+ # check to ensure the input is an array given that the the attribute
93
+ # is documented as an array but the input is not
94
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
95
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
96
+ end
97
+ elsif !attributes[self.class.attribute_map[key]].nil?
98
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
99
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
100
+ end
101
+
102
+ self
103
+ end
104
+
105
+ # Deserializes the data based on type
106
+ # @param string type Data type
107
+ # @param string value Value to be deserialized
108
+ # @return [Object] Deserialized data
109
+ def _deserialize(type, value)
110
+ case type.to_sym
111
+ when :DateTime
112
+ DateTime.parse(value)
113
+ when :Date
114
+ Date.parse(value)
115
+ when :String
116
+ value.to_s
117
+ when :Integer
118
+ value.to_i
119
+ when :Float
120
+ value.to_f
121
+ when :BOOLEAN
122
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
123
+ true
124
+ else
125
+ false
126
+ end
127
+ when :Object
128
+ # generic object (usually a Hash), return directly
129
+ value
130
+ when /\AArray<(?<inner_type>.+)>\z/
131
+ inner_type = Regexp.last_match[:inner_type]
132
+ value.map { |v| _deserialize(inner_type, v) }
133
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
134
+ k_type = Regexp.last_match[:k_type]
135
+ v_type = Regexp.last_match[:v_type]
136
+ {}.tap do |hash|
137
+ value.each do |k, v|
138
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
139
+ end
140
+ end
141
+ else # model
142
+ temp_model = CyberSource.const_get(type).new
143
+ temp_model.build_from_hash(value)
144
+ end
145
+ end
146
+
147
+ # Returns the string representation of the object
148
+ # @return [String] String presentation of the object
149
+ def to_s
150
+ to_hash.to_s
151
+ end
152
+
153
+ # to_body is an alias to to_hash (backward compatibility)
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_body
156
+ to_hash
157
+ end
158
+
159
+ # Returns the object in the form of hash
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_hash
162
+ hash = {}
163
+ self.class.attribute_map.each_pair do |attr, param|
164
+ value = self.send(attr)
165
+ next if value.nil?
166
+ hash[param] = _to_hash(value)
167
+ end
168
+ hash
169
+ end
170
+
171
+ # Outputs non-array value in the form of hash
172
+ # For object, use to_hash. Otherwise, just return the value
173
+ # @param [Object] value Any valid value
174
+ # @return [Hash] Returns the value in the form of hash
175
+ def _to_hash(value)
176
+ if value.is_a?(Array)
177
+ value.compact.map { |v| _to_hash(v) }
178
+ elsif value.is_a?(Hash)
179
+ {}.tap do |hash|
180
+ value.each { |k, v| hash[k] = _to_hash(v) }
181
+ end
182
+ elsif value.respond_to? :to_hash
183
+ value.to_hash
184
+ else
185
+ value
186
+ end
187
+ end
188
+ end
189
+ end