easypost 7.8.1 → 7.8.2
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 +5 -0
- data/VERSION +1 -1
- data/lib/easypost/services/claim.rb +2 -1
- data/lib/easypost/services/event.rb +2 -1
- data/lib/easypost/services/insurance.rb +2 -1
- data/lib/easypost/services/pickup.rb +2 -1
- data/lib/easypost/services/refund.rb +2 -1
- data/lib/easypost/services/scan_form.rb +2 -1
- data/lib/easypost/services/shipment.rb +1 -1
- data/lib/easypost/services/tracker.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 279e3685fc6b605a15a65ce3582f2609019331621d0879bb926eb13bb22ea6fa
|
|
4
|
+
data.tar.gz: 8921c2bf7c0baaf75bd073935edd970c5a97712dc20fa4a967715d85034193a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46d7146c3b5e887b94a8991808f160a811f026167da4776665ea7410806974c69a9d112e207ede4e36221833da849dafc4419a9a0eda10933f99f7309474559b
|
|
7
|
+
data.tar.gz: 196f17cf97214b6cfb6eb15cab2736661f58f60a4035a064921e280d5e3776b59724dd5ed1260060948507ad49cbc12fd155d01cdef993c1ef3328e3062b00a3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v7.8.2 (2026-11-30)
|
|
4
|
+
|
|
5
|
+
- Fixes `get_next_page` (claims, events, insurances, pickups, refunds, scan forms, shipments and trackers) dropping the `start_datetime` and `end_datetime` filters of the original `all` call
|
|
6
|
+
- Fixes `claim.get_next_page` dropping the `type` and `status` filters, and `tracker.get_next_page` dropping the `tracking_codes` filter, of the original `all` call
|
|
7
|
+
|
|
3
8
|
## v7.8.1 (2026-11-09)
|
|
4
9
|
|
|
5
10
|
- Fixes response hooks raising `NameError` when an HTTP body is not JSON
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.8.
|
|
1
|
+
7.8.2
|
|
@@ -19,7 +19,7 @@ class EasyPost::Services::Claim < EasyPost::Services::Service
|
|
|
19
19
|
|
|
20
20
|
# Retrieve all Claim objects
|
|
21
21
|
def all(params = {})
|
|
22
|
-
filters = { key: 'claims' }
|
|
22
|
+
filters = { key: 'claims' }.merge(params.slice(:type, :status, :start_datetime, :end_datetime))
|
|
23
23
|
|
|
24
24
|
get_all_helper('claims', MODEL_CLASS, params, filters)
|
|
25
25
|
end
|
|
@@ -30,6 +30,7 @@ class EasyPost::Services::Claim < EasyPost::Services::Service
|
|
|
30
30
|
|
|
31
31
|
params = { before_id: collection.claims.last.id }
|
|
32
32
|
params[:page_size] = page_size unless page_size.nil?
|
|
33
|
+
params.merge!(collection[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).delete(:key)
|
|
33
34
|
|
|
34
35
|
all(params)
|
|
35
36
|
end
|
|
@@ -14,7 +14,7 @@ class EasyPost::Services::Event < EasyPost::Services::Service
|
|
|
14
14
|
|
|
15
15
|
# Retrieve all Event objects
|
|
16
16
|
def all(params = {})
|
|
17
|
-
filters = { key: 'events' }
|
|
17
|
+
filters = { key: 'events' }.merge(params.slice(:start_datetime, :end_datetime))
|
|
18
18
|
|
|
19
19
|
get_all_helper('events', MODEL_CLASS, params, filters)
|
|
20
20
|
end
|
|
@@ -39,6 +39,7 @@ class EasyPost::Services::Event < EasyPost::Services::Service
|
|
|
39
39
|
|
|
40
40
|
params = { before_id: collection.events.last.id }
|
|
41
41
|
params[:page_size] = page_size unless page_size.nil?
|
|
42
|
+
params.merge!(collection[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).delete(:key)
|
|
42
43
|
|
|
43
44
|
all(params)
|
|
44
45
|
end
|
|
@@ -20,7 +20,7 @@ class EasyPost::Services::Insurance < EasyPost::Services::Service
|
|
|
20
20
|
|
|
21
21
|
# Retrieve all Insurance objects
|
|
22
22
|
def all(params = {})
|
|
23
|
-
filters = { key: 'insurances' }
|
|
23
|
+
filters = { key: 'insurances' }.merge(params.slice(:start_datetime, :end_datetime))
|
|
24
24
|
|
|
25
25
|
get_all_helper('insurances', MODEL_CLASS, params, filters)
|
|
26
26
|
end
|
|
@@ -31,6 +31,7 @@ class EasyPost::Services::Insurance < EasyPost::Services::Service
|
|
|
31
31
|
|
|
32
32
|
params = { before_id: collection.insurances.last.id }
|
|
33
33
|
params[:page_size] = page_size unless page_size.nil?
|
|
34
|
+
params.merge!(collection[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).delete(:key)
|
|
34
35
|
|
|
35
36
|
all(params)
|
|
36
37
|
end
|
|
@@ -20,7 +20,7 @@ class EasyPost::Services::Pickup < EasyPost::Services::Service
|
|
|
20
20
|
|
|
21
21
|
# Retrieve all Pickup objects
|
|
22
22
|
def all(params = {})
|
|
23
|
-
filters = { key: 'pickups' }
|
|
23
|
+
filters = { key: 'pickups' }.merge(params.slice(:start_datetime, :end_datetime))
|
|
24
24
|
|
|
25
25
|
get_all_helper('pickups', MODEL_CLASS, params, filters)
|
|
26
26
|
end
|
|
@@ -49,6 +49,7 @@ class EasyPost::Services::Pickup < EasyPost::Services::Service
|
|
|
49
49
|
|
|
50
50
|
params = { before_id: collection.pickups.last.id }
|
|
51
51
|
params[:page_size] = page_size unless page_size.nil?
|
|
52
|
+
params.merge!(collection[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).delete(:key)
|
|
52
53
|
|
|
53
54
|
all(params)
|
|
54
55
|
end
|
|
@@ -20,7 +20,7 @@ class EasyPost::Services::Refund < EasyPost::Services::Service
|
|
|
20
20
|
|
|
21
21
|
# Retrieve all Refund objects
|
|
22
22
|
def all(params = {})
|
|
23
|
-
filters = { key: 'refunds' }
|
|
23
|
+
filters = { key: 'refunds' }.merge(params.slice(:start_datetime, :end_datetime))
|
|
24
24
|
|
|
25
25
|
get_all_helper('refunds', MODEL_CLASS, params, filters)
|
|
26
26
|
end
|
|
@@ -31,6 +31,7 @@ class EasyPost::Services::Refund < EasyPost::Services::Service
|
|
|
31
31
|
|
|
32
32
|
params = { before_id: collection.refunds.last.id }
|
|
33
33
|
params[:page_size] = page_size unless page_size.nil?
|
|
34
|
+
params.merge!(collection[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).delete(:key)
|
|
34
35
|
|
|
35
36
|
all(params)
|
|
36
37
|
end
|
|
@@ -19,7 +19,7 @@ class EasyPost::Services::ScanForm < EasyPost::Services::Service
|
|
|
19
19
|
|
|
20
20
|
# Retrieve a list of ScanForms
|
|
21
21
|
def all(params = {})
|
|
22
|
-
filters = { key: 'scan_forms' }
|
|
22
|
+
filters = { key: 'scan_forms' }.merge(params.slice(:start_datetime, :end_datetime))
|
|
23
23
|
|
|
24
24
|
get_all_helper('scan_forms', MODEL_CLASS, params, filters)
|
|
25
25
|
end
|
|
@@ -30,6 +30,7 @@ class EasyPost::Services::ScanForm < EasyPost::Services::Service
|
|
|
30
30
|
|
|
31
31
|
params = { before_id: collection.scan_forms.last.id }
|
|
32
32
|
params[:page_size] = page_size unless page_size.nil?
|
|
33
|
+
params.merge!(collection[EasyPost::InternalUtilities::Constants::FILTERS_KEY]).delete(:key)
|
|
33
34
|
|
|
34
35
|
all(params)
|
|
35
36
|
end
|
|
@@ -26,7 +26,7 @@ class EasyPost::Services::Shipment < EasyPost::Services::Service
|
|
|
26
26
|
key: 'shipments',
|
|
27
27
|
purchased: params[:purchased],
|
|
28
28
|
include_children: params[:include_children],
|
|
29
|
-
}
|
|
29
|
+
}.merge(params.slice(:start_datetime, :end_datetime))
|
|
30
30
|
|
|
31
31
|
get_all_helper('shipments', MODEL_CLASS, params, filters)
|
|
32
32
|
end
|
|
@@ -24,7 +24,7 @@ class EasyPost::Services::Tracker < EasyPost::Services::Service
|
|
|
24
24
|
key: 'trackers',
|
|
25
25
|
tracking_code: params[:tracking_code],
|
|
26
26
|
carrier: params[:carrier],
|
|
27
|
-
}
|
|
27
|
+
}.merge(params.slice(:tracking_codes, :start_datetime, :end_datetime))
|
|
28
28
|
|
|
29
29
|
get_all_helper('trackers', MODEL_CLASS, params, filters)
|
|
30
30
|
end
|