-
Notifications
You must be signed in to change notification settings - Fork 461
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
Add support for CreditNoteLineItem
#1013
Conversation
271fa5f
to
9de0209
Compare
CreditNoteLineItem
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.
Added a few of my naive questions :)
TaxRates []*TaxRate `json:"tax_rates"` | ||
Type CreditNoteLineItemType `json:"type"` | ||
UnitAmount int64 `json:"unit_amount"` | ||
UnitAmountDecimal float64 `json:"unit_amount_decimal,string"` |
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.
not familiar with this string
thing at the end so pointing it out. guessing that's how we specify the type of the json field and that'll be converted to float64.
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.
Yes, that's mostly cargo culted from other resources
creditnote.go
Outdated
Amount *int64 `form:"amount"` | ||
CreditAmount *int64 `form:"credit_amount"` | ||
Invoice *string `form:"invoice"` | ||
Memo *string `form:"memo"` |
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.
Should this one have Lines
too?
9de0209
to
56cbcb0
Compare
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.
Cool. lgtm
r? @ob-stripe
cc @stripe/api-libraries