affixapi 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +19 -0
  4. data/README.md +374 -0
  5. data/Rakefile +10 -0
  6. data/affixapi.gemspec +38 -0
  7. data/docs/AddressNoNonNullRequest.md +26 -0
  8. data/docs/AddressResponse.md +26 -0
  9. data/docs/Class20230301Api.md +1401 -0
  10. data/docs/ClientRequest.md +24 -0
  11. data/docs/ClientResponse.md +26 -0
  12. data/docs/CompanyResponse.md +28 -0
  13. data/docs/CoreApi.md +69 -0
  14. data/docs/CreateEmployeeRequest.md +68 -0
  15. data/docs/CreateEmployeeRequestBankAccount.md +26 -0
  16. data/docs/CreateEmployeeRequestManager.md +26 -0
  17. data/docs/CurrencyRequest.md +15 -0
  18. data/docs/CurrencyResponse.md +15 -0
  19. data/docs/DeveloperApi.md +777 -0
  20. data/docs/DisconnectResponse.md +18 -0
  21. data/docs/EmployeeResponse.md +74 -0
  22. data/docs/EmploymentNoNullEnumRequest.md +30 -0
  23. data/docs/EmploymentResponse.md +30 -0
  24. data/docs/GroupNoNullEnumRequest.md +24 -0
  25. data/docs/GroupResponse.md +24 -0
  26. data/docs/IdAndMessageResponse.md +20 -0
  27. data/docs/IdentityResponse.md +22 -0
  28. data/docs/InlineResponse400.md +20 -0
  29. data/docs/InlineResponse401.md +22 -0
  30. data/docs/InlineResponse409.md +22 -0
  31. data/docs/IntrospectResponse.md +24 -0
  32. data/docs/LocationNoNonNullRequest.md +26 -0
  33. data/docs/LocationResponse.md +26 -0
  34. data/docs/ManagementApi.md +420 -0
  35. data/docs/MessageResponse.md +18 -0
  36. data/docs/ModeRequest.md +15 -0
  37. data/docs/ModeResponse.md +15 -0
  38. data/docs/OfficialApi.md +631 -0
  39. data/docs/PayrunResponse.md +30 -0
  40. data/docs/PayslipResponse.md +44 -0
  41. data/docs/PayslipResponseContributions.md +20 -0
  42. data/docs/PayslipResponseDeductions.md +20 -0
  43. data/docs/PayslipResponseEarnings.md +22 -0
  44. data/docs/PayslipResponseTaxes.md +22 -0
  45. data/docs/ProviderRequest.md +15 -0
  46. data/docs/ProviderResponse.md +15 -0
  47. data/docs/ScopesRequest.md +15 -0
  48. data/docs/ScopesResponse.md +15 -0
  49. data/docs/TimeOffBalanceResponse.md +32 -0
  50. data/docs/TimeOffEntryResponse.md +40 -0
  51. data/docs/TimesheetResponse.md +32 -0
  52. data/docs/TokenRequest.md +26 -0
  53. data/docs/TokenResponse.md +26 -0
  54. data/git_push.sh +58 -0
  55. data/lib/openapi_client/api/class20230301_api.rb +1198 -0
  56. data/lib/openapi_client/api/core_api.rb +79 -0
  57. data/lib/openapi_client/api/developer_api.rb +677 -0
  58. data/lib/openapi_client/api/management_api.rb +380 -0
  59. data/lib/openapi_client/api/official_api.rb +543 -0
  60. data/lib/openapi_client/api_client.rb +390 -0
  61. data/lib/openapi_client/api_error.rb +57 -0
  62. data/lib/openapi_client/configuration.rb +288 -0
  63. data/lib/openapi_client/models/address_no_non_null_request.rb +295 -0
  64. data/lib/openapi_client/models/address_response.rb +295 -0
  65. data/lib/openapi_client/models/client_request.rb +269 -0
  66. data/lib/openapi_client/models/client_response.rb +284 -0
  67. data/lib/openapi_client/models/company_response.rb +279 -0
  68. data/lib/openapi_client/models/create_employee_request.rb +568 -0
  69. data/lib/openapi_client/models/create_employee_request_bank_account.rb +259 -0
  70. data/lib/openapi_client/models/create_employee_request_manager.rb +263 -0
  71. data/lib/openapi_client/models/currency_request.rb +38 -0
  72. data/lib/openapi_client/models/currency_response.rb +38 -0
  73. data/lib/openapi_client/models/disconnect_response.rb +258 -0
  74. data/lib/openapi_client/models/employee_response.rb +608 -0
  75. data/lib/openapi_client/models/employment_no_null_enum_request.rb +329 -0
  76. data/lib/openapi_client/models/employment_response.rb +329 -0
  77. data/lib/openapi_client/models/group_no_null_enum_request.rb +283 -0
  78. data/lib/openapi_client/models/group_response.rb +283 -0
  79. data/lib/openapi_client/models/id_and_message_response.rb +239 -0
  80. data/lib/openapi_client/models/identity_response.rb +250 -0
  81. data/lib/openapi_client/models/inline_response400.rb +227 -0
  82. data/lib/openapi_client/models/inline_response401.rb +299 -0
  83. data/lib/openapi_client/models/inline_response409.rb +278 -0
  84. data/lib/openapi_client/models/introspect_response.rb +269 -0
  85. data/lib/openapi_client/models/location_no_non_null_request.rb +263 -0
  86. data/lib/openapi_client/models/location_response.rb +263 -0
  87. data/lib/openapi_client/models/message_response.rb +223 -0
  88. data/lib/openapi_client/models/mode_request.rb +37 -0
  89. data/lib/openapi_client/models/mode_response.rb +37 -0
  90. data/lib/openapi_client/models/payrun_response.rb +342 -0
  91. data/lib/openapi_client/models/payslip_response.rb +448 -0
  92. data/lib/openapi_client/models/payslip_response_contributions.rb +238 -0
  93. data/lib/openapi_client/models/payslip_response_deductions.rb +238 -0
  94. data/lib/openapi_client/models/payslip_response_earnings.rb +250 -0
  95. data/lib/openapi_client/models/payslip_response_taxes.rb +248 -0
  96. data/lib/openapi_client/models/provider_request.rb +70 -0
  97. data/lib/openapi_client/models/provider_response.rb +70 -0
  98. data/lib/openapi_client/models/scopes_request.rb +55 -0
  99. data/lib/openapi_client/models/scopes_response.rb +55 -0
  100. data/lib/openapi_client/models/time_off_balance_response.rb +342 -0
  101. data/lib/openapi_client/models/time_off_entry_response.rb +408 -0
  102. data/lib/openapi_client/models/timesheet_response.rb +318 -0
  103. data/lib/openapi_client/models/token_request.rb +318 -0
  104. data/lib/openapi_client/models/token_response.rb +318 -0
  105. data/lib/openapi_client/version.rb +15 -0
  106. data/lib/openapi_client.rb +86 -0
  107. data/openapi_client-0.0.1.gem +0 -0
  108. data/pkg/affixapi-0.0.1.gem +0 -0
  109. data/spec/api/class20230301_api_spec.rb +260 -0
  110. data/spec/api/core_api_spec.rb +46 -0
  111. data/spec/api/developer_api_spec.rb +160 -0
  112. data/spec/api/management_api_spec.rb +103 -0
  113. data/spec/api/official_api_spec.rb +135 -0
  114. data/spec/api_client_spec.rb +226 -0
  115. data/spec/configuration_spec.rb +42 -0
  116. data/spec/models/address_no_non_null_request_spec.rb +62 -0
  117. data/spec/models/address_response_spec.rb +62 -0
  118. data/spec/models/client_request_spec.rb +52 -0
  119. data/spec/models/client_response_spec.rb +58 -0
  120. data/spec/models/company_response_spec.rb +64 -0
  121. data/spec/models/create_employee_request_bank_account_spec.rb +58 -0
  122. data/spec/models/create_employee_request_manager_spec.rb +58 -0
  123. data/spec/models/create_employee_request_spec.rb +204 -0
  124. data/spec/models/currency_request_spec.rb +28 -0
  125. data/spec/models/currency_response_spec.rb +28 -0
  126. data/spec/models/disconnect_response_spec.rb +38 -0
  127. data/spec/models/employee_response_spec.rb +222 -0
  128. data/spec/models/employment_no_null_enum_request_spec.rb +78 -0
  129. data/spec/models/employment_response_spec.rb +78 -0
  130. data/spec/models/group_no_null_enum_request_spec.rb +56 -0
  131. data/spec/models/group_response_spec.rb +56 -0
  132. data/spec/models/id_and_message_response_spec.rb +40 -0
  133. data/spec/models/identity_response_spec.rb +46 -0
  134. data/spec/models/inline_response400_spec.rb +40 -0
  135. data/spec/models/inline_response401_spec.rb +54 -0
  136. data/spec/models/inline_response409_spec.rb +50 -0
  137. data/spec/models/introspect_response_spec.rb +52 -0
  138. data/spec/models/location_no_non_null_request_spec.rb +58 -0
  139. data/spec/models/location_response_spec.rb +58 -0
  140. data/spec/models/message_response_spec.rb +34 -0
  141. data/spec/models/mode_request_spec.rb +28 -0
  142. data/spec/models/mode_response_spec.rb +28 -0
  143. data/spec/models/payrun_response_spec.rb +78 -0
  144. data/spec/models/payslip_response_contributions_spec.rb +40 -0
  145. data/spec/models/payslip_response_deductions_spec.rb +40 -0
  146. data/spec/models/payslip_response_earnings_spec.rb +46 -0
  147. data/spec/models/payslip_response_spec.rb +116 -0
  148. data/spec/models/payslip_response_taxes_spec.rb +46 -0
  149. data/spec/models/provider_request_spec.rb +28 -0
  150. data/spec/models/provider_response_spec.rb +28 -0
  151. data/spec/models/scopes_request_spec.rb +28 -0
  152. data/spec/models/scopes_response_spec.rb +28 -0
  153. data/spec/models/time_off_balance_response_spec.rb +80 -0
  154. data/spec/models/time_off_entry_response_spec.rb +108 -0
  155. data/spec/models/timesheet_response_spec.rb +76 -0
  156. data/spec/models/token_request_spec.rb +62 -0
  157. data/spec/models/token_response_spec.rb +62 -0
  158. data/spec/spec_helper.rb +111 -0
  159. metadata +349 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2ab7609e67f134abbdc31dcfe42aeb03183a21104bd8f41a7aaecd06aefd659e
4
+ data.tar.gz: 22295262ce24a442f9e7d095d1c54b71607e89e4d4bfd23c187155f4ff0a1750
5
+ SHA512:
6
+ metadata.gz: 65df1ea7c8a0aedd42b4b25630fc4003f10c880f497ce3dff4c9b3c0fbbccc3b595d195a64098310ec3d44cf59bbf3bcc79ea4bb7e71b0266535a66b9ee690ef
7
+ data.tar.gz: a5a5e0d6a2acbdb64e032af7560706623ff805f7a9122fce8c8d7eb80805b3ffa53f16a6995c715703d7d21eed66d7d1e105dd8fd405588018387d6126d39519
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 skilbjo
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,374 @@
1
+ # openapi_client
2
+
3
+ OpenapiClient - the Ruby gem for the Affix API
4
+
5
+ The affixapi.com API documentation.
6
+
7
+ # Introduction
8
+ Affix API is an OAuth 2.1 application that allows developers to access
9
+ customer data, without developers needing to manage or maintain
10
+ integrations; or collect login credentials or API keys from users for these
11
+ third party systems.
12
+
13
+ # OAuth 2.1
14
+ Affix API follows the [OAuth 2.1 spec](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-08).
15
+
16
+ As an OAuth application, Affix API handles not only both the collection of
17
+ sensitive user credentials or API keys, but also builds and maintains the
18
+ integrations with the providers, so you don't have to.
19
+
20
+ # How to obtain an access token
21
+ in order to get started, you must:
22
+ - register a `client_id`
23
+ - direct your user to the sign in flow (`https://connect.affixapi.com`
24
+ [with the appropriate query
25
+ parameters](https://github.com/affixapi/starter-kit/tree/master/connect))
26
+ - capture `authorization_code` we will send to your redirect URI after
27
+ the sign in flow is complete and exchange that `authorization_code` for
28
+ a Bearer token
29
+
30
+ # Sandbox keys (developer mode)
31
+ ### dev
32
+ ```
33
+ eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcG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wiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6IjI5YjFjYTg4LWNlNjktNDgyZC1iNGZjLTkzMWMzZmJkYWM4ZSIsImlhdCI6MTcwMjkyMTA4MywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5wcm9kLmVuZ2luZWVyaW5nLmFmZml4YXBpLmNvbSIsInN1YiI6ImRldmVsb3BlciIsImF1ZCI6IjA4QkIwODFFLUQ5QUI0RDE0LThERjk5MjMzLTY2NjE1Q0U5In0.2zdpFAmiyYiYk6MOcbXNUwwR4M1Fextnaac340x54AidiWXCyw-u9KeavbqfYF6q8a9kcDLrxhJ8Wc_3tIzuVw' \\
54
+ 'https://api.affixapi.com/2023-03-01/developer/employees'
55
+ ```
56
+
57
+ # Webhooks
58
+ An exciting feature for HR/Payroll modes are webhooks.
59
+
60
+ If enabled, your `webhook_uri` is set on your `client_id` for the
61
+ respective environment: `dev | prod`
62
+
63
+ Webhooks are configured to make live requests to the underlying integration
64
+ 1x/hr, and if a difference is detected since the last request, we will send a
65
+ request to your `webhook_uri` with this shape:
66
+
67
+ ```
68
+ {
69
+
70
+ added: <api.v20230301.Employees>[
71
+ <api.v20230301.Employee>{
72
+ ...,
73
+ date_of_birth: '2010-08-06',
74
+ display_full_name: 'Daija Rogahn',
75
+ employee_number: '57993',
76
+ employment_status: 'pending',
77
+ employment_type: 'other',
78
+ employments: [
79
+ {
80
+ currency: 'eur',
81
+ effective_date: '2022-02-25',
82
+ employment_type: 'other',
83
+ job_title: 'Dynamic Implementation Manager',
84
+ pay_frequency: 'semimonthly',
85
+ pay_period: 'YEAR',
86
+ pay_rate: 96000,
87
+ },
88
+ ],
89
+ first_name: 'Daija',
90
+ ...
91
+ }
92
+ ],
93
+ removed: [],
94
+ updated: [
95
+ <api.v20230301.Employee>{
96
+ ...,
97
+ date_of_birth: '2009-11-09',
98
+ display_full_name: 'Lourdes Stiedemann',
99
+ employee_number: '63189',
100
+ employment_status: 'leave',
101
+ employment_type: 'full_time',
102
+ employments: [
103
+ {
104
+ currency: 'gbp',
105
+ effective_date: '2023-01-16',
106
+ employment_type: 'full_time',
107
+ job_title: 'Forward Brand Planner',
108
+ pay_frequency: 'semimonthly',
109
+ pay_period: 'YEAR',
110
+ pay_rate: 86000,
111
+ },
112
+ ],
113
+ first_name: 'Lourdes',
114
+ }
115
+ ]
116
+ }
117
+ ```
118
+
119
+ the following headers will be sent with webhook requests:
120
+
121
+ ```
122
+ x-affix-api-signature: ab8474e609db95d5df3adc39ea3add7a7544bd215c5c520a30a650ae93a2fba7
123
+
124
+ x-affix-api-origin: webhooks-employees-webhook
125
+
126
+ user-agent: affixapi.com
127
+ ```
128
+
129
+ Before trusting the payload, you should sign the payload and verify the
130
+ signature matches the signature sent by the `affixapi.com` service.
131
+
132
+ This secures that the data sent to your `webhook_uri` is from the
133
+ `affixapi.com` server.
134
+
135
+ The signature is created by combining the signing secret (your
136
+ `client_secret`) with the body of the request sent using a standard
137
+ HMAC-SHA256 keyed hash.
138
+
139
+ The signature can be created via:
140
+ - create an `HMAC` with your `client_secret`
141
+ - update the `HMAC` with the payload
142
+ - get the hex digest -> this is the signature
143
+
144
+ Sample `typescript` code that follows this recipe:
145
+
146
+ ```
147
+ import { createHmac } from 'crypto';
148
+
149
+ export const computeSignature = ({
150
+ str,
151
+ signingSecret,
152
+ }: {
153
+ signingSecret: string;
154
+ str: string;
155
+ }): string => {
156
+ const hmac = createHmac('sha256', signingSecret);
157
+ hmac.update(str);
158
+ const signature = hmac.digest('hex');
159
+
160
+ return signature;
161
+ };
162
+ ```
163
+
164
+ ## Rate limits
165
+ Open endpoints (not gated by an API key) (applied at endpoint level):
166
+ - 15 requests every 1 minute (by IP address)
167
+ - 25 requests every 5 minutes (by IP address)
168
+
169
+ Gated endpoints (require an API key) (applied at endpoint level):
170
+ - 40 requests every 1 minute (by IP address)
171
+ - 40 requests every 5 minutes (by `client_id`)
172
+
173
+ Things to keep in mind:
174
+ - Open endpoints (not gated by an API key) will likely be called by your
175
+ users, not you, so rate limits generally would not apply to you.
176
+ - As a developer, rate limits are applied at the endpoint granularity.
177
+ - For example, say the rate limits below are 10 requests per minute by ip.
178
+ from that same ip, within 1 minute, you get:
179
+ - 10 requests per minute on `/orders`,
180
+ - another 10 requests per minute on `/items`,
181
+ - and another 10 requests per minute on `/identity`,
182
+ - for a total of 30 requests per minute.
183
+
184
+
185
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
186
+
187
+ - API version: 2023-03-01
188
+ - Package version: 1.0.0
189
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
190
+
191
+ ## Installation
192
+
193
+ ### Build a gem
194
+
195
+ To build the Ruby code into a gem:
196
+
197
+ ```shell
198
+ gem build openapi_client.gemspec
199
+ ```
200
+
201
+ Then either install the gem locally:
202
+
203
+ ```shell
204
+ gem install ./openapi_client-1.0.0.gem
205
+ ```
206
+
207
+ (for development, run `gem install --dev ./openapi_client-1.0.0.gem` to install the development dependencies)
208
+
209
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
210
+
211
+ Finally add this to the Gemfile:
212
+
213
+ gem 'openapi_client', '~> 1.0.0'
214
+
215
+ ### Install from Git
216
+
217
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
218
+
219
+ gem 'openapi_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
220
+
221
+ ### Include the Ruby code directly
222
+
223
+ Include the Ruby code directly using `-I` as follows:
224
+
225
+ ```shell
226
+ ruby -Ilib script.rb
227
+ ```
228
+
229
+ ## Getting Started
230
+
231
+ Please follow the [installation](#installation) procedure and then run the following code:
232
+
233
+ ```ruby
234
+ # Load the gem
235
+ require 'openapi_client'
236
+
237
+ # Setup authorization
238
+ OpenapiClient.configure do |config|
239
+ # Configure API key authorization: access-token
240
+ config.api_key['access-token'] = 'YOUR API KEY'
241
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
242
+ # config.api_key_prefix['access-token'] = 'Bearer'
243
+ end
244
+
245
+ api_instance = OpenapiClient::Class20230301Api.new
246
+
247
+ begin
248
+ #Company
249
+ result = api_instance.developer_companies20230301
250
+ p result
251
+ rescue OpenapiClient::ApiError => e
252
+ puts "Exception when calling Class20230301Api->developer_companies20230301: #{e}"
253
+ end
254
+
255
+ ```
256
+
257
+ ## Documentation for API Endpoints
258
+
259
+ All URIs are relative to *https://api.affixapi.com*
260
+
261
+ Class | Method | HTTP request | Description
262
+ ------------ | ------------- | ------------- | -------------
263
+ *OpenapiClient::Class20230301Api* | [**developer_companies20230301**](docs/Class20230301Api.md#developer_companies20230301) | **GET** /2023-03-01/developer/company | Company
264
+ *OpenapiClient::Class20230301Api* | [**developer_create_employee20230301**](docs/Class20230301Api.md#developer_create_employee20230301) | **POST** /2023-03-01/developer/employee | Create employee
265
+ *OpenapiClient::Class20230301Api* | [**developer_employees20230301**](docs/Class20230301Api.md#developer_employees20230301) | **GET** /2023-03-01/developer/employees | Employees
266
+ *OpenapiClient::Class20230301Api* | [**developer_groups20230301**](docs/Class20230301Api.md#developer_groups20230301) | **GET** /2023-03-01/developer/groups | Groups
267
+ *OpenapiClient::Class20230301Api* | [**developer_identity20230301**](docs/Class20230301Api.md#developer_identity20230301) | **GET** /2023-03-01/developer/identity | Identity
268
+ *OpenapiClient::Class20230301Api* | [**developer_payruns20230301**](docs/Class20230301Api.md#developer_payruns20230301) | **GET** /2023-03-01/developer/payruns | Payruns
269
+ *OpenapiClient::Class20230301Api* | [**developer_payslips20230301**](docs/Class20230301Api.md#developer_payslips20230301) | **GET** /2023-03-01/developer/payruns/{payrun_id} | Payslips
270
+ *OpenapiClient::Class20230301Api* | [**developer_time_off_balances20230301**](docs/Class20230301Api.md#developer_time_off_balances20230301) | **GET** /2023-03-01/developer/time-off-balances | Time off balances
271
+ *OpenapiClient::Class20230301Api* | [**developer_time_off_entries20230301**](docs/Class20230301Api.md#developer_time_off_entries20230301) | **GET** /2023-03-01/developer/time-off-entries | Time off entries
272
+ *OpenapiClient::Class20230301Api* | [**developer_timesheets20230301**](docs/Class20230301Api.md#developer_timesheets20230301) | **GET** /2023-03-01/developer/timesheets | Timesheets
273
+ *OpenapiClient::Class20230301Api* | [**developer_work_locations20230301**](docs/Class20230301Api.md#developer_work_locations20230301) | **GET** /2023-03-01/developer/work-locations | Work locations
274
+ *OpenapiClient::Class20230301Api* | [**official_companies20230301**](docs/Class20230301Api.md#official_companies20230301) | **GET** /2023-03-01/official/company | Company
275
+ *OpenapiClient::Class20230301Api* | [**official_create_employee20230301**](docs/Class20230301Api.md#official_create_employee20230301) | **POST** /2023-03-01/official/employee | Create Employee
276
+ *OpenapiClient::Class20230301Api* | [**official_employees20230301**](docs/Class20230301Api.md#official_employees20230301) | **GET** /2023-03-01/official/employees | Employees
277
+ *OpenapiClient::Class20230301Api* | [**official_groups20230301**](docs/Class20230301Api.md#official_groups20230301) | **GET** /2023-03-01/official/groups | Groups
278
+ *OpenapiClient::Class20230301Api* | [**official_time_off_balances20230301**](docs/Class20230301Api.md#official_time_off_balances20230301) | **GET** /2023-03-01/official/time-off-balances | Time off balances
279
+ *OpenapiClient::Class20230301Api* | [**official_time_off_entries20230301**](docs/Class20230301Api.md#official_time_off_entries20230301) | **GET** /2023-03-01/official/time-off-entries | Time off entries
280
+ *OpenapiClient::Class20230301Api* | [**official_timesheets20230301**](docs/Class20230301Api.md#official_timesheets20230301) | **GET** /2023-03-01/official/timesheets | Timesheets
281
+ *OpenapiClient::Class20230301Api* | [**official_work_locations20230301**](docs/Class20230301Api.md#official_work_locations20230301) | **GET** /2023-03-01/official/work-locations | Work locations
282
+ *OpenapiClient::Class20230301Api* | [**officialdentity20230301**](docs/Class20230301Api.md#officialdentity20230301) | **GET** /2023-03-01/official/identity | Identity
283
+ *OpenapiClient::CoreApi* | [**providers**](docs/CoreApi.md#providers) | **GET** /providers | Providers
284
+ *OpenapiClient::DeveloperApi* | [**developer_companies20230301**](docs/DeveloperApi.md#developer_companies20230301) | **GET** /2023-03-01/developer/company | Company
285
+ *OpenapiClient::DeveloperApi* | [**developer_create_employee20230301**](docs/DeveloperApi.md#developer_create_employee20230301) | **POST** /2023-03-01/developer/employee | Create employee
286
+ *OpenapiClient::DeveloperApi* | [**developer_employees20230301**](docs/DeveloperApi.md#developer_employees20230301) | **GET** /2023-03-01/developer/employees | Employees
287
+ *OpenapiClient::DeveloperApi* | [**developer_groups20230301**](docs/DeveloperApi.md#developer_groups20230301) | **GET** /2023-03-01/developer/groups | Groups
288
+ *OpenapiClient::DeveloperApi* | [**developer_identity20230301**](docs/DeveloperApi.md#developer_identity20230301) | **GET** /2023-03-01/developer/identity | Identity
289
+ *OpenapiClient::DeveloperApi* | [**developer_payruns20230301**](docs/DeveloperApi.md#developer_payruns20230301) | **GET** /2023-03-01/developer/payruns | Payruns
290
+ *OpenapiClient::DeveloperApi* | [**developer_payslips20230301**](docs/DeveloperApi.md#developer_payslips20230301) | **GET** /2023-03-01/developer/payruns/{payrun_id} | Payslips
291
+ *OpenapiClient::DeveloperApi* | [**developer_time_off_balances20230301**](docs/DeveloperApi.md#developer_time_off_balances20230301) | **GET** /2023-03-01/developer/time-off-balances | Time off balances
292
+ *OpenapiClient::DeveloperApi* | [**developer_time_off_entries20230301**](docs/DeveloperApi.md#developer_time_off_entries20230301) | **GET** /2023-03-01/developer/time-off-entries | Time off entries
293
+ *OpenapiClient::DeveloperApi* | [**developer_timesheets20230301**](docs/DeveloperApi.md#developer_timesheets20230301) | **GET** /2023-03-01/developer/timesheets | Timesheets
294
+ *OpenapiClient::DeveloperApi* | [**developer_work_locations20230301**](docs/DeveloperApi.md#developer_work_locations20230301) | **GET** /2023-03-01/developer/work-locations | Work locations
295
+ *OpenapiClient::ManagementApi* | [**client**](docs/ManagementApi.md#client) | **GET** /2023-03-01/management/client | Client
296
+ *OpenapiClient::ManagementApi* | [**disconnect**](docs/ManagementApi.md#disconnect) | **POST** /2023-03-01/management/disconnect | Disconnect token
297
+ *OpenapiClient::ManagementApi* | [**introspect**](docs/ManagementApi.md#introspect) | **GET** /2023-03-01/management/introspect | Inspect token
298
+ *OpenapiClient::ManagementApi* | [**token**](docs/ManagementApi.md#token) | **POST** /2023-03-01/management/token | Create token
299
+ *OpenapiClient::ManagementApi* | [**tokens**](docs/ManagementApi.md#tokens) | **GET** /2023-03-01/management/tokens | Tokens
300
+ *OpenapiClient::ManagementApi* | [**update_client**](docs/ManagementApi.md#update_client) | **POST** /2023-03-01/management/client | Update client
301
+ *OpenapiClient::OfficialApi* | [**official_companies20230301**](docs/OfficialApi.md#official_companies20230301) | **GET** /2023-03-01/official/company | Company
302
+ *OpenapiClient::OfficialApi* | [**official_create_employee20230301**](docs/OfficialApi.md#official_create_employee20230301) | **POST** /2023-03-01/official/employee | Create Employee
303
+ *OpenapiClient::OfficialApi* | [**official_employees20230301**](docs/OfficialApi.md#official_employees20230301) | **GET** /2023-03-01/official/employees | Employees
304
+ *OpenapiClient::OfficialApi* | [**official_groups20230301**](docs/OfficialApi.md#official_groups20230301) | **GET** /2023-03-01/official/groups | Groups
305
+ *OpenapiClient::OfficialApi* | [**official_time_off_balances20230301**](docs/OfficialApi.md#official_time_off_balances20230301) | **GET** /2023-03-01/official/time-off-balances | Time off balances
306
+ *OpenapiClient::OfficialApi* | [**official_time_off_entries20230301**](docs/OfficialApi.md#official_time_off_entries20230301) | **GET** /2023-03-01/official/time-off-entries | Time off entries
307
+ *OpenapiClient::OfficialApi* | [**official_timesheets20230301**](docs/OfficialApi.md#official_timesheets20230301) | **GET** /2023-03-01/official/timesheets | Timesheets
308
+ *OpenapiClient::OfficialApi* | [**official_work_locations20230301**](docs/OfficialApi.md#official_work_locations20230301) | **GET** /2023-03-01/official/work-locations | Work locations
309
+ *OpenapiClient::OfficialApi* | [**officialdentity20230301**](docs/OfficialApi.md#officialdentity20230301) | **GET** /2023-03-01/official/identity | Identity
310
+
311
+
312
+ ## Documentation for Models
313
+
314
+ - [OpenapiClient::AddressNoNonNullRequest](docs/AddressNoNonNullRequest.md)
315
+ - [OpenapiClient::AddressResponse](docs/AddressResponse.md)
316
+ - [OpenapiClient::ClientRequest](docs/ClientRequest.md)
317
+ - [OpenapiClient::ClientResponse](docs/ClientResponse.md)
318
+ - [OpenapiClient::CompanyResponse](docs/CompanyResponse.md)
319
+ - [OpenapiClient::CreateEmployeeRequest](docs/CreateEmployeeRequest.md)
320
+ - [OpenapiClient::CreateEmployeeRequestBankAccount](docs/CreateEmployeeRequestBankAccount.md)
321
+ - [OpenapiClient::CreateEmployeeRequestManager](docs/CreateEmployeeRequestManager.md)
322
+ - [OpenapiClient::CurrencyRequest](docs/CurrencyRequest.md)
323
+ - [OpenapiClient::CurrencyResponse](docs/CurrencyResponse.md)
324
+ - [OpenapiClient::DisconnectResponse](docs/DisconnectResponse.md)
325
+ - [OpenapiClient::EmployeeResponse](docs/EmployeeResponse.md)
326
+ - [OpenapiClient::EmploymentNoNullEnumRequest](docs/EmploymentNoNullEnumRequest.md)
327
+ - [OpenapiClient::EmploymentResponse](docs/EmploymentResponse.md)
328
+ - [OpenapiClient::GroupNoNullEnumRequest](docs/GroupNoNullEnumRequest.md)
329
+ - [OpenapiClient::GroupResponse](docs/GroupResponse.md)
330
+ - [OpenapiClient::IdAndMessageResponse](docs/IdAndMessageResponse.md)
331
+ - [OpenapiClient::IdentityResponse](docs/IdentityResponse.md)
332
+ - [OpenapiClient::InlineResponse400](docs/InlineResponse400.md)
333
+ - [OpenapiClient::InlineResponse401](docs/InlineResponse401.md)
334
+ - [OpenapiClient::InlineResponse409](docs/InlineResponse409.md)
335
+ - [OpenapiClient::IntrospectResponse](docs/IntrospectResponse.md)
336
+ - [OpenapiClient::LocationNoNonNullRequest](docs/LocationNoNonNullRequest.md)
337
+ - [OpenapiClient::LocationResponse](docs/LocationResponse.md)
338
+ - [OpenapiClient::MessageResponse](docs/MessageResponse.md)
339
+ - [OpenapiClient::ModeRequest](docs/ModeRequest.md)
340
+ - [OpenapiClient::ModeResponse](docs/ModeResponse.md)
341
+ - [OpenapiClient::PayrunResponse](docs/PayrunResponse.md)
342
+ - [OpenapiClient::PayslipResponse](docs/PayslipResponse.md)
343
+ - [OpenapiClient::PayslipResponseContributions](docs/PayslipResponseContributions.md)
344
+ - [OpenapiClient::PayslipResponseDeductions](docs/PayslipResponseDeductions.md)
345
+ - [OpenapiClient::PayslipResponseEarnings](docs/PayslipResponseEarnings.md)
346
+ - [OpenapiClient::PayslipResponseTaxes](docs/PayslipResponseTaxes.md)
347
+ - [OpenapiClient::ProviderRequest](docs/ProviderRequest.md)
348
+ - [OpenapiClient::ProviderResponse](docs/ProviderResponse.md)
349
+ - [OpenapiClient::ScopesRequest](docs/ScopesRequest.md)
350
+ - [OpenapiClient::ScopesResponse](docs/ScopesResponse.md)
351
+ - [OpenapiClient::TimeOffBalanceResponse](docs/TimeOffBalanceResponse.md)
352
+ - [OpenapiClient::TimeOffEntryResponse](docs/TimeOffEntryResponse.md)
353
+ - [OpenapiClient::TimesheetResponse](docs/TimesheetResponse.md)
354
+ - [OpenapiClient::TokenRequest](docs/TokenRequest.md)
355
+ - [OpenapiClient::TokenResponse](docs/TokenResponse.md)
356
+
357
+
358
+ ## Documentation for Authorization
359
+
360
+
361
+ ### access-token
362
+
363
+
364
+ - **Type**: API key
365
+ - **API key parameter name**: Authorization
366
+ - **Location**: HTTP header
367
+
368
+ ### basic
369
+
370
+
371
+ - **Type**: API key
372
+ - **API key parameter name**: Authorization
373
+ - **Location**: HTTP header
374
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/affixapi.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Affix API
5
+
6
+ #The affixapi.com API documentation. # Introduction Affix API is an OAuth 2.1 application that allows developers to access customer data, without developers needing to manage or maintain integrations; or collect login credentials or API keys from users for these third party systems. # OAuth 2.1 Affix API follows the [OAuth 2.1 spec](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-08). As an OAuth application, Affix API handles not only both the collection of sensitive user credentials or API keys, but also builds and maintains the integrations with the providers, so you don't have to. # How to obtain an access token in order to get started, you must: - register a `client_id` - direct your user to the sign in flow (`https://connect.affixapi.com` [with the appropriate query parameters](https://github.com/affixapi/starter-kit/tree/master/connect)) - capture `authorization_code` we will send to your redirect URI after the sign in flow is complete and exchange that `authorization_code` for a Bearer token # Sandbox keys (developer mode) ### dev ``` eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2Z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GljYXBpLWludGVybWVkaWF0ZS5wcm9kLmVuZ2luZWVyaW5nLmFmZml4YXBpLmNvbSIsInN1YiI6ImRldmVsb3BlciIsImF1ZCI6IjA4QkIwODFFLUQ5QUI0RDE0LThERjk5MjMzLTY2NjE1Q0U5In0.2zdpFAmiyYiYk6MOcbXNUwwR4M1Fextnaac340x54AidiWXCyw-u9KeavbqfYF6q8a9kcDLrxhJ8Wc_3tIzuVw' \\ 'https://api.affixapi.com/2023-03-01/developer/employees' ``` # Webhooks An exciting feature for HR/Payroll modes are webhooks. If enabled, your `webhook_uri` is set on your `client_id` for the respective environment: `dev | prod` Webhooks are configured to make live requests to the underlying integration 1x/hr, and if a difference is detected since the last request, we will send a request to your `webhook_uri` with this shape: ``` { added: <api.v20230301.Employees>[ <api.v20230301.Employee>{ ..., date_of_birth: '2010-08-06', display_full_name: 'Daija Rogahn', employee_number: '57993', employment_status: 'pending', employment_type: 'other', employments: [ { currency: 'eur', effective_date: '2022-02-25', employment_type: 'other', job_title: 'Dynamic Implementation Manager', pay_frequency: 'semimonthly', pay_period: 'YEAR', pay_rate: 96000, }, ], first_name: 'Daija', ... } ], removed: [], updated: [ <api.v20230301.Employee>{ ..., date_of_birth: '2009-11-09', display_full_name: 'Lourdes Stiedemann', employee_number: '63189', employment_status: 'leave', employment_type: 'full_time', employments: [ { currency: 'gbp', effective_date: '2023-01-16', employment_type: 'full_time', job_title: 'Forward Brand Planner', pay_frequency: 'semimonthly', pay_period: 'YEAR', pay_rate: 86000, }, ], first_name: 'Lourdes', } ] } ``` the following headers will be sent with webhook requests: ``` x-affix-api-signature: ab8474e609db95d5df3adc39ea3add7a7544bd215c5c520a30a650ae93a2fba7 x-affix-api-origin: webhooks-employees-webhook user-agent: affixapi.com ``` Before trusting the payload, you should sign the payload and verify the signature matches the signature sent by the `affixapi.com` service. This secures that the data sent to your `webhook_uri` is from the `affixapi.com` server. The signature is created by combining the signing secret (your `client_secret`) with the body of the request sent using a standard HMAC-SHA256 keyed hash. The signature can be created via: - create an `HMAC` with your `client_secret` - update the `HMAC` with the payload - get the hex digest -> this is the signature Sample `typescript` code that follows this recipe: ``` import { createHmac } from 'crypto'; export const computeSignature = ({ str, signingSecret, }: { signingSecret: string; str: string; }): string => { const hmac = createHmac('sha256', signingSecret); hmac.update(str); const signature = hmac.digest('hex'); return signature; }; ``` ## Rate limits Open endpoints (not gated by an API key) (applied at endpoint level): - 15 requests every 1 minute (by IP address) - 25 requests every 5 minutes (by IP address) Gated endpoints (require an API key) (applied at endpoint level): - 40 requests every 1 minute (by IP address) - 40 requests every 5 minutes (by `client_id`) Things to keep in mind: - Open endpoints (not gated by an API key) will likely be called by your users, not you, so rate limits generally would not apply to you. - As a developer, rate limits are applied at the endpoint granularity. - For example, say the rate limits below are 10 requests per minute by ip. from that same ip, within 1 minute, you get: - 10 requests per minute on `/orders`, - another 10 requests per minute on `/items`, - and another 10 requests per minute on `/identity`, - for a total of 30 requests per minute.
7
+
8
+ The version of the OpenAPI document: 2023-03-01
9
+ Contact: developers@affixapi.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.1.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "openapi_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "affixapi"
20
+ s.version = OpenapiClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = ["developers@affixapi.com"]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "Affix API Ruby Gem"
26
+ s.description = "The affixapi.com API documentation. # Introduction Affix API is an OAuth 2.1 application that allows developers to access customer data, without developers needing to manage or maintain integrations; or collect login credentials or API keys from users for these third party systems. # OAuth 2.1 Affix API follows the [OAuth 2.1 spec](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-08). As an OAuth application, Affix API handles not only both the collection of sensitive user credentials or API keys, but also builds and maintains the integrations with the providers, so you don't have to. # How to obtain an access token in order to get started, you must: - register a `client_id` - direct your user to the sign in flow (`https://connect.affixapi.com` [with the appropriate query parameters](https://github.com/affixapi/starter-kit/tree/master/connect)) - capture `authorization_code` we will send to your redirect URI after the sign in flow is complete and exchange that `authorization_code` for a Bearer token # Sandbox keys (developer mode) ### dev ``` eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6ImQ1OTZhMmYzLWYzNzktNGE1ZC1hMmRhLTk4OWJmYWViYTg1ZCIsImlhdCI6MTcwMjkyMDkwMywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5kZXYuZW5naW5lZXJpbmcuYWZmaXhhcGkuY29tIiwic3ViIjoiZGV2ZWxvcGVyIiwiYXVkIjoiM0ZEQUVERjktMURDQTRGNTQtODc5NDlGNkEtNDEwMjc2NDMifQ.VLWYjCQvBS0C3ZA6_J3-U-idZj5EYI2IlDdTjAWBxSIHGufp6cqaVodKsF2BeIqcIeB3P0lW-KL9mY3xGd7ckQ ``` #### `employees` endpoint sample: ``` curl --fail \\ -X GET \\ -H 'Authorization: Bearer eyJhbGciOiJFUzI1NiIsImtpZCI6Ims5RmxwSFR1YklmZWNsUU5QRVZzeFcxazFZZ0Zfbk1BWllOSGVuOFQxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6ImQ1OTZhMmYzLWYzNzktNGE1ZC1hMmRhLTk4OWJmYWViYTg1ZCIsImlhdCI6MTcwMjkyMDkwMywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5kZXYuZW5naW5lZXJpbmcuYWZmaXhhcGkuY29tIiwic3ViIjoiZGV2ZWxvcGVyIiwiYXVkIjoiM0ZEQUVERjktMURDQTRGNTQtODc5NDlGNkEtNDEwMjc2NDMifQ.VLWYjCQvBS0C3ZA6_J3-U-idZj5EYI2IlDdTjAWBxSIHGufp6cqaVodKsF2BeIqcIeB3P0lW-KL9mY3xGd7ckQ' \\ 'https://dev.api.affixapi.com/2023-03-01/developer/employees' ``` ### prod ``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QxdGciLCJ0eXAiOiJKV1MifQ.eyJwcm92aWRlciI6InNhbmRib3giLCJzY29wZXMiOlsiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2NvbXBhbnkiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWUiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvZW1wbG95ZWVzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL2lkZW50aXR5IiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3BheXJ1bnMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvcGF5cnVucy86cGF5cnVuX2lkIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWJhbGFuY2VzIiwiLzIwMjMtMDMtMDEvZGV2ZWxvcGVyL3RpbWUtb2ZmLWVudHJpZXMiLCIvMjAyMy0wMy0wMS9kZXZlbG9wZXIvdGltZXNoZWV0cyJdLCJ0b2tlbiI6IjI5YjFjYTg4LWNlNjktNDgyZC1iNGZjLTkzMWMzZmJkYWM4ZSIsImlhdCI6MTcwMjkyMTA4MywiaXNzIjoicHVibGljYXBpLWludGVybWVkaWF0ZS5wcm9kLmVuZ2luZWVyaW5nLmFmZml4YXBpLmNvbSIsInN1YiI6ImRldmVsb3BlciIsImF1ZCI6IjA4QkIwODFFLUQ5QUI0RDE0LThERjk5MjMzLTY2NjE1Q0U5In0.2zdpFAmiyYiYk6MOcbXNUwwR4M1Fextnaac340x54AidiWXCyw-u9KeavbqfYF6q8a9kcDLrxhJ8Wc_3tIzuVw' \\ 'https://api.affixapi.com/2023-03-01/developer/employees' ``` # Webhooks An exciting feature for HR/Payroll modes are webhooks. If enabled, your `webhook_uri` is set on your `client_id` for the respective environment: `dev | prod` Webhooks are configured to make live requests to the underlying integration 1x/hr, and if a difference is detected since the last request, we will send a request to your `webhook_uri` with this shape: ``` { added: <api.v20230301.Employees>[ <api.v20230301.Employee>{ ..., date_of_birth: '2010-08-06', display_full_name: 'Daija Rogahn', employee_number: '57993', employment_status: 'pending', employment_type: 'other', employments: [ { currency: 'eur', effective_date: '2022-02-25', employment_type: 'other', job_title: 'Dynamic Implementation Manager', pay_frequency: 'semimonthly', pay_period: 'YEAR', pay_rate: 96000, }, ], first_name: 'Daija', ... } ], removed: [], updated: [ <api.v20230301.Employee>{ ..., date_of_birth: '2009-11-09', display_full_name: 'Lourdes Stiedemann', employee_number: '63189', employment_status: 'leave', employment_type: 'full_time', employments: [ { currency: 'gbp', effective_date: '2023-01-16', employment_type: 'full_time', job_title: 'Forward Brand Planner', pay_frequency: 'semimonthly', pay_period: 'YEAR', pay_rate: 86000, }, ], first_name: 'Lourdes', } ] } ``` the following headers will be sent with webhook requests: ``` x-affix-api-signature: ab8474e609db95d5df3adc39ea3add7a7544bd215c5c520a30a650ae93a2fba7 x-affix-api-origin: webhooks-employees-webhook user-agent: affixapi.com ``` Before trusting the payload, you should sign the payload and verify the signature matches the signature sent by the `affixapi.com` service. This secures that the data sent to your `webhook_uri` is from the `affixapi.com` server. The signature is created by combining the signing secret (your `client_secret`) with the body of the request sent using a standard HMAC-SHA256 keyed hash. The signature can be created via: - create an `HMAC` with your `client_secret` - update the `HMAC` with the payload - get the hex digest -> this is the signature Sample `typescript` code that follows this recipe: ``` import { createHmac } from 'crypto'; export const computeSignature = ({ str, signingSecret, }: { signingSecret: string; str: string; }): string => { const hmac = createHmac('sha256', signingSecret); hmac.update(str); const signature = hmac.digest('hex'); return signature; }; ``` ## Rate limits Open endpoints (not gated by an API key) (applied at endpoint level): - 15 requests every 1 minute (by IP address) - 25 requests every 5 minutes (by IP address) Gated endpoints (require an API key) (applied at endpoint level): - 40 requests every 1 minute (by IP address) - 40 requests every 5 minutes (by `client_id`) Things to keep in mind: - Open endpoints (not gated by an API key) will likely be called by your users, not you, so rate limits generally would not apply to you. - As a developer, rate limits are applied at the endpoint granularity. - For example, say the rate limits below are 10 requests per minute by ip. from that same ip, within 1 minute, you get: - 10 requests per minute on `/orders`, - another 10 requests per minute on `/items`, - and another 10 requests per minute on `/identity`, - for a total of 30 requests per minute. "
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 2.4"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+
32
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
33
+
34
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
35
+ s.test_files = `find spec/*`.split("\n")
36
+ s.executables = []
37
+ s.require_paths = ["lib"]
38
+ end
@@ -0,0 +1,26 @@
1
+ # OpenapiClient::AddressNoNonNullRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **street_address** | **String** | | |
8
+ | **locality** | **String** | | |
9
+ | **administrative_area** | **String** | The administrative area of the address. If US or CA, the two-letter state or province abbreviation. Else, the province / administrative area; such as, &#x60;Dublin 2&#x60; or &#x60;County Cork&#x60; | |
10
+ | **country** | **String** | The ISO-3166-2 two-letter abbreviation of the country. Reference https://en.wikipedia.org/wiki/ISO_3166-2 for more details | |
11
+ | **post_code** | **String** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'openapi_client'
17
+
18
+ instance = OpenapiClient::AddressNoNonNullRequest.new(
19
+ street_address: 221 S Main Street,
20
+ locality: Yuma,
21
+ administrative_area: AZ,
22
+ country: IE,
23
+ post_code: 30691
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # OpenapiClient::AddressResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **street_address** | **String** | | |
8
+ | **locality** | **String** | | |
9
+ | **administrative_area** | **String** | The administrative area of the address. If US or CA, the two-letter state or province abbreviation. Else, the province / administrative area; such as, &#x60;Dublin 2&#x60; or &#x60;County Cork&#x60; | |
10
+ | **country** | **String** | The ISO-3166-2 two-letter abbreviation of the country. Reference https://en.wikipedia.org/wiki/ISO_3166-2 for more details | |
11
+ | **post_code** | **String** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'openapi_client'
17
+
18
+ instance = OpenapiClient::AddressResponse.new(
19
+ street_address: 221 S Main Street,
20
+ locality: Yuma,
21
+ administrative_area: AZ,
22
+ country: IE,
23
+ post_code: 30691
24
+ )
25
+ ```
26
+