primary_connect_client 1.14.1 → 1.15.0

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: 4ac8c79a1b82a66cc8e2004217a1194816b4124a372304ba5f517f99a7f0e77b
4
- data.tar.gz: b9a5122bbfab84f0d2839778847d31ce8b8db00ed536ff227911157a82a9e6bd
3
+ metadata.gz: 917199ef80a660b3a10b02a7af8c9f4dd9bc8b6a5715ba73c648d22999099fed
4
+ data.tar.gz: 53f252fbe25bcdef8cb78782225e6ce8affd5b840b3f4b997192496040b35276
5
5
  SHA512:
6
- metadata.gz: 0b0d99743c0a4b2571903164882c5405edb676e4b0b083c57d06c8ef319e39e230b77267c0d31506a901a115d97404b0448025d8058dd7825078852adefcf887
7
- data.tar.gz: 00b93cb1ba1255291ad43a5a6b0179f1bc53ab1129fd2ed6f938af2fdc62b7ff1c32478d140bff4a0322c86ac5d70d09c5a52082d382ebd9f076bd59ce2a6860
6
+ metadata.gz: dbccc49e41d6629117776013c2dd0a0a7ae1fb50311b2c3519ea8540e7e114a2dc64de762b4c12768d3c075836b869d5b54ce68ed8eb256b07c53e0c53218e1f
7
+ data.tar.gz: '02808bcb2a977311cc4a36448ceed0337155e98a7401f3ff4cc8558450722b61497cf13200194da78c438e25020e3ba917db549d8989d0b0ee909f7cec9260d4'
data/CHANGELOG.md CHANGED
@@ -1,13 +1,4 @@
1
1
  # Change Log
2
-
3
- ## 1.13.0
4
-
5
- - Added Queries API
6
-
7
- ## 1.12.0
8
-
9
- - Updated dependency on `primary_connect_proto` 0.24.0
10
-
11
2
  ## 1.11.0
12
3
 
13
4
  - Updated dependency on `primary_connect_proto` 0.23.0
data/README.md CHANGED
@@ -7,7 +7,7 @@ Client Library to interface with Primary Connect
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.14.1
10
+ - Package version: 1.15.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,16 +23,16 @@ gem build primary_connect_client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./primary_connect_client-1.14.1.gem
26
+ gem install ./primary_connect_client-1.15.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./primary_connect_client-1.14.1.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./primary_connect_client-1.15.0.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'primary_connect_client', '~> 1.14.1'
35
+ gem 'primary_connect_client', '~> 1.15.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **order** | [**Order**](Order.md) | | [optional] |
8
8
  | **errors** | **Array<String>** | | [optional] |
9
+ | **warnings** | **Array<String>** | | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'primary_connect_client'
14
15
 
15
16
  instance = PrimaryConnectClient::OrderWithEventErrors.new(
16
17
  order: null,
17
- errors: null
18
+ errors: null,
19
+ warnings: null
18
20
  )
19
21
  ```
20
22
 
@@ -19,11 +19,14 @@ module PrimaryConnectClient
19
19
 
20
20
  attr_accessor :errors
21
21
 
22
+ attr_accessor :warnings
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'order' => :'order',
26
- :'errors' => :'errors'
28
+ :'errors' => :'errors',
29
+ :'warnings' => :'warnings'
27
30
  }
28
31
  end
29
32
 
@@ -36,7 +39,8 @@ module PrimaryConnectClient
36
39
  def self.openapi_types
37
40
  {
38
41
  :'order' => :'Order',
39
- :'errors' => :'Array<String>'
42
+ :'errors' => :'Array<String>',
43
+ :'warnings' => :'Array<String>'
40
44
  }
41
45
  end
42
46
 
@@ -70,6 +74,12 @@ module PrimaryConnectClient
70
74
  self.errors = value
71
75
  end
72
76
  end
77
+
78
+ if attributes.key?(:'warnings')
79
+ if (value = attributes[:'warnings']).is_a?(Array)
80
+ self.warnings = value
81
+ end
82
+ end
73
83
  end
74
84
 
75
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,7 +101,8 @@ module PrimaryConnectClient
91
101
  return true if self.equal?(o)
92
102
  self.class == o.class &&
93
103
  order == o.order &&
94
- errors == o.errors
104
+ errors == o.errors &&
105
+ warnings == o.warnings
95
106
  end
96
107
 
97
108
  # @see the `==` method
@@ -103,7 +114,7 @@ module PrimaryConnectClient
103
114
  # Calculates hash code according to all attributes.
104
115
  # @return [Integer] Hash code
105
116
  def hash
106
- [order, errors].hash
117
+ [order, errors, warnings].hash
107
118
  end
108
119
 
109
120
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.0
11
11
  =end
12
12
 
13
13
  module PrimaryConnectClient
14
- VERSION = '1.14.1'
14
+ VERSION = '1.15.0'
15
15
  end
Binary file
Binary file
@@ -37,4 +37,10 @@ describe PrimaryConnectClient::OrderWithEventErrors do
37
37
  end
38
38
  end
39
39
 
40
+ describe 'test attribute "warnings"' 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
+
40
46
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: primary_connect_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2026-02-19 00:00:00.000000000 Z
11
+ date: 2026-04-21 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: typhoeus
@@ -76,7 +77,6 @@ files:
76
77
  - docs/Identifier.md
77
78
  - docs/Ids.md
78
79
  - docs/ImmunizationQueryResponse.md
79
- - docs/Immunizations.md
80
80
  - docs/Location.md
81
81
  - docs/Measurement.md
82
82
  - docs/Medication.md
@@ -148,7 +148,6 @@ files:
148
148
  - lib/primary_connect_client/models/identifier.rb
149
149
  - lib/primary_connect_client/models/ids.rb
150
150
  - lib/primary_connect_client/models/immunization_query_response.rb
151
- - lib/primary_connect_client/models/immunizations.rb
152
151
  - lib/primary_connect_client/models/location.rb
153
152
  - lib/primary_connect_client/models/measurement.rb
154
153
  - lib/primary_connect_client/models/medication.rb
@@ -196,7 +195,8 @@ files:
196
195
  - lib/primary_connect_client/models/visit_insured.rb
197
196
  - lib/primary_connect_client/models/visit_plan.rb
198
197
  - lib/primary_connect_client/version.rb
199
- - primary_connect_client-1.13.0.gem
198
+ - primary_connect_client-1.11.0.gem
199
+ - primary_connect_client-1.12.0.gem
200
200
  - primary_connect_client.gemspec
201
201
  - spec/api/default_api_spec.rb
202
202
  - spec/api_client_spec.rb
@@ -215,7 +215,6 @@ files:
215
215
  - spec/models/identifier_spec.rb
216
216
  - spec/models/ids_spec.rb
217
217
  - spec/models/immunization_query_response_spec.rb
218
- - spec/models/immunizations_spec.rb
219
218
  - spec/models/location_spec.rb
220
219
  - spec/models/measurement_spec.rb
221
220
  - spec/models/medication_administration_spec.rb
@@ -273,6 +272,7 @@ homepage: https://openapi-generator.tech
273
272
  licenses:
274
273
  - Unlicense
275
274
  metadata: {}
275
+ post_install_message:
276
276
  rdoc_options: []
277
277
  require_paths:
278
278
  - lib
@@ -287,7 +287,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  - !ruby/object:Gem::Version
288
288
  version: '0'
289
289
  requirements: []
290
- rubygems_version: 3.6.5
290
+ rubygems_version: 3.2.15
291
+ signing_key:
291
292
  specification_version: 4
292
293
  summary: Primary Connect API V1 Ruby Gem
293
294
  test_files:
@@ -300,7 +301,6 @@ test_files:
300
301
  - spec/models/meta_transmission_spec.rb
301
302
  - spec/models/results_spec.rb
302
303
  - spec/models/v2_device_spec.rb
303
- - spec/models/immunizations_spec.rb
304
304
  - spec/models/meta_provenances_spec.rb
305
305
  - spec/models/result_ids_spec.rb
306
306
  - spec/models/meta_destination_spec.rb
@@ -1,18 +0,0 @@
1
- # PrimaryConnectClient::Immunizations
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **immunizations** | [**Array&lt;MedicationAdministration&gt;**](MedicationAdministration.md) | List of Immunizations | [optional] |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'primary_connect_client'
13
-
14
- instance = PrimaryConnectClient::Immunizations.new(
15
- immunizations: null
16
- )
17
- ```
18
-
@@ -1,221 +0,0 @@
1
- =begin
2
- #Primary Connect API V1
3
-
4
- #Client Library to interface with Primary Connect
5
-
6
- The version of the OpenAPI document: v1
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module PrimaryConnectClient
17
- class Immunizations
18
- # List of Immunizations
19
- attr_accessor :immunizations
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'immunizations' => :'immunizations'
25
- }
26
- end
27
-
28
- # Returns all the JSON keys this model knows about
29
- def self.acceptable_attributes
30
- attribute_map.values
31
- end
32
-
33
- # Attribute type mapping.
34
- def self.openapi_types
35
- {
36
- :'immunizations' => :'Array<MedicationAdministration>'
37
- }
38
- end
39
-
40
- # List of attributes with nullable: true
41
- def self.openapi_nullable
42
- Set.new([
43
- ])
44
- end
45
-
46
- # Initializes the object
47
- # @param [Hash] attributes Model attributes in the form of hash
48
- def initialize(attributes = {})
49
- if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `PrimaryConnectClient::Immunizations` initialize method"
51
- end
52
-
53
- # check to see if the attribute exists and convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}) { |(k, v), h|
55
- if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `PrimaryConnectClient::Immunizations`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
- end
58
- h[k.to_sym] = v
59
- }
60
-
61
- if attributes.key?(:'immunizations')
62
- if (value = attributes[:'immunizations']).is_a?(Array)
63
- self.immunizations = value
64
- end
65
- end
66
- end
67
-
68
- # Show invalid properties with the reasons. Usually used together with valid?
69
- # @return Array for valid properties with the reasons
70
- def list_invalid_properties
71
- invalid_properties = Array.new
72
- invalid_properties
73
- end
74
-
75
- # Check to see if the all the properties in the model are valid
76
- # @return true if the model is valid
77
- def valid?
78
- true
79
- end
80
-
81
- # Checks equality by comparing each attribute.
82
- # @param [Object] Object to be compared
83
- def ==(o)
84
- return true if self.equal?(o)
85
- self.class == o.class &&
86
- immunizations == o.immunizations
87
- end
88
-
89
- # @see the `==` method
90
- # @param [Object] Object to be compared
91
- def eql?(o)
92
- self == o
93
- end
94
-
95
- # Calculates hash code according to all attributes.
96
- # @return [Integer] Hash code
97
- def hash
98
- [immunizations].hash
99
- end
100
-
101
- # Builds the object from hash
102
- # @param [Hash] attributes Model attributes in the form of hash
103
- # @return [Object] Returns the model itself
104
- def self.build_from_hash(attributes)
105
- new.build_from_hash(attributes)
106
- end
107
-
108
- # Builds the object from hash
109
- # @param [Hash] attributes Model attributes in the form of hash
110
- # @return [Object] Returns the model itself
111
- def build_from_hash(attributes)
112
- return nil unless attributes.is_a?(Hash)
113
- self.class.openapi_types.each_pair do |key, type|
114
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
- self.send("#{key}=", nil)
116
- elsif type =~ /\AArray<(.*)>/i
117
- # check to ensure the input is an array given that the attribute
118
- # is documented as an array but the input is not
119
- if attributes[self.class.attribute_map[key]].is_a?(Array)
120
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
- end
122
- elsif !attributes[self.class.attribute_map[key]].nil?
123
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
- end
125
- end
126
-
127
- self
128
- end
129
-
130
- # Deserializes the data based on type
131
- # @param string type Data type
132
- # @param string value Value to be deserialized
133
- # @return [Object] Deserialized data
134
- def _deserialize(type, value)
135
- case type.to_sym
136
- when :Time
137
- Time.parse(value)
138
- when :Date
139
- Date.parse(value)
140
- when :String
141
- value.to_s
142
- when :Integer
143
- value.to_i
144
- when :Float
145
- value.to_f
146
- when :Boolean
147
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
- true
149
- else
150
- false
151
- end
152
- when :Object
153
- # generic object (usually a Hash), return directly
154
- value
155
- when /\AArray<(?<inner_type>.+)>\z/
156
- inner_type = Regexp.last_match[:inner_type]
157
- value.map { |v| _deserialize(inner_type, v) }
158
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
- k_type = Regexp.last_match[:k_type]
160
- v_type = Regexp.last_match[:v_type]
161
- {}.tap do |hash|
162
- value.each do |k, v|
163
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
- end
165
- end
166
- else # model
167
- # models (e.g. Pet) or oneOf
168
- klass = PrimaryConnectClient.const_get(type)
169
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
170
- end
171
- end
172
-
173
- # Returns the string representation of the object
174
- # @return [String] String presentation of the object
175
- def to_s
176
- to_hash.to_s
177
- end
178
-
179
- # to_body is an alias to to_hash (backward compatibility)
180
- # @return [Hash] Returns the object in the form of hash
181
- def to_body
182
- to_hash
183
- end
184
-
185
- # Returns the object in the form of hash
186
- # @return [Hash] Returns the object in the form of hash
187
- def to_hash
188
- hash = {}
189
- self.class.attribute_map.each_pair do |attr, param|
190
- value = self.send(attr)
191
- if value.nil?
192
- is_nullable = self.class.openapi_nullable.include?(attr)
193
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
194
- end
195
-
196
- hash[param] = _to_hash(value)
197
- end
198
- hash
199
- end
200
-
201
- # Outputs non-array value in the form of hash
202
- # For object, use to_hash. Otherwise, just return the value
203
- # @param [Object] value Any valid value
204
- # @return [Hash] Returns the value in the form of hash
205
- def _to_hash(value)
206
- if value.is_a?(Array)
207
- value.compact.map { |v| _to_hash(v) }
208
- elsif value.is_a?(Hash)
209
- {}.tap do |hash|
210
- value.each { |k, v| hash[k] = _to_hash(v) }
211
- end
212
- elsif value.respond_to? :to_hash
213
- value.to_hash
214
- else
215
- value
216
- end
217
- end
218
-
219
- end
220
-
221
- end
Binary file
@@ -1,34 +0,0 @@
1
- =begin
2
- #Primary Connect API V1
3
-
4
- #Client Library to interface with Primary Connect
5
-
6
- The version of the OpenAPI document: v1
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.3.0
10
-
11
- =end
12
-
13
- require 'spec_helper'
14
- require 'json'
15
- require 'date'
16
-
17
- # Unit tests for PrimaryConnectClient::Immunizations
18
- # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
- # Please update as you see appropriate
20
- describe PrimaryConnectClient::Immunizations do
21
- let(:instance) { PrimaryConnectClient::Immunizations.new }
22
-
23
- describe 'test an instance of Immunizations' do
24
- it 'should create an instance of Immunizations' do
25
- expect(instance).to be_instance_of(PrimaryConnectClient::Immunizations)
26
- end
27
- end
28
- describe 'test attribute "immunizations"' do
29
- it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
- end
32
- end
33
-
34
- end