cybersource_rest_client 0.0.53 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +2 -2
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +6 -6
  4. data/lib/AuthenticationSDK/core/MerchantConfig.rb +6 -0
  5. data/lib/AuthenticationSDK/util/Cache.rb +15 -1
  6. data/lib/AuthenticationSDK/util/Constants.rb +1 -1
  7. data/lib/AuthenticationSDK/util/JWEUtility.rb +14 -0
  8. data/lib/cybersource_rest_client/api/batches_api.rb +12 -12
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +231 -0
  10. data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
  11. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
  13. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/plans_api.rb +32 -32
  16. data/lib/cybersource_rest_client/api/subscriptions_api.rb +32 -32
  17. data/lib/cybersource_rest_client/api/void_api.rb +2 -2
  18. data/lib/cybersource_rest_client/models/access_token_response.rb +244 -244
  19. data/lib/cybersource_rest_client/models/activate_deactivate_plan_response.rb +239 -0
  20. data/lib/cybersource_rest_client/models/{inline_response_200_9.rb → activate_subscription_response.rb} +2 -2
  21. data/lib/cybersource_rest_client/models/{inline_response_200_9_subscription_information.rb → activate_subscription_response_subscription_information.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/bad_request_error.rb +192 -192
  23. data/lib/cybersource_rest_client/models/{inline_response_202_1.rb → cancel_subscription_response.rb} +2 -2
  24. data/lib/cybersource_rest_client/models/{inline_response_202_subscription_information.rb → cancel_subscription_response_subscription_information.rb} +1 -1
  25. data/lib/cybersource_rest_client/models/case_management_actions_request.rb +200 -0
  26. data/lib/cybersource_rest_client/models/case_management_comments_request.rb +206 -0
  27. data/lib/cybersource_rest_client/models/create_access_token_request.rb +254 -254
  28. data/lib/cybersource_rest_client/models/{inline_response_200_14.rb → create_billing_agreement.rb} +65 -88
  29. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +15 -5
  30. data/lib/cybersource_rest_client/models/create_plan_response.rb +239 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_201_plan_information.rb → create_plan_response_plan_information.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  33. data/lib/cybersource_rest_client/models/{inline_response_201_1.rb → create_subscription_response.rb} +3 -3
  34. data/lib/cybersource_rest_client/models/{inline_response_201_1__links.rb → create_subscription_response__links.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_201_1_subscription_information.rb → create_subscription_response_subscription_information.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/delete_plan_response.rb +202 -0
  37. data/lib/cybersource_rest_client/models/{inline_response_202_2.rb → get_all_plans_response.rb} +31 -18
  38. data/lib/cybersource_rest_client/models/{inline_response_200__links.rb → get_all_plans_response__links.rb} +1 -1
  39. data/lib/cybersource_rest_client/models/{inline_response_200_order_information.rb → get_all_plans_response_order_information.rb} +2 -2
  40. data/lib/cybersource_rest_client/models/{inline_response_200_order_information_amount_details.rb → get_all_plans_response_order_information_amount_details.rb} +1 -1
  41. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information.rb → get_all_plans_response_plan_information.rb} +3 -3
  42. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_cycles.rb → get_all_plans_response_plan_information_billing_cycles.rb} +1 -1
  43. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_period.rb → get_all_plans_response_plan_information_billing_period.rb} +1 -1
  44. data/lib/cybersource_rest_client/models/{inline_response_200_plans.rb → get_all_plans_response_plans.rb} +3 -3
  45. data/lib/cybersource_rest_client/models/{inline_response_200_6.rb → get_all_subscriptions_response.rb} +3 -3
  46. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → get_all_subscriptions_response__links.rb} +1 -1
  47. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +200 -0
  48. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information_bill_to.rb → get_all_subscriptions_response_order_information_bill_to.rb} +1 -1
  49. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information.rb → get_all_subscriptions_response_payment_information.rb} +2 -2
  50. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information_customer.rb → get_all_subscriptions_response_payment_information_customer.rb} +1 -1
  51. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information.rb → get_all_subscriptions_response_plan_information.rb} +3 -3
  52. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information_billing_cycles.rb → get_all_subscriptions_response_plan_information_billing_cycles.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscription_information.rb → get_all_subscriptions_response_subscription_information.rb} +1 -1
  54. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscriptions.rb → get_all_subscriptions_response_subscriptions.rb} +6 -6
  55. data/lib/cybersource_rest_client/models/{inline_response_200_5.rb → get_plan_code_response.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/get_plan_response.rb +238 -0
  57. data/lib/cybersource_rest_client/models/{inline_response_200_10.rb → get_subscription_code_response.rb} +1 -1
  58. data/lib/cybersource_rest_client/models/{inline_response_200_7.rb → get_subscription_response.rb} +6 -6
  59. data/lib/cybersource_rest_client/models/inline_response_200.rb +30 -25
  60. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +50 -40
  61. data/lib/cybersource_rest_client/models/{inline_response_200_11_keys.rb → inline_response_200_1_keys.rb} +1 -1
  62. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +67 -17
  63. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
  64. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
  65. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
  66. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
  67. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/{inline_response_200_12__links.rb → inline_response_200_2__links.rb} +1 -1
  69. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +81 -29
  70. data/lib/cybersource_rest_client/models/{inline_response_200_13__links.rb → inline_response_200_3__links.rb} +3 -3
  71. data/lib/cybersource_rest_client/models/{inline_response_202_2__links_status.rb → inline_response_200_3__links_report.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/{inline_response_200_13_billing.rb → inline_response_200_3_billing.rb} +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +96 -42
  74. data/lib/cybersource_rest_client/models/{inline_response_200_14_records.rb → inline_response_200_4_records.rb} +3 -3
  75. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
  76. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record_additional_updates.rb → inline_response_200_4_response_record_additional_updates.rb} +1 -1
  77. data/lib/cybersource_rest_client/models/{inline_response_200_14_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
  78. data/lib/cybersource_rest_client/models/inline_response_200__embedded.rb +201 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture.rb +202 -0
  80. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links.rb +191 -0
  81. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links_self.rb +203 -0
  82. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links.rb +191 -0
  84. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links_self.rb +203 -0
  85. data/lib/cybersource_rest_client/models/inline_response_201.rb +7 -27
  86. data/lib/cybersource_rest_client/models/inline_response_202.rb +17 -45
  87. data/lib/cybersource_rest_client/models/{inline_response_202_2__links.rb → inline_response_202__links.rb} +2 -2
  88. data/lib/cybersource_rest_client/models/{inline_response_200_13__links_report.rb → inline_response_202__links_status.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +3 -3
  90. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +37 -60
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +61 -37
  93. data/lib/cybersource_rest_client/models/{inline_response_400_3_fields.rb → inline_response_400_4_fields.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +10 -11
  95. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
  96. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +276 -0
  97. data/lib/cybersource_rest_client/models/{inline_response_400_6_details.rb → inline_response_400_7_details.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/inline_response_403_1.rb +236 -0
  99. data/lib/cybersource_rest_client/models/inline_response_422.rb +236 -0
  100. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +20 -8
  101. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +224 -0
  102. data/lib/cybersource_rest_client/models/inline_response_502.rb +13 -12
  103. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +235 -0
  104. data/lib/cybersource_rest_client/models/inline_response_503.rb +236 -0
  105. data/lib/cybersource_rest_client/models/{inline_response_200_12.rb → intimate_billing_agreement.rb} +37 -59
  106. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  107. data/lib/cybersource_rest_client/models/modify_billing_agreement.rb +270 -0
  108. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1.rb +239 -0
  109. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_installment_information.rb +197 -0
  110. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +214 -0
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb +207 -0
  112. data/lib/cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information.rb +242 -0
  113. data/lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb +231 -0
  114. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +327 -0
  115. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +235 -0
  116. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +242 -0
  117. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information.rb → ptsv2billingagreements_order_information.rb} +3 -3
  118. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +401 -0
  119. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information.rb +200 -0
  120. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +259 -0
  121. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +276 -0
  122. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +210 -0
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +12 -1
  124. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +16 -5
  125. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +1 -1
  126. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +1 -1
  127. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +1 -1
  128. data/lib/cybersource_rest_client/models/resource_not_found_error.rb +192 -192
  129. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +22 -5
  131. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +12 -1
  132. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +1 -1
  133. data/lib/cybersource_rest_client/models/riskv1decisions_token_information.rb +197 -0
  134. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_decision_information.rb +208 -0
  135. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_processing_information.rb +193 -0
  136. data/lib/cybersource_rest_client/models/suspend_subscription_response.rb +239 -0
  137. data/lib/cybersource_rest_client/models/{inline_response_202_1_subscription_information.rb → suspend_subscription_response_subscription_information.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/unauthorized_client_error.rb +192 -192
  139. data/lib/cybersource_rest_client/models/update_plan_request.rb +1 -1
  140. data/lib/cybersource_rest_client/models/update_plan_response.rb +239 -0
  141. data/lib/cybersource_rest_client/models/{inline_response_200_3_plan_information.rb → update_plan_response_plan_information.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → update_subscription_response.rb} +3 -3
  143. data/lib/cybersource_rest_client/models/validate_request.rb +15 -5
  144. data/lib/cybersource_rest_client/utilities/jwe_utility.rb +12 -0
  145. data/lib/cybersource_rest_client.rb +95 -54
  146. metadata +112 -57
  147. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +0 -248
  148. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +0 -291
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybersource_rest_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.53
4
+ version: 0.0.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - CyberSource
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-05 00:00:00.000000000 Z
11
+ date: 2023-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -138,6 +138,20 @@ dependencies:
138
138
  - - "~>"
139
139
  - !ruby/object:Gem::Version
140
140
  version: 0.2.2
141
+ - !ruby/object:Gem::Dependency
142
+ name: jose
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '1.1'
148
+ type: :runtime
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '1.1'
141
155
  - !ruby/object:Gem::Dependency
142
156
  name: simplecov
143
157
  requirement: !ruby/object:Gem::Requirement
@@ -327,11 +341,13 @@ files:
327
341
  - lib/AuthenticationSDK/util/Cache.rb
328
342
  - lib/AuthenticationSDK/util/Constants.rb
329
343
  - lib/AuthenticationSDK/util/ExceptionHandler.rb
344
+ - lib/AuthenticationSDK/util/JWEUtility.rb
330
345
  - lib/AuthenticationSDK/util/PropertiesUtil.rb
331
346
  - lib/AuthenticationSDK/util/Utility.rb
332
347
  - lib/cybersource_rest_client.rb
333
348
  - lib/cybersource_rest_client/api/asymmetric_key_management_api.rb
334
349
  - lib/cybersource_rest_client/api/batches_api.rb
350
+ - lib/cybersource_rest_client/api/billing_agreements_api.rb
335
351
  - lib/cybersource_rest_client/api/capture_api.rb
336
352
  - lib/cybersource_rest_client/api/chargeback_details_api.rb
337
353
  - lib/cybersource_rest_client/api/chargeback_summaries_api.rb
@@ -392,99 +408,107 @@ files:
392
408
  - lib/cybersource_rest_client/models/access_token_response.rb
393
409
  - lib/cybersource_rest_client/models/accountupdaterv1batches_included.rb
394
410
  - lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb
411
+ - lib/cybersource_rest_client/models/activate_deactivate_plan_response.rb
412
+ - lib/cybersource_rest_client/models/activate_subscription_response.rb
413
+ - lib/cybersource_rest_client/models/activate_subscription_response_subscription_information.rb
395
414
  - lib/cybersource_rest_client/models/add_negative_list_request.rb
396
415
  - lib/cybersource_rest_client/models/auth_reversal_request.rb
397
416
  - lib/cybersource_rest_client/models/bad_request_error.rb
398
417
  - lib/cybersource_rest_client/models/body.rb
418
+ - lib/cybersource_rest_client/models/cancel_subscription_response.rb
419
+ - lib/cybersource_rest_client/models/cancel_subscription_response_subscription_information.rb
399
420
  - lib/cybersource_rest_client/models/capture_payment_request.rb
421
+ - lib/cybersource_rest_client/models/case_management_actions_request.rb
422
+ - lib/cybersource_rest_client/models/case_management_comments_request.rb
400
423
  - lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb
401
424
  - lib/cybersource_rest_client/models/create_access_token_request.rb
402
425
  - lib/cybersource_rest_client/models/create_adhoc_report_request.rb
426
+ - lib/cybersource_rest_client/models/create_billing_agreement.rb
403
427
  - lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb
404
428
  - lib/cybersource_rest_client/models/create_credit_request.rb
405
429
  - lib/cybersource_rest_client/models/create_invoice_request.rb
406
430
  - lib/cybersource_rest_client/models/create_p12_keys_request.rb
407
431
  - lib/cybersource_rest_client/models/create_payment_request.rb
408
432
  - lib/cybersource_rest_client/models/create_plan_request.rb
433
+ - lib/cybersource_rest_client/models/create_plan_response.rb
434
+ - lib/cybersource_rest_client/models/create_plan_response_plan_information.rb
409
435
  - lib/cybersource_rest_client/models/create_report_subscription_request.rb
410
436
  - lib/cybersource_rest_client/models/create_search_request.rb
411
437
  - lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb
412
438
  - lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb
413
439
  - lib/cybersource_rest_client/models/create_subscription_request.rb
440
+ - lib/cybersource_rest_client/models/create_subscription_response.rb
441
+ - lib/cybersource_rest_client/models/create_subscription_response__links.rb
442
+ - lib/cybersource_rest_client/models/create_subscription_response_subscription_information.rb
414
443
  - lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb
415
444
  - lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb
445
+ - lib/cybersource_rest_client/models/delete_plan_response.rb
416
446
  - lib/cybersource_rest_client/models/fraud_marking_action_request.rb
417
447
  - lib/cybersource_rest_client/models/generate_capture_context_request.rb
418
448
  - lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb
449
+ - lib/cybersource_rest_client/models/get_all_plans_response.rb
450
+ - lib/cybersource_rest_client/models/get_all_plans_response__links.rb
451
+ - lib/cybersource_rest_client/models/get_all_plans_response_order_information.rb
452
+ - lib/cybersource_rest_client/models/get_all_plans_response_order_information_amount_details.rb
453
+ - lib/cybersource_rest_client/models/get_all_plans_response_plan_information.rb
454
+ - lib/cybersource_rest_client/models/get_all_plans_response_plan_information_billing_cycles.rb
455
+ - lib/cybersource_rest_client/models/get_all_plans_response_plan_information_billing_period.rb
456
+ - lib/cybersource_rest_client/models/get_all_plans_response_plans.rb
457
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response.rb
458
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response__links.rb
459
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb
460
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_bill_to.rb
461
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_payment_information.rb
462
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_payment_information_customer.rb
463
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_plan_information.rb
464
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_plan_information_billing_cycles.rb
465
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_subscription_information.rb
466
+ - lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb
467
+ - lib/cybersource_rest_client/models/get_plan_code_response.rb
468
+ - lib/cybersource_rest_client/models/get_plan_response.rb
469
+ - lib/cybersource_rest_client/models/get_subscription_code_response.rb
470
+ - lib/cybersource_rest_client/models/get_subscription_response.rb
419
471
  - lib/cybersource_rest_client/models/increment_auth_request.rb
420
472
  - lib/cybersource_rest_client/models/inline_response_200.rb
421
473
  - lib/cybersource_rest_client/models/inline_response_200_1.rb
422
- - lib/cybersource_rest_client/models/inline_response_200_10.rb
423
- - lib/cybersource_rest_client/models/inline_response_200_11.rb
424
- - lib/cybersource_rest_client/models/inline_response_200_11_keys.rb
425
- - lib/cybersource_rest_client/models/inline_response_200_12.rb
426
- - lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb
427
- - lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb
428
- - lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb
429
- - lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb
430
- - lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb
431
- - lib/cybersource_rest_client/models/inline_response_200_12__links.rb
432
- - lib/cybersource_rest_client/models/inline_response_200_13.rb
433
- - lib/cybersource_rest_client/models/inline_response_200_13__links.rb
434
- - lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb
435
- - lib/cybersource_rest_client/models/inline_response_200_13_billing.rb
436
- - lib/cybersource_rest_client/models/inline_response_200_14.rb
437
- - lib/cybersource_rest_client/models/inline_response_200_14_records.rb
438
- - lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb
439
- - lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb
440
- - lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb
474
+ - lib/cybersource_rest_client/models/inline_response_200_1_keys.rb
441
475
  - lib/cybersource_rest_client/models/inline_response_200_2.rb
476
+ - lib/cybersource_rest_client/models/inline_response_200_2__embedded.rb
477
+ - lib/cybersource_rest_client/models/inline_response_200_2__embedded__links.rb
478
+ - lib/cybersource_rest_client/models/inline_response_200_2__embedded__links_reports.rb
479
+ - lib/cybersource_rest_client/models/inline_response_200_2__embedded_batches.rb
480
+ - lib/cybersource_rest_client/models/inline_response_200_2__embedded_totals.rb
481
+ - lib/cybersource_rest_client/models/inline_response_200_2__links.rb
442
482
  - lib/cybersource_rest_client/models/inline_response_200_3.rb
443
- - lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb
483
+ - lib/cybersource_rest_client/models/inline_response_200_3__links.rb
484
+ - lib/cybersource_rest_client/models/inline_response_200_3__links_report.rb
485
+ - lib/cybersource_rest_client/models/inline_response_200_3_billing.rb
444
486
  - lib/cybersource_rest_client/models/inline_response_200_4.rb
445
- - lib/cybersource_rest_client/models/inline_response_200_5.rb
446
- - lib/cybersource_rest_client/models/inline_response_200_6.rb
447
- - lib/cybersource_rest_client/models/inline_response_200_6__links.rb
448
- - lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb
449
- - lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb
450
- - lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb
451
- - lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb
452
- - lib/cybersource_rest_client/models/inline_response_200_6_plan_information.rb
453
- - lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb
454
- - lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb
455
- - lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb
456
- - lib/cybersource_rest_client/models/inline_response_200_7.rb
457
- - lib/cybersource_rest_client/models/inline_response_200_8.rb
458
- - lib/cybersource_rest_client/models/inline_response_200_9.rb
459
- - lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb
460
- - lib/cybersource_rest_client/models/inline_response_200__links.rb
461
- - lib/cybersource_rest_client/models/inline_response_200_order_information.rb
462
- - lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb
463
- - lib/cybersource_rest_client/models/inline_response_200_plan_information.rb
464
- - lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb
465
- - lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb
466
- - lib/cybersource_rest_client/models/inline_response_200_plans.rb
487
+ - lib/cybersource_rest_client/models/inline_response_200_4_records.rb
488
+ - lib/cybersource_rest_client/models/inline_response_200_4_response_record.rb
489
+ - lib/cybersource_rest_client/models/inline_response_200_4_response_record_additional_updates.rb
490
+ - lib/cybersource_rest_client/models/inline_response_200_4_source_record.rb
491
+ - lib/cybersource_rest_client/models/inline_response_200__embedded.rb
492
+ - lib/cybersource_rest_client/models/inline_response_200__embedded_capture.rb
493
+ - lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links.rb
494
+ - lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links_self.rb
495
+ - lib/cybersource_rest_client/models/inline_response_200__embedded_reversal.rb
496
+ - lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links.rb
497
+ - lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links_self.rb
467
498
  - lib/cybersource_rest_client/models/inline_response_201.rb
468
- - lib/cybersource_rest_client/models/inline_response_201_1.rb
469
- - lib/cybersource_rest_client/models/inline_response_201_1__links.rb
470
- - lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb
471
- - lib/cybersource_rest_client/models/inline_response_201_plan_information.rb
472
499
  - lib/cybersource_rest_client/models/inline_response_202.rb
473
- - lib/cybersource_rest_client/models/inline_response_202_1.rb
474
- - lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb
475
- - lib/cybersource_rest_client/models/inline_response_202_2.rb
476
- - lib/cybersource_rest_client/models/inline_response_202_2__links.rb
477
- - lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb
478
- - lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb
500
+ - lib/cybersource_rest_client/models/inline_response_202__links.rb
501
+ - lib/cybersource_rest_client/models/inline_response_202__links_status.rb
479
502
  - lib/cybersource_rest_client/models/inline_response_400.rb
480
503
  - lib/cybersource_rest_client/models/inline_response_400_1.rb
481
504
  - lib/cybersource_rest_client/models/inline_response_400_2.rb
482
505
  - lib/cybersource_rest_client/models/inline_response_400_3.rb
483
- - lib/cybersource_rest_client/models/inline_response_400_3_fields.rb
484
506
  - lib/cybersource_rest_client/models/inline_response_400_4.rb
507
+ - lib/cybersource_rest_client/models/inline_response_400_4_fields.rb
485
508
  - lib/cybersource_rest_client/models/inline_response_400_5.rb
486
509
  - lib/cybersource_rest_client/models/inline_response_400_6.rb
487
- - lib/cybersource_rest_client/models/inline_response_400_6_details.rb
510
+ - lib/cybersource_rest_client/models/inline_response_400_7.rb
511
+ - lib/cybersource_rest_client/models/inline_response_400_7_details.rb
488
512
  - lib/cybersource_rest_client/models/inline_response_400_details.rb
489
513
  - lib/cybersource_rest_client/models/inline_response_400_errors.rb
490
514
  - lib/cybersource_rest_client/models/inline_response_401.rb
@@ -492,6 +516,7 @@ files:
492
516
  - lib/cybersource_rest_client/models/inline_response_401__links_self.rb
493
517
  - lib/cybersource_rest_client/models/inline_response_401_fields.rb
494
518
  - lib/cybersource_rest_client/models/inline_response_403.rb
519
+ - lib/cybersource_rest_client/models/inline_response_403_1.rb
495
520
  - lib/cybersource_rest_client/models/inline_response_403_errors.rb
496
521
  - lib/cybersource_rest_client/models/inline_response_404.rb
497
522
  - lib/cybersource_rest_client/models/inline_response_409.rb
@@ -500,17 +525,22 @@ files:
500
525
  - lib/cybersource_rest_client/models/inline_response_410_errors.rb
501
526
  - lib/cybersource_rest_client/models/inline_response_412.rb
502
527
  - lib/cybersource_rest_client/models/inline_response_412_errors.rb
528
+ - lib/cybersource_rest_client/models/inline_response_422.rb
503
529
  - lib/cybersource_rest_client/models/inline_response_424.rb
504
530
  - lib/cybersource_rest_client/models/inline_response_424_errors.rb
505
531
  - lib/cybersource_rest_client/models/inline_response_500.rb
506
532
  - lib/cybersource_rest_client/models/inline_response_500_1.rb
533
+ - lib/cybersource_rest_client/models/inline_response_500_2.rb
507
534
  - lib/cybersource_rest_client/models/inline_response_500_errors.rb
508
535
  - lib/cybersource_rest_client/models/inline_response_502.rb
536
+ - lib/cybersource_rest_client/models/inline_response_502_1.rb
537
+ - lib/cybersource_rest_client/models/inline_response_503.rb
509
538
  - lib/cybersource_rest_client/models/inline_response_default.rb
510
539
  - lib/cybersource_rest_client/models/inline_response_default__links.rb
511
540
  - lib/cybersource_rest_client/models/inline_response_default__links_next.rb
512
541
  - lib/cybersource_rest_client/models/inline_response_default_response_status.rb
513
542
  - lib/cybersource_rest_client/models/inline_response_default_response_status_details.rb
543
+ - lib/cybersource_rest_client/models/intimate_billing_agreement.rb
514
544
  - lib/cybersource_rest_client/models/invoice_settings_request.rb
515
545
  - lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response.rb
516
546
  - lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb
@@ -565,6 +595,7 @@ files:
565
595
  - lib/cybersource_rest_client/models/microformv2sessions_checkout_api_initialization.rb
566
596
  - lib/cybersource_rest_client/models/mit_reversal_request.rb
567
597
  - lib/cybersource_rest_client/models/mit_void_request.rb
598
+ - lib/cybersource_rest_client/models/modify_billing_agreement.rb
568
599
  - lib/cybersource_rest_client/models/oct_create_payment_request.rb
569
600
  - lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb
570
601
  - lib/cybersource_rest_client/models/patch_customer_request.rb
@@ -600,6 +631,9 @@ files:
600
631
  - lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links.rb
601
632
  - lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb
602
633
  - lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb
634
+ - lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1.rb
635
+ - lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_installment_information.rb
636
+ - lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb
603
637
  - lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb
604
638
  - lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb
605
639
  - lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb
@@ -760,6 +794,18 @@ files:
760
794
  - lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb
761
795
  - lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb
762
796
  - lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb
797
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb
798
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information.rb
799
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb
800
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb
801
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb
802
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb
803
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb
804
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb
805
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information.rb
806
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb
807
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb
808
+ - lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb
763
809
  - lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb
764
810
  - lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb
765
811
  - lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb
@@ -1106,9 +1152,12 @@ files:
1106
1152
  - lib/cybersource_rest_client/models/riskv1decisions_processor_information_avs.rb
1107
1153
  - lib/cybersource_rest_client/models/riskv1decisions_processor_information_card_verification.rb
1108
1154
  - lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb
1155
+ - lib/cybersource_rest_client/models/riskv1decisions_token_information.rb
1109
1156
  - lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb
1110
1157
  - lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb
1111
1158
  - lib/cybersource_rest_client/models/riskv1decisions_travel_information_passengers.rb
1159
+ - lib/cybersource_rest_client/models/riskv1decisionsidactions_decision_information.rb
1160
+ - lib/cybersource_rest_client/models/riskv1decisionsidactions_processing_information.rb
1112
1161
  - lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information.rb
1113
1162
  - lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details.rb
1114
1163
  - lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb
@@ -1140,6 +1189,8 @@ files:
1140
1189
  - lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_next.rb
1141
1190
  - lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_prev.rb
1142
1191
  - lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_self.rb
1192
+ - lib/cybersource_rest_client/models/suspend_subscription_response.rb
1193
+ - lib/cybersource_rest_client/models/suspend_subscription_response_subscription_information.rb
1143
1194
  - lib/cybersource_rest_client/models/tax_request.rb
1144
1195
  - lib/cybersource_rest_client/models/tms_v2_customers_response.rb
1145
1196
  - lib/cybersource_rest_client/models/tmsv2customers__embedded.rb
@@ -1292,7 +1343,10 @@ files:
1292
1343
  - lib/cybersource_rest_client/models/update_pgp_keys_request.rb
1293
1344
  - lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb
1294
1345
  - lib/cybersource_rest_client/models/update_plan_request.rb
1346
+ - lib/cybersource_rest_client/models/update_plan_response.rb
1347
+ - lib/cybersource_rest_client/models/update_plan_response_plan_information.rb
1295
1348
  - lib/cybersource_rest_client/models/update_subscription.rb
1349
+ - lib/cybersource_rest_client/models/update_subscription_response.rb
1296
1350
  - lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb
1297
1351
  - lib/cybersource_rest_client/models/upv1capturecontexts_checkout_api_initialization.rb
1298
1352
  - lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb
@@ -1339,6 +1393,7 @@ files:
1339
1393
  - lib/cybersource_rest_client/models/void_refund_request.rb
1340
1394
  - lib/cybersource_rest_client/models/void_tax_request.rb
1341
1395
  - lib/cybersource_rest_client/utilities/flex/token_verification.rb
1396
+ - lib/cybersource_rest_client/utilities/jwe_utility.rb
1342
1397
  - lib/cybersource_rest_client/version.rb
1343
1398
  homepage: https://developer.cybersource.com
1344
1399
  licenses:
@@ -1359,7 +1414,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1359
1414
  - !ruby/object:Gem::Version
1360
1415
  version: '0'
1361
1416
  requirements: []
1362
- rubygems_version: 3.1.6
1417
+ rubygems_version: 3.4.10
1363
1418
  signing_key:
1364
1419
  specification_version: 4
1365
1420
  summary: CyberSource Ruby SDK Gem
@@ -1,248 +0,0 @@
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.2.3
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module CyberSource
16
- # Successful searchKeysResponse
17
- class InlineResponse20011
18
- # Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
19
- attr_accessor :submit_time_utc
20
-
21
- # Specifies the total number of items found based on the request
22
- attr_accessor :total_count
23
-
24
- # Specifies the record offset from the records are returned part of the response
25
- attr_accessor :offset
26
-
27
- # Specifies the maximum number of records requested part of the response
28
- attr_accessor :limit
29
-
30
- # Specifies a comma separated list of field names based on which the result is sorted.
31
- attr_accessor :sort
32
-
33
- attr_accessor :keys
34
-
35
- # Attribute mapping from ruby-style variable name to JSON key.
36
- def self.attribute_map
37
- {
38
- :'submit_time_utc' => :'submitTimeUtc',
39
- :'total_count' => :'totalCount',
40
- :'offset' => :'offset',
41
- :'limit' => :'limit',
42
- :'sort' => :'sort',
43
- :'keys' => :'keys'
44
- }
45
- end
46
-
47
- # Attribute mapping from JSON key to ruby-style variable name.
48
- def self.json_map
49
- {
50
- :'submit_time_utc' => :'submit_time_utc',
51
- :'total_count' => :'total_count',
52
- :'offset' => :'offset',
53
- :'limit' => :'limit',
54
- :'sort' => :'sort',
55
- :'keys' => :'keys'
56
- }
57
- end
58
-
59
- # Attribute type mapping.
60
- def self.swagger_types
61
- {
62
- :'submit_time_utc' => :'String',
63
- :'total_count' => :'Integer',
64
- :'offset' => :'Integer',
65
- :'limit' => :'Integer',
66
- :'sort' => :'String',
67
- :'keys' => :'Array<InlineResponse20011Keys>'
68
- }
69
- end
70
-
71
- # Initializes the object
72
- # @param [Hash] attributes Model attributes in the form of hash
73
- def initialize(attributes = {})
74
- return unless attributes.is_a?(Hash)
75
-
76
- # convert string to symbol for hash key
77
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
-
79
- if attributes.has_key?(:'submitTimeUtc')
80
- self.submit_time_utc = attributes[:'submitTimeUtc']
81
- end
82
-
83
- if attributes.has_key?(:'totalCount')
84
- self.total_count = attributes[:'totalCount']
85
- end
86
-
87
- if attributes.has_key?(:'offset')
88
- self.offset = attributes[:'offset']
89
- end
90
-
91
- if attributes.has_key?(:'limit')
92
- self.limit = attributes[:'limit']
93
- end
94
-
95
- if attributes.has_key?(:'sort')
96
- self.sort = attributes[:'sort']
97
- end
98
-
99
- if attributes.has_key?(:'keys')
100
- if (value = attributes[:'keys']).is_a?(Array)
101
- self.keys = value
102
- end
103
- end
104
- end
105
-
106
- # Show invalid properties with the reasons. Usually used together with valid?
107
- # @return Array for valid properties with the reasons
108
- def list_invalid_properties
109
- invalid_properties = Array.new
110
- invalid_properties
111
- end
112
-
113
- # Check to see if the all the properties in the model are valid
114
- # @return true if the model is valid
115
- def valid?
116
- true
117
- end
118
-
119
- # Checks equality by comparing each attribute.
120
- # @param [Object] Object to be compared
121
- def ==(o)
122
- return true if self.equal?(o)
123
- self.class == o.class &&
124
- submit_time_utc == o.submit_time_utc &&
125
- total_count == o.total_count &&
126
- offset == o.offset &&
127
- limit == o.limit &&
128
- sort == o.sort &&
129
- keys == o.keys
130
- end
131
-
132
- # @see the `==` method
133
- # @param [Object] Object to be compared
134
- def eql?(o)
135
- self == o
136
- end
137
-
138
- # Calculates hash code according to all attributes.
139
- # @return [Fixnum] Hash code
140
- def hash
141
- [submit_time_utc, total_count, offset, limit, sort, keys].hash
142
- end
143
-
144
- # Builds the object from hash
145
- # @param [Hash] attributes Model attributes in the form of hash
146
- # @return [Object] Returns the model itself
147
- def build_from_hash(attributes)
148
- return nil unless attributes.is_a?(Hash)
149
- self.class.swagger_types.each_pair do |key, type|
150
- if type =~ /\AArray<(.*)>/i
151
- # check to ensure the input is an array given that the the attribute
152
- # is documented as an array but the input is not
153
- if attributes[self.class.attribute_map[key]].is_a?(Array)
154
- self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
155
- end
156
- elsif !attributes[self.class.attribute_map[key]].nil?
157
- self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
- end # or else data not found in attributes(hash), not an issue as the data can be optional
159
- end
160
-
161
- self
162
- end
163
-
164
- # Deserializes the data based on type
165
- # @param string type Data type
166
- # @param string value Value to be deserialized
167
- # @return [Object] Deserialized data
168
- def _deserialize(type, value)
169
- case type.to_sym
170
- when :DateTime
171
- DateTime.parse(value)
172
- when :Date
173
- Date.parse(value)
174
- when :String
175
- value.to_s
176
- when :Integer
177
- value.to_i
178
- when :Float
179
- value.to_f
180
- when :BOOLEAN
181
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
182
- true
183
- else
184
- false
185
- end
186
- when :Object
187
- # generic object (usually a Hash), return directly
188
- value
189
- when /\AArray<(?<inner_type>.+)>\z/
190
- inner_type = Regexp.last_match[:inner_type]
191
- value.map { |v| _deserialize(inner_type, v) }
192
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
193
- k_type = Regexp.last_match[:k_type]
194
- v_type = Regexp.last_match[:v_type]
195
- {}.tap do |hash|
196
- value.each do |k, v|
197
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
198
- end
199
- end
200
- else # model
201
- temp_model = CyberSource.const_get(type).new
202
- temp_model.build_from_hash(value)
203
- end
204
- end
205
-
206
- # Returns the string representation of the object
207
- # @return [String] String presentation of the object
208
- def to_s
209
- to_hash.to_s
210
- end
211
-
212
- # to_body is an alias to to_hash (backward compatibility)
213
- # @return [Hash] Returns the object in the form of hash
214
- def to_body
215
- to_hash
216
- end
217
-
218
- # Returns the object in the form of hash
219
- # @return [Hash] Returns the object in the form of hash
220
- def to_hash
221
- hash = {}
222
- self.class.attribute_map.each_pair do |attr, param|
223
- value = self.send(attr)
224
- next if value.nil?
225
- hash[param] = _to_hash(value)
226
- end
227
- hash
228
- end
229
-
230
- # Outputs non-array value in the form of hash
231
- # For object, use to_hash. Otherwise, just return the value
232
- # @param [Object] value Any valid value
233
- # @return [Hash] Returns the value in the form of hash
234
- def _to_hash(value)
235
- if value.is_a?(Array)
236
- value.compact.map { |v| _to_hash(v) }
237
- elsif value.is_a?(Hash)
238
- {}.tap do |hash|
239
- value.each { |k, v| hash[k] = _to_hash(v) }
240
- end
241
- elsif value.respond_to? :to_hash
242
- value.to_hash
243
- else
244
- value
245
- end
246
- end
247
- end
248
- end