func Update(id string, params *stripe.ChargeParams) (*stripe.Charge, error) {
	return getC().Update(id, params)
}
Update updates a charge's properties.
For more details see https://stripe.com/docs/api#update_charge.
package charge
import (
	"fmt"
	stripe "github.com/stripe/stripe-go"
	"github.com/stripe/stripe-go/form"
)
const (
	ReportFraudulent stripe.FraudReport = "fraudulent"
	ReportSafe       stripe.FraudReport = "safe"
)
type Client struct {
	B   stripe.Backend
	Key string
}
func New(params *stripe.ChargeParams) (*stripe.Charge, error) {
	return getC().New(params)
}
func (c Client) New(params *stripe.ChargeParams) (*stripe.Charge, error) {
	body := &form.Values{}
	form.AppendTo(body, params)
	charge := &stripe.Charge{}
	err := c.B.Call("POST", "/charges", c.Key, body, &params.Params, charge)
	return charge, err
}
func Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error) {
	return getC().Get(id, params)
}
func (c Client) Get(id string, params *stripe.ChargeParams) (*stripe.Charge, error) {
	var body *form.Values
	var commonParams *stripe.Params
	if params != nil {
		commonParams = &params.Params
		body = &form.Values{}
		form.AppendTo(body, params)
	}
	charge := &stripe.Charge{}
	err := c.B.Call("GET", "/charges/"+id, c.Key, body, commonParams, charge)
	return charge, err
}