DealMakerAPI 0.96.2 → 0.97.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ced3031ca64d4370c375ed22a24220e4c9bee6da3e8b6c9dca269e91674a2ff
4
- data.tar.gz: da31b7f5e94c57a34f348108d2e814a0769cef007499b7aa35312ec8aef8352d
3
+ metadata.gz: 146b9a995a10468a0404ffa8e2a4ce15cbf07426b1f2336f4933dedfaa4cbc4d
4
+ data.tar.gz: 50f4755bb39d3db5aef73fdfebe3d5bf5a1fcc16ec7637272563fd2b7ef898c8
5
5
  SHA512:
6
- metadata.gz: 2244aa5572d5ef2ebb18698229c523f17b0d2a84801b79846853cedaa8cf88b33c6b0c708221d9457ea39c325f31abc3ce436b37144f3934e2f52cacdce203b8
7
- data.tar.gz: 9ec554bb408a0c36ad9deae62ae96e0f9318988c1db5bff986fff7edcaf2ce1c15eec5fc90151e28e9c05291057899f4bb1e39301007259b6c72cce84f503e86
6
+ metadata.gz: c6832bd6939bec7372bcf7d7bf2ede182817b6d6411034356a8bfa9f305f9adf404a9c7f1f666dbcdabc67eb26c25888daed584bcf2ac6b0bc5388f892b0d056
7
+ data.tar.gz: badfde9c867cdcfffeefe80b9d674307168f6205ab224b815a9705abc25dfa94dad81b625adcfc6a024bdc3d647dcb7211c7c2b6920d78f933c8e5e6f8111cda
data/README.md CHANGED
@@ -338,7 +338,7 @@ Given the high number of updates our platform performs on any investor, we’ve
338
338
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
339
339
 
340
340
  - API version: 1.75.0
341
- - Package version: 0.96.2
341
+ - Package version: 0.97.1
342
342
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
343
343
 
344
344
  ## Installation
@@ -354,16 +354,16 @@ gem build DealMakerAPI.gemspec
354
354
  Then either install the gem locally:
355
355
 
356
356
  ```shell
357
- gem install ./DealMakerAPI-0.96.2.gem
357
+ gem install ./DealMakerAPI-0.97.1.gem
358
358
  ```
359
359
 
360
- (for development, run `gem install --dev ./DealMakerAPI-0.96.2.gem` to install the development dependencies)
360
+ (for development, run `gem install --dev ./DealMakerAPI-0.97.1.gem` to install the development dependencies)
361
361
 
362
362
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
363
363
 
364
364
  Finally add this to the Gemfile:
365
365
 
366
- gem 'DealMakerAPI', '~> 0.96.2'
366
+ gem 'DealMakerAPI', '~> 0.97.1'
367
367
 
368
368
  ### Install from Git
369
369
 
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **filename** | **String** | The name of the file to be uploaded to S3. | |
8
+ | **target** | **String** | The target is used to figure out the intended destination (which cloud provider and which bucket) | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'DealMakerAPI'
13
14
 
14
15
  instance = DealMakerAPI::GenerateUrlRequest.new(
15
- filename: null
16
+ filename: null,
17
+ target: null
16
18
  )
17
19
  ```
18
20
 
@@ -18,10 +18,36 @@ module DealMakerAPI
18
18
  # The name of the file to be uploaded to S3.
19
19
  attr_accessor :filename
20
20
 
21
+ # The target is used to figure out the intended destination (which cloud provider and which bucket)
22
+ attr_accessor :target
23
+
24
+ class EnumAttributeValidator
25
+ attr_reader :datatype
26
+ attr_reader :allowable_values
27
+
28
+ def initialize(datatype, allowable_values)
29
+ @allowable_values = allowable_values.map do |value|
30
+ case datatype.to_s
31
+ when /Integer/i
32
+ value.to_i
33
+ when /Float/i
34
+ value.to_f
35
+ else
36
+ value
37
+ end
38
+ end
39
+ end
40
+
41
+ def valid?(value)
42
+ !value || allowable_values.include?(value)
43
+ end
44
+ end
45
+
21
46
  # Attribute mapping from ruby-style variable name to JSON key.
22
47
  def self.attribute_map
23
48
  {
24
- :'filename' => :'filename'
49
+ :'filename' => :'filename',
50
+ :'target' => :'target'
25
51
  }
26
52
  end
27
53
 
@@ -33,7 +59,8 @@ module DealMakerAPI
33
59
  # Attribute type mapping.
34
60
  def self.openapi_types
35
61
  {
36
- :'filename' => :'String'
62
+ :'filename' => :'String',
63
+ :'target' => :'String'
37
64
  }
38
65
  end
39
66
 
@@ -63,6 +90,10 @@ module DealMakerAPI
63
90
  else
64
91
  self.filename = nil
65
92
  end
93
+
94
+ if attributes.key?(:'target')
95
+ self.target = attributes[:'target']
96
+ end
66
97
  end
67
98
 
68
99
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -82,15 +113,28 @@ module DealMakerAPI
82
113
  def valid?
83
114
  warn '[DEPRECATED] the `valid?` method is obsolete'
84
115
  return false if @filename.nil?
116
+ target_validator = EnumAttributeValidator.new('String', ["IDOCR", "GENERAL_UPLOAD"])
117
+ return false unless target_validator.valid?(@target)
85
118
  true
86
119
  end
87
120
 
121
+ # Custom attribute writer method checking allowed values (enum).
122
+ # @param [Object] target Object to be assigned
123
+ def target=(target)
124
+ validator = EnumAttributeValidator.new('String', ["IDOCR", "GENERAL_UPLOAD"])
125
+ unless validator.valid?(target)
126
+ fail ArgumentError, "invalid value for \"target\", must be one of #{validator.allowable_values}."
127
+ end
128
+ @target = target
129
+ end
130
+
88
131
  # Checks equality by comparing each attribute.
89
132
  # @param [Object] Object to be compared
90
133
  def ==(o)
91
134
  return true if self.equal?(o)
92
135
  self.class == o.class &&
93
- filename == o.filename
136
+ filename == o.filename &&
137
+ target == o.target
94
138
  end
95
139
 
96
140
  # @see the `==` method
@@ -102,7 +146,7 @@ module DealMakerAPI
102
146
  # Calculates hash code according to all attributes.
103
147
  # @return [Integer] Hash code
104
148
  def hash
105
- [filename].hash
149
+ [filename, target].hash
106
150
  end
107
151
 
108
152
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.4.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module DealMakerAPI
14
- VERSION = '0.96.2'
14
+ VERSION = '0.97.1'
15
15
  end
@@ -33,4 +33,14 @@ describe DealMakerAPI::GenerateUrlRequest do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "target"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IDOCR", "GENERAL_UPLOAD"])
40
+ # validator.allowable_values.each do |value|
41
+ # expect { instance.target = value }.not_to raise_error
42
+ # end
43
+ end
44
+ end
45
+
36
46
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DealMakerAPI
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.96.2
4
+ version: 0.97.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DealMaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-12 00:00:00.000000000 Z
11
+ date: 2024-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -452,124 +452,124 @@ signing_key:
452
452
  specification_version: 4
453
453
  summary: A ruby wrapper for the DealMaker API
454
454
  test_files:
455
+ - spec/api/upload_api_spec.rb
456
+ - spec/api/deals_api_spec.rb
455
457
  - spec/api/default_api_spec.rb
458
+ - spec/api/deal_api_spec.rb
459
+ - spec/api/investor_profile_api_spec.rb
456
460
  - spec/api/user_api_spec.rb
461
+ - spec/api/users_api_spec.rb
457
462
  - spec/api/country_api_spec.rb
458
- - spec/api/deal_api_spec.rb
459
- - spec/api/incentive_plan_api_spec.rb
460
463
  - spec/api/custom_emails_api_spec.rb
461
- - spec/api/users_api_spec.rb
464
+ - spec/api/incentive_plan_api_spec.rb
462
465
  - spec/api/shareholder_api_spec.rb
463
- - spec/api/deals_api_spec.rb
464
466
  - spec/api/company_api_spec.rb
465
- - spec/api/upload_api_spec.rb
466
- - spec/api/investor_profile_api_spec.rb
467
467
  - spec/api/investor_api_spec.rb
468
- - spec/models/v1_entities_deals_incentive_plans_incentive_tier_spec.rb
469
- - spec/models/v1_entities_investor_profile_owner_spec.rb
470
- - spec/models/v1_entities_investor_profile_corporation_spec.rb
471
- - spec/models/v1_entities_investor_profile_individual_spec.rb
472
- - spec/models/v1_entities_countries_spec.rb
473
- - spec/models/v1_entities_investor_profile_trust_spec.rb
474
- - spec/models/v1_entities_webhooks_security_token_spec.rb
475
- - spec/models/v1_entities_state_spec.rb
476
- - spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb
477
- - spec/models/v1_entities_beefree_access_token_spec.rb
478
- - spec/models/v1_entities_shareholders_tags_spec.rb
479
- - spec/models/v1_entities_investor_profile_fields_corporation_spec.rb
480
- - spec/models/v1_entities_investor_profile_fields_beneficial_owner_spec.rb
481
- - spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_data_spec.rb
482
- - spec/models/v1_entities_bulk_uploads_spec.rb
483
- - spec/models/patch_investor_profiles_individuals_spec.rb
468
+ - spec/models/v1_entities_webhooks_subscription_deals_spec.rb
484
469
  - spec/models/v1_entities_deal_issuer_spec.rb
485
- - spec/models/v1_entities_investor_profile_fields_trustee_spec.rb
486
- - spec/models/create_shareholder_action_request_spec.rb
487
- - spec/models/post_investor_profiles_corporations_spec.rb
488
- - spec/models/v1_entities_investor_profile_managed_spec.rb
489
- - spec/models/v1_entities_dividend_spec.rb
490
- - spec/models/v1_entities_deal_spec.rb
491
- - spec/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result_spec.rb
492
- - spec/models/v1_entities_express_wire_instructions_spec.rb
493
- - spec/models/v1_entities_investor_user_spec.rb
494
- - spec/models/v1_entities_subscription_agreement_spec.rb
495
- - spec/models/update_user_password_request_spec.rb
496
- - spec/models/v1_entities_investor_profile_fields_provider_spec.rb
497
- - spec/models/create_bulk_upload_request_spec.rb
498
- - spec/models/v1_entities_user_spec.rb
470
+ - spec/models/put_webhooks_id_request_spec.rb
499
471
  - spec/models/create_bulk_upload_detail_request_spec.rb
500
- - spec/models/v1_entities_bulk_upload_details_spec.rb
501
- - spec/models/patch_investor_profiles_trusts_trustees_inner_spec.rb
502
- - spec/models/get_access_token_request_spec.rb
472
+ - spec/models/run_background_search_request_spec.rb
473
+ - spec/models/add506c_document_request_spec.rb
474
+ - spec/models/v1_entities_shareholders_tags_spec.rb
475
+ - spec/models/v1_entities_payments_self_serve_onboarding_qualification_questionnaire_result_spec.rb
503
476
  - spec/models/v1_entities_investor_profile_joint_spec.rb
504
- - spec/models/v1_entities_deals_spec.rb
505
- - spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb
506
- - spec/models/v1_entities_deal_setup_spec.rb
507
- - spec/models/v1_entities_webhooks_subscription_deals_spec.rb
508
- - spec/models/v1_entities_attachment_spec.rb
509
- - spec/models/v1_entities_investor_spec.rb
477
+ - spec/models/v1_entities_dividends_spec.rb
478
+ - spec/models/patch_investor_request_spec.rb
510
479
  - spec/models/post_webhooks_request_spec.rb
511
- - spec/models/v1_entities_generic_response_spec.rb
512
480
  - spec/models/v1_entities_investor_otp_access_link_spec.rb
513
- - spec/models/post_investor_profiles_managed_spec.rb
514
- - spec/models/add_document_request_spec.rb
515
- - spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb
516
- - spec/models/v1_entities_deals_price_details_spec.rb
517
- - spec/models/v1_entities_deals_incentive_plan_spec.rb
518
- - spec/models/v1_entities_deal_enterprise_spec.rb
519
- - spec/models/v1_entities_investor_profile_fields_trust_spec.rb
520
- - spec/models/put_webhooks_id_request_spec.rb
521
- - spec/models/v1_entities_express_wire_instruction_spec.rb
522
- - spec/models/v1_entities_company_deals_spec.rb
523
481
  - spec/models/v1_entities_investors_spec.rb
524
- - spec/models/v1_entities_deal_funding_metrics_spec.rb
525
- - spec/models/v1_entities_webhooks_deal_spec.rb
482
+ - spec/models/v1_entities_webhooks_security_token_spec.rb
483
+ - spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb
484
+ - spec/models/patch_investor_profiles_individuals_spec.rb
485
+ - spec/models/v1_entities_deals_incentive_plans_incentive_tier_spec.rb
486
+ - spec/models/create_company_request_spec.rb
487
+ - spec/models/v1_entities_company_spec.rb
488
+ - spec/models/v1_entities_company_deals_spec.rb
489
+ - spec/models/v1_entities_bulk_upload_detail_spec.rb
490
+ - spec/models/v1_entities_deals_price_details_spec.rb
491
+ - spec/models/v1_entities_subscription_agreement_spec.rb
526
492
  - spec/models/v1_entities_shareholder_spec.rb
527
- - spec/models/put_deals_id_script_tag_environment_request_spec.rb
528
- - spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb
529
493
  - spec/models/edit_investor_tags_request_spec.rb
530
- - spec/models/v1_entities_webhooks_subscription_spec.rb
531
- - spec/models/run_background_search_request_spec.rb
532
- - spec/models/v1_entities_deal_setup_user_spec.rb
533
- - spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb
494
+ - spec/models/v1_entities_attachment_spec.rb
495
+ - spec/models/bulk_upload_investors_request_spec.rb
534
496
  - spec/models/v1_entities_addresses_spec.rb
497
+ - spec/models/v1_entities_user_spec.rb
498
+ - spec/models/v1_entities_investor_profile_fields_provider_spec.rb
535
499
  - spec/models/put_deals_id_investors_spec.rb
536
- - spec/models/v1_entities_webhooks_subscription_deal_spec.rb
537
- - spec/models/post_deals_id_investors_spec.rb
538
- - spec/models/post_investor_profiles_individuals_spec.rb
539
- - spec/models/patch_investor_profiles_joints_spec.rb
540
- - spec/models/v1_entities_company_spec.rb
541
- - spec/models/post_investor_profiles_trusts_spec.rb
542
- - spec/models/v1_entities_email_events_spec.rb
500
+ - spec/models/patch_investor_profiles_trusts_spec.rb
501
+ - spec/models/v1_entities_investor_profile_address_spec.rb
502
+ - spec/models/v1_entities_investor_profile_fields_trust_spec.rb
503
+ - spec/models/create_bulk_upload_request_spec.rb
543
504
  - spec/models/patch_deal_incentive_plan_request_spec.rb
544
- - spec/models/create_deal_setup_request_spec.rb
545
- - spec/models/v1_entities_investor_profiles_spec.rb
546
- - spec/models/patch_investor_request_spec.rb
547
- - spec/models/v1_entities_dividends_spec.rb
548
- - spec/models/v1_entities_investor_profile_fields_beneficiary_spec.rb
505
+ - spec/models/create_shareholder_action_request_spec.rb
506
+ - spec/models/post_investor_profiles_individuals_spec.rb
507
+ - spec/models/v1_entities_investor_profile_fields_account_holder_spec.rb
549
508
  - spec/models/v1_entities_presigned_url_result_spec.rb
509
+ - spec/models/put_deals_id_script_tag_environment_request_spec.rb
550
510
  - spec/models/v1_entities_deal_investor_metrics_spec.rb
551
- - spec/models/generate_url_request_spec.rb
511
+ - spec/models/v1_entities_email_event_spec.rb
512
+ - spec/models/patch_investor_profiles_corporations_beneficial_owners_inner_spec.rb
513
+ - spec/models/v1_entities_investor_profile_fields_trustee_spec.rb
514
+ - spec/models/update_user_password_request_spec.rb
515
+ - spec/models/v1_entities_beefree_access_token_spec.rb
516
+ - spec/models/post_deals_id_investors_spec.rb
517
+ - spec/models/post_deal_incentive_plan_request_spec.rb
518
+ - spec/models/v1_entities_webhooks_subscription_spec.rb
552
519
  - spec/models/v1_entities_investor_profile_item_spec.rb
553
- - spec/models/v1_entities_shareholders_spec.rb
520
+ - spec/models/v1_entities_payments_self_serve_onboarding_digital_payments_connection_data_spec.rb
521
+ - spec/models/post_investor_profiles_corporations_spec.rb
522
+ - spec/models/v1_entities_investor_profile_individual_spec.rb
554
523
  - spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_result_spec.rb
555
- - spec/models/v1_entities_address_spec.rb
556
- - spec/models/patch_investor_profiles_corporations_spec.rb
557
- - spec/models/v1_entities_bulk_upload_spec.rb
558
- - spec/models/v1_entities_background_check_search_spec.rb
559
- - spec/models/post_investor_profiles_corporations_beneficial_owners_inner_spec.rb
524
+ - spec/models/v1_entities_investor_profile_fields_corporation_spec.rb
525
+ - spec/models/v1_entities_investor_profiles_spec.rb
526
+ - spec/models/v1_entities_investor_profile_managed_spec.rb
527
+ - spec/models/v1_entities_investor_profile_corporation_spec.rb
528
+ - spec/models/v1_entities_investor_profile_owner_spec.rb
560
529
  - spec/models/send_portal_invite_request_spec.rb
561
- - spec/models/v1_entities_investor_profile_address_spec.rb
562
- - spec/models/post_deal_incentive_plan_request_spec.rb
563
- - spec/models/v1_entities_email_event_spec.rb
530
+ - spec/models/add_document_request_spec.rb
531
+ - spec/models/v1_entities_background_check_search_spec.rb
532
+ - spec/models/v1_entities_deal_setup_user_spec.rb
533
+ - spec/models/v1_entities_generic_response_spec.rb
534
+ - spec/models/patch_investor_profiles_trusts_trustees_inner_spec.rb
535
+ - spec/models/v1_entities_bulk_uploads_spec.rb
536
+ - spec/models/create_deal_setup_request_spec.rb
537
+ - spec/models/get_access_token_request_spec.rb
538
+ - spec/models/v1_entities_bulk_upload_spec.rb
539
+ - spec/models/v1_entities_address_spec.rb
564
540
  - spec/models/post_investor_profiles_joints_spec.rb
565
- - spec/models/v1_entities_investor_profile_id_spec.rb
541
+ - spec/models/patch_investor_profiles_joints_spec.rb
542
+ - spec/models/v1_entities_deals_incentive_plan_spec.rb
543
+ - spec/models/v1_entities_country_spec.rb
544
+ - spec/models/v1_entities_dividend_spec.rb
545
+ - spec/models/v1_entities_deal_setup_spec.rb
546
+ - spec/models/v1_entities_investor_profile_trust_spec.rb
547
+ - spec/models/v1_entities_investor_profile_fields_beneficiary_spec.rb
548
+ - spec/models/v1_entities_express_wire_instructions_spec.rb
549
+ - spec/models/v1_entities_investor_user_spec.rb
550
+ - spec/models/v1_entities_webhooks_deal_spec.rb
551
+ - spec/models/v1_entities_countries_spec.rb
552
+ - spec/models/v1_entities_deal_spec.rb
553
+ - spec/models/post_investor_profiles_trusts_spec.rb
554
+ - spec/models/v1_entities_deals_spec.rb
555
+ - spec/models/v1_entities_shareholders_spec.rb
556
+ - spec/models/post_investor_profiles_trusts_trustees_inner_spec.rb
566
557
  - spec/models/v1_entities_money_entity_spec.rb
558
+ - spec/models/v1_entities_investor_profile_fields_signing_officer_spec.rb
559
+ - spec/models/generate_url_request_spec.rb
560
+ - spec/models/v1_entities_state_spec.rb
561
+ - spec/models/v1_entities_webhooks_subscription_deal_spec.rb
562
+ - spec/models/v1_entities_deal_funding_metrics_spec.rb
563
+ - spec/models/patch_investor_profiles_corporations_spec.rb
564
+ - spec/models/v1_entities_express_wire_instruction_spec.rb
565
+ - spec/models/v1_entities_bulk_upload_details_spec.rb
566
+ - spec/models/v1_entities_investor_profile_fields_beneficial_owner_spec.rb
567
+ - spec/models/v1_entities_investor_profile_fields_primary_holder_spec.rb
568
+ - spec/models/post_investor_profiles_managed_spec.rb
569
+ - spec/models/v1_entities_investor_spec.rb
570
+ - spec/models/v1_entities_deal_enterprise_spec.rb
571
+ - spec/models/v1_entities_payments_self_serve_onboarding_payout_account_details_data_spec.rb
572
+ - spec/models/v1_entities_email_events_spec.rb
573
+ - spec/models/v1_entities_investor_profile_id_spec.rb
567
574
  - spec/models/v1_entities_company_deal_spec.rb
568
- - spec/models/v1_entities_bulk_upload_detail_spec.rb
569
- - spec/models/create_company_request_spec.rb
570
- - spec/models/add506c_document_request_spec.rb
571
- - spec/models/v1_entities_payments_self_serve_onboarding_digital_payments_connection_data_spec.rb
572
- - spec/models/patch_investor_profiles_trusts_spec.rb
573
- - spec/models/bulk_upload_investors_request_spec.rb
574
- - spec/models/v1_entities_country_spec.rb
575
575
  - spec/spec_helper.rb