Skip to content

Commit

Permalink
Merge pull request #1347 from stripe/yejia/go-codegen-2
Browse files Browse the repository at this point in the history
Make reversal.go codegen-able
  • Loading branch information
yejia-stripe authored Oct 5, 2021
2 parents 013e37f + 5fa8e0a commit a0c8f03
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion reversal.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
//
//
// File generated from our OpenAPI spec
//
//

package stripe

import "encoding/json"

// ReversalParams is the set of parameters that can be used when reversing a transfer.
type ReversalParams struct {
Params `form:"*"`
Transfer *string `form:"-"` // Included in URL
Amount *int64 `form:"amount"`
Description *string `form:"description"`
RefundApplicationFee *bool `form:"refund_application_fee"`
Transfer *string `form:"-"` // Included in URL
}

// ReversalListParams is the set of parameters that can be used when listing reversals.
Expand All @@ -28,6 +34,7 @@ type Reversal struct {
DestinationPaymentRefund *Refund `json:"destination_payment_refund"`
ID string `json:"id"`
Metadata map[string]string `json:"metadata"`
Object string `json:"object"`
SourceRefund *Refund `json:"source_refund"`
Transfer string `json:"transfer"`
}
Expand Down

0 comments on commit a0c8f03

Please sign in to comment.