merge_hris_client 2.0.1 → 2.0.2

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: 50d8774f2f315c4183225ba7818a198455db0cdca22a2ae9df2274f3294bbb6d
4
- data.tar.gz: e22ba5fb73c5ec1a4b7604f337889e734b524e7b96f22c326119178d955628e7
3
+ metadata.gz: 934d37bd63a49bd224602a6a273f4ba7b5812fb465ab9bdf5286e4876445469f
4
+ data.tar.gz: 730ed22b9de01ba6520be7f3eb1c326d6c461ff58419744d5e107d6f9eb33104
5
5
  SHA512:
6
- metadata.gz: 70ae18aa5637754e0645ab3ccadd690cacd745623d4f98046425a78ab9c61edb90e9f7dddaffcef0cfc6523256215f8119ab08c7a1fdf2894c53c60711cedcea
7
- data.tar.gz: 4405a404e9e5f85308f2a47c06b079522d73a3e53fa921edecfd5845a48d78dc1b6718d97c83ead686847f6734da928dcc927883fa4611cb2a16e5f5eafe1339
6
+ metadata.gz: 15841f25f3c023c67577190622ffff5f58b99abacbdcaf982faa706feb5fef9d9b46745abae77982abfb8777a5096eeb2aaa7875e13d8d7208884c50a738c4d4
7
+ data.tar.gz: 2472db4273f90ac24d4bee2eda0e55f91c7a2d8d08136bf7302e4119eac799f675b3efc6cb546ffb493b511aaf90855de8b3619c8812edabb79eed85472e0c99
data/README.md CHANGED
@@ -7,7 +7,7 @@ The unified API for building rich integrations with multiple HR Information Syst
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 1.0
10
- - Package version: 2.0.1
10
+ - Package version: 2.0.2
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://www.merge.dev/](https://www.merge.dev/)
13
13
 
@@ -24,16 +24,16 @@ gem build merge_hris_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./merge_hris_client-2.0.1.gem
27
+ gem install ./merge_hris_client-2.0.2.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./merge_hris_client-2.0.1.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./merge_hris_client-2.0.2.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'merge_hris_client', '~> 2.0.1'
36
+ gem 'merge_hris_client', '~> 2.0.2'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -0,0 +1,154 @@
1
+ =begin
2
+ #Merge HRIS API
3
+
4
+ #The unified API for building rich integrations with multiple HR Information System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MergeHRISClient
16
+ class WebhookReceiversApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Creates a `WebhookReceiver` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param webhook_receiver_request [WebhookReceiverRequest]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [WebhookReceiver]
27
+ def webhook_receivers_create(x_account_token, webhook_receiver_request, opts = {})
28
+ data, _status_code, _headers = webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts)
29
+ data
30
+ end
31
+
32
+ # Creates a `WebhookReceiver` object with the given values.
33
+ # @param x_account_token [String] Token identifying the end user.
34
+ # @param webhook_receiver_request [WebhookReceiverRequest]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(WebhookReceiver, Integer, Hash)>] WebhookReceiver data, response status code and response headers
37
+ def webhook_receivers_create_with_http_info(x_account_token, webhook_receiver_request, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_create ...'
40
+ end
41
+ # verify the required parameter 'x_account_token' is set
42
+ if @api_client.config.client_side_validation && x_account_token.nil?
43
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_create"
44
+ end
45
+ # verify the required parameter 'webhook_receiver_request' is set
46
+ if @api_client.config.client_side_validation && webhook_receiver_request.nil?
47
+ fail ArgumentError, "Missing the required parameter 'webhook_receiver_request' when calling WebhookReceiversApi.webhook_receivers_create"
48
+ end
49
+ # resource path
50
+ local_var_path = '/webhook-receivers'
51
+
52
+ # query parameters
53
+ query_params = opts[:query_params] || {}
54
+
55
+ # header parameters
56
+ header_params = opts[:header_params] || {}
57
+ # HTTP header 'Accept' (if needed)
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
+ # HTTP header 'Content-Type'
60
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
+ header_params[:'X-Account-Token'] = x_account_token
62
+
63
+ # form parameters
64
+ form_params = opts[:form_params] || {}
65
+
66
+ # http body (model)
67
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(webhook_receiver_request)
68
+
69
+ # return_type
70
+ return_type = opts[:debug_return_type] || 'WebhookReceiver'
71
+
72
+ # auth_names
73
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
74
+
75
+ new_options = opts.merge(
76
+ :operation => :"WebhookReceiversApi.webhook_receivers_create",
77
+ :header_params => header_params,
78
+ :query_params => query_params,
79
+ :form_params => form_params,
80
+ :body => post_body,
81
+ :auth_names => auth_names,
82
+ :return_type => return_type
83
+ )
84
+
85
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+
92
+ # Returns a list of `WebhookReceiver` objects.
93
+ # @param x_account_token [String] Token identifying the end user.
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [Array<WebhookReceiver>]
96
+ def webhook_receivers_list(x_account_token, opts = {})
97
+ data, _status_code, _headers = webhook_receivers_list_with_http_info(x_account_token, opts)
98
+ data
99
+ end
100
+
101
+ # Returns a list of &#x60;WebhookReceiver&#x60; objects.
102
+ # @param x_account_token [String] Token identifying the end user.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(Array<WebhookReceiver>, Integer, Hash)>] Array<WebhookReceiver> data, response status code and response headers
105
+ def webhook_receivers_list_with_http_info(x_account_token, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: WebhookReceiversApi.webhook_receivers_list ...'
108
+ end
109
+ # verify the required parameter 'x_account_token' is set
110
+ if @api_client.config.client_side_validation && x_account_token.nil?
111
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling WebhookReceiversApi.webhook_receivers_list"
112
+ end
113
+ # resource path
114
+ local_var_path = '/webhook-receivers'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
123
+ header_params[:'X-Account-Token'] = x_account_token
124
+
125
+ # form parameters
126
+ form_params = opts[:form_params] || {}
127
+
128
+ # http body (model)
129
+ post_body = opts[:debug_body]
130
+
131
+ # return_type
132
+ return_type = opts[:debug_return_type] || 'Array<WebhookReceiver>'
133
+
134
+ # auth_names
135
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
136
+
137
+ new_options = opts.merge(
138
+ :operation => :"WebhookReceiversApi.webhook_receivers_list",
139
+ :header_params => header_params,
140
+ :query_params => query_params,
141
+ :form_params => form_params,
142
+ :body => post_body,
143
+ :auth_names => auth_names,
144
+ :return_type => return_type
145
+ )
146
+
147
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: WebhookReceiversApi#webhook_receivers_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+ end
154
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.1.1
11
11
  =end
12
12
 
13
13
  module MergeHRISClient
14
- VERSION = '2.0.1'
14
+ VERSION = '2.0.2'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merge_hris_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -218,6 +218,7 @@ files:
218
218
  - lib/merge_hris_client/api/time_off_api.rb
219
219
  - lib/merge_hris_client/api/time_off_balance_api.rb
220
220
  - lib/merge_hris_client/api/time_off_balances_api.rb
221
+ - lib/merge_hris_client/api/webhook_receivers_api.rb
221
222
  - lib/merge_hris_client/api_client.rb
222
223
  - lib/merge_hris_client/api_error.rb
223
224
  - lib/merge_hris_client/configuration.rb