cybersource_rest_client 0.0.75 → 0.0.77

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 (210) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +6 -17
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +132 -54
  4. data/lib/AuthenticationSDK/util/Cache.rb +135 -30
  5. data/lib/AuthenticationSDK/util/CacheValue.rb +18 -0
  6. data/lib/AuthenticationSDK/util/CertificateUtility.rb +124 -0
  7. data/lib/AuthenticationSDK/util/Constants.rb +6 -0
  8. data/lib/AuthenticationSDK/util/JWEUtility.rb +1 -2
  9. data/lib/AuthenticationSDK/util/MLEUtility.rb +26 -35
  10. data/lib/AuthenticationSDK/util/Utility.rb +1 -16
  11. data/lib/cybersource_rest_client/api/batches_api.rb +17 -17
  12. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -6
  13. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +2 -2
  14. data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +2 -2
  16. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  19. data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
  20. data/lib/cybersource_rest_client/api/customer_api.rb +8 -8
  21. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +10 -10
  22. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +10 -10
  23. data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -10
  24. data/lib/cybersource_rest_client/api/device_de_association_api.rb +7 -7
  25. data/lib/cybersource_rest_client/api/device_search_api.rb +10 -10
  26. data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
  27. data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
  28. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +4 -4
  29. data/lib/cybersource_rest_client/api/flex_api_api.rb +2 -2
  30. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -12
  31. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +2 -2
  32. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +4 -4
  33. data/lib/cybersource_rest_client/api/invoices_api.rb +87 -12
  34. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +18 -17
  35. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +4 -4
  36. data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -2
  37. data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
  38. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
  39. data/lib/cybersource_rest_client/api/orders_api.rb +4 -4
  40. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -6
  41. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
  42. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +8 -8
  43. data/lib/cybersource_rest_client/api/payment_links_api.rb +12 -12
  44. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +2 -2
  45. data/lib/cybersource_rest_client/api/payments_api.rb +12 -12
  46. data/lib/cybersource_rest_client/api/payouts_api.rb +2 -2
  47. data/lib/cybersource_rest_client/api/plans_api.rb +16 -16
  48. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
  49. data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -2
  50. data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
  51. data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
  52. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
  53. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +10 -10
  54. data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
  55. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +2 -2
  56. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +2 -2
  57. data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
  58. data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
  59. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
  60. data/lib/cybersource_rest_client/api/subscriptions_api.rb +16 -16
  61. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +4 -4
  62. data/lib/cybersource_rest_client/api/taxes_api.rb +4 -4
  63. data/lib/cybersource_rest_client/api/token_api.rb +4 -4
  64. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +6 -6
  65. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +8 -8
  66. data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
  67. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +4 -4
  68. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -2
  69. data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
  70. data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -2
  71. data/lib/cybersource_rest_client/api/verification_api.rb +4 -4
  72. data/lib/cybersource_rest_client/api/void_api.rb +10 -10
  73. data/lib/cybersource_rest_client/api_client.rb +3 -1
  74. data/lib/cybersource_rest_client/ethon_extensions.rb +38 -0
  75. data/lib/cybersource_rest_client/models/create_order_request.rb +269 -269
  76. data/lib/cybersource_rest_client/models/create_webhook.rb +16 -3
  77. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +47 -49
  78. data/lib/cybersource_rest_client/models/{inline_response_200_8__links.rb → inline_response_200_10__links.rb} +18 -17
  79. data/lib/cybersource_rest_client/models/{inline_response_200_9__links_report.rb → inline_response_200_10__links_report.rb} +1 -1
  80. data/lib/cybersource_rest_client/models/{inline_response_200_9_billing.rb → inline_response_200_10_billing.rb} +1 -1
  81. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +292 -0
  82. data/lib/cybersource_rest_client/models/{inline_response_200_10_records.rb → inline_response_200_11_records.rb} +3 -3
  83. data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record.rb → inline_response_200_11_response_record.rb} +2 -2
  84. data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record_additional_updates.rb → inline_response_200_11_response_record_additional_updates.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/{inline_response_200_10_source_record.rb → inline_response_200_11_source_record.rb} +1 -1
  86. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
  87. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +12 -10
  88. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +129 -51
  89. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +55 -10
  90. data/lib/cybersource_rest_client/models/{inline_response_200_5_devices.rb → inline_response_200_6_devices.rb} +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +10 -55
  92. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +33 -37
  93. data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +2 -2
  94. data/lib/cybersource_rest_client/models/{inline_response_200_7_payment_processor_to_terminal_map.rb → inline_response_200_8_payment_processor_to_terminal_map.rb} +1 -1
  95. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -86
  96. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded.rb → inline_response_200_9__embedded.rb} +2 -2
  97. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links.rb → inline_response_200_9__embedded__links.rb} +2 -2
  98. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links_reports.rb → inline_response_200_9__embedded__links_reports.rb} +1 -1
  99. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_batches.rb → inline_response_200_9__embedded_batches.rb} +3 -3
  100. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_totals.rb → inline_response_200_9__embedded_totals.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +16 -17
  102. data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -227
  103. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -218
  104. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -248
  105. data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information.rb +216 -216
  106. data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds.rb +213 -213
  107. data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds.rb +417 -417
  108. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -281
  109. data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information.rb +192 -192
  110. data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations.rb +253 -253
  111. data/lib/cybersource_rest_client/models/inline_response_201_3_organization_information.rb +217 -217
  112. data/lib/cybersource_rest_client/models/inline_response_201_3_product_information_setups.rb +214 -214
  113. data/lib/cybersource_rest_client/models/inline_response_201_3_registration_information.rb +222 -222
  114. data/lib/cybersource_rest_client/models/inline_response_201_3_setups.rb +219 -219
  115. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions.rb +209 -209
  116. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +369 -369
  117. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods.rb +221 -221
  118. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb +200 -200
  119. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing.rb +199 -199
  120. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status.rb +255 -255
  121. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status.rb +234 -234
  122. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments.rb +189 -189
  123. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_risk.rb +199 -199
  124. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_value_added_services.rb +209 -209
  125. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -222
  126. data/lib/cybersource_rest_client/models/inline_response_201_4_key_information.rb +300 -300
  127. data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information.rb +202 -202
  128. data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details.rb +201 -201
  129. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +314 -312
  130. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -277
  131. data/lib/cybersource_rest_client/models/inline_response_201_6_payloads.rb +189 -189
  132. data/lib/cybersource_rest_client/models/inline_response_201_6_payloads_test_payload.rb +190 -190
  133. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -202
  134. data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -189
  135. data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -315
  136. data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -199
  137. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -196
  138. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -213
  139. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -5
  140. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +18 -5
  141. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config.rb → invoicing_v2_invoices_post201_response_invoice_information_custom_labels.rb} +57 -34
  142. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +268 -0
  143. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -5
  144. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +2 -0
  145. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +1 -1
  146. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +16 -17
  147. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb → notificationsubscriptionsv2webhooks_security_policy_config_additional_config.rb} +1 -1
  148. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  149. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -364
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -213
  153. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -252
  154. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -240
  155. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
  156. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  157. data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -212
  158. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -354
  159. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -220
  160. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -196
  161. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -241
  162. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -351
  163. data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -245
  164. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -277
  165. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -190
  166. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -211
  167. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -245
  168. data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -189
  169. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -417
  170. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
  171. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +461 -433
  172. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -668
  173. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -716
  174. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -356
  175. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  176. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
  177. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  178. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -196
  179. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  180. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method.rb +1 -1
  181. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
  182. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -199
  183. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -192
  184. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
  185. data/lib/cybersource_rest_client/models/request.rb +199 -199
  186. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
  187. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  188. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  189. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
  190. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  191. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
  192. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  193. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
  194. data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
  195. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
  196. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
  197. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
  198. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +11 -1
  199. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation.rb +211 -0
  200. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
  201. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
  202. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +16 -5
  203. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +15 -5
  204. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
  205. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -245
  206. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  207. data/lib/cybersource_rest_client/models/update_webhook.rb +19 -19
  208. data/lib/cybersource_rest_client.rb +20 -18
  209. metadata +25 -20
  210. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +0 -201
@@ -13,57 +13,96 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse2005
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<InlineResponse2005Devices>'
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 InlineResponse2006
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<InlineResponse2006Devices>'
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 InlineResponse2005Devices
15
+ class InlineResponse2006Devices
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 InlineResponse2007
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<InlineResponse2007Devices>'
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
@@ -13,56 +13,57 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse2008
16
- attr_accessor :_links
17
-
18
- attr_accessor :object
16
+ # Total number of results.
17
+ attr_accessor :total_count
19
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
20
  attr_accessor :offset
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.
22
23
  attr_accessor :limit
23
24
 
24
- attr_accessor :count
25
+ # A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate`
26
+ attr_accessor :sort
25
27
 
26
- attr_accessor :total
28
+ # Results for this page, this could be below the limit.
29
+ attr_accessor :count
27
30
 
28
- attr_accessor :_embedded
31
+ # A collection of devices
32
+ attr_accessor :devices
29
33
 
30
34
  # Attribute mapping from ruby-style variable name to JSON key.
31
35
  def self.attribute_map
32
36
  {
33
- :'_links' => :'_links',
34
- :'object' => :'object',
37
+ :'total_count' => :'totalCount',
35
38
  :'offset' => :'offset',
36
39
  :'limit' => :'limit',
40
+ :'sort' => :'sort',
37
41
  :'count' => :'count',
38
- :'total' => :'total',
39
- :'_embedded' => :'_embedded'
42
+ :'devices' => :'devices'
40
43
  }
41
44
  end
42
45
 
43
46
  # Attribute mapping from JSON key to ruby-style variable name.
44
47
  def self.json_map
45
48
  {
46
- :'_links' => :'_links',
47
- :'object' => :'object',
49
+ :'total_count' => :'total_count',
48
50
  :'offset' => :'offset',
49
51
  :'limit' => :'limit',
52
+ :'sort' => :'sort',
50
53
  :'count' => :'count',
51
- :'total' => :'total',
52
- :'_embedded' => :'_embedded'
54
+ :'devices' => :'devices'
53
55
  }
54
56
  end
55
57
 
56
58
  # Attribute type mapping.
57
59
  def self.swagger_types
58
60
  {
59
- :'_links' => :'Array<InlineResponse2008Links>',
60
- :'object' => :'String',
61
+ :'total_count' => :'Integer',
61
62
  :'offset' => :'Integer',
62
63
  :'limit' => :'Integer',
64
+ :'sort' => :'String',
63
65
  :'count' => :'Integer',
64
- :'total' => :'Integer',
65
- :'_embedded' => :'InlineResponse2008Embedded'
66
+ :'devices' => :'Array<InlineResponse2008Devices>'
66
67
  }
67
68
  end
68
69
 
@@ -74,14 +75,8 @@ module CyberSource
74
75
  # convert string to symbol for hash key
75
76
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
77
 
77
- if attributes.has_key?(:'_links')
78
- if (value = attributes[:'_links']).is_a?(Array)
79
- self._links = value
80
- end
81
- end
82
-
83
- if attributes.has_key?(:'object')
84
- self.object = attributes[:'object']
78
+ if attributes.has_key?(:'totalCount')
79
+ self.total_count = attributes[:'totalCount']
85
80
  end
86
81
 
87
82
  if attributes.has_key?(:'offset')
@@ -92,16 +87,18 @@ module CyberSource
92
87
  self.limit = attributes[:'limit']
93
88
  end
94
89
 
95
- if attributes.has_key?(:'count')
96
- self.count = attributes[:'count']
90
+ if attributes.has_key?(:'sort')
91
+ self.sort = attributes[:'sort']
97
92
  end
98
93
 
99
- if attributes.has_key?(:'total')
100
- self.total = attributes[:'total']
94
+ if attributes.has_key?(:'count')
95
+ self.count = attributes[:'count']
101
96
  end
102
97
 
103
- if attributes.has_key?(:'_embedded')
104
- self._embedded = attributes[:'_embedded']
98
+ if attributes.has_key?(:'devices')
99
+ if (value = attributes[:'devices']).is_a?(Array)
100
+ self.devices = value
101
+ end
105
102
  end
106
103
  end
107
104
 
@@ -123,13 +120,12 @@ module CyberSource
123
120
  def ==(o)
124
121
  return true if self.equal?(o)
125
122
  self.class == o.class &&
126
- _links == o._links &&
127
- object == o.object &&
123
+ total_count == o.total_count &&
128
124
  offset == o.offset &&
129
125
  limit == o.limit &&
126
+ sort == o.sort &&
130
127
  count == o.count &&
131
- total == o.total &&
132
- _embedded == o._embedded
128
+ devices == o.devices
133
129
  end
134
130
 
135
131
  # @see the `==` method
@@ -141,7 +137,7 @@ module CyberSource
141
137
  # Calculates hash code according to all attributes.
142
138
  # @return [Fixnum] Hash code
143
139
  def hash
144
- [_links, object, offset, limit, count, total, _embedded].hash
140
+ [total_count, offset, limit, sort, count, devices].hash
145
141
  end
146
142
 
147
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 :serial_number
@@ -93,7 +93,7 @@ module CyberSource
93
93
  :'account_id' => :'String',
94
94
  :'terminal_creation_date' => :'DateTime',
95
95
  :'terminal_updation_date' => :'DateTime',
96
- :'payment_processor_to_terminal_map' => :'InlineResponse2007PaymentProcessorToTerminalMap'
96
+ :'payment_processor_to_terminal_map' => :'InlineResponse2008PaymentProcessorToTerminalMap'
97
97
  }
98
98
  end
99
99
 
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  # Mapping between processor and Terminal.
16
- class InlineResponse2007PaymentProcessorToTerminalMap
16
+ class InlineResponse2008PaymentProcessorToTerminalMap
17
17
  attr_accessor :processor
18
18
 
19
19
  attr_accessor :terminal_id