polar-accesslink-api-gem 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +182 -0
  4. data/Rakefile +10 -0
  5. data/docs/Activity.md +34 -0
  6. data/docs/ActivityLog.md +18 -0
  7. data/docs/ActivityStepSample.md +20 -0
  8. data/docs/ActivityStepSamples.md +20 -0
  9. data/docs/ActivityZoneSample.md +20 -0
  10. data/docs/ActivityZoneSamples.md +20 -0
  11. data/docs/AvailableSleep.md +22 -0
  12. data/docs/AvailableSleeps.md +18 -0
  13. data/docs/AvailableUserData.md +22 -0
  14. data/docs/AvailableUserDatas.md +18 -0
  15. data/docs/CreatedWebhook.md +18 -0
  16. data/docs/CreatedWebhookData.md +24 -0
  17. data/docs/DailyActivityApi.md +440 -0
  18. data/docs/DurationZone.md +20 -0
  19. data/docs/Error.md +26 -0
  20. data/docs/Exercise.md +54 -0
  21. data/docs/ExerciseHashId.md +52 -0
  22. data/docs/Exercises.md +18 -0
  23. data/docs/ExercisesApi.md +214 -0
  24. data/docs/HeartRate.md +20 -0
  25. data/docs/NightlyRecharge.md +38 -0
  26. data/docs/NightlyRechargeApi.md +144 -0
  27. data/docs/Nights.md +18 -0
  28. data/docs/PhysicalInfoApi.md +294 -0
  29. data/docs/PhysicalInformation.md +40 -0
  30. data/docs/PhysicalInformations.md +18 -0
  31. data/docs/PullNotificationsApi.md +75 -0
  32. data/docs/Recharges.md +18 -0
  33. data/docs/Register.md +18 -0
  34. data/docs/Sample.md +22 -0
  35. data/docs/Samples.md +18 -0
  36. data/docs/Sleep.md +64 -0
  37. data/docs/SleepApi.md +211 -0
  38. data/docs/TrainingDataApi.md +744 -0
  39. data/docs/TransactionLocation.md +20 -0
  40. data/docs/User.md +36 -0
  41. data/docs/UserExtraInfo.md +22 -0
  42. data/docs/UsersApi.md +216 -0
  43. data/docs/WebhookInfo.md +18 -0
  44. data/docs/WebhookInfoData.md +22 -0
  45. data/docs/WebhookPatch.md +20 -0
  46. data/docs/WebhookPayloadExercise.md +26 -0
  47. data/docs/WebhookPayloadSleep.md +26 -0
  48. data/docs/WebhookPing.md +20 -0
  49. data/docs/WebhookRequest.md +20 -0
  50. data/docs/WebhookType.md +15 -0
  51. data/docs/WebhooksApi.md +289 -0
  52. data/docs/Zone.md +24 -0
  53. data/docs/Zones.md +18 -0
  54. data/git_push.sh +58 -0
  55. data/lib/polar-accesslink-api-gem/api/daily_activity_api.rb +469 -0
  56. data/lib/polar-accesslink-api-gem/api/exercises_api.rb +205 -0
  57. data/lib/polar-accesslink-api-gem/api/nightly_recharge_api.rb +142 -0
  58. data/lib/polar-accesslink-api-gem/api/physical_info_api.rb +296 -0
  59. data/lib/polar-accesslink-api-gem/api/pull_notifications_api.rb +79 -0
  60. data/lib/polar-accesslink-api-gem/api/sleep_api.rb +199 -0
  61. data/lib/polar-accesslink-api-gem/api/training_data_api.rb +785 -0
  62. data/lib/polar-accesslink-api-gem/api/users_api.rb +221 -0
  63. data/lib/polar-accesslink-api-gem/api/webhooks_api.rb +278 -0
  64. data/lib/polar-accesslink-api-gem/api_client.rb +390 -0
  65. data/lib/polar-accesslink-api-gem/api_error.rb +57 -0
  66. data/lib/polar-accesslink-api-gem/configuration.rb +284 -0
  67. data/lib/polar-accesslink-api-gem/models/activity.rb +300 -0
  68. data/lib/polar-accesslink-api-gem/models/activity_log.rb +222 -0
  69. data/lib/polar-accesslink-api-gem/models/activity_step_sample.rb +230 -0
  70. data/lib/polar-accesslink-api-gem/models/activity_step_samples.rb +232 -0
  71. data/lib/polar-accesslink-api-gem/models/activity_zone_sample.rb +232 -0
  72. data/lib/polar-accesslink-api-gem/models/activity_zone_samples.rb +232 -0
  73. data/lib/polar-accesslink-api-gem/models/available_sleep.rb +239 -0
  74. data/lib/polar-accesslink-api-gem/models/available_sleeps.rb +221 -0
  75. data/lib/polar-accesslink-api-gem/models/available_user_data.rb +274 -0
  76. data/lib/polar-accesslink-api-gem/models/available_user_datas.rb +222 -0
  77. data/lib/polar-accesslink-api-gem/models/created_webhook.rb +218 -0
  78. data/lib/polar-accesslink-api-gem/models/created_webhook_data.rb +248 -0
  79. data/lib/polar-accesslink-api-gem/models/duration_zone.rb +230 -0
  80. data/lib/polar-accesslink-api-gem/models/error.rb +260 -0
  81. data/lib/polar-accesslink-api-gem/models/exercise.rb +399 -0
  82. data/lib/polar-accesslink-api-gem/models/exercise_hash_id.rb +389 -0
  83. data/lib/polar-accesslink-api-gem/models/exercises.rb +222 -0
  84. data/lib/polar-accesslink-api-gem/models/heart_rate.rb +230 -0
  85. data/lib/polar-accesslink-api-gem/models/nightly_recharge.rb +319 -0
  86. data/lib/polar-accesslink-api-gem/models/nights.rb +222 -0
  87. data/lib/polar-accesslink-api-gem/models/physical_information.rb +364 -0
  88. data/lib/polar-accesslink-api-gem/models/physical_informations.rb +222 -0
  89. data/lib/polar-accesslink-api-gem/models/recharges.rb +222 -0
  90. data/lib/polar-accesslink-api-gem/models/register.rb +225 -0
  91. data/lib/polar-accesslink-api-gem/models/sample.rb +240 -0
  92. data/lib/polar-accesslink-api-gem/models/samples.rb +222 -0
  93. data/lib/polar-accesslink-api-gem/models/sleep.rb +449 -0
  94. data/lib/polar-accesslink-api-gem/models/transaction_location.rb +230 -0
  95. data/lib/polar-accesslink-api-gem/models/user.rb +346 -0
  96. data/lib/polar-accesslink-api-gem/models/user_extra_info.rb +240 -0
  97. data/lib/polar-accesslink-api-gem/models/webhook_info.rb +218 -0
  98. data/lib/polar-accesslink-api-gem/models/webhook_info_data.rb +238 -0
  99. data/lib/polar-accesslink-api-gem/models/webhook_patch.rb +231 -0
  100. data/lib/polar-accesslink-api-gem/models/webhook_payload_exercise.rb +260 -0
  101. data/lib/polar-accesslink-api-gem/models/webhook_payload_sleep.rb +260 -0
  102. data/lib/polar-accesslink-api-gem/models/webhook_ping.rb +264 -0
  103. data/lib/polar-accesslink-api-gem/models/webhook_request.rb +241 -0
  104. data/lib/polar-accesslink-api-gem/models/webhook_type.rb +36 -0
  105. data/lib/polar-accesslink-api-gem/models/zone.rb +250 -0
  106. data/lib/polar-accesslink-api-gem/models/zones.rb +222 -0
  107. data/lib/polar-accesslink-api-gem/version.rb +15 -0
  108. data/lib/polar-accesslink-api-gem.rb +88 -0
  109. data/polar-accesslink-api-gem.gemspec +38 -0
  110. data/spec/api/daily_activity_api_spec.rb +114 -0
  111. data/spec/api/exercises_api_spec.rb +70 -0
  112. data/spec/api/nightly_recharge_api_spec.rb +58 -0
  113. data/spec/api/physical_info_api_spec.rb +87 -0
  114. data/spec/api/pull_notifications_api_spec.rb +46 -0
  115. data/spec/api/sleep_api_spec.rb +69 -0
  116. data/spec/api/training_data_api_spec.rb +173 -0
  117. data/spec/api/users_api_spec.rb +71 -0
  118. data/spec/api/webhooks_api_spec.rb +83 -0
  119. data/spec/api_client_spec.rb +226 -0
  120. data/spec/configuration_spec.rb +42 -0
  121. data/spec/models/activity_log_spec.rb +34 -0
  122. data/spec/models/activity_spec.rb +82 -0
  123. data/spec/models/activity_step_sample_spec.rb +40 -0
  124. data/spec/models/activity_step_samples_spec.rb +40 -0
  125. data/spec/models/activity_zone_sample_spec.rb +40 -0
  126. data/spec/models/activity_zone_samples_spec.rb +40 -0
  127. data/spec/models/available_sleep_spec.rb +46 -0
  128. data/spec/models/available_sleeps_spec.rb +34 -0
  129. data/spec/models/available_user_data_spec.rb +50 -0
  130. data/spec/models/available_user_datas_spec.rb +34 -0
  131. data/spec/models/created_webhook_data_spec.rb +52 -0
  132. data/spec/models/created_webhook_spec.rb +34 -0
  133. data/spec/models/duration_zone_spec.rb +40 -0
  134. data/spec/models/error_spec.rb +58 -0
  135. data/spec/models/exercise_hash_id_spec.rb +136 -0
  136. data/spec/models/exercise_spec.rb +142 -0
  137. data/spec/models/exercises_spec.rb +34 -0
  138. data/spec/models/heart_rate_spec.rb +40 -0
  139. data/spec/models/nightly_recharge_spec.rb +94 -0
  140. data/spec/models/nights_spec.rb +34 -0
  141. data/spec/models/physical_information_spec.rb +104 -0
  142. data/spec/models/physical_informations_spec.rb +34 -0
  143. data/spec/models/recharges_spec.rb +34 -0
  144. data/spec/models/register_spec.rb +34 -0
  145. data/spec/models/sample_spec.rb +46 -0
  146. data/spec/models/samples_spec.rb +34 -0
  147. data/spec/models/sleep_spec.rb +172 -0
  148. data/spec/models/transaction_location_spec.rb +40 -0
  149. data/spec/models/user_extra_info_spec.rb +46 -0
  150. data/spec/models/user_spec.rb +92 -0
  151. data/spec/models/webhook_info_data_spec.rb +46 -0
  152. data/spec/models/webhook_info_spec.rb +34 -0
  153. data/spec/models/webhook_patch_spec.rb +40 -0
  154. data/spec/models/webhook_payload_exercise_spec.rb +58 -0
  155. data/spec/models/webhook_payload_sleep_spec.rb +58 -0
  156. data/spec/models/webhook_ping_spec.rb +44 -0
  157. data/spec/models/webhook_request_spec.rb +40 -0
  158. data/spec/models/webhook_type_spec.rb +28 -0
  159. data/spec/models/zone_spec.rb +52 -0
  160. data/spec/models/zones_spec.rb +34 -0
  161. data/spec/spec_helper.rb +111 -0
  162. metadata +295 -0
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #Polar Accesslink API
3
+
4
+ #Polar Accesslink API documentation
5
+
6
+ The version of the OpenAPI document: 3.78.0
7
+ Contact: b2bhelpdesk@polar.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ module PolarAccesslinkApiGem
14
+ VERSION = '0.1.0'
15
+ end
@@ -0,0 +1,88 @@
1
+ =begin
2
+ #Polar Accesslink API
3
+
4
+ #Polar Accesslink API documentation
5
+
6
+ The version of the OpenAPI document: 3.78.0
7
+ Contact: b2bhelpdesk@polar.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'polar-accesslink-api-gem/api_client'
15
+ require 'polar-accesslink-api-gem/api_error'
16
+ require 'polar-accesslink-api-gem/version'
17
+ require 'polar-accesslink-api-gem/configuration'
18
+
19
+ # Models
20
+ require 'polar-accesslink-api-gem/models/activity'
21
+ require 'polar-accesslink-api-gem/models/activity_log'
22
+ require 'polar-accesslink-api-gem/models/activity_step_sample'
23
+ require 'polar-accesslink-api-gem/models/activity_step_samples'
24
+ require 'polar-accesslink-api-gem/models/activity_zone_sample'
25
+ require 'polar-accesslink-api-gem/models/activity_zone_samples'
26
+ require 'polar-accesslink-api-gem/models/available_sleep'
27
+ require 'polar-accesslink-api-gem/models/available_sleeps'
28
+ require 'polar-accesslink-api-gem/models/available_user_data'
29
+ require 'polar-accesslink-api-gem/models/available_user_datas'
30
+ require 'polar-accesslink-api-gem/models/created_webhook'
31
+ require 'polar-accesslink-api-gem/models/created_webhook_data'
32
+ require 'polar-accesslink-api-gem/models/duration_zone'
33
+ require 'polar-accesslink-api-gem/models/error'
34
+ require 'polar-accesslink-api-gem/models/exercise'
35
+ require 'polar-accesslink-api-gem/models/exercise_hash_id'
36
+ require 'polar-accesslink-api-gem/models/exercises'
37
+ require 'polar-accesslink-api-gem/models/heart_rate'
38
+ require 'polar-accesslink-api-gem/models/nightly_recharge'
39
+ require 'polar-accesslink-api-gem/models/nights'
40
+ require 'polar-accesslink-api-gem/models/physical_information'
41
+ require 'polar-accesslink-api-gem/models/physical_informations'
42
+ require 'polar-accesslink-api-gem/models/recharges'
43
+ require 'polar-accesslink-api-gem/models/register'
44
+ require 'polar-accesslink-api-gem/models/sample'
45
+ require 'polar-accesslink-api-gem/models/samples'
46
+ require 'polar-accesslink-api-gem/models/sleep'
47
+ require 'polar-accesslink-api-gem/models/transaction_location'
48
+ require 'polar-accesslink-api-gem/models/user'
49
+ require 'polar-accesslink-api-gem/models/user_extra_info'
50
+ require 'polar-accesslink-api-gem/models/webhook_info'
51
+ require 'polar-accesslink-api-gem/models/webhook_info_data'
52
+ require 'polar-accesslink-api-gem/models/webhook_patch'
53
+ require 'polar-accesslink-api-gem/models/webhook_payload_exercise'
54
+ require 'polar-accesslink-api-gem/models/webhook_payload_sleep'
55
+ require 'polar-accesslink-api-gem/models/webhook_ping'
56
+ require 'polar-accesslink-api-gem/models/webhook_request'
57
+ require 'polar-accesslink-api-gem/models/webhook_type'
58
+ require 'polar-accesslink-api-gem/models/zone'
59
+ require 'polar-accesslink-api-gem/models/zones'
60
+
61
+ # APIs
62
+ require 'polar-accesslink-api-gem/api/daily_activity_api'
63
+ require 'polar-accesslink-api-gem/api/exercises_api'
64
+ require 'polar-accesslink-api-gem/api/nightly_recharge_api'
65
+ require 'polar-accesslink-api-gem/api/physical_info_api'
66
+ require 'polar-accesslink-api-gem/api/pull_notifications_api'
67
+ require 'polar-accesslink-api-gem/api/sleep_api'
68
+ require 'polar-accesslink-api-gem/api/training_data_api'
69
+ require 'polar-accesslink-api-gem/api/users_api'
70
+ require 'polar-accesslink-api-gem/api/webhooks_api'
71
+
72
+ module PolarAccesslinkApiGem
73
+ class << self
74
+ # Customize default settings for the SDK using block.
75
+ # PolarAccesslinkApiGem.configure do |config|
76
+ # config.username = "xxx"
77
+ # config.password = "xxx"
78
+ # end
79
+ # If no block given, return the default Configuration object.
80
+ def configure
81
+ if block_given?
82
+ yield(Configuration.default)
83
+ else
84
+ Configuration.default
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,38 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #Polar Accesslink API
5
+
6
+ #Polar Accesslink API documentation
7
+
8
+ The version of the OpenAPI document: 3.78.0
9
+ Contact: b2bhelpdesk@polar.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.2.1
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "polar-accesslink-api-gem/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "polar-accesslink-api-gem"
20
+ s.version = PolarAccesslinkApiGem::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Researchable"]
23
+ s.email = ["support@researchable.nl"]
24
+ s.homepage = "https://researchable.nl"
25
+ s.summary = "Polar accesslink API based on swagger"
26
+ s.description = "Polar Accesslink API documentation"
27
+ s.license = "MIT"
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,114 @@
1
+ =begin
2
+ #Polar Accesslink API
3
+
4
+ #Polar Accesslink API documentation
5
+
6
+ The version of the OpenAPI document: 3.78.0
7
+ Contact: b2bhelpdesk@polar.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PolarAccesslinkApiGem::DailyActivityApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DailyActivityApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PolarAccesslinkApiGem::DailyActivityApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DailyActivityApi' do
30
+ it 'should create an instance of DailyActivityApi' do
31
+ expect(@api_instance).to be_instance_of(PolarAccesslinkApiGem::DailyActivityApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for commit_activity_transaction
36
+ # Commit transaction
37
+ # After successfully retrieving activity summary data within a transaction, partners are expected to commit the transaction.
38
+ # @param transaction_id Transaction identifier
39
+ # @param user_id User identifier
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'commit_activity_transaction test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for create_activity_transaction
49
+ # Create transaction
50
+ # Initiate activity transaction. Check for new activity summaries and create a new transaction if found.
51
+ # @param user_id User identifier
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [TransactionLocation]
54
+ describe 'create_activity_transaction test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for get_activity_summary
61
+ # Get activity summary
62
+ # @param user_id User identifier
63
+ # @param transaction_id Transaction identifier
64
+ # @param activity_id Activity summary identifier
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [Activity]
67
+ describe 'get_activity_summary test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ # unit tests for get_step_samples
74
+ # Get step samples
75
+ # Get activity step samples. Example data can be seen from [appendix](#activity-step-time-series).
76
+ # @param user_id User identifier
77
+ # @param transaction_id Transaction identifier
78
+ # @param activity_id Activity summary identifier
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [ActivityStepSamples]
81
+ describe 'get_step_samples test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for get_zone_samples
88
+ # Get zone samples
89
+ # Get activity zone samples. Example data can be seen from [appendix](#activity-zone-time-series).
90
+ # @param user_id User identifier
91
+ # @param transaction_id Transaction identifier
92
+ # @param activity_id Activity summary identifier
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [ActivityZoneSamples]
95
+ describe 'get_zone_samples test' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ # unit tests for list_activities
102
+ # List activities
103
+ # List new activity data. After successfully initiating a transaction, activity summaries included within it can be retrieved with the provided transactionId.
104
+ # @param transaction_id Transaction identifier
105
+ # @param user_id User identifier
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [ActivityLog]
108
+ describe 'list_activities test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
+ end
112
+ end
113
+
114
+ end
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #Polar Accesslink API
3
+
4
+ #Polar Accesslink API documentation
5
+
6
+ The version of the OpenAPI document: 3.78.0
7
+ Contact: b2bhelpdesk@polar.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PolarAccesslinkApiGem::ExercisesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ExercisesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PolarAccesslinkApiGem::ExercisesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ExercisesApi' do
30
+ it 'should create an instance of ExercisesApi' do
31
+ expect(@api_instance).to be_instance_of(PolarAccesslinkApiGem::ExercisesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_exercise_fit_without_transaction
36
+ # Get exercise FIT
37
+ # FIT file for users exercise.
38
+ # @param exercise_id Hashed exercise id.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [String]
41
+ describe 'get_exercise_fit_without_transaction test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for get_exercise_without_transaction
48
+ # Get exercise
49
+ # Get users exercise using hashed id.
50
+ # @param exercise_id Hashed exercise id.
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [ExerciseHashId]
53
+ describe 'get_exercise_without_transaction test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for list_exercises_without_transaction
60
+ # List exercises
61
+ # List users exercises available in Accesslink.
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [Array<ExerciseHashId>]
64
+ describe 'list_exercises_without_transaction test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ end
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #Polar Accesslink API
3
+
4
+ #Polar Accesslink API documentation
5
+
6
+ The version of the OpenAPI document: 3.78.0
7
+ Contact: b2bhelpdesk@polar.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PolarAccesslinkApiGem::NightlyRechargeApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'NightlyRechargeApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PolarAccesslinkApiGem::NightlyRechargeApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of NightlyRechargeApi' do
30
+ it 'should create an instance of NightlyRechargeApi' do
31
+ expect(@api_instance).to be_instance_of(PolarAccesslinkApiGem::NightlyRechargeApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for list_nightly_recharge
36
+ # List Nightly Recharges
37
+ # List Nightly Recharge data of user for the last 28 days.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Recharges]
40
+ describe 'list_nightly_recharge test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for v3_users_nightly_recharge_date_get
47
+ # Get Nightly Recharge
48
+ # Get Users Nightly Recharge data for given date.
49
+ # @param date Date of Nightly Recharge as ISO-8601 date string, example: \&quot;2020-01-01\&quot;
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [NightlyRecharge]
52
+ describe 'v3_users_nightly_recharge_date_get test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end
@@ -0,0 +1,87 @@
1
+ =begin
2
+ #Polar Accesslink API
3
+
4
+ #Polar Accesslink API documentation
5
+
6
+ The version of the OpenAPI document: 3.78.0
7
+ Contact: b2bhelpdesk@polar.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.2.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PolarAccesslinkApiGem::PhysicalInfoApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PhysicalInfoApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PolarAccesslinkApiGem::PhysicalInfoApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PhysicalInfoApi' do
30
+ it 'should create an instance of PhysicalInfoApi' do
31
+ expect(@api_instance).to be_instance_of(PolarAccesslinkApiGem::PhysicalInfoApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for commit_physical_info_transaction
36
+ # Commit transaction
37
+ # After successfully retrieving physical information within a transaction, partners are expected to commit the transaction.
38
+ # @param transaction_id Transaction identifier
39
+ # @param user_id User identifier
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'commit_physical_info_transaction test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
48
+ # unit tests for create_physical_info_transaction
49
+ # Create transaction
50
+ # Initiate physical info transaction. Check for new physical info and create a new transaction if found.
51
+ # @param user_id User identifier
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [TransactionLocation]
54
+ describe 'create_physical_info_transaction test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for get_physical_info
61
+ # Get physical info
62
+ # Get physical info entity data
63
+ # @param user_id User identifier
64
+ # @param transaction_id Transaction identifier
65
+ # @param physical_info_id Physical information identifier
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [PhysicalInformation]
68
+ describe 'get_physical_info test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ # unit tests for list_physical_infos
75
+ # List physical infos
76
+ # List new physical info data. After successfully initiating a transaction, physical infos included within it can be retrieved with the provided transactionId.
77
+ # @param transaction_id Transaction identifier
78
+ # @param user_id User identifier
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [PhysicalInformations]
81
+ describe 'list_physical_infos test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ end