Skip to content

Add more payment information in the shipments API response#442

Merged
jordan-brough merged 2 commits into
solidusio:masterfrom
richardnuno:more-api-payment-info
Oct 15, 2015
Merged

Add more payment information in the shipments API response#442
jordan-brough merged 2 commits into
solidusio:masterfrom
richardnuno:more-api-payment-info

Conversation

@richardnuno
Copy link
Copy Markdown
Contributor

Adds some information about the payment’s source in the shipments API response.

This allows us to display more details to the customer about the payments associated with the shipment’s order.

Adds some information about the payment’s source in the shipments API response.

This allows us to display more details to the customer about the payments associated with the shipment’s order.
@jordan-brough
Copy link
Copy Markdown
Contributor

nice 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about switching this to:

if s.respond_to?(:cc_type)

That will allow other objects which implement cc_type to use this. Probably not super helpful with this attribute, but it's a good pattern to follow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gmacdougall Sounds good, added another commit to address this and hopefully make adding more attributes in the future a little easier.

@gmacdougall
Copy link
Copy Markdown
Member

👍

@richardnuno
Copy link
Copy Markdown
Contributor Author

@jordan-brough good to merge?

@jordan-brough
Copy link
Copy Markdown
Contributor

👍

jordan-brough added a commit that referenced this pull request Oct 15, 2015
Add more payment information in the shipments API response
@jordan-brough jordan-brough merged commit ba65818 into solidusio:master Oct 15, 2015
@richardnuno richardnuno deleted the more-api-payment-info branch October 15, 2015 13:12
forkata pushed a commit to SuperGoodSoft/solidus that referenced this pull request May 21, 2026
Improve CI reliability and get builds passing
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