Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct{}
Generator generates idempotency keys
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator creates a new idempotency key generator
func (*Generator) GenerateKey ¶
GenerateKey generates an idempotency key from a scope and parameters
type Scope ¶
type Scope string
Scope represents the scope of idempotency
const ( ScopeSubscriptionInvoice Scope = "subscription_invoice" ScopeOneOffInvoice Scope = "one_off_invoice" // Credit Grant ScopeCreditGrant Scope = "credit_grant" // Payment ScopePayment Scope = "payment" // Credit note ScopeCreditNote Scope = "credit_note" // Tax Application ScopeTaxApplication Scope = "tax_application" // Wallet Top Up ScopeWalletTopUp Scope = "wallet_top_up" )
Click to show internal directories.
Click to hide internal directories.