DealMakerAPI 0.99.3 → 0.100.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86a11ff113637a17524b1cb679b6c0692ddd920a905d4cd9382cab529b0d1990
4
- data.tar.gz: 8860f7b4f6b1e807f2b062e4e0179bbc5b96d769a26f8d8a0e956df4f15b4f87
3
+ metadata.gz: ebd1fde3d682f958b05e27d5b1a2beb37c495b58a619c0e411e884bee13fa7dc
4
+ data.tar.gz: 37da0d41b258ac30974937395c164e0d68b91fe1b75ecba68d82ce7298aae973
5
5
  SHA512:
6
- metadata.gz: 975c0280d31b778c8ab28aaf40a30ff32dde86b962564c1f43a61e36e3581de47c15d5aa79815ffb56e14d65c597625bda7f7989a4d56740911c4b2f1547c468
7
- data.tar.gz: b9f4a3cba30277bdf780f40b21a765a719636e8401a6fec8646f48a4a25b6ed3d80d3f1dfc7ef62f154d07da594d5f441adb2efe095f1f35b117ae44867211a8
6
+ metadata.gz: 92e4e22f47fe7bcd2ee796d88fe87059cb64012eb206018c01718d399823a035dd06d26f548ec33a79a17c9ebfcd54ae940848a8b738309b8925abaa3c3f1518
7
+ data.tar.gz: d4e90650b9ddc1b008bb9220847eb3929eb5d5c15a72fc2e0d16e231f65f643dfcb7ad2f8195eadcb84e41e3b723f640d0620bec84932166e104b7a3f8d4b269
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.99.3
341
+ - Package version: 0.100.1
342
342
  - Generator version: 7.5.0-SNAPSHOT
343
343
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
344
344
 
@@ -355,16 +355,16 @@ gem build DealMakerAPI.gemspec
355
355
  Then either install the gem locally:
356
356
 
357
357
  ```shell
358
- gem install ./DealMakerAPI-0.99.3.gem
358
+ gem install ./DealMakerAPI-0.100.1.gem
359
359
  ```
360
360
 
361
- (for development, run `gem install --dev ./DealMakerAPI-0.99.3.gem` to install the development dependencies)
361
+ (for development, run `gem install --dev ./DealMakerAPI-0.100.1.gem` to install the development dependencies)
362
362
 
363
363
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
364
364
 
365
365
  Finally add this to the Gemfile:
366
366
 
367
- gem 'DealMakerAPI', '~> 0.99.3'
367
+ gem 'DealMakerAPI', '~> 0.100.1'
368
368
 
369
369
  ### Install from Git
370
370
 
@@ -438,6 +438,7 @@ Class | Method | HTTP request | Description
438
438
  *DealMakerAPI::DealApi* | [**get_deal**](docs/DealApi.md#get_deal) | **GET** /deals/{id} | Get deal by Deal ID
439
439
  *DealMakerAPI::DealApi* | [**get_deal_incentive_plan**](docs/DealApi.md#get_deal_incentive_plan) | **GET** /deals/{id}/incentive_plan | Get incentive plan by deal id
440
440
  *DealMakerAPI::DealApi* | [**list_deals**](docs/DealApi.md#list_deals) | **GET** /deals | List available deals
441
+ *DealMakerAPI::DealsApi* | [**post_deals_id_email_campaign_email_campaign_id_send_email**](docs/DealsApi.md#post_deals_id_email_campaign_email_campaign_id_send_email) | **POST** /deals/{id}/email_campaign/{email_campaign_id}/send_email | Send emails to all the investors invited to the material change campaign
441
442
  *DealMakerAPI::DealsApi* | [**put_deals_id_script_tag_environment**](docs/DealsApi.md#put_deals_id_script_tag_environment) | **PUT** /deals/{id}/script_tag_environment | Update script tag environment for the deal.
442
443
  *DealMakerAPI::DefaultApi* | [**get_deals_deal_id_payment_onboarding_questionnaire_digital_payments_connection_data**](docs/DefaultApi.md#get_deals_deal_id_payment_onboarding_questionnaire_digital_payments_connection_data) | **GET** /deals/{deal_id}/payment_onboarding/questionnaire/digital_payments_connection/data | Load data for the digital payments connection stage
443
444
  *DealMakerAPI::DefaultApi* | [**get_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_data**](docs/DefaultApi.md#get_deals_deal_id_payment_onboarding_questionnaire_payout_account_details_data) | **GET** /deals/{deal_id}/payment_onboarding/questionnaire/payout_account_details/data | Get payout account data
data/docs/DealsApi.md CHANGED
@@ -4,9 +4,77 @@ All URIs are relative to *http://api.dealmaker.tech*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
+ | [**post_deals_id_email_campaign_email_campaign_id_send_email**](DealsApi.md#post_deals_id_email_campaign_email_campaign_id_send_email) | **POST** /deals/{id}/email_campaign/{email_campaign_id}/send_email | Send emails to all the investors invited to the material change campaign |
7
8
  | [**put_deals_id_script_tag_environment**](DealsApi.md#put_deals_id_script_tag_environment) | **PUT** /deals/{id}/script_tag_environment | Update script tag environment for the deal. |
8
9
 
9
10
 
11
+ ## post_deals_id_email_campaign_email_campaign_id_send_email
12
+
13
+ > post_deals_id_email_campaign_email_campaign_id_send_email(id, email_campaign_id)
14
+
15
+ Send emails to all the investors invited to the material change campaign
16
+
17
+ Send material campaign emails
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'DealMakerAPI'
24
+ # setup authorization
25
+ DealMakerAPI.configure do |config|end
26
+
27
+ api_instance = DealMakerAPI::DealsApi.new
28
+ id = 56 # Integer | The deal id.
29
+ email_campaign_id = 56 # Integer | The email campaign id.
30
+
31
+ begin
32
+ # Send emails to all the investors invited to the material change campaign
33
+ api_instance.post_deals_id_email_campaign_email_campaign_id_send_email(id, email_campaign_id)
34
+ rescue DealMakerAPI::ApiError => e
35
+ puts "Error when calling DealsApi->post_deals_id_email_campaign_email_campaign_id_send_email: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the post_deals_id_email_campaign_email_campaign_id_send_email_with_http_info variant
40
+
41
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
42
+
43
+ > <Array(nil, Integer, Hash)> post_deals_id_email_campaign_email_campaign_id_send_email_with_http_info(id, email_campaign_id)
44
+
45
+ ```ruby
46
+ begin
47
+ # Send emails to all the investors invited to the material change campaign
48
+ data, status_code, headers = api_instance.post_deals_id_email_campaign_email_campaign_id_send_email_with_http_info(id, email_campaign_id)
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => nil
52
+ rescue DealMakerAPI::ApiError => e
53
+ puts "Error when calling DealsApi->post_deals_id_email_campaign_email_campaign_id_send_email_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ | Name | Type | Description | Notes |
60
+ | ---- | ---- | ----------- | ----- |
61
+ | **id** | **Integer** | The deal id. | |
62
+ | **email_campaign_id** | **Integer** | The email campaign id. | |
63
+
64
+ ### Return type
65
+
66
+ nil (empty response body)
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: Not defined
75
+ - **Accept**: Not defined
76
+
77
+
10
78
  ## put_deals_id_script_tag_environment
11
79
 
12
80
  > put_deals_id_script_tag_environment(id, put_deals_id_script_tag_environment_request)
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **amount** | **Float** | The amount of money. | [optional] |
8
8
  | **amount_cents** | **Float** | The amount of money in cents. | [optional] |
9
+ | **formatted_amount** | **String** | A string representation of the amount | [optional] |
9
10
  | **currency** | **String** | The currency of the money. | [optional] |
10
11
 
11
12
  ## Example
@@ -16,6 +17,7 @@ require 'DealMakerAPI'
16
17
  instance = DealMakerAPI::V1EntitiesMoneyEntity.new(
17
18
  amount: null,
18
19
  amount_cents: null,
20
+ formatted_amount: null,
19
21
  currency: null
20
22
  )
21
23
  ```
@@ -19,6 +19,73 @@ module DealMakerAPI
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Send emails to all the investors invited to the material change campaign
23
+ # Send material campaign emails
24
+ # @param id [Integer] The deal id.
25
+ # @param email_campaign_id [Integer] The email campaign id.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [nil]
28
+ def post_deals_id_email_campaign_email_campaign_id_send_email(id, email_campaign_id, opts = {})
29
+ post_deals_id_email_campaign_email_campaign_id_send_email_with_http_info(id, email_campaign_id, opts)
30
+ nil
31
+ end
32
+
33
+ # Send emails to all the investors invited to the material change campaign
34
+ # Send material campaign emails
35
+ # @param id [Integer] The deal id.
36
+ # @param email_campaign_id [Integer] The email campaign id.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
+ def post_deals_id_email_campaign_email_campaign_id_send_email_with_http_info(id, email_campaign_id, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: DealsApi.post_deals_id_email_campaign_email_campaign_id_send_email ...'
42
+ end
43
+ # verify the required parameter 'id' is set
44
+ if @api_client.config.client_side_validation && id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'id' when calling DealsApi.post_deals_id_email_campaign_email_campaign_id_send_email"
46
+ end
47
+ # verify the required parameter 'email_campaign_id' is set
48
+ if @api_client.config.client_side_validation && email_campaign_id.nil?
49
+ fail ArgumentError, "Missing the required parameter 'email_campaign_id' when calling DealsApi.post_deals_id_email_campaign_email_campaign_id_send_email"
50
+ end
51
+ # resource path
52
+ local_var_path = '/deals/{id}/email_campaign/{email_campaign_id}/send_email'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'email_campaign_id' + '}', CGI.escape(email_campaign_id.to_s))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+
60
+ # form parameters
61
+ form_params = opts[:form_params] || {}
62
+
63
+ # http body (model)
64
+ post_body = opts[:debug_body]
65
+
66
+ # return_type
67
+ return_type = opts[:debug_return_type]
68
+
69
+ # auth_names
70
+ auth_names = opts[:debug_auth_names] || []
71
+
72
+ new_options = opts.merge(
73
+ :operation => :"DealsApi.post_deals_id_email_campaign_email_campaign_id_send_email",
74
+ :header_params => header_params,
75
+ :query_params => query_params,
76
+ :form_params => form_params,
77
+ :body => post_body,
78
+ :auth_names => auth_names,
79
+ :return_type => return_type
80
+ )
81
+
82
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
83
+ if @api_client.config.debugging
84
+ @api_client.config.logger.debug "API called: DealsApi#post_deals_id_email_campaign_email_campaign_id_send_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ end
86
+ return data, status_code, headers
87
+ end
88
+
22
89
  # Update script tag environment for the deal.
23
90
  # Update script tag environment for the deal.
24
91
  # @param id [Integer] The deal id.
@@ -353,7 +353,7 @@ module DealMakerAPI
353
353
  return false unless funding_state_validator.valid?(@funding_state)
354
354
  verification_status_validator = EnumAttributeValidator.new('String', ["pending", "approved", "rejected", "new_documents_requested"])
355
355
  return false unless verification_status_validator.valid?(@verification_status)
356
- checkout_state_validator = EnumAttributeValidator.new('String', ["pre_checkout", "investment_amount", "contact_information", "investor_confirmation", "terms_conditions", "payment", "checkout_complete", "resubmit_agreement", "legacy_checkout"])
356
+ checkout_state_validator = EnumAttributeValidator.new('String', ["pre_checkout", "investment_amount", "contact_information", "investor_confirmation", "terms_conditions", "payment", "checkout_complete", "resubmit_agreement", "legacy_checkout", "document_upload"])
357
357
  return false unless checkout_state_validator.valid?(@checkout_state)
358
358
  true
359
359
  end
@@ -401,7 +401,7 @@ module DealMakerAPI
401
401
  # Custom attribute writer method checking allowed values (enum).
402
402
  # @param [Object] checkout_state Object to be assigned
403
403
  def checkout_state=(checkout_state)
404
- validator = EnumAttributeValidator.new('String', ["pre_checkout", "investment_amount", "contact_information", "investor_confirmation", "terms_conditions", "payment", "checkout_complete", "resubmit_agreement", "legacy_checkout"])
404
+ validator = EnumAttributeValidator.new('String', ["pre_checkout", "investment_amount", "contact_information", "investor_confirmation", "terms_conditions", "payment", "checkout_complete", "resubmit_agreement", "legacy_checkout", "document_upload"])
405
405
  unless validator.valid?(checkout_state)
406
406
  fail ArgumentError, "invalid value for \"checkout_state\", must be one of #{validator.allowable_values}."
407
407
  end
@@ -21,6 +21,9 @@ module DealMakerAPI
21
21
  # The amount of money in cents.
22
22
  attr_accessor :amount_cents
23
23
 
24
+ # A string representation of the amount
25
+ attr_accessor :formatted_amount
26
+
24
27
  # The currency of the money.
25
28
  attr_accessor :currency
26
29
 
@@ -29,6 +32,7 @@ module DealMakerAPI
29
32
  {
30
33
  :'amount' => :'amount',
31
34
  :'amount_cents' => :'amount_cents',
35
+ :'formatted_amount' => :'formatted_amount',
32
36
  :'currency' => :'currency'
33
37
  }
34
38
  end
@@ -43,6 +47,7 @@ module DealMakerAPI
43
47
  {
44
48
  :'amount' => :'Float',
45
49
  :'amount_cents' => :'Float',
50
+ :'formatted_amount' => :'String',
46
51
  :'currency' => :'String'
47
52
  }
48
53
  end
@@ -76,6 +81,10 @@ module DealMakerAPI
76
81
  self.amount_cents = attributes[:'amount_cents']
77
82
  end
78
83
 
84
+ if attributes.key?(:'formatted_amount')
85
+ self.formatted_amount = attributes[:'formatted_amount']
86
+ end
87
+
79
88
  if attributes.key?(:'currency')
80
89
  self.currency = attributes[:'currency']
81
90
  end
@@ -103,6 +112,7 @@ module DealMakerAPI
103
112
  self.class == o.class &&
104
113
  amount == o.amount &&
105
114
  amount_cents == o.amount_cents &&
115
+ formatted_amount == o.formatted_amount &&
106
116
  currency == o.currency
107
117
  end
108
118
 
@@ -115,7 +125,7 @@ module DealMakerAPI
115
125
  # Calculates hash code according to all attributes.
116
126
  # @return [Integer] Hash code
117
127
  def hash
118
- [amount, amount_cents, currency].hash
128
+ [amount, amount_cents, formatted_amount, currency].hash
119
129
  end
120
130
 
121
131
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.5.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module DealMakerAPI
14
- VERSION = '0.99.3'
14
+ VERSION = '0.100.1'
15
15
  end
@@ -32,6 +32,19 @@ describe 'DealsApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for post_deals_id_email_campaign_email_campaign_id_send_email
36
+ # Send emails to all the investors invited to the material change campaign
37
+ # Send material campaign emails
38
+ # @param id The deal id.
39
+ # @param email_campaign_id The email campaign id.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'post_deals_id_email_campaign_email_campaign_id_send_email test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
35
48
  # unit tests for put_deals_id_script_tag_environment
36
49
  # Update script tag environment for the deal.
37
50
  # Update script tag environment for the deal.
@@ -208,7 +208,7 @@ describe DealMakerAPI::V1EntitiesInvestor do
208
208
  describe 'test attribute "checkout_state"' do
209
209
  it 'should work' do
210
210
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
211
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pre_checkout", "investment_amount", "contact_information", "investor_confirmation", "terms_conditions", "payment", "checkout_complete", "resubmit_agreement", "legacy_checkout"])
211
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pre_checkout", "investment_amount", "contact_information", "investor_confirmation", "terms_conditions", "payment", "checkout_complete", "resubmit_agreement", "legacy_checkout", "document_upload"])
212
212
  # validator.allowable_values.each do |value|
213
213
  # expect { instance.checkout_state = value }.not_to raise_error
214
214
  # end
@@ -39,6 +39,12 @@ describe DealMakerAPI::V1EntitiesMoneyEntity do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "formatted_amount"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
42
48
  describe 'test attribute "currency"' do
43
49
  it 'should work' do
44
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
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.99.3
4
+ version: 0.100.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-03-28 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus