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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05dcc6dfaedaea7f8e6bbe28ab7bf510db31211cf664fcef76b42736929eeda6
4
- data.tar.gz: 4c70e841f3fc6c6542928cfed6bbb848f53200e80a77157cabcfd42438a72d3c
3
+ metadata.gz: 043543a947c3d50354a25d984eded8e68e37d9af9d7e2c6158176201426cafa1
4
+ data.tar.gz: 15ebc3486ec63ac23b0dfa6de82001537a72697863e1587fd9a1d909cde33a9a
5
5
  SHA512:
6
- metadata.gz: 85306184880d3bd91c1232c7e5a360f21755de6889f075aa0155b91b1a8601abda4951ff4f9ac4f879a7159da805b40093e1f2625274606773b4feb868ec2f0b
7
- data.tar.gz: 88d77f2ec9743baaecdeba5556ff95161aa1817384043132bfb8a1334bb03adab3699f4375d37d75625a86bb41161e082c3dc0d8d40459c32a040cf138021510
6
+ metadata.gz: 8a004acaa7797b54fd7226e4321a47e9aaa11aa055ee39dd886456d547f3e9ec847046c77f2f548a3f510c9d992842c4896fcb5beb6ee060280098e87ee2ae40
7
+ data.tar.gz: 7b4f5377749b4d65278f744befef446cfcfe7372f171e64a6b42996b9c0c988b0a6370f949d2986698fc5484f66d4bc3cb879b0f714b04a25e9216c196d960ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v5.2.0 (2023-09-14)
4
+
5
+ - Add `carrier_type` service + `carrier_type.all` method
6
+
3
7
  ## v5.1.1 (2023-09-05)
4
8
 
5
9
  - Fix endpoint for creating a FedEx Smartpost carrier account
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.1.1
1
+ 5.2.0
@@ -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,
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # A CarrierType details the valid fields for a CarrierAccount.
4
+ class EasyPost::Models::CarrierType < EasyPost::Models::EasyPostObject
5
+ end
@@ -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
@@ -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.1.1
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-05 00:00:00.000000000 Z
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