easypost 5.1.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/easypost/client.rb +1 -0
- data/lib/easypost/models/carrier_type.rb +5 -0
- data/lib/easypost/models.rb +1 -0
- data/lib/easypost/services/carrier_type.rb +10 -0
- data/lib/easypost/services.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 043543a947c3d50354a25d984eded8e68e37d9af9d7e2c6158176201426cafa1
|
4
|
+
data.tar.gz: 15ebc3486ec63ac23b0dfa6de82001537a72697863e1587fd9a1d909cde33a9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a004acaa7797b54fd7226e4321a47e9aaa11aa055ee39dd886456d547f3e9ec847046c77f2f548a3f510c9d992842c4896fcb5beb6ee060280098e87ee2ae40
|
7
|
+
data.tar.gz: 7b4f5377749b4d65278f744befef446cfcfe7372f171e64a6b42996b9c0c988b0a6370f949d2986698fc5484f66d4bc3cb879b0f714b04a25e9216c196d960ee
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.
|
1
|
+
5.2.0
|
data/lib/easypost/client.rb
CHANGED
@@ -41,6 +41,7 @@ class EasyPost::Client
|
|
41
41
|
EasyPost::Services::Billing,
|
42
42
|
EasyPost::Services::CarrierAccount,
|
43
43
|
EasyPost::Services::CarrierMetadata,
|
44
|
+
EasyPost::Services::CarrierType,
|
44
45
|
EasyPost::Services::CustomsInfo,
|
45
46
|
EasyPost::Services::CustomsItem,
|
46
47
|
EasyPost::Services::EndShipper,
|
data/lib/easypost/models.rb
CHANGED
@@ -10,6 +10,7 @@ require_relative 'models/batch'
|
|
10
10
|
require_relative 'models/brand'
|
11
11
|
require_relative 'models/carbon_offset'
|
12
12
|
require_relative 'models/carrier_account'
|
13
|
+
require_relative 'models/carrier_type'
|
13
14
|
require_relative 'models/customs_info'
|
14
15
|
require_relative 'models/customs_item'
|
15
16
|
require_relative 'models/end_shipper'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class EasyPost::Services::CarrierType < EasyPost::Services::Service
|
4
|
+
MODEL_CLASS = EasyPost::Models::CarrierType
|
5
|
+
|
6
|
+
# Retrieve all carrier types
|
7
|
+
def all
|
8
|
+
@client.make_request(:get, 'carrier_types', MODEL_CLASS)
|
9
|
+
end
|
10
|
+
end
|
data/lib/easypost/services.rb
CHANGED
@@ -13,6 +13,7 @@ require_relative 'services/beta_referral_customer'
|
|
13
13
|
require_relative 'services/billing'
|
14
14
|
require_relative 'services/carrier_account'
|
15
15
|
require_relative 'services/carrier_metadata'
|
16
|
+
require_relative 'services/carrier_type'
|
16
17
|
require_relative 'services/customs_info'
|
17
18
|
require_relative 'services/customs_item'
|
18
19
|
require_relative 'services/end_shipper'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easypost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- EasyPost Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: brakeman
|
@@ -276,6 +276,7 @@ files:
|
|
276
276
|
- lib/easypost/models/brand.rb
|
277
277
|
- lib/easypost/models/carbon_offset.rb
|
278
278
|
- lib/easypost/models/carrier_account.rb
|
279
|
+
- lib/easypost/models/carrier_type.rb
|
279
280
|
- lib/easypost/models/customs_info.rb
|
280
281
|
- lib/easypost/models/customs_item.rb
|
281
282
|
- lib/easypost/models/end_shipper.rb
|
@@ -309,6 +310,7 @@ files:
|
|
309
310
|
- lib/easypost/services/billing.rb
|
310
311
|
- lib/easypost/services/carrier_account.rb
|
311
312
|
- lib/easypost/services/carrier_metadata.rb
|
313
|
+
- lib/easypost/services/carrier_type.rb
|
312
314
|
- lib/easypost/services/customs_info.rb
|
313
315
|
- lib/easypost/services/customs_item.rb
|
314
316
|
- lib/easypost/services/end_shipper.rb
|