DealMakerAPI 0.89.4 → 0.90.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/DealMakerAPI.gemspec +1 -0
  3. data/README.md +10 -5
  4. data/docs/DealApi.md +67 -0
  5. data/docs/DefaultApi.md +200 -0
  6. data/docs/InvestorApi.md +1 -1
  7. data/docs/V1EntitiesInvestor.md +3 -1
  8. data/docs/V1EntitiesPaymentsSelfServeOnboardingPayoutAccountDetailsResult.md +20 -0
  9. data/docs/V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult.md +20 -0
  10. data/lib/DealMakerAPI/api/deal_api.rb +68 -0
  11. data/lib/DealMakerAPI/api/default_api.rb +187 -0
  12. data/lib/DealMakerAPI/api/investor_api.rb +2 -2
  13. data/lib/DealMakerAPI/models/add506c_document_request.rb +1 -1
  14. data/lib/DealMakerAPI/models/add_document_request.rb +1 -1
  15. data/lib/DealMakerAPI/models/bulk_upload_investors_request.rb +1 -1
  16. data/lib/DealMakerAPI/models/create_bulk_upload_detail_request.rb +1 -1
  17. data/lib/DealMakerAPI/models/create_bulk_upload_request.rb +1 -1
  18. data/lib/DealMakerAPI/models/create_company_request.rb +1 -1
  19. data/lib/DealMakerAPI/models/create_deal_setup_request.rb +1 -1
  20. data/lib/DealMakerAPI/models/create_shareholder_action_request.rb +1 -1
  21. data/lib/DealMakerAPI/models/edit_investor_tags_request.rb +1 -1
  22. data/lib/DealMakerAPI/models/generate_url_request.rb +1 -1
  23. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations.rb +1 -1
  24. data/lib/DealMakerAPI/models/patch_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
  25. data/lib/DealMakerAPI/models/patch_investor_profiles_individuals.rb +1 -1
  26. data/lib/DealMakerAPI/models/patch_investor_profiles_joints.rb +1 -1
  27. data/lib/DealMakerAPI/models/patch_investor_profiles_trusts.rb +1 -1
  28. data/lib/DealMakerAPI/models/patch_investor_profiles_trusts_trustees_inner.rb +1 -1
  29. data/lib/DealMakerAPI/models/patch_investor_request.rb +1 -1
  30. data/lib/DealMakerAPI/models/post_deals_id_investors.rb +1 -1
  31. data/lib/DealMakerAPI/models/post_investor_profiles_corporations.rb +1 -1
  32. data/lib/DealMakerAPI/models/post_investor_profiles_corporations_beneficial_owners_inner.rb +1 -1
  33. data/lib/DealMakerAPI/models/post_investor_profiles_individuals.rb +1 -1
  34. data/lib/DealMakerAPI/models/post_investor_profiles_joints.rb +1 -1
  35. data/lib/DealMakerAPI/models/post_investor_profiles_trusts.rb +1 -1
  36. data/lib/DealMakerAPI/models/post_investor_profiles_trusts_trustees_inner.rb +1 -1
  37. data/lib/DealMakerAPI/models/post_webhooks_request.rb +1 -1
  38. data/lib/DealMakerAPI/models/put_deals_id_investors.rb +1 -1
  39. data/lib/DealMakerAPI/models/put_deals_id_script_tag_environment_request.rb +1 -1
  40. data/lib/DealMakerAPI/models/put_webhooks_id_request.rb +1 -1
  41. data/lib/DealMakerAPI/models/v1_entities_address.rb +1 -1
  42. data/lib/DealMakerAPI/models/v1_entities_addresses.rb +1 -1
  43. data/lib/DealMakerAPI/models/v1_entities_attachment.rb +1 -1
  44. data/lib/DealMakerAPI/models/v1_entities_background_check_search.rb +1 -1
  45. data/lib/DealMakerAPI/models/v1_entities_bulk_upload.rb +1 -1
  46. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_detail.rb +1 -1
  47. data/lib/DealMakerAPI/models/v1_entities_bulk_upload_details.rb +1 -1
  48. data/lib/DealMakerAPI/models/v1_entities_bulk_uploads.rb +1 -1
  49. data/lib/DealMakerAPI/models/v1_entities_company.rb +1 -1
  50. data/lib/DealMakerAPI/models/v1_entities_company_deal.rb +1 -1
  51. data/lib/DealMakerAPI/models/v1_entities_company_deals.rb +1 -1
  52. data/lib/DealMakerAPI/models/v1_entities_countries.rb +1 -1
  53. data/lib/DealMakerAPI/models/v1_entities_country.rb +1 -1
  54. data/lib/DealMakerAPI/models/v1_entities_deal.rb +1 -1
  55. data/lib/DealMakerAPI/models/v1_entities_deal_enterprise.rb +1 -1
  56. data/lib/DealMakerAPI/models/v1_entities_deal_funding_metrics.rb +1 -1
  57. data/lib/DealMakerAPI/models/v1_entities_deal_investor_metrics.rb +1 -1
  58. data/lib/DealMakerAPI/models/v1_entities_deal_issuer.rb +1 -1
  59. data/lib/DealMakerAPI/models/v1_entities_deal_setup.rb +1 -1
  60. data/lib/DealMakerAPI/models/v1_entities_deal_setup_user.rb +1 -1
  61. data/lib/DealMakerAPI/models/v1_entities_deals.rb +1 -1
  62. data/lib/DealMakerAPI/models/v1_entities_dividend.rb +1 -1
  63. data/lib/DealMakerAPI/models/v1_entities_dividends.rb +1 -1
  64. data/lib/DealMakerAPI/models/v1_entities_express_wire_instruction.rb +1 -1
  65. data/lib/DealMakerAPI/models/v1_entities_express_wire_instructions.rb +1 -1
  66. data/lib/DealMakerAPI/models/v1_entities_generic_response.rb +1 -1
  67. data/lib/DealMakerAPI/models/v1_entities_investor.rb +15 -5
  68. data/lib/DealMakerAPI/models/v1_entities_investor_otp_access_link.rb +1 -1
  69. data/lib/DealMakerAPI/models/v1_entities_investor_profile_address.rb +1 -1
  70. data/lib/DealMakerAPI/models/v1_entities_investor_profile_corporation.rb +1 -1
  71. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_account_holder.rb +1 -1
  72. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_beneficial_owner.rb +1 -1
  73. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_corporation.rb +1 -1
  74. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_primary_holder.rb +1 -1
  75. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_signing_officer.rb +1 -1
  76. data/lib/DealMakerAPI/models/v1_entities_investor_profile_fields_trust.rb +1 -1
  77. data/lib/DealMakerAPI/models/v1_entities_investor_profile_individual.rb +1 -1
  78. data/lib/DealMakerAPI/models/v1_entities_investor_profile_item.rb +1 -1
  79. data/lib/DealMakerAPI/models/v1_entities_investor_profile_joint.rb +1 -1
  80. data/lib/DealMakerAPI/models/v1_entities_investor_profile_owner.rb +1 -1
  81. data/lib/DealMakerAPI/models/v1_entities_investor_profile_trust.rb +1 -1
  82. data/lib/DealMakerAPI/models/v1_entities_investor_profiles.rb +1 -1
  83. data/lib/DealMakerAPI/models/v1_entities_investor_user.rb +1 -1
  84. data/lib/DealMakerAPI/models/v1_entities_investors.rb +1 -1
  85. data/lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result.rb +226 -0
  86. data/lib/DealMakerAPI/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result.rb +226 -0
  87. data/lib/DealMakerAPI/models/v1_entities_presigned_url_result.rb +1 -1
  88. data/lib/DealMakerAPI/models/v1_entities_shareholder.rb +1 -1
  89. data/lib/DealMakerAPI/models/v1_entities_shareholders.rb +1 -1
  90. data/lib/DealMakerAPI/models/v1_entities_shareholders_tags.rb +1 -1
  91. data/lib/DealMakerAPI/models/v1_entities_state.rb +1 -1
  92. data/lib/DealMakerAPI/models/v1_entities_subscription_agreement.rb +1 -1
  93. data/lib/DealMakerAPI/models/v1_entities_webhooks_deal.rb +1 -1
  94. data/lib/DealMakerAPI/models/v1_entities_webhooks_security_token.rb +1 -1
  95. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription.rb +1 -1
  96. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deal.rb +1 -1
  97. data/lib/DealMakerAPI/models/v1_entities_webhooks_subscription_deals.rb +1 -1
  98. data/lib/DealMakerAPI/version.rb +1 -1
  99. data/lib/DealMakerAPI.rb +2 -1
  100. data/spec/api/deal_api_spec.rb +12 -0
  101. data/spec/api/default_api_spec.rb +36 -0
  102. data/spec/api/investor_api_spec.rb +1 -1
  103. data/spec/models/v1_entities_investor_spec.rb +6 -0
  104. data/spec/{api/deal_setup_api_spec.rb → models/v1_entities_payments_self_serve_onboarding_payout_account_details_result_spec.rb} +13 -18
  105. data/{lib/DealMakerAPI/api/deal_setup_api.rb → spec/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result_spec.rb} +24 -72
  106. metadata +84 -80
  107. data/docs/DealSetupApi.md +0 -74
@@ -394,6 +394,193 @@ module DealMakerAPI
394
394
  return data, status_code, headers
395
395
  end
396
396
 
397
+ # Submit a payout account details form
398
+ # Submit a payout account details form
399
+ # @param deal_id [Integer]
400
+ # @param [Hash] opts the optional parameters
401
+ # @return [V1EntitiesPaymentsSelfServeOnboardingPayoutAccountDetailsResult]
402
+ def post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit(deal_id, opts = {})
403
+ data, _status_code, _headers = post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit_with_http_info(deal_id, opts)
404
+ data
405
+ end
406
+
407
+ # Submit a payout account details form
408
+ # Submit a payout account details form
409
+ # @param deal_id [Integer]
410
+ # @param [Hash] opts the optional parameters
411
+ # @return [Array<(V1EntitiesPaymentsSelfServeOnboardingPayoutAccountDetailsResult, Integer, Hash)>] V1EntitiesPaymentsSelfServeOnboardingPayoutAccountDetailsResult data, response status code and response headers
412
+ def post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit_with_http_info(deal_id, opts = {})
413
+ if @api_client.config.debugging
414
+ @api_client.config.logger.debug 'Calling API: DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit ...'
415
+ end
416
+ # verify the required parameter 'deal_id' is set
417
+ if @api_client.config.client_side_validation && deal_id.nil?
418
+ fail ArgumentError, "Missing the required parameter 'deal_id' when calling DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit"
419
+ end
420
+ # resource path
421
+ local_var_path = '/deals/{deal_id}/payment_onboarding/questionnaire/payout_account_details/submit'.sub('{' + 'deal_id' + '}', CGI.escape(deal_id.to_s))
422
+
423
+ # query parameters
424
+ query_params = opts[:query_params] || {}
425
+
426
+ # header parameters
427
+ header_params = opts[:header_params] || {}
428
+ # HTTP header 'Accept' (if needed)
429
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
430
+
431
+ # form parameters
432
+ form_params = opts[:form_params] || {}
433
+
434
+ # http body (model)
435
+ post_body = opts[:debug_body]
436
+
437
+ # return_type
438
+ return_type = opts[:debug_return_type] || 'V1EntitiesPaymentsSelfServeOnboardingPayoutAccountDetailsResult'
439
+
440
+ # auth_names
441
+ auth_names = opts[:debug_auth_names] || []
442
+
443
+ new_options = opts.merge(
444
+ :operation => :"DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit",
445
+ :header_params => header_params,
446
+ :query_params => query_params,
447
+ :form_params => form_params,
448
+ :body => post_body,
449
+ :auth_names => auth_names,
450
+ :return_type => return_type
451
+ )
452
+
453
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
454
+ if @api_client.config.debugging
455
+ @api_client.config.logger.debug "API called: DefaultApi#post_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_submit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
456
+ end
457
+ return data, status_code, headers
458
+ end
459
+
460
+ # Submit a qualification questionnaire response
461
+ # Submit a qualification questionnaire response
462
+ # @param deal_id [Integer]
463
+ # @param [Hash] opts the optional parameters
464
+ # @return [nil]
465
+ def post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit(deal_id, opts = {})
466
+ post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit_with_http_info(deal_id, opts)
467
+ nil
468
+ end
469
+
470
+ # Submit a qualification questionnaire response
471
+ # Submit a qualification questionnaire response
472
+ # @param deal_id [Integer]
473
+ # @param [Hash] opts the optional parameters
474
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
475
+ def post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit_with_http_info(deal_id, opts = {})
476
+ if @api_client.config.debugging
477
+ @api_client.config.logger.debug 'Calling API: DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit ...'
478
+ end
479
+ # verify the required parameter 'deal_id' is set
480
+ if @api_client.config.client_side_validation && deal_id.nil?
481
+ fail ArgumentError, "Missing the required parameter 'deal_id' when calling DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit"
482
+ end
483
+ # resource path
484
+ local_var_path = '/deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/response/submit'.sub('{' + 'deal_id' + '}', CGI.escape(deal_id.to_s))
485
+
486
+ # query parameters
487
+ query_params = opts[:query_params] || {}
488
+
489
+ # header parameters
490
+ header_params = opts[:header_params] || {}
491
+
492
+ # form parameters
493
+ form_params = opts[:form_params] || {}
494
+
495
+ # http body (model)
496
+ post_body = opts[:debug_body]
497
+
498
+ # return_type
499
+ return_type = opts[:debug_return_type]
500
+
501
+ # auth_names
502
+ auth_names = opts[:debug_auth_names] || []
503
+
504
+ new_options = opts.merge(
505
+ :operation => :"DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit",
506
+ :header_params => header_params,
507
+ :query_params => query_params,
508
+ :form_params => form_params,
509
+ :body => post_body,
510
+ :auth_names => auth_names,
511
+ :return_type => return_type
512
+ )
513
+
514
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
515
+ if @api_client.config.debugging
516
+ @api_client.config.logger.debug "API called: DefaultApi#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_response_submit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
+ end
518
+ return data, status_code, headers
519
+ end
520
+
521
+ # Submit a qualification questionnaire form
522
+ # Submit a qualification questionnaire form
523
+ # @param deal_id [Integer]
524
+ # @param [Hash] opts the optional parameters
525
+ # @return [V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult]
526
+ def post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit(deal_id, opts = {})
527
+ data, _status_code, _headers = post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit_with_http_info(deal_id, opts)
528
+ data
529
+ end
530
+
531
+ # Submit a qualification questionnaire form
532
+ # Submit a qualification questionnaire form
533
+ # @param deal_id [Integer]
534
+ # @param [Hash] opts the optional parameters
535
+ # @return [Array<(V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult, Integer, Hash)>] V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult data, response status code and response headers
536
+ def post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit_with_http_info(deal_id, opts = {})
537
+ if @api_client.config.debugging
538
+ @api_client.config.logger.debug 'Calling API: DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit ...'
539
+ end
540
+ # verify the required parameter 'deal_id' is set
541
+ if @api_client.config.client_side_validation && deal_id.nil?
542
+ fail ArgumentError, "Missing the required parameter 'deal_id' when calling DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit"
543
+ end
544
+ # resource path
545
+ local_var_path = '/deals/{deal_id}/payment_onboarding/questionnaire/qualification_questionnaire/submit'.sub('{' + 'deal_id' + '}', CGI.escape(deal_id.to_s))
546
+
547
+ # query parameters
548
+ query_params = opts[:query_params] || {}
549
+
550
+ # header parameters
551
+ header_params = opts[:header_params] || {}
552
+ # HTTP header 'Accept' (if needed)
553
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
554
+
555
+ # form parameters
556
+ form_params = opts[:form_params] || {}
557
+
558
+ # http body (model)
559
+ post_body = opts[:debug_body]
560
+
561
+ # return_type
562
+ return_type = opts[:debug_return_type] || 'V1EntitiesPaymentsSelfServeOnboardingQualificationQuestionnaireResult'
563
+
564
+ # auth_names
565
+ auth_names = opts[:debug_auth_names] || []
566
+
567
+ new_options = opts.merge(
568
+ :operation => :"DefaultApi.post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit",
569
+ :header_params => header_params,
570
+ :query_params => query_params,
571
+ :form_params => form_params,
572
+ :body => post_body,
573
+ :auth_names => auth_names,
574
+ :return_type => return_type
575
+ )
576
+
577
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
578
+ if @api_client.config.debugging
579
+ @api_client.config.logger.debug "API called: DefaultApi#post_deals_deal_id_payment_onboarding_questionnaire_qualification_questionnaire_submit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
580
+ end
581
+ return data, status_code, headers
582
+ end
583
+
397
584
  # Creates a webhook subscription which is associated to the user
398
585
  # Creates new webhook subscription
399
586
  # @param post_webhooks_request [PostWebhooksRequest]
@@ -692,7 +692,7 @@ module DealMakerAPI
692
692
  end
693
693
 
694
694
  # Get OTP access link for deal investor
695
- # Get OTP access link for deal investor by id
695
+ # The access link for the investor. This is the access link for the specific investment, not the user. If the same user has multiple investments, each one will have a different access link. Please note that this access link expires every hour. In order to redirect the investor into their authentication screen, use the https://app.dealmaker.tech/deals/{{deal_id}}/investors/{{investor_id}}/otp_access url.
696
696
  # @param id [Integer] The deal id.
697
697
  # @param investor_id [Integer] The investor id.
698
698
  # @param [Hash] opts the optional parameters
@@ -703,7 +703,7 @@ module DealMakerAPI
703
703
  end
704
704
 
705
705
  # Get OTP access link for deal investor
706
- # Get OTP access link for deal investor by id
706
+ # The access link for the investor. This is the access link for the specific investment, not the user. If the same user has multiple investments, each one will have a different access link. Please note that this access link expires every hour. In order to redirect the investor into their authentication screen, use the https://app.dealmaker.tech/deals/{{deal_id}}/investors/{{investor_id}}/otp_access url.
707
707
  # @param id [Integer] The deal id.
708
708
  # @param investor_id [Integer] The investor id.
709
709
  # @param [Hash] opts the optional parameters
@@ -177,7 +177,7 @@ module DealMakerAPI
177
177
  else # model
178
178
  # models (e.g. Pet) or oneOf
179
179
  klass = DealMakerAPI.const_get(type)
180
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
181
  end
182
182
  end
183
183
 
@@ -238,7 +238,7 @@ module DealMakerAPI
238
238
  else # model
239
239
  # models (e.g. Pet) or oneOf
240
240
  klass = DealMakerAPI.const_get(type)
241
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
241
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
242
242
  end
243
243
  end
244
244
 
@@ -177,7 +177,7 @@ module DealMakerAPI
177
177
  else # model
178
178
  # models (e.g. Pet) or oneOf
179
179
  klass = DealMakerAPI.const_get(type)
180
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
180
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
181
181
  end
182
182
  end
183
183
 
@@ -194,7 +194,7 @@ module DealMakerAPI
194
194
  else # model
195
195
  # models (e.g. Pet) or oneOf
196
196
  klass = DealMakerAPI.const_get(type)
197
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
197
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
198
198
  end
199
199
  end
200
200
 
@@ -235,7 +235,7 @@ module DealMakerAPI
235
235
  else # model
236
236
  # models (e.g. Pet) or oneOf
237
237
  klass = DealMakerAPI.const_get(type)
238
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
238
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
239
239
  end
240
240
  end
241
241
 
@@ -272,7 +272,7 @@ module DealMakerAPI
272
272
  else # model
273
273
  # models (e.g. Pet) or oneOf
274
274
  klass = DealMakerAPI.const_get(type)
275
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
275
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
276
276
  end
277
277
  end
278
278
 
@@ -310,7 +310,7 @@ module DealMakerAPI
310
310
  else # model
311
311
  # models (e.g. Pet) or oneOf
312
312
  klass = DealMakerAPI.const_get(type)
313
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
313
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
314
314
  end
315
315
  end
316
316
 
@@ -196,7 +196,7 @@ module DealMakerAPI
196
196
  else # model
197
197
  # models (e.g. Pet) or oneOf
198
198
  klass = DealMakerAPI.const_get(type)
199
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
199
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
200
200
  end
201
201
  end
202
202
 
@@ -215,7 +215,7 @@ module DealMakerAPI
215
215
  else # model
216
216
  # models (e.g. Pet) or oneOf
217
217
  klass = DealMakerAPI.const_get(type)
218
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
218
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
219
219
  end
220
220
  end
221
221
 
@@ -167,7 +167,7 @@ module DealMakerAPI
167
167
  else # model
168
168
  # models (e.g. Pet) or oneOf
169
169
  klass = DealMakerAPI.const_get(type)
170
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
171
  end
172
172
  end
173
173
 
@@ -458,7 +458,7 @@ module DealMakerAPI
458
458
  else # model
459
459
  # models (e.g. Pet) or oneOf
460
460
  klass = DealMakerAPI.const_get(type)
461
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
461
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
462
462
  end
463
463
  end
464
464
 
@@ -287,7 +287,7 @@ module DealMakerAPI
287
287
  else # model
288
288
  # models (e.g. Pet) or oneOf
289
289
  klass = DealMakerAPI.const_get(type)
290
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
290
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
291
291
  end
292
292
  end
293
293
 
@@ -357,7 +357,7 @@ module DealMakerAPI
357
357
  else # model
358
358
  # models (e.g. Pet) or oneOf
359
359
  klass = DealMakerAPI.const_get(type)
360
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
360
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
361
361
  end
362
362
  end
363
363
 
@@ -479,7 +479,7 @@ module DealMakerAPI
479
479
  else # model
480
480
  # models (e.g. Pet) or oneOf
481
481
  klass = DealMakerAPI.const_get(type)
482
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
482
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
483
483
  end
484
484
  end
485
485
 
@@ -338,7 +338,7 @@ module DealMakerAPI
338
338
  else # model
339
339
  # models (e.g. Pet) or oneOf
340
340
  klass = DealMakerAPI.const_get(type)
341
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
341
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
342
342
  end
343
343
  end
344
344
 
@@ -277,7 +277,7 @@ module DealMakerAPI
277
277
  else # model
278
278
  # models (e.g. Pet) or oneOf
279
279
  klass = DealMakerAPI.const_get(type)
280
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
280
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
281
281
  end
282
282
  end
283
283
 
@@ -213,7 +213,7 @@ module DealMakerAPI
213
213
  else # model
214
214
  # models (e.g. Pet) or oneOf
215
215
  klass = DealMakerAPI.const_get(type)
216
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
216
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
217
217
  end
218
218
  end
219
219
 
@@ -329,7 +329,7 @@ module DealMakerAPI
329
329
  else # model
330
330
  # models (e.g. Pet) or oneOf
331
331
  klass = DealMakerAPI.const_get(type)
332
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
332
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
333
333
  end
334
334
  end
335
335
 
@@ -475,7 +475,7 @@ module DealMakerAPI
475
475
  else # model
476
476
  # models (e.g. Pet) or oneOf
477
477
  klass = DealMakerAPI.const_get(type)
478
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
478
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
479
479
  end
480
480
  end
481
481
 
@@ -260,7 +260,7 @@ module DealMakerAPI
260
260
  else # model
261
261
  # models (e.g. Pet) or oneOf
262
262
  klass = DealMakerAPI.const_get(type)
263
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
263
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
264
264
  end
265
265
  end
266
266
 
@@ -374,7 +374,7 @@ module DealMakerAPI
374
374
  else # model
375
375
  # models (e.g. Pet) or oneOf
376
376
  klass = DealMakerAPI.const_get(type)
377
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
377
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
378
378
  end
379
379
  end
380
380
 
@@ -496,7 +496,7 @@ module DealMakerAPI
496
496
  else # model
497
497
  # models (e.g. Pet) or oneOf
498
498
  klass = DealMakerAPI.const_get(type)
499
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
499
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
500
500
  end
501
501
  end
502
502
 
@@ -355,7 +355,7 @@ module DealMakerAPI
355
355
  else # model
356
356
  # models (e.g. Pet) or oneOf
357
357
  klass = DealMakerAPI.const_get(type)
358
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
358
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
359
359
  end
360
360
  end
361
361
 
@@ -250,7 +250,7 @@ module DealMakerAPI
250
250
  else # model
251
251
  # models (e.g. Pet) or oneOf
252
252
  klass = DealMakerAPI.const_get(type)
253
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
253
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
254
254
  end
255
255
  end
256
256
 
@@ -223,7 +223,7 @@ module DealMakerAPI
223
223
  else # model
224
224
  # models (e.g. Pet) or oneOf
225
225
  klass = DealMakerAPI.const_get(type)
226
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
226
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
227
227
  end
228
228
  end
229
229
 
@@ -237,7 +237,7 @@ module DealMakerAPI
237
237
  else # model
238
238
  # models (e.g. Pet) or oneOf
239
239
  klass = DealMakerAPI.const_get(type)
240
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
240
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
241
241
  end
242
242
  end
243
243
 
@@ -167,7 +167,7 @@ module DealMakerAPI
167
167
  else # model
168
168
  # models (e.g. Pet) or oneOf
169
169
  klass = DealMakerAPI.const_get(type)
170
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
171
171
  end
172
172
  end
173
173
 
@@ -226,7 +226,7 @@ module DealMakerAPI
226
226
  else # model
227
227
  # models (e.g. Pet) or oneOf
228
228
  klass = DealMakerAPI.const_get(type)
229
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
229
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
230
230
  end
231
231
  end
232
232
 
@@ -210,7 +210,7 @@ module DealMakerAPI
210
210
  else # model
211
211
  # models (e.g. Pet) or oneOf
212
212
  klass = DealMakerAPI.const_get(type)
213
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
213
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
214
214
  end
215
215
  end
216
216
 
@@ -159,7 +159,7 @@ module DealMakerAPI
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = DealMakerAPI.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165
 
@@ -180,7 +180,7 @@ module DealMakerAPI
180
180
  else # model
181
181
  # models (e.g. Pet) or oneOf
182
182
  klass = DealMakerAPI.const_get(type)
183
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
184
184
  end
185
185
  end
186
186
 
@@ -180,7 +180,7 @@ module DealMakerAPI
180
180
  else # model
181
181
  # models (e.g. Pet) or oneOf
182
182
  klass = DealMakerAPI.const_get(type)
183
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
184
184
  end
185
185
  end
186
186
 
@@ -295,7 +295,7 @@ module DealMakerAPI
295
295
  else # model
296
296
  # models (e.g. Pet) or oneOf
297
297
  klass = DealMakerAPI.const_get(type)
298
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
298
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
299
299
  end
300
300
  end
301
301
 
@@ -231,7 +231,7 @@ module DealMakerAPI
231
231
  else # model
232
232
  # models (e.g. Pet) or oneOf
233
233
  klass = DealMakerAPI.const_get(type)
234
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
234
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
235
235
  end
236
236
  end
237
237
 
@@ -160,7 +160,7 @@ module DealMakerAPI
160
160
  else # model
161
161
  # models (e.g. Pet) or oneOf
162
162
  klass = DealMakerAPI.const_get(type)
163
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
164
164
  end
165
165
  end
166
166
 
@@ -160,7 +160,7 @@ module DealMakerAPI
160
160
  else # model
161
161
  # models (e.g. Pet) or oneOf
162
162
  klass = DealMakerAPI.const_get(type)
163
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
164
164
  end
165
165
  end
166
166
 
@@ -239,7 +239,7 @@ module DealMakerAPI
239
239
  else # model
240
240
  # models (e.g. Pet) or oneOf
241
241
  klass = DealMakerAPI.const_get(type)
242
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
242
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
243
243
  end
244
244
  end
245
245
 
@@ -170,7 +170,7 @@ module DealMakerAPI
170
170
  else # model
171
171
  # models (e.g. Pet) or oneOf
172
172
  klass = DealMakerAPI.const_get(type)
173
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
174
174
  end
175
175
  end
176
176
 
@@ -159,7 +159,7 @@ module DealMakerAPI
159
159
  else # model
160
160
  # models (e.g. Pet) or oneOf
161
161
  klass = DealMakerAPI.const_get(type)
162
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
162
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
163
  end
164
164
  end
165
165
 
@@ -160,7 +160,7 @@ module DealMakerAPI
160
160
  else # model
161
161
  # models (e.g. Pet) or oneOf
162
162
  klass = DealMakerAPI.const_get(type)
163
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
163
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
164
164
  end
165
165
  end
166
166
 
@@ -179,7 +179,7 @@ module DealMakerAPI
179
179
  else # model
180
180
  # models (e.g. Pet) or oneOf
181
181
  klass = DealMakerAPI.const_get(type)
182
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
182
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
183
183
  end
184
184
  end
185
185