primary_connect_client 1.9.0 → 1.11.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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +10 -5
  4. data/docs/DefaultApi.md +140 -0
  5. data/docs/Meta.md +3 -1
  6. data/docs/MetaDestination.md +22 -0
  7. data/docs/MetaProvenances.md +22 -0
  8. data/docs/Order.md +1 -1
  9. data/docs/OrderPatient.md +24 -0
  10. data/docs/OrderPatientContacts.md +28 -0
  11. data/docs/Patient.md +1 -1
  12. data/docs/Result.md +3 -1
  13. data/lib/primary_connect_client/api/default_api.rb +126 -0
  14. data/lib/primary_connect_client/models/meta.rb +15 -4
  15. data/lib/primary_connect_client/models/meta_destination.rb +237 -0
  16. data/lib/primary_connect_client/models/meta_provenances.rb +237 -0
  17. data/lib/primary_connect_client/models/order.rb +1 -1
  18. data/lib/primary_connect_client/models/order_patient.rb +254 -0
  19. data/lib/primary_connect_client/models/order_patient_contacts.rb +305 -0
  20. data/lib/primary_connect_client/models/patient.rb +1 -1
  21. data/lib/primary_connect_client/models/result.rb +13 -4
  22. data/lib/primary_connect_client/version.rb +1 -1
  23. data/lib/primary_connect_client.rb +4 -1
  24. data/primary_connect_client.gemspec +39 -0
  25. data/spec/api/default_api_spec.rb +23 -0
  26. data/spec/models/demographics_spec.rb +1 -1
  27. data/spec/models/meta_destination_spec.rb +46 -0
  28. data/spec/models/meta_provenances_spec.rb +46 -0
  29. data/spec/models/meta_spec.rb +6 -0
  30. data/spec/models/order_patient_contacts_spec.rb +68 -0
  31. data/spec/models/order_patient_spec.rb +52 -0
  32. data/spec/models/result_spec.rb +6 -0
  33. metadata +23 -11
  34. data/.openapi-generator/FILES +0 -180
  35. data/.openapi-generator/VERSION +0 -1
  36. data/.openapi-generator-ignore +0 -23
  37. data/.rspec +0 -2
  38. data/.rubocop.yml +0 -148
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b98b43e90ff70d947aafc813e04fd43932f99c57b8792f96e03a87878c0a995
4
- data.tar.gz: 03f3ec85ff598ca7fc07cbfa683a688c03dcf4027de88a07bbd0ac8f6f66ad47
3
+ metadata.gz: 5b567b470f58e5932d1510049b7120bf6f3cf2c523978fc0bdff9c7811985467
4
+ data.tar.gz: 766d4dc4d3ebe941b5655959217df7db5de81efb4fcad33d28f2289fbbbd9665
5
5
  SHA512:
6
- metadata.gz: be7eadbcb81913bfce5c26aec75f67778e466e3cedb59bc7c1cdd77c8fb70e6b109ab519bd853f6faa655eaf220e0ade14ced7da3176d19c856e39e905234654
7
- data.tar.gz: cca0f15e926f6fe59011d62a9252efcea8ee349d700c82981e79e0869ac33d8658baa6130bae21bbd19aa04abd3dfef01240086f518f5e162e59b4893cdb0952
6
+ metadata.gz: 2bfcc1f9d7367e72f70aaed064b919cc3d7919888c679b20da2181efb957f7bb66b68d4ab7a9b185486dbd3f5a594fc31876c9aed0dcf6cc9db2c0c2d62aa254
7
+ data.tar.gz: 48652b2d4fbcaa92929623cc11a45b70f2a07b736539e83501a4f79c56192288e06a873525c088324bda9fa2241c9332605c20188cbe6463d2bb64e3229f5e0a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  # Change Log
2
+ ## 1.11.0
3
+
4
+ - Updated dependency on `primary_connect_proto` 0.23.0
5
+
6
+ ## 1.10.0
7
+
8
+ - Updated dependency on `primary_connect_proto` 0.22.0
2
9
 
3
10
  ## 1.9.0
4
11
 
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.5.1
10
+ - Package version: 1.11.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.5.1.gem
26
+ gem install ./primary_connect_client-1.11.0.gem
27
27
  ```
28
28
 
29
- (for development, run `gem install --dev ./primary_connect_client-1.5.1.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./primary_connect_client-1.11.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.5.1'
35
+ gem 'primary_connect_client', '~> 1.11.0'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -95,6 +95,8 @@ Class | Method | HTTP request | Description
95
95
  *PrimaryConnectClient::DefaultApi* | [**list_events**](docs/DefaultApi.md#list_events) | **GET** /api/v1/events | list events
96
96
  *PrimaryConnectClient::DefaultApi* | [**list_orders**](docs/DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders
97
97
  *PrimaryConnectClient::DefaultApi* | [**list_results**](docs/DefaultApi.md#list_results) | **GET** /api/v1/orders/{order_id}/results | list results
98
+ *PrimaryConnectClient::DefaultApi* | [**reroute_order**](docs/DefaultApi.md#reroute_order) | **POST** /api/v1/orders/reroute | reroute Order identified in the payload
99
+ *PrimaryConnectClient::DefaultApi* | [**reroute_order_by_ulid**](docs/DefaultApi.md#reroute_order_by_ulid) | **POST** /api/v1/orders/{id}/reroute | Reroute order by ULID
98
100
  *PrimaryConnectClient::DefaultApi* | [**update_order**](docs/DefaultApi.md#update_order) | **PUT** /api/v1/orders/{id} | update order
99
101
 
100
102
 
@@ -117,8 +119,10 @@ Class | Method | HTTP request | Description
117
119
  - [PrimaryConnectClient::Medication](docs/Medication.md)
118
120
  - [PrimaryConnectClient::MedicationAdministration](docs/MedicationAdministration.md)
119
121
  - [PrimaryConnectClient::Meta](docs/Meta.md)
122
+ - [PrimaryConnectClient::MetaDestination](docs/MetaDestination.md)
120
123
  - [PrimaryConnectClient::MetaDestinations](docs/MetaDestinations.md)
121
124
  - [PrimaryConnectClient::MetaMessage](docs/MetaMessage.md)
125
+ - [PrimaryConnectClient::MetaProvenances](docs/MetaProvenances.md)
122
126
  - [PrimaryConnectClient::MetaSource](docs/MetaSource.md)
123
127
  - [PrimaryConnectClient::MetaTransmission](docs/MetaTransmission.md)
124
128
  - [PrimaryConnectClient::Name](docs/Name.md)
@@ -128,11 +132,12 @@ Class | Method | HTTP request | Description
128
132
  - [PrimaryConnectClient::OrderOrderClinicalInfo](docs/OrderOrderClinicalInfo.md)
129
133
  - [PrimaryConnectClient::OrderOrderDiagnoses](docs/OrderOrderDiagnoses.md)
130
134
  - [PrimaryConnectClient::OrderOrderOrderingFacility](docs/OrderOrderOrderingFacility.md)
135
+ - [PrimaryConnectClient::OrderPatient](docs/OrderPatient.md)
136
+ - [PrimaryConnectClient::OrderPatientContacts](docs/OrderPatientContacts.md)
131
137
  - [PrimaryConnectClient::OrderWithEventErrors](docs/OrderWithEventErrors.md)
132
138
  - [PrimaryConnectClient::Orders](docs/Orders.md)
133
139
  - [PrimaryConnectClient::OrdersOrders](docs/OrdersOrders.md)
134
140
  - [PrimaryConnectClient::Patient](docs/Patient.md)
135
- - [PrimaryConnectClient::PatientContacts](docs/PatientContacts.md)
136
141
  - [PrimaryConnectClient::PhoneNumber](docs/PhoneNumber.md)
137
142
  - [PrimaryConnectClient::Provider](docs/Provider.md)
138
143
  - [PrimaryConnectClient::Result](docs/Result.md)
data/docs/DefaultApi.md CHANGED
@@ -16,6 +16,8 @@ All URIs are relative to *https://connect.primary.health*
16
16
  | [**list_events**](DefaultApi.md#list_events) | **GET** /api/v1/events | list events |
17
17
  | [**list_orders**](DefaultApi.md#list_orders) | **GET** /api/v1/orders | list orders |
18
18
  | [**list_results**](DefaultApi.md#list_results) | **GET** /api/v1/orders/{order_id}/results | list results |
19
+ | [**reroute_order**](DefaultApi.md#reroute_order) | **POST** /api/v1/orders/reroute | reroute Order identified in the payload |
20
+ | [**reroute_order_by_ulid**](DefaultApi.md#reroute_order_by_ulid) | **POST** /api/v1/orders/{id}/reroute | Reroute order by ULID |
19
21
  | [**update_order**](DefaultApi.md#update_order) | **PUT** /api/v1/orders/{id} | update order |
20
22
 
21
23
 
@@ -840,6 +842,144 @@ end
840
842
  - **Accept**: application/json
841
843
 
842
844
 
845
+ ## reroute_order
846
+
847
+ > reroute_order(opts)
848
+
849
+ reroute Order identified in the payload
850
+
851
+ ### Examples
852
+
853
+ ```ruby
854
+ require 'time'
855
+ require 'primary_connect_client'
856
+ # setup authorization
857
+ PrimaryConnectClient.configure do |config|
858
+ # Configure Bearer authorization: bearer_auth
859
+ config.access_token = 'YOUR_BEARER_TOKEN'
860
+ end
861
+
862
+ api_instance = PrimaryConnectClient::DefaultApi.new
863
+ opts = {
864
+ order: PrimaryConnectClient::Order.new # Order |
865
+ }
866
+
867
+ begin
868
+ # reroute Order identified in the payload
869
+ api_instance.reroute_order(opts)
870
+ rescue PrimaryConnectClient::ApiError => e
871
+ puts "Error when calling DefaultApi->reroute_order: #{e}"
872
+ end
873
+ ```
874
+
875
+ #### Using the reroute_order_with_http_info variant
876
+
877
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
878
+
879
+ > <Array(nil, Integer, Hash)> reroute_order_with_http_info(opts)
880
+
881
+ ```ruby
882
+ begin
883
+ # reroute Order identified in the payload
884
+ data, status_code, headers = api_instance.reroute_order_with_http_info(opts)
885
+ p status_code # => 2xx
886
+ p headers # => { ... }
887
+ p data # => nil
888
+ rescue PrimaryConnectClient::ApiError => e
889
+ puts "Error when calling DefaultApi->reroute_order_with_http_info: #{e}"
890
+ end
891
+ ```
892
+
893
+ ### Parameters
894
+
895
+ | Name | Type | Description | Notes |
896
+ | ---- | ---- | ----------- | ----- |
897
+ | **order** | [**Order**](Order.md) | | [optional] |
898
+
899
+ ### Return type
900
+
901
+ nil (empty response body)
902
+
903
+ ### Authorization
904
+
905
+ [bearer_auth](../README.md#bearer_auth)
906
+
907
+ ### HTTP request headers
908
+
909
+ - **Content-Type**: application/json
910
+ - **Accept**: Not defined
911
+
912
+
913
+ ## reroute_order_by_ulid
914
+
915
+ > reroute_order_by_ulid(id, opts)
916
+
917
+ Reroute order by ULID
918
+
919
+ ### Examples
920
+
921
+ ```ruby
922
+ require 'time'
923
+ require 'primary_connect_client'
924
+ # setup authorization
925
+ PrimaryConnectClient.configure do |config|
926
+ # Configure Bearer authorization: bearer_auth
927
+ config.access_token = 'YOUR_BEARER_TOKEN'
928
+ end
929
+
930
+ api_instance = PrimaryConnectClient::DefaultApi.new
931
+ id = '01FGD44Q6MVCG2VNSMC4ZMOTQM' # String | Order ID
932
+ opts = {
933
+ order: PrimaryConnectClient::Order.new # Order |
934
+ }
935
+
936
+ begin
937
+ # Reroute order by ULID
938
+ api_instance.reroute_order_by_ulid(id, opts)
939
+ rescue PrimaryConnectClient::ApiError => e
940
+ puts "Error when calling DefaultApi->reroute_order_by_ulid: #{e}"
941
+ end
942
+ ```
943
+
944
+ #### Using the reroute_order_by_ulid_with_http_info variant
945
+
946
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
947
+
948
+ > <Array(nil, Integer, Hash)> reroute_order_by_ulid_with_http_info(id, opts)
949
+
950
+ ```ruby
951
+ begin
952
+ # Reroute order by ULID
953
+ data, status_code, headers = api_instance.reroute_order_by_ulid_with_http_info(id, opts)
954
+ p status_code # => 2xx
955
+ p headers # => { ... }
956
+ p data # => nil
957
+ rescue PrimaryConnectClient::ApiError => e
958
+ puts "Error when calling DefaultApi->reroute_order_by_ulid_with_http_info: #{e}"
959
+ end
960
+ ```
961
+
962
+ ### Parameters
963
+
964
+ | Name | Type | Description | Notes |
965
+ | ---- | ---- | ----------- | ----- |
966
+ | **id** | **String** | Order ID | |
967
+ | **order** | [**Order**](Order.md) | | [optional] |
968
+
969
+ ### Return type
970
+
971
+ nil (empty response body)
972
+
973
+ ### Authorization
974
+
975
+ [bearer_auth](../README.md#bearer_auth)
976
+
977
+ ### HTTP request headers
978
+
979
+ - **Content-Type**: application/json
980
+ - **Accept**: Not defined
981
+
982
+
843
983
  ## update_order
844
984
 
845
985
  > <OrderIds> update_order(id, opts)
data/docs/Meta.md CHANGED
@@ -13,6 +13,7 @@
13
13
  | **transmission** | [**MetaTransmission**](MetaTransmission.md) | | [optional] |
14
14
  | **facility_code** | **String** | | [optional] |
15
15
  | **echo** | **Object** | Arbitrary key/value pairs to store with the Order | [optional] |
16
+ | **provenances** | [**Array&lt;MetaProvenances&gt;**](MetaProvenances.md) | | [optional] |
16
17
 
17
18
  ## Example
18
19
 
@@ -28,7 +29,8 @@ instance = PrimaryConnectClient::Meta.new(
28
29
  message: null,
29
30
  transmission: null,
30
31
  facility_code: 123,
31
- echo: null
32
+ echo: null,
33
+ provenances: null
32
34
  )
33
35
  ```
34
36
 
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::MetaDestination
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **config** | **Object** | Arbitrary key/value pairs for Lab specific use | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::MetaDestination.new(
17
+ id: 01FXNPV4TCTGRSV4EGTJMW0D0Y,
18
+ name: Sample Lab,
19
+ config: {&quot;key1&quot;:&quot;value1&quot;,&quot;key2&quot;:&quot;value2&quot;}
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # PrimaryConnectClient::MetaProvenances
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **destination** | [**MetaDestination**](MetaDestination.md) | | [optional] |
8
+ | **placer_id** | **String** | | [optional] |
9
+ | **rerouted_at** | **Time** | ISO-8601 | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'primary_connect_client'
15
+
16
+ instance = PrimaryConnectClient::MetaProvenances.new(
17
+ destination: null,
18
+ placer_id: ABC123,
19
+ rerouted_at: 2021-07-30T20:27:55Z
20
+ )
21
+ ```
22
+
data/docs/Order.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **patient** | [**Patient**](Patient.md) | | [optional] |
7
+ | **patient** | [**OrderPatient**](OrderPatient.md) | | [optional] |
8
8
  | **subject** | [**Subject**](Subject.md) | | [optional] |
9
9
  | **visit** | [**Visit**](Visit.md) | | [optional] |
10
10
  | **meta** | [**Meta**](Meta.md) | | [optional] |
@@ -0,0 +1,24 @@
1
+ # PrimaryConnectClient::OrderPatient
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **identifiers** | [**Array&lt;Identifier&gt;**](Identifier.md) | List of IDs and types that identify the patient | [optional] |
8
+ | **demographics** | [**Demographics**](Demographics.md) | | [optional] |
9
+ | **notes** | **Array&lt;String&gt;** | Patient-level notes | [optional] |
10
+ | **contacts** | [**Array&lt;OrderPatientContacts&gt;**](OrderPatientContacts.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'primary_connect_client'
16
+
17
+ instance = PrimaryConnectClient::OrderPatient.new(
18
+ identifiers: null,
19
+ demographics: null,
20
+ notes: null,
21
+ contacts: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,28 @@
1
+ # PrimaryConnectClient::OrderPatientContacts
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | [**Name**](Name.md) | | [optional] |
8
+ | **address** | [**Address**](Address.md) | | [optional] |
9
+ | **phone_numbers** | [**Array&lt;PhoneNumber&gt;**](PhoneNumber.md) | | [optional] |
10
+ | **relation_to_patient** | **String** | Personal relationship to the patient | [optional] |
11
+ | **email_addresses** | **Array&lt;String&gt;** | | [optional] |
12
+ | **roles** | **Array&lt;String&gt;** | e.g. Employer, Emergency Contact | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'primary_connect_client'
18
+
19
+ instance = PrimaryConnectClient::OrderPatientContacts.new(
20
+ name: null,
21
+ address: null,
22
+ phone_numbers: null,
23
+ relation_to_patient: null,
24
+ email_addresses: null,
25
+ roles: null
26
+ )
27
+ ```
28
+
data/docs/Patient.md CHANGED
@@ -7,7 +7,7 @@
7
7
  | **identifiers** | [**Array&lt;Identifier&gt;**](Identifier.md) | List of IDs and types that identify the patient | [optional] |
8
8
  | **demographics** | [**Demographics**](Demographics.md) | | [optional] |
9
9
  | **notes** | **Array&lt;String&gt;** | Patient-level notes | [optional] |
10
- | **contacts** | [**Array&lt;PatientContacts&gt;**](PatientContacts.md) | | [optional] |
10
+ | **contacts** | [**Array&lt;OrderPatientContacts&gt;**](OrderPatientContacts.md) | | [optional] |
11
11
 
12
12
  ## Example
13
13
 
data/docs/Result.md CHANGED
@@ -23,6 +23,7 @@
23
23
  | **producer_order_id** | **String** | Unique ID generated by resulting entity | [optional] |
24
24
  | **finding_value** | [**CodedValue**](CodedValue.md) | | [optional] |
25
25
  | **resulting_device** | [**Device**](Device.md) | | [optional] |
26
+ | **procedure** | [**CodedValue**](CodedValue.md) | | [optional] |
26
27
 
27
28
  ## Example
28
29
 
@@ -48,7 +49,8 @@ instance = PrimaryConnectClient::Result.new(
48
49
  observation_method: null,
49
50
  producer_order_id: 12345678,
50
51
  finding_value: null,
51
- resulting_device: null
52
+ resulting_device: null,
53
+ procedure: null
52
54
  )
53
55
  ```
54
56
 
@@ -767,6 +767,132 @@ module PrimaryConnectClient
767
767
  return data, status_code, headers
768
768
  end
769
769
 
770
+ # reroute Order identified in the payload
771
+ # @param [Hash] opts the optional parameters
772
+ # @option opts [Order] :order
773
+ # @return [nil]
774
+ def reroute_order(opts = {})
775
+ reroute_order_with_http_info(opts)
776
+ nil
777
+ end
778
+
779
+ # reroute Order identified in the payload
780
+ # @param [Hash] opts the optional parameters
781
+ # @option opts [Order] :order
782
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
783
+ def reroute_order_with_http_info(opts = {})
784
+ if @api_client.config.debugging
785
+ @api_client.config.logger.debug 'Calling API: DefaultApi.reroute_order ...'
786
+ end
787
+ # resource path
788
+ local_var_path = '/api/v1/orders/reroute'
789
+
790
+ # query parameters
791
+ query_params = opts[:query_params] || {}
792
+
793
+ # header parameters
794
+ header_params = opts[:header_params] || {}
795
+ # HTTP header 'Content-Type'
796
+ content_type = @api_client.select_header_content_type(['application/json'])
797
+ if !content_type.nil?
798
+ header_params['Content-Type'] = content_type
799
+ end
800
+
801
+ # form parameters
802
+ form_params = opts[:form_params] || {}
803
+
804
+ # http body (model)
805
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'order'])
806
+
807
+ # return_type
808
+ return_type = opts[:debug_return_type]
809
+
810
+ # auth_names
811
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
812
+
813
+ new_options = opts.merge(
814
+ :operation => :"DefaultApi.reroute_order",
815
+ :header_params => header_params,
816
+ :query_params => query_params,
817
+ :form_params => form_params,
818
+ :body => post_body,
819
+ :auth_names => auth_names,
820
+ :return_type => return_type
821
+ )
822
+
823
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
824
+ if @api_client.config.debugging
825
+ @api_client.config.logger.debug "API called: DefaultApi#reroute_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
826
+ end
827
+ return data, status_code, headers
828
+ end
829
+
830
+ # Reroute order by ULID
831
+ # @param id [String] Order ID
832
+ # @param [Hash] opts the optional parameters
833
+ # @option opts [Order] :order
834
+ # @return [nil]
835
+ def reroute_order_by_ulid(id, opts = {})
836
+ reroute_order_by_ulid_with_http_info(id, opts)
837
+ nil
838
+ end
839
+
840
+ # Reroute order by ULID
841
+ # @param id [String] Order ID
842
+ # @param [Hash] opts the optional parameters
843
+ # @option opts [Order] :order
844
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
845
+ def reroute_order_by_ulid_with_http_info(id, opts = {})
846
+ if @api_client.config.debugging
847
+ @api_client.config.logger.debug 'Calling API: DefaultApi.reroute_order_by_ulid ...'
848
+ end
849
+ # verify the required parameter 'id' is set
850
+ if @api_client.config.client_side_validation && id.nil?
851
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.reroute_order_by_ulid"
852
+ end
853
+ # resource path
854
+ local_var_path = '/api/v1/orders/{id}/reroute'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
855
+
856
+ # query parameters
857
+ query_params = opts[:query_params] || {}
858
+
859
+ # header parameters
860
+ header_params = opts[:header_params] || {}
861
+ # HTTP header 'Content-Type'
862
+ content_type = @api_client.select_header_content_type(['application/json'])
863
+ if !content_type.nil?
864
+ header_params['Content-Type'] = content_type
865
+ end
866
+
867
+ # form parameters
868
+ form_params = opts[:form_params] || {}
869
+
870
+ # http body (model)
871
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'order'])
872
+
873
+ # return_type
874
+ return_type = opts[:debug_return_type]
875
+
876
+ # auth_names
877
+ auth_names = opts[:debug_auth_names] || ['bearer_auth']
878
+
879
+ new_options = opts.merge(
880
+ :operation => :"DefaultApi.reroute_order_by_ulid",
881
+ :header_params => header_params,
882
+ :query_params => query_params,
883
+ :form_params => form_params,
884
+ :body => post_body,
885
+ :auth_names => auth_names,
886
+ :return_type => return_type
887
+ )
888
+
889
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
890
+ if @api_client.config.debugging
891
+ @api_client.config.logger.debug "API called: DefaultApi#reroute_order_by_ulid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
892
+ end
893
+ return data, status_code, headers
894
+ end
895
+
770
896
  # update order
771
897
  # @param id [String] Order ID
772
898
  # @param [Hash] opts the optional parameters
@@ -35,6 +35,8 @@ module PrimaryConnectClient
35
35
  # Arbitrary key/value pairs to store with the Order
36
36
  attr_accessor :echo
37
37
 
38
+ attr_accessor :provenances
39
+
38
40
  class EnumAttributeValidator
39
41
  attr_reader :datatype
40
42
  attr_reader :allowable_values
@@ -68,7 +70,8 @@ module PrimaryConnectClient
68
70
  :'message' => :'message',
69
71
  :'transmission' => :'transmission',
70
72
  :'facility_code' => :'facilityCode',
71
- :'echo' => :'echo'
73
+ :'echo' => :'echo',
74
+ :'provenances' => :'provenances'
72
75
  }
73
76
  end
74
77
 
@@ -88,7 +91,8 @@ module PrimaryConnectClient
88
91
  :'message' => :'MetaMessage',
89
92
  :'transmission' => :'MetaTransmission',
90
93
  :'facility_code' => :'String',
91
- :'echo' => :'Object'
94
+ :'echo' => :'Object',
95
+ :'provenances' => :'Array<MetaProvenances>'
92
96
  }
93
97
  end
94
98
 
@@ -150,6 +154,12 @@ module PrimaryConnectClient
150
154
  if attributes.key?(:'echo')
151
155
  self.echo = attributes[:'echo']
152
156
  end
157
+
158
+ if attributes.key?(:'provenances')
159
+ if (value = attributes[:'provenances']).is_a?(Array)
160
+ self.provenances = value
161
+ end
162
+ end
153
163
  end
154
164
 
155
165
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -190,7 +200,8 @@ module PrimaryConnectClient
190
200
  message == o.message &&
191
201
  transmission == o.transmission &&
192
202
  facility_code == o.facility_code &&
193
- echo == o.echo
203
+ echo == o.echo &&
204
+ provenances == o.provenances
194
205
  end
195
206
 
196
207
  # @see the `==` method
@@ -202,7 +213,7 @@ module PrimaryConnectClient
202
213
  # Calculates hash code according to all attributes.
203
214
  # @return [Integer] Hash code
204
215
  def hash
205
- [event_type, event_date_and_time, test, source, destinations, message, transmission, facility_code, echo].hash
216
+ [event_type, event_date_and_time, test, source, destinations, message, transmission, facility_code, echo, provenances].hash
206
217
  end
207
218
 
208
219
  # Builds the object from hash