action

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiKeyName = "api_key"
)

Functions

func NewStripeProvider

func NewStripeProvider() sbsdk.Provider

Types

type CreateCustomerAction

type CreateCustomerAction struct {
	Provider *StripeProvider
}

func (CreateCustomerAction) ConfigurationSchema

func (f CreateCustomerAction) ConfigurationSchema() (sbsdk.ObjectSchema, error)

func (CreateCustomerAction) Evaluate

func (f CreateCustomerAction) Evaluate(_ cty.Value, input cty.Value) (cty.Value, error)

func (CreateCustomerAction) OutputType

func (f CreateCustomerAction) OutputType() (sbsdk.Type, error)

type DeleteCustomerAction

type DeleteCustomerAction struct {
	Provider *StripeProvider
}

func (DeleteCustomerAction) ConfigurationSchema

func (f DeleteCustomerAction) ConfigurationSchema() (sbsdk.ObjectSchema, error)

func (DeleteCustomerAction) Evaluate

func (f DeleteCustomerAction) Evaluate(_ cty.Value, input cty.Value) (cty.Value, error)

func (DeleteCustomerAction) OutputType

func (f DeleteCustomerAction) OutputType() (sbsdk.Type, error)

type GetCustomerAction

type GetCustomerAction struct {
	Provider *StripeProvider
}

func (GetCustomerAction) ConfigurationSchema

func (f GetCustomerAction) ConfigurationSchema() (sbsdk.ObjectSchema, error)

func (GetCustomerAction) Evaluate

func (f GetCustomerAction) Evaluate(_ cty.Value, input cty.Value) (cty.Value, error)

func (GetCustomerAction) OutputType

func (f GetCustomerAction) OutputType() (sbsdk.Type, error)

type StripeProvider

type StripeProvider struct {
	ApiKey   string `cty:"api_key"`
	Actions  map[string]sbsdk.Action
	Triggers map[string]sbsdk.Trigger
}

func (*StripeProvider) ActionConfigurationSchema

func (p *StripeProvider) ActionConfigurationSchema(name string) (sbsdk.ObjectSchema, error)

func (*StripeProvider) ActionEvaluate

func (p *StripeProvider) ActionEvaluate(name string, context []byte, input []byte) ([]byte, error)

func (*StripeProvider) ActionNames

func (p *StripeProvider) ActionNames() ([]string, error)

func (*StripeProvider) ActionOutputType

func (p *StripeProvider) ActionOutputType(name string) (sbsdk.Type, error)

func (*StripeProvider) Init

func (p *StripeProvider) Init(configRaw []byte) error

func (*StripeProvider) InitSchema

func (p *StripeProvider) InitSchema() (sbsdk.ObjectSchema, error)

type UpdateCustomerAction

type UpdateCustomerAction struct {
	Provider *StripeProvider
}

func (UpdateCustomerAction) ConfigurationSchema

func (f UpdateCustomerAction) ConfigurationSchema() (sbsdk.ObjectSchema, error)

func (UpdateCustomerAction) Evaluate

func (f UpdateCustomerAction) Evaluate(_ cty.Value, input cty.Value) (cty.Value, error)

func (UpdateCustomerAction) OutputType

func (f UpdateCustomerAction) OutputType() (sbsdk.Type, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL