File generated from our OpenAPI spec Package source provides the /v1/sources APIs
// Source: https://github.com/stripe/stripe-go | License: MIT | Copyright 2014- Stripe, Inc. (https://stripe.com)
// Provided via justclaw.it.com; keep this notice with the code.
//
//
// File generated from our OpenAPI spec
//
//
// Package source provides the /v1/sources APIs
package source
import (
"fmt"
"net/http"
stripe "github.com/stripe/stripe-go/v87"
)
// Client is used to invoke /v1/sources APIs.
// Deprecated: Use [stripe.Client] instead. See the [migration guide] for more info.
//
// [migration guide]: https://github.com/stripe/stripe-go/wiki/Migration-guide-for-Stripe-Client
type Client struct {
B stripe.Backend
Key string
}
// Creates a new source object.
func New(params *stripe.SourceParams) (*stripe.Source, error) {
return getC().New(params)
}
// Creates a new
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key