patch_ruby 1.23.0 → 1.24.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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +1 -1
- data/lib/patch_ruby/api/estimates_api.rb +280 -0
- data/lib/patch_ruby/api/orders_api.rb +4 -6
- data/lib/patch_ruby/api_client.rb +1 -1
- data/lib/patch_ruby/models/create_air_shipping_estimate_request.rb +374 -0
- data/lib/patch_ruby/models/create_order_request.rb +2 -2
- data/lib/patch_ruby/models/create_rail_shipping_estimate_request.rb +404 -0
- data/lib/patch_ruby/models/create_road_shipping_estimate_request.rb +507 -0
- data/lib/patch_ruby/models/create_sea_shipping_estimate_request.rb +461 -0
- data/lib/patch_ruby/models/order.rb +2 -2
- data/lib/patch_ruby/models/project.rb +1 -1
- data/lib/patch_ruby/version.rb +1 -1
- data/lib/patch_ruby.rb +4 -0
- data/spec/integration/estimates_spec.rb +151 -0
- data/spec/integration/orders_spec.rb +3 -3
- data/spec/integration/projects_spec.rb +2 -2
- metadata +29 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a119c788c7b08df5347be280324d01a7f9acf576ef7f727833c32433a53b6ff
|
4
|
+
data.tar.gz: fb0aac7b2909a12485a97e476ae0e7f3b17a54186b2262f2b8eb1cb8ae1e447c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8185665815ed84680fab0b395845260fd41c2ef86cb288137e106cfef865fda41dce66b259f0773c5464127959cb1ea62ccbf7fd5af162b4dee82a30a97a11a
|
7
|
+
data.tar.gz: e4afa1e0675073437b34cf4928e909f40958664c6b7646d887bd6b75137510efc25254e79fcdd040755c35147ba680656b1416beaa37a8746b09caafd23775bb
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.24.0] - 2022-07-22
|
9
|
+
|
10
|
+
### Added
|
11
|
+
|
12
|
+
- Adds `Patch::Estimate.create_air_shipping_estimate` method
|
13
|
+
- Adds `Patch::Estimate.create_rail_shipping_estimate` method
|
14
|
+
- Adds `Patch::Estimate.create_road_shipping_estimate` method
|
15
|
+
- Adds `Patch::Estimate.create_sea_shipping_estimate` method
|
16
|
+
|
8
17
|
## [1.23.0] - 2022-06-03
|
9
18
|
|
10
19
|
### Added
|
data/Gemfile.lock
CHANGED
@@ -15,11 +15,15 @@ require 'cgi'
|
|
15
15
|
module Patch
|
16
16
|
class EstimatesApi
|
17
17
|
OPERATIONS = [
|
18
|
+
:create_air_shipping_estimate,
|
18
19
|
:create_bitcoin_estimate,
|
19
20
|
:create_ethereum_estimate,
|
20
21
|
:create_flight_estimate,
|
21
22
|
:create_hotel_estimate,
|
22
23
|
:create_mass_estimate,
|
24
|
+
:create_rail_shipping_estimate,
|
25
|
+
:create_road_shipping_estimate,
|
26
|
+
:create_sea_shipping_estimate,
|
23
27
|
:create_shipping_estimate,
|
24
28
|
:create_vehicle_estimate,
|
25
29
|
:retrieve_estimate,
|
@@ -31,6 +35,75 @@ module Patch
|
|
31
35
|
def initialize(api_client = ApiClient.default)
|
32
36
|
@api_client = api_client
|
33
37
|
end
|
38
|
+
# Creates a GLEC air shipping estimate given freight mass and logistics
|
39
|
+
# Creates a GLEC air shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
40
|
+
# @param create_air_shipping_estimate_request [CreateAirShippingEstimateRequest]
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @return [EstimateResponse]
|
43
|
+
def create_air_shipping_estimate(create_air_shipping_estimate_request = {}, opts = {})
|
44
|
+
_create_air_shipping_estimate_request = Patch::CreateAirShippingEstimateRequest.new(create_air_shipping_estimate_request)
|
45
|
+
data, _status_code, _headers = create_air_shipping_estimate_with_http_info(_create_air_shipping_estimate_request, opts)
|
46
|
+
data
|
47
|
+
end
|
48
|
+
|
49
|
+
# Creates a GLEC air shipping estimate given freight mass and logistics
|
50
|
+
# Creates a GLEC air shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
51
|
+
# @param create_air_shipping_estimate_request [CreateAirShippingEstimateRequest]
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
|
54
|
+
def create_air_shipping_estimate_with_http_info(create_air_shipping_estimate_request, opts = {})
|
55
|
+
if @api_client.config.debugging
|
56
|
+
@api_client.config.logger.debug 'Calling API: EstimatesApi.create_air_shipping_estimate ...'
|
57
|
+
end
|
58
|
+
# verify the required parameter 'create_air_shipping_estimate_request' is set
|
59
|
+
if @api_client.config.client_side_validation && create_air_shipping_estimate_request.nil?
|
60
|
+
fail ArgumentError, "Missing the required parameter 'create_air_shipping_estimate_request' when calling EstimatesApi.create_air_shipping_estimate"
|
61
|
+
end
|
62
|
+
# resource path
|
63
|
+
local_var_path = '/v1/estimates/shipping/air'
|
64
|
+
|
65
|
+
# query parameters
|
66
|
+
query_params = opts[:query_params] || {}
|
67
|
+
|
68
|
+
# header parameters
|
69
|
+
header_params = opts[:header_params] || {}
|
70
|
+
# HTTP header 'Accept' (if needed)
|
71
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
72
|
+
# HTTP header 'Content-Type'
|
73
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
74
|
+
if !content_type.nil?
|
75
|
+
header_params['Content-Type'] = content_type
|
76
|
+
end
|
77
|
+
|
78
|
+
# form parameters
|
79
|
+
form_params = opts[:form_params] || {}
|
80
|
+
|
81
|
+
# http body (model)
|
82
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_air_shipping_estimate_request)
|
83
|
+
|
84
|
+
# return_type
|
85
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
86
|
+
|
87
|
+
# auth_names
|
88
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
89
|
+
|
90
|
+
new_options = opts.merge(
|
91
|
+
:operation => :"EstimatesApi.create_air_shipping_estimate",
|
92
|
+
:header_params => header_params,
|
93
|
+
:query_params => query_params,
|
94
|
+
:form_params => form_params,
|
95
|
+
:body => post_body,
|
96
|
+
:auth_names => auth_names,
|
97
|
+
:return_type => return_type
|
98
|
+
)
|
99
|
+
|
100
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug "API called: EstimatesApi#create_air_shipping_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
103
|
+
end
|
104
|
+
return data, status_code, headers
|
105
|
+
end
|
106
|
+
|
34
107
|
# Create a bitcoin estimate given a timestamp and transaction value
|
35
108
|
# Creates a bitcoin estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
36
109
|
# @param create_bitcoin_estimate_request [CreateBitcoinEstimateRequest]
|
@@ -376,6 +449,213 @@ module Patch
|
|
376
449
|
return data, status_code, headers
|
377
450
|
end
|
378
451
|
|
452
|
+
# Creates a GLEC rail shipping estimate given freight mass and logistics
|
453
|
+
# Creates a GLEC rail shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
454
|
+
# @param create_rail_shipping_estimate_request [CreateRailShippingEstimateRequest]
|
455
|
+
# @param [Hash] opts the optional parameters
|
456
|
+
# @return [EstimateResponse]
|
457
|
+
def create_rail_shipping_estimate(create_rail_shipping_estimate_request = {}, opts = {})
|
458
|
+
_create_rail_shipping_estimate_request = Patch::CreateRailShippingEstimateRequest.new(create_rail_shipping_estimate_request)
|
459
|
+
data, _status_code, _headers = create_rail_shipping_estimate_with_http_info(_create_rail_shipping_estimate_request, opts)
|
460
|
+
data
|
461
|
+
end
|
462
|
+
|
463
|
+
# Creates a GLEC rail shipping estimate given freight mass and logistics
|
464
|
+
# Creates a GLEC rail shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
465
|
+
# @param create_rail_shipping_estimate_request [CreateRailShippingEstimateRequest]
|
466
|
+
# @param [Hash] opts the optional parameters
|
467
|
+
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
|
468
|
+
def create_rail_shipping_estimate_with_http_info(create_rail_shipping_estimate_request, opts = {})
|
469
|
+
if @api_client.config.debugging
|
470
|
+
@api_client.config.logger.debug 'Calling API: EstimatesApi.create_rail_shipping_estimate ...'
|
471
|
+
end
|
472
|
+
# verify the required parameter 'create_rail_shipping_estimate_request' is set
|
473
|
+
if @api_client.config.client_side_validation && create_rail_shipping_estimate_request.nil?
|
474
|
+
fail ArgumentError, "Missing the required parameter 'create_rail_shipping_estimate_request' when calling EstimatesApi.create_rail_shipping_estimate"
|
475
|
+
end
|
476
|
+
# resource path
|
477
|
+
local_var_path = '/v1/estimates/shipping/rail'
|
478
|
+
|
479
|
+
# query parameters
|
480
|
+
query_params = opts[:query_params] || {}
|
481
|
+
|
482
|
+
# header parameters
|
483
|
+
header_params = opts[:header_params] || {}
|
484
|
+
# HTTP header 'Accept' (if needed)
|
485
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
486
|
+
# HTTP header 'Content-Type'
|
487
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
488
|
+
if !content_type.nil?
|
489
|
+
header_params['Content-Type'] = content_type
|
490
|
+
end
|
491
|
+
|
492
|
+
# form parameters
|
493
|
+
form_params = opts[:form_params] || {}
|
494
|
+
|
495
|
+
# http body (model)
|
496
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_rail_shipping_estimate_request)
|
497
|
+
|
498
|
+
# return_type
|
499
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
500
|
+
|
501
|
+
# auth_names
|
502
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
503
|
+
|
504
|
+
new_options = opts.merge(
|
505
|
+
:operation => :"EstimatesApi.create_rail_shipping_estimate",
|
506
|
+
:header_params => header_params,
|
507
|
+
:query_params => query_params,
|
508
|
+
:form_params => form_params,
|
509
|
+
:body => post_body,
|
510
|
+
:auth_names => auth_names,
|
511
|
+
:return_type => return_type
|
512
|
+
)
|
513
|
+
|
514
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
515
|
+
if @api_client.config.debugging
|
516
|
+
@api_client.config.logger.debug "API called: EstimatesApi#create_rail_shipping_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
517
|
+
end
|
518
|
+
return data, status_code, headers
|
519
|
+
end
|
520
|
+
|
521
|
+
# Creates a GLEC road shipping estimate given freight mass and logistics
|
522
|
+
# Creates a GLEC road shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
523
|
+
# @param create_road_shipping_estimate_request [CreateRoadShippingEstimateRequest]
|
524
|
+
# @param [Hash] opts the optional parameters
|
525
|
+
# @return [EstimateResponse]
|
526
|
+
def create_road_shipping_estimate(create_road_shipping_estimate_request = {}, opts = {})
|
527
|
+
_create_road_shipping_estimate_request = Patch::CreateRoadShippingEstimateRequest.new(create_road_shipping_estimate_request)
|
528
|
+
data, _status_code, _headers = create_road_shipping_estimate_with_http_info(_create_road_shipping_estimate_request, opts)
|
529
|
+
data
|
530
|
+
end
|
531
|
+
|
532
|
+
# Creates a GLEC road shipping estimate given freight mass and logistics
|
533
|
+
# Creates a GLEC road shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
534
|
+
# @param create_road_shipping_estimate_request [CreateRoadShippingEstimateRequest]
|
535
|
+
# @param [Hash] opts the optional parameters
|
536
|
+
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
|
537
|
+
def create_road_shipping_estimate_with_http_info(create_road_shipping_estimate_request, opts = {})
|
538
|
+
if @api_client.config.debugging
|
539
|
+
@api_client.config.logger.debug 'Calling API: EstimatesApi.create_road_shipping_estimate ...'
|
540
|
+
end
|
541
|
+
# verify the required parameter 'create_road_shipping_estimate_request' is set
|
542
|
+
if @api_client.config.client_side_validation && create_road_shipping_estimate_request.nil?
|
543
|
+
fail ArgumentError, "Missing the required parameter 'create_road_shipping_estimate_request' when calling EstimatesApi.create_road_shipping_estimate"
|
544
|
+
end
|
545
|
+
# resource path
|
546
|
+
local_var_path = '/v1/estimates/shipping/road'
|
547
|
+
|
548
|
+
# query parameters
|
549
|
+
query_params = opts[:query_params] || {}
|
550
|
+
|
551
|
+
# header parameters
|
552
|
+
header_params = opts[:header_params] || {}
|
553
|
+
# HTTP header 'Accept' (if needed)
|
554
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
555
|
+
# HTTP header 'Content-Type'
|
556
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
557
|
+
if !content_type.nil?
|
558
|
+
header_params['Content-Type'] = content_type
|
559
|
+
end
|
560
|
+
|
561
|
+
# form parameters
|
562
|
+
form_params = opts[:form_params] || {}
|
563
|
+
|
564
|
+
# http body (model)
|
565
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_road_shipping_estimate_request)
|
566
|
+
|
567
|
+
# return_type
|
568
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
569
|
+
|
570
|
+
# auth_names
|
571
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
572
|
+
|
573
|
+
new_options = opts.merge(
|
574
|
+
:operation => :"EstimatesApi.create_road_shipping_estimate",
|
575
|
+
:header_params => header_params,
|
576
|
+
:query_params => query_params,
|
577
|
+
:form_params => form_params,
|
578
|
+
:body => post_body,
|
579
|
+
:auth_names => auth_names,
|
580
|
+
:return_type => return_type
|
581
|
+
)
|
582
|
+
|
583
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
584
|
+
if @api_client.config.debugging
|
585
|
+
@api_client.config.logger.debug "API called: EstimatesApi#create_road_shipping_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
586
|
+
end
|
587
|
+
return data, status_code, headers
|
588
|
+
end
|
589
|
+
|
590
|
+
# Creates a GLEC sea shipping estimate given freight mass and logistics
|
591
|
+
# Creates a GLEC sea shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
592
|
+
# @param create_sea_shipping_estimate_request [CreateSeaShippingEstimateRequest]
|
593
|
+
# @param [Hash] opts the optional parameters
|
594
|
+
# @return [EstimateResponse]
|
595
|
+
def create_sea_shipping_estimate(create_sea_shipping_estimate_request = {}, opts = {})
|
596
|
+
_create_sea_shipping_estimate_request = Patch::CreateSeaShippingEstimateRequest.new(create_sea_shipping_estimate_request)
|
597
|
+
data, _status_code, _headers = create_sea_shipping_estimate_with_http_info(_create_sea_shipping_estimate_request, opts)
|
598
|
+
data
|
599
|
+
end
|
600
|
+
|
601
|
+
# Creates a GLEC sea shipping estimate given freight mass and logistics
|
602
|
+
# Creates a GLEC sea shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters, linked to the estimate.
|
603
|
+
# @param create_sea_shipping_estimate_request [CreateSeaShippingEstimateRequest]
|
604
|
+
# @param [Hash] opts the optional parameters
|
605
|
+
# @return [Array<(EstimateResponse, Integer, Hash)>] EstimateResponse data, response status code and response headers
|
606
|
+
def create_sea_shipping_estimate_with_http_info(create_sea_shipping_estimate_request, opts = {})
|
607
|
+
if @api_client.config.debugging
|
608
|
+
@api_client.config.logger.debug 'Calling API: EstimatesApi.create_sea_shipping_estimate ...'
|
609
|
+
end
|
610
|
+
# verify the required parameter 'create_sea_shipping_estimate_request' is set
|
611
|
+
if @api_client.config.client_side_validation && create_sea_shipping_estimate_request.nil?
|
612
|
+
fail ArgumentError, "Missing the required parameter 'create_sea_shipping_estimate_request' when calling EstimatesApi.create_sea_shipping_estimate"
|
613
|
+
end
|
614
|
+
# resource path
|
615
|
+
local_var_path = '/v1/estimates/shipping/sea'
|
616
|
+
|
617
|
+
# query parameters
|
618
|
+
query_params = opts[:query_params] || {}
|
619
|
+
|
620
|
+
# header parameters
|
621
|
+
header_params = opts[:header_params] || {}
|
622
|
+
# HTTP header 'Accept' (if needed)
|
623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
624
|
+
# HTTP header 'Content-Type'
|
625
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
626
|
+
if !content_type.nil?
|
627
|
+
header_params['Content-Type'] = content_type
|
628
|
+
end
|
629
|
+
|
630
|
+
# form parameters
|
631
|
+
form_params = opts[:form_params] || {}
|
632
|
+
|
633
|
+
# http body (model)
|
634
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_sea_shipping_estimate_request)
|
635
|
+
|
636
|
+
# return_type
|
637
|
+
return_type = opts[:debug_return_type] || 'EstimateResponse'
|
638
|
+
|
639
|
+
# auth_names
|
640
|
+
auth_names = opts[:debug_auth_names] || ['bearer_auth']
|
641
|
+
|
642
|
+
new_options = opts.merge(
|
643
|
+
:operation => :"EstimatesApi.create_sea_shipping_estimate",
|
644
|
+
:header_params => header_params,
|
645
|
+
:query_params => query_params,
|
646
|
+
:form_params => form_params,
|
647
|
+
:body => post_body,
|
648
|
+
:auth_names => auth_names,
|
649
|
+
:return_type => return_type
|
650
|
+
)
|
651
|
+
|
652
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
653
|
+
if @api_client.config.debugging
|
654
|
+
@api_client.config.logger.debug "API called: EstimatesApi#create_sea_shipping_estimate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
655
|
+
end
|
656
|
+
return data, status_code, headers
|
657
|
+
end
|
658
|
+
|
379
659
|
# Create a shipping estimate given the distance traveled in meters, package weight, and transportation method.
|
380
660
|
# Creates a shipping estimate for the amount of CO2 to be compensated. An order in the `draft` state may be created based on the parameters.
|
381
661
|
# @param create_shipping_estimate_request [CreateShippingEstimateRequest]
|
@@ -33,7 +33,6 @@ module Patch
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
34
34
|
# @return [OrderResponse]
|
35
35
|
def cancel_order(id, opts = {})
|
36
|
-
|
37
36
|
data, _status_code, _headers = cancel_order_with_http_info(id, opts)
|
38
37
|
data
|
39
38
|
end
|
@@ -166,9 +165,10 @@ module Patch
|
|
166
165
|
# @param [Hash] opts the optional parameters
|
167
166
|
# @option opts [PlaceOrderRequest] :place_order_request
|
168
167
|
# @return [OrderResponse]
|
169
|
-
def place_order(
|
170
|
-
|
171
|
-
|
168
|
+
def place_order(order_id, opts = {})
|
169
|
+
place_order_request = Patch::PlaceOrderRequest.new(opts)
|
170
|
+
opts[:place_order_request] = place_order_request
|
171
|
+
data, _status_code, _headers = place_order_with_http_info(order_id, opts)
|
172
172
|
data
|
173
173
|
end
|
174
174
|
|
@@ -237,7 +237,6 @@ module Patch
|
|
237
237
|
# @param [Hash] opts the optional parameters
|
238
238
|
# @return [OrderResponse]
|
239
239
|
def retrieve_order(id, opts = {})
|
240
|
-
|
241
240
|
data, _status_code, _headers = retrieve_order_with_http_info(id, opts)
|
242
241
|
data
|
243
242
|
end
|
@@ -304,7 +303,6 @@ module Patch
|
|
304
303
|
# @option opts [String] :metadata_example2
|
305
304
|
# @return [OrderListResponse]
|
306
305
|
def retrieve_orders(opts = {})
|
307
|
-
|
308
306
|
data, _status_code, _headers = retrieve_orders_with_http_info(opts)
|
309
307
|
data
|
310
308
|
end
|
@@ -31,7 +31,7 @@ module Patch
|
|
31
31
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
32
32
|
def initialize(config = Configuration.default)
|
33
33
|
@config = config
|
34
|
-
@user_agent = "patch-ruby/1.
|
34
|
+
@user_agent = "patch-ruby/1.24.0"
|
35
35
|
@default_headers = {
|
36
36
|
'Content-Type' => 'application/json',
|
37
37
|
'User-Agent' => @user_agent
|