Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Restore easypost functionality #112

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

rahulsingh321
Copy link

Issue - #111

luna-lightblade and others added 6 commits January 5, 2025 15:40
The EasyPost 5.0 gem changed the way the client object is instantiated,
requiring the creation of a client that holds the API key and routing
all easypost calls through that client.

This change updates the gem's config to make the API key part of the
configuration, and create a client on instantiation that can be used to
make calls to Easypost.
The way this method is invoked as changed substantially as part of the
changes to Easypost in 5.0. Instead of calling .buy on the shipment,
.buy is now called via the client - passing in the shipment and rate IDs
to purchase.
Solidus has changed their branches from master to main.
... otherwise rspec crashes during initialization because this required
configuration option is missing.
On current versions of FactoryBot, calling .modify crashes unless you
have already called .define and created the factory elsewhere.
…ntrib#111

The buy_easypost_rate method is being called twice, causing exception:
EasyPost::Errors::InvalidRequestError (Postage already exists for this
shipment.):
@fthobe
Copy link

fthobe commented Jan 7, 2025

Fixes #113 #108 #104

@fthobe
Copy link

fthobe commented Jan 7, 2025

Partial Fix to #111

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants