easypost 7.2.0 → 7.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a08cbfad9326fdf0e2071f10a725b1608c055169442c01623ef5518eb985a9b4
4
- data.tar.gz: 5bfd2b54331d581c091cbff1d22ba770feaa2f30ac55988a295844b74e04252e
3
+ metadata.gz: 6d03aa8df92407154765da8e5708880554304b34e4ca885f7e42f91e05bd96fd
4
+ data.tar.gz: 686be1d74fe57d0fc7218bf656f406d718eb664b8012b72859111f5abf3cf1f7
5
5
  SHA512:
6
- metadata.gz: e919e31aa3ad7c7324c2b6eb7980e3a8b449a289fb19f535d7d7f109f3e647dfbcdfc8e9bebdc1ff87ea0501a5c9fe6455220425475e5b90c0d1f39279f2e827
7
- data.tar.gz: dcbc7720b5b394cd5502694f9c09e3938cbd100f8e76582a26a4bc8edd11302d000a378d6295a7081828d8db65c76cca55a150b8c9c9721c60b5f3a901eea61b
6
+ metadata.gz: a184a94ff89599b6a00a36707d76d1077652c0b5c5bec33029831c1b7f9da725477f4d6a025fbb6b259b78530ab1294d666a94d961e1897d656486615fe9d8a0
7
+ data.tar.gz: 24490856f9ac0c04bcd68bed3025c9c1fa7149f5a23964d00a6d124f727c722332a6b67f4cf48bcf2b79acbfc9fe65de16dbef5f3fd5b9360c0587f1bd9cffe8
@@ -13,11 +13,11 @@ jobs:
13
13
  matrix:
14
14
  rubyversion: ['2.7', '3.0', '3.1', '3.2', '3.3', '3.4']
15
15
  steps:
16
- - uses: actions/checkout@v4
16
+ - uses: actions/checkout@v5
17
17
  - uses: ruby/setup-ruby@v1
18
18
  with:
19
19
  ruby-version: ${{ matrix.rubyversion }}
20
- rubygems: '3.3.0'
20
+ rubygems: '3.4.0'
21
21
  bundler-cache: true
22
22
  - name: Install Dependencies
23
23
  run: make install
@@ -32,7 +32,7 @@ jobs:
32
32
  lint:
33
33
  runs-on: ubuntu-latest
34
34
  steps:
35
- - uses: actions/checkout@v4
35
+ - uses: actions/checkout@v5
36
36
  - uses: ruby/setup-ruby@v1
37
37
  with:
38
38
  ruby-version: '3.4'
@@ -48,7 +48,7 @@ jobs:
48
48
  if: github.ref == 'refs/heads/master'
49
49
  runs-on: ubuntu-latest
50
50
  steps:
51
- - uses: actions/checkout@v4
51
+ - uses: actions/checkout@v5
52
52
  - uses: ruby/setup-ruby@v1
53
53
  with:
54
54
  ruby-version: '3.4'
@@ -9,7 +9,7 @@ jobs:
9
9
  release:
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
- - uses: actions/checkout@v4
12
+ - uses: actions/checkout@v5
13
13
  - uses: ruby/setup-ruby@v1
14
14
  with:
15
15
  ruby-version: '3.4'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v7.3.0 (2025-11-24)
4
+
5
+ - Adds the following functions:
6
+ - `embeddable.create_session`
7
+ - `customer_portal.create_account_link`
8
+
3
9
  ## v7.2.0 (2025-11-10)
4
10
 
5
11
  - Adds support for `UspsShipAccount`
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.2.0
1
+ 7.3.0
@@ -43,8 +43,10 @@ class EasyPost::Client
43
43
  EasyPost::Services::CarrierMetadata,
44
44
  EasyPost::Services::CarrierType,
45
45
  EasyPost::Services::Claim,
46
+ EasyPost::Services::CustomerPortal,
46
47
  EasyPost::Services::CustomsInfo,
47
48
  EasyPost::Services::CustomsItem,
49
+ EasyPost::Services::Embeddable,
48
50
  EasyPost::Services::EndShipper,
49
51
  EasyPost::Services::Event,
50
52
  EasyPost::Services::Insurance,
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class EasyPost::Services::CustomerPortal < EasyPost::Services::Service
4
+ # Create a Portal Session
5
+ def create_account_link(params = {})
6
+ response = @client.make_request(:post, 'customer_portal/account_link', params)
7
+
8
+ EasyPost::InternalUtilities::Json.convert_json_to_object(response)
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class EasyPost::Services::Embeddable < EasyPost::Services::Service
4
+ # Create an Embeddable Session
5
+ def create_session(params = {})
6
+ response = @client.make_request(:post, 'embeddables/session', params)
7
+
8
+ EasyPost::InternalUtilities::Json.convert_json_to_object(response)
9
+ end
10
+ end
@@ -15,8 +15,10 @@ require_relative 'services/carrier_account'
15
15
  require_relative 'services/carrier_metadata'
16
16
  require_relative 'services/carrier_type'
17
17
  require_relative 'services/claim'
18
+ require_relative 'services/customer_portal'
18
19
  require_relative 'services/customs_info'
19
20
  require_relative 'services/customs_item'
21
+ require_relative 'services/embeddable'
20
22
  require_relative 'services/end_shipper'
21
23
  require_relative 'services/event'
22
24
  require_relative 'services/insurance'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easypost
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.0
4
+ version: 7.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - EasyPost Developers
@@ -336,8 +336,10 @@ files:
336
336
  - lib/easypost/services/carrier_metadata.rb
337
337
  - lib/easypost/services/carrier_type.rb
338
338
  - lib/easypost/services/claim.rb
339
+ - lib/easypost/services/customer_portal.rb
339
340
  - lib/easypost/services/customs_info.rb
340
341
  - lib/easypost/services/customs_item.rb
342
+ - lib/easypost/services/embeddable.rb
341
343
  - lib/easypost/services/end_shipper.rb
342
344
  - lib/easypost/services/event.rb
343
345
  - lib/easypost/services/insurance.rb