Skip to content

Add Patch::Estimate methods for GLEC-certified shipping estimates #68

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

Merged
merged 5 commits into from
Jul 28, 2022

Conversation

holtbp
Copy link
Contributor

@holtbp holtbp commented Jul 22, 2022

What

  • Adds Patch::Estimate.create_air_shipping_estimate method
  • Adds Patch::Estimate.create_rail_shipping_estimate method
  • Adds Patch::Estimate.create_road_shipping_estimate method
  • Adds Patch::Estimate.create_sea_shipping_estimate method

Why

To provide GLEC-certified shipping estimates!

SDK Release Checklist

  • Have you added an integration test for the changes?
  • Have you built the gem locally and made queries against it successfully?
  • Did you update the changelog?
  • Did you bump the package version in the code generator?
  • If endpoints were removed, did you manually remove the corresponding files? (this should be rare)
  • For breaking changes, did you plan for the release of the new SDK versions and deploy the API to production?

@holtbp holtbp force-pushed the bh-shipping-estimates branch from 96aa406 to 6e4fecd Compare July 22, 2022 15:20
@holtbp holtbp requested review from a team and boconnell2 and removed request for a team and boconnell2 July 22, 2022 15:27
@holtbp holtbp closed this Jul 22, 2022
@holtbp holtbp reopened this Jul 22, 2022
@holtbp holtbp requested a review from a team July 22, 2022 16:50
@@ -232,7 +232,7 @@ def valid?
return false if !@mass_g.nil? && @mass_g > 100000000000
return false if !@mass_g.nil? && @mass_g < 0
return false if !@total_price_cents_usd.nil? && @total_price_cents_usd < 1
state_validator = EnumAttributeValidator.new('String', ["draft", "placed"])
state_validator = EnumAttributeValidator.new('String', ["draft", "reserved", "placed"])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joustrich Is introducing this okay?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On behalf of @joustrich, I'll say yes 😁

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoot sorry I totally missed this. Yes we do want this in there!

@pcothenet
Copy link
Contributor

@holtbp don't forget a PR for your changes to https://github.com/patch-technology/client-code-generation too!

@holtbp holtbp merged commit cce7fbb into main Jul 28, 2022
@holtbp holtbp deleted the bh-shipping-estimates branch July 28, 2022 00:51
Comment on lines -169 to +171
def place_order(id, place_order_request = {}, opts = {})
_place_order_request = Patch::PlaceOrderRequest.new(place_order_request)
data, _status_code, _headers = place_order_with_http_info(id, opts.merge!({place_order_request: place_order_request}))
def place_order(order_id, opts = {})
place_order_request = Patch::PlaceOrderRequest.new(opts)
opts[:place_order_request] = place_order_request
data, _status_code, _headers = place_order_with_http_info(order_id, opts)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@holtbp finding out after the fact, but it looks like it's a change you generated manually, is it?

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.

4 participants