-
Notifications
You must be signed in to change notification settings - Fork 448
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
codegen: balancetransaction.go #1287
Conversation
ID string `json:"id"` | ||
IssuingAuthorization *IssuingAuthorization `json:"-"` | ||
IssuingDispute *IssuingDispute `json:"-"` | ||
IssuingTransaction *IssuingAuthorization `json:"-"` |
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.
Bug to fix on next major.
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.
yeah bad copy-paste 😱
BalanceTransactionSourceTypeIssuingTransaction BalanceTransactionSourceType = "issuing.transaction" | ||
BalanceTransactionSourceTypePayout BalanceTransactionSourceType = "payout" | ||
BalanceTransactionSourceTypeRefund BalanceTransactionSourceType = "refund" | ||
BalanceTransactionSourceTypeReversal BalanceTransactionSourceType = "reversal" |
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.
I wonder if it's an API version thingy I missed at some point
@richardm-stripe While the 4 new API resources make sense/exist, I think they are quite "special" and they are not in other client libraries (that I know of). Should we just suppress them for now. Those are pretty obscure edge-cases on |
BalanceTransactionSourceTypeIssuingTransaction BalanceTransactionSourceType = "issuing.transaction" | ||
BalanceTransactionSourceTypePayout BalanceTransactionSourceType = "payout" | ||
BalanceTransactionSourceTypeRefund BalanceTransactionSourceType = "refund" | ||
BalanceTransactionSourceTypeReversal BalanceTransactionSourceType = "reversal" |
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.
To fix on next major, should be transfer_reversal
.
@remi-stripe |
bbd7580
to
20e41ec
Compare
20e41ec
to
e92abe5
Compare
r? @stripe/api-library-reviewers
cc @stripe/api-libraries
Changelog
BalanceTransactionType
enum:advance
,advance_funding
,refund_failure
,reserve_transaction
,reserved_funds
,stripe_fx_fee
,tax_fee
,topup
,topup_reversal
,transfer_cancel
,transfer_failure
.BalanceTransactionSource
:ConnectCollectionTransfer
,FeeRefund
,PlatformTaxFee
,ReserveTransaction
,TaxDeductedAtSource
,Topup
Note: codegen revealed two discrepancies
reversal
vs.transfer_reversal
andIssuingAuthorization
vsIssuingTransaction
that I am preserving with overrides that will be removed on the next major.