cybersource_rest_client 0.0.74 → 0.0.75

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 (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -1
  3. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -5
  4. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  5. data/lib/cybersource_rest_client/api/decision_manager_api.rb +3 -3
  6. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  7. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
  8. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +96 -0
  9. data/lib/cybersource_rest_client/models/create_order_request.rb +269 -229
  10. data/lib/cybersource_rest_client/models/de_association_request_body.rb +190 -190
  11. data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +240 -240
  12. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +303 -303
  13. data/lib/cybersource_rest_client/models/get_subscription_response.rb +267 -267
  14. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +213 -213
  15. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +292 -292
  16. data/lib/cybersource_rest_client/models/inline_response_200_10_records.rb +209 -209
  17. data/lib/cybersource_rest_client/models/inline_response_200_10_response_record.rb +307 -307
  18. data/lib/cybersource_rest_client/models/inline_response_200_10_response_record_additional_updates.rb +242 -242
  19. data/lib/cybersource_rest_client/models/inline_response_200_10_source_record.rb +295 -295
  20. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
  21. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +247 -247
  22. data/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb +357 -357
  23. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +202 -202
  24. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +247 -247
  25. data/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb +371 -371
  26. data/lib/cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map.rb +200 -200
  27. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +251 -251
  28. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded.rb +191 -191
  29. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links.rb +191 -191
  30. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links_reports.rb +190 -190
  31. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded_batches.rb +295 -295
  32. data/lib/cybersource_rest_client/models/inline_response_200_8__embedded_totals.rb +229 -229
  33. data/lib/cybersource_rest_client/models/inline_response_200_8__links.rb +200 -200
  34. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +290 -290
  35. data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +201 -201
  36. data/lib/cybersource_rest_client/models/inline_response_200_9__links_report.rb +189 -189
  37. data/lib/cybersource_rest_client/models/inline_response_200_9_billing.rb +219 -219
  38. data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -218
  39. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -248
  40. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -281
  41. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information.rb → inline_response_201_2_payout_information.rb} +216 -216
  42. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_pull_funds.rb → inline_response_201_2_payout_information_pull_funds.rb} +213 -213
  43. data/lib/cybersource_rest_client/models/{inline_response_201_1_payout_information_push_funds.rb → inline_response_201_2_payout_information_push_funds.rb} +417 -417
  44. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -222
  45. data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information.rb → inline_response_201_3_integration_information.rb} +192 -192
  46. data/lib/cybersource_rest_client/models/{inline_response_201_2_integration_information_tenant_configurations.rb → inline_response_201_3_integration_information_tenant_configurations.rb} +253 -253
  47. data/lib/cybersource_rest_client/models/{inline_response_201_2_organization_information.rb → inline_response_201_3_organization_information.rb} +217 -217
  48. data/lib/cybersource_rest_client/models/{inline_response_201_2_product_information_setups.rb → inline_response_201_3_product_information_setups.rb} +214 -214
  49. data/lib/cybersource_rest_client/models/{inline_response_201_2_registration_information.rb → inline_response_201_3_registration_information.rb} +222 -222
  50. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups.rb → inline_response_201_3_setups.rb} +219 -219
  51. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_commerce_solutions.rb → inline_response_201_3_setups_commerce_solutions.rb} +209 -209
  52. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments.rb → inline_response_201_3_setups_payments.rb} +369 -369
  53. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods.rb → inline_response_201_3_setups_payments_alternative_payment_methods.rb} +221 -221
  54. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_alternative_payment_methods_configuration_status.rb → inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb} +200 -200
  55. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing.rb → inline_response_201_3_setups_payments_card_processing.rb} +199 -199
  56. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_configuration_status.rb → inline_response_201_3_setups_payments_card_processing_configuration_status.rb} +255 -255
  57. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_card_processing_subscription_status.rb → inline_response_201_3_setups_payments_card_processing_subscription_status.rb} +234 -234
  58. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_payments_digital_payments.rb → inline_response_201_3_setups_payments_digital_payments.rb} +189 -189
  59. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_risk.rb → inline_response_201_3_setups_risk.rb} +199 -199
  60. data/lib/cybersource_rest_client/models/{inline_response_201_2_setups_value_added_services.rb → inline_response_201_3_setups_value_added_services.rb} +209 -209
  61. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -312
  62. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information.rb → inline_response_201_4_key_information.rb} +300 -300
  63. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information.rb → inline_response_201_4_key_information_error_information.rb} +202 -202
  64. data/lib/cybersource_rest_client/models/{inline_response_201_3_key_information_error_information_details.rb → inline_response_201_4_key_information_error_information_details.rb} +201 -201
  65. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +312 -277
  66. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -202
  67. data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads.rb → inline_response_201_6_payloads.rb} +189 -189
  68. data/lib/cybersource_rest_client/models/{inline_response_201_5_payloads_test_payload.rb → inline_response_201_6_payloads_test_payload.rb} +190 -190
  69. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -0
  70. data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -0
  71. data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -0
  72. data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -0
  73. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -0
  74. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -0
  75. data/lib/cybersource_rest_client/models/payments_products.rb +379 -379
  76. data/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb +199 -199
  77. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb +189 -189
  78. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb +189 -189
  79. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb +189 -189
  80. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb +213 -213
  81. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb +225 -225
  82. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +189 -189
  83. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb +190 -190
  84. data/lib/cybersource_rest_client/models/post_device_search_request.rb +223 -223
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -354
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -0
  90. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -0
  91. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -0
  92. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
  93. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  94. data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -0
  95. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -332
  96. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -189
  97. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -0
  98. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -0
  99. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -219
  100. data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -0
  101. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -0
  102. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -0
  103. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -0
  104. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -0
  105. data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -0
  106. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -400
  107. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
  108. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +433 -416
  109. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -651
  110. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -699
  111. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -346
  112. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  113. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  114. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -0
  115. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  116. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
  117. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -0
  118. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -0
  119. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
  120. data/lib/cybersource_rest_client/models/request.rb +199 -0
  121. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
  122. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  123. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  124. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
  125. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  126. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
  127. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  128. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +252 -252
  129. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
  130. data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
  131. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
  132. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
  133. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
  134. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
  135. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
  136. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +394 -394
  137. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
  138. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -234
  139. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  140. data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +297 -297
  141. data/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +219 -219
  142. data/lib/cybersource_rest_client.rb +47 -24
  143. metadata +49 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11de49df956c65f366c745ee79944c9fa597d1dd21334cc572469ccdc50b9bb9
4
- data.tar.gz: 1f851236719f9c3a3dce1b5b41cbdec1e2dccd5b650e780e73dde2ba88b4514a
3
+ metadata.gz: 0cc4b4570c87bc2e919ba22258de9cf700cd948e80365e22a9cb836662d26539
4
+ data.tar.gz: 1039c93e150231700b175bdceb16800b7b194174576ca7934372bd711179188b
5
5
  SHA512:
6
- metadata.gz: 01d5b1c0c0d4732a60bce2155fb2c79ba322fd4176466259c758ced27f9d00bd474eda58c7d2df6dcec9a0a120aee831a71c1e20f3cf4cd5d648481c4b91e9ac
7
- data.tar.gz: 1387668e0a3c75bc5f3afc3331525adad79917145d2b502af9fb9273d0adf85eb5b114be187ea3aec7b3c03db8880e3e877de5ac52ebbe62d310285f126a81db
6
+ metadata.gz: f2cd65e1d3f83449031b9a4a2784457c7f852deb743060fde4a30c305ba222f48ef8ff7abb57377a24066bdd6fc6a6ba212671572efb0d54a3b8b329eda5020b
7
+ data.tar.gz: bdfb74f86a6eedb592cccc8535766f384585535fbd29082e6ef4a0d2cbe459dc7a1eca80cbdfaf9e39354ad85768447b26465ef5fbe92d9ae78963804d18b731
@@ -274,7 +274,8 @@ public
274
274
  end
275
275
  end
276
276
 
277
- def logAllProperties(propertyObj)
277
+ def logAllProperties(merchantPropertyObj)
278
+ propertyObj = Marshal.load(Marshal.dump(merchantPropertyObj))
278
279
  merchantConfig = ''
279
280
  hiddenProperties = (Constants::HIDDEN_MERCHANT_PROPERTIES).split(',')
280
281
  hiddenPropArray = Array.new
@@ -20,11 +20,11 @@ module CyberSource
20
20
  @api_client.set_configuration(config)
21
21
  end
22
22
  # BIN Lookup API
23
- # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.
23
+ # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks (such as Visa, American Express, Discover and several regional networks) which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.
24
24
  #
25
25
  # @param create_bin_lookup_request
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse2011]
27
+ # @return [InlineResponse2012]
28
28
  #
29
29
  # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
30
30
  def get_account_info(create_bin_lookup_request, opts = {})
@@ -33,10 +33,10 @@ module CyberSource
33
33
  end
34
34
 
35
35
  # BIN Lookup API
36
- # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.
36
+ # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks (such as Visa, American Express, Discover and several regional networks) which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.
37
37
  # @param create_bin_lookup_request
38
38
  # @param [Hash] opts the optional parameters
39
- # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers
39
+ # @return [Array<(InlineResponse2012, Fixnum, Hash)>] InlineResponse2012 data, response status code and response headers
40
40
  def get_account_info_with_http_info(create_bin_lookup_request, opts = {})
41
41
 
42
42
  if @api_client.config.debugging
@@ -82,7 +82,7 @@ module CyberSource
82
82
  :form_params => form_params,
83
83
  :body => post_body,
84
84
  :auth_names => auth_names,
85
- :return_type => 'InlineResponse2011')
85
+ :return_type => 'InlineResponse2012')
86
86
  if @api_client.config.debugging
87
87
  begin
88
88
  raise
@@ -99,7 +99,7 @@ module CyberSource
99
99
  #
100
100
  # @param [Hash] opts the optional parameters
101
101
  # @option opts [CreateWebhook] :create_webhook The webhook payload
102
- # @return [InlineResponse2014]
102
+ # @return [InlineResponse2015]
103
103
  #
104
104
  def notification_subscriptions_v2_webhooks_post(opts = {})
105
105
  data, status_code, headers = notification_subscriptions_v2_webhooks_post_with_http_info(opts)
@@ -110,7 +110,7 @@ module CyberSource
110
110
  # Create a new webhook subscription. Before creating a webhook, ensure that a signature key has been created. For the example \&quot;Create Webhook using oAuth with Client Credentials\&quot; - for clients who have more than one oAuth Provider and have different client secrets that they would like to config for a given webhook, they may do so by overriding the keyId inside security config of webhook subscription. See the Developer Center examples section titled \&quot;Webhook Security - Create or Store Egress Symmetric Key - Store oAuth Credentials For Symmetric Key\&quot; to store these oAuth credentials that CYBS will need for oAuth. For JWT authentication, attach your oAuth details to the webhook subscription. See the example \&quot;Create Webhook using oAuth with JWT\&quot;
111
111
  # @param [Hash] opts the optional parameters
112
112
  # @option opts [CreateWebhook] :create_webhook The webhook payload
113
- # @return [Array<(InlineResponse2014, Fixnum, Hash)>] InlineResponse2014 data, response status code and response headers
113
+ # @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
114
114
  def notification_subscriptions_v2_webhooks_post_with_http_info(opts = {})
115
115
 
116
116
  if @api_client.config.debugging
@@ -152,7 +152,7 @@ module CyberSource
152
152
  :form_params => form_params,
153
153
  :body => post_body,
154
154
  :auth_names => auth_names,
155
- :return_type => 'InlineResponse2014')
155
+ :return_type => 'InlineResponse2015')
156
156
  if @api_client.config.debugging
157
157
  begin
158
158
  raise
@@ -171,7 +171,7 @@ module CyberSource
171
171
  # @param [Hash] opts the optional parameters
172
172
  # @option opts [String] :v_c_correlation_id A globally unique id associated with your request
173
173
  # @option opts [SaveSymEgressKey] :save_sym_egress_key Provide egress Symmetric key information to save (create or store or refresh)
174
- # @return [InlineResponse2013]
174
+ # @return [InlineResponse2014]
175
175
  #
176
176
  def save_sym_egress_key(v_c_sender_organization_id, v_c_permissions, opts = {})
177
177
  data, status_code, headers = save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, opts)
@@ -185,7 +185,7 @@ module CyberSource
185
185
  # @param [Hash] opts the optional parameters
186
186
  # @option opts [String] :v_c_correlation_id A globally unique id associated with your request
187
187
  # @option opts [SaveSymEgressKey] :save_sym_egress_key Provide egress Symmetric key information to save (create or store or refresh)
188
- # @return [Array<(InlineResponse2013, Fixnum, Hash)>] InlineResponse2013 data, response status code and response headers
188
+ # @return [Array<(InlineResponse2014, Fixnum, Hash)>] InlineResponse2014 data, response status code and response headers
189
189
  def save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, opts = {})
190
190
 
191
191
  if @api_client.config.debugging
@@ -246,7 +246,7 @@ module CyberSource
246
246
  :form_params => form_params,
247
247
  :body => post_body,
248
248
  :auth_names => auth_names,
249
- :return_type => 'InlineResponse2013')
249
+ :return_type => 'InlineResponse2014')
250
250
  if @api_client.config.debugging
251
251
  begin
252
252
  raise
@@ -183,7 +183,7 @@ module CyberSource
183
183
  # @param id An unique identification number generated by Cybersource to identify the submitted request.
184
184
  # @param case_management_comments_request
185
185
  # @param [Hash] opts the optional parameters
186
- # @return [InlineResponse201]
186
+ # @return [InlineResponse2011]
187
187
  #
188
188
  def comment_decision_manager_case(id, case_management_comments_request, opts = {})
189
189
  data, status_code, headers = comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts)
@@ -195,7 +195,7 @@ module CyberSource
195
195
  # @param id An unique identification number generated by Cybersource to identify the submitted request.
196
196
  # @param case_management_comments_request
197
197
  # @param [Hash] opts the optional parameters
198
- # @return [Array<(InlineResponse201, Fixnum, Hash)>] InlineResponse201 data, response status code and response headers
198
+ # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers
199
199
  def comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts = {})
200
200
 
201
201
  if @api_client.config.debugging
@@ -245,7 +245,7 @@ module CyberSource
245
245
  :form_params => form_params,
246
246
  :body => post_body,
247
247
  :auth_names => auth_names,
248
- :return_type => 'InlineResponse201')
248
+ :return_type => 'InlineResponse2011')
249
249
  if @api_client.config.debugging
250
250
  begin
251
251
  raise
@@ -98,7 +98,7 @@ module CyberSource
98
98
  #
99
99
  # @param webhook_id The webhook Identifier
100
100
  # @param [Hash] opts the optional parameters
101
- # @return [InlineResponse2014]
101
+ # @return [InlineResponse2015]
102
102
  #
103
103
  def get_webhook_subscription_by_id(webhook_id, opts = {})
104
104
  data, status_code, headers = get_webhook_subscription_by_id_with_http_info(webhook_id, opts)
@@ -109,7 +109,7 @@ module CyberSource
109
109
  # Retrieve the details of a specific webhook by supplying the webhook ID in the path.
110
110
  # @param webhook_id The webhook Identifier
111
111
  # @param [Hash] opts the optional parameters
112
- # @return [Array<(InlineResponse2014, Fixnum, Hash)>] InlineResponse2014 data, response status code and response headers
112
+ # @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
113
113
  def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {})
114
114
 
115
115
  if @api_client.config.debugging
@@ -157,7 +157,7 @@ module CyberSource
157
157
  :form_params => form_params,
158
158
  :body => post_body,
159
159
  :auth_names => auth_names,
160
- :return_type => 'InlineResponse2014')
160
+ :return_type => 'InlineResponse2015')
161
161
  if @api_client.config.debugging
162
162
  begin
163
163
  raise
@@ -255,7 +255,7 @@ module CyberSource
255
255
  #
256
256
  # @param webhook_id The Webhook Identifier.
257
257
  # @param [Hash] opts the optional parameters
258
- # @return [InlineResponse2015]
258
+ # @return [InlineResponse2016]
259
259
  #
260
260
  def notification_subscriptions_v1_webhooks_webhook_id_post(webhook_id, opts = {})
261
261
  data, status_code, headers = notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(webhook_id, opts)
@@ -266,7 +266,7 @@ module CyberSource
266
266
  # Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user&#39;s subscription. It will contain sample values for the product &amp; eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
267
267
  # @param webhook_id The Webhook Identifier.
268
268
  # @param [Hash] opts the optional parameters
269
- # @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
269
+ # @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
270
270
  def notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(webhook_id, opts = {})
271
271
 
272
272
  if @api_client.config.debugging
@@ -314,7 +314,7 @@ module CyberSource
314
314
  :form_params => form_params,
315
315
  :body => post_body,
316
316
  :auth_names => auth_names,
317
- :return_type => 'InlineResponse2015')
317
+ :return_type => 'InlineResponse2016')
318
318
  if @api_client.config.debugging
319
319
  begin
320
320
  raise
@@ -481,7 +481,7 @@ module CyberSource
481
481
  # @param save_asym_egress_key Provide egress Asymmetric key information to save (create or store)
482
482
  # @param [Hash] opts the optional parameters
483
483
  # @option opts [String] :v_c_correlation_id A globally unique id associated with your request
484
- # @return [InlineResponse2016]
484
+ # @return [InlineResponse2017]
485
485
  #
486
486
  def save_asym_egress_key(v_c_sender_organization_id, v_c_permissions, save_asym_egress_key, opts = {})
487
487
  data, status_code, headers = save_asym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, save_asym_egress_key, opts)
@@ -495,7 +495,7 @@ module CyberSource
495
495
  # @param save_asym_egress_key Provide egress Asymmetric key information to save (create or store)
496
496
  # @param [Hash] opts the optional parameters
497
497
  # @option opts [String] :v_c_correlation_id A globally unique id associated with your request
498
- # @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
498
+ # @return [Array<(InlineResponse2017, Fixnum, Hash)>] InlineResponse2017 data, response status code and response headers
499
499
  def save_asym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, save_asym_egress_key, opts = {})
500
500
 
501
501
  if @api_client.config.debugging
@@ -560,7 +560,7 @@ module CyberSource
560
560
  :form_params => form_params,
561
561
  :body => post_body,
562
562
  :auth_names => auth_names,
563
- :return_type => 'InlineResponse2016')
563
+ :return_type => 'InlineResponse2017')
564
564
  if @api_client.config.debugging
565
565
  begin
566
566
  raise
@@ -100,7 +100,7 @@ module CyberSource
100
100
  # @param post_registration_body Boarding registration data
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @option opts [String] :v_c_idempotency_id defines idempotency of the request
103
- # @return [InlineResponse2012]
103
+ # @return [InlineResponse2013]
104
104
  #
105
105
  def post_registration(post_registration_body, opts = {})
106
106
  data, status_code, headers = post_registration_with_http_info(post_registration_body, opts)
@@ -112,7 +112,7 @@ module CyberSource
112
112
  # @param post_registration_body Boarding registration data
113
113
  # @param [Hash] opts the optional parameters
114
114
  # @option opts [String] :v_c_idempotency_id defines idempotency of the request
115
- # @return [Array<(InlineResponse2012, Fixnum, Hash)>] InlineResponse2012 data, response status code and response headers
115
+ # @return [Array<(InlineResponse2013, Fixnum, Hash)>] InlineResponse2013 data, response status code and response headers
116
116
  def post_registration_with_http_info(post_registration_body, opts = {})
117
117
 
118
118
  if @api_client.config.debugging
@@ -159,7 +159,7 @@ module CyberSource
159
159
  :form_params => form_params,
160
160
  :body => post_body,
161
161
  :auth_names => auth_names,
162
- :return_type => 'InlineResponse2012')
162
+ :return_type => 'InlineResponse2013')
163
163
  if @api_client.config.debugging
164
164
  begin
165
165
  raise
@@ -0,0 +1,96 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'uri'
13
+ require 'AuthenticationSDK/util/MLEUtility'
14
+ module CyberSource
15
+ class PaymentTokensApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default, config)
19
+ @api_client = api_client
20
+ @api_client.set_configuration(config)
21
+ end
22
+ # Retrieve or Delete Payment Token
23
+ # This API can be used in two flavours - for retrieval or deletion of vault id.
24
+ #
25
+ # @param request
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [InlineResponse201]
28
+ #
29
+ def retrieve_or_delete_payment_token(request, opts = {})
30
+ data, status_code, headers = retrieve_or_delete_payment_token_with_http_info(request, opts)
31
+ return data, status_code, headers
32
+ end
33
+
34
+ # Retrieve or Delete Payment Token
35
+ # This API can be used in two flavours - for retrieval or deletion of vault id.
36
+ # @param request
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(InlineResponse201, Fixnum, Hash)>] InlineResponse201 data, response status code and response headers
39
+ def retrieve_or_delete_payment_token_with_http_info(request, opts = {})
40
+
41
+ if @api_client.config.debugging
42
+ begin
43
+ raise
44
+ @api_client.config.logger.debug 'Calling API: PaymentTokensApi.retrieve_or_delete_payment_token ...'
45
+ rescue
46
+ puts 'Cannot write to log'
47
+ end
48
+ end
49
+ # verify the required parameter 'request' is set
50
+ if @api_client.config.client_side_validation && request.nil?
51
+ fail ArgumentError, "Missing the required parameter 'request' when calling PaymentTokensApi.retrieve_or_delete_payment_token"
52
+ end
53
+ # resource path
54
+ local_var_path = 'pts/v2/payment-tokens'
55
+
56
+ # query parameters
57
+ query_params = {}
58
+
59
+ # header parameters
60
+ header_params = {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
63
+ # HTTP header 'Content-Type'
64
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
65
+
66
+ # form parameters
67
+ form_params = {}
68
+
69
+ # http body (model)
70
+ post_body = @api_client.object_to_http_body(request)
71
+ sdk_tracker = SdkTracker.new
72
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Request', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
+ is_mle_supported_by_cybs_for_api = false
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["retrieve_or_delete_payment_token","retrieve_or_delete_payment_token_with_http_info"])
75
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
+ end
77
+ auth_names = []
78
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => 'InlineResponse201')
85
+ if @api_client.config.debugging
86
+ begin
87
+ raise
88
+ @api_client.config.logger.debug "API called: PaymentTokensApi#retrieve_or_delete_payment_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ rescue
90
+ puts 'Cannot write to log'
91
+ end
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+ end
96
+ end