INNER CODE UNIT · Go

Provider

franckverrot/terraform-provider-stripe · stripe/provider.go:11

func Provider() terraform.ResourceProvider {
	return &schema.Provider{
		Schema: map[string]*schema.Schema{
			"api_token": {
				Type:        schema.TypeString,
				Optional:    true,
				DefaultFunc: schema.EnvDefaultFunc("STRIPE_API_TOKEN", nil),
			},
		},

		ResourcesMap: map[string]*schema.Resource{
			"stripe_coupon":           resourceStripeCoupon(),
			"stripe_plan":             resourceStripePlan(),
			"stripe_price":            resourceStripePrice(),
			"stripe_product":          resourceStripeProduct(),
			"stripe_tax_rate":         resourceStripeTaxRate(),
			"stripe_webhook_endpoint": resourceStripeWebhookEndpoint(),
			"stripe_customer_portal":  resourceCustomerPortal(),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…