func Update(id string, params *stripe.RefundParams) (*stripe.Refund, error) {
	return getC().Update(id, params)
}
Update updates a refund's properties.
For more details see https://stripe.com/docs/api#update_refund.
package refund
import (
	stripe "github.com/stripe/stripe-go"
	"github.com/stripe/stripe-go/form"
)
const (
	RefundFraudulent          stripe.RefundReason = "fraudulent"
	RefundDuplicate           stripe.RefundReason = "duplicate"
	RefundRequestedByCustomer stripe.RefundReason = "requested_by_customer"
)
type Client struct {
	B   stripe.Backend
	Key string
}
func New(params *stripe.RefundParams) (*stripe.Refund, error) {
	return getC().New(params)
}
func (c Client) New(params *stripe.RefundParams) (*stripe.Refund, error) {
	body := &form.Values{}
	form.AppendTo(body, params)
	refund := &stripe.Refund{}
	err := c.B.Call("POST", "/refunds", c.Key, body, &params.Params, refund)
	return refund, err
}
func Get(id string, params *stripe.RefundParams) (*stripe.Refund, error) {
	return getC().Get(id, params)
}
func (c Client) Get(id string, params *stripe.RefundParams) (*stripe.Refund, error) {
	var body *form.Values
	var commonParams *stripe.Params
	if params != nil {
		commonParams = &params.Params
		body = &form.Values{}
		form.AppendTo(body, params)
	}
	refund := &stripe.Refund{}
	err := c.B.Call("GET", "/refunds/"+id, c.Key, body, commonParams, refund)
	return refund, err
}