-
Notifications
You must be signed in to change notification settings - Fork 2
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
Conversation
96aa406
to
6e4fecd
Compare
@@ -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"]) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 😁
There was a problem hiding this comment.
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!
@holtbp don't forget a PR for your changes to https://github.com/patch-technology/client-code-generation too! |
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) |
There was a problem hiding this comment.
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?
What
Patch::Estimate.create_air_shipping_estimate
methodPatch::Estimate.create_rail_shipping_estimate
methodPatch::Estimate.create_road_shipping_estimate
methodPatch::Estimate.create_sea_shipping_estimate
methodWhy
To provide GLEC-certified shipping estimates!
SDK Release Checklist