andrew-waters/gomo

View on GitHub
entities/gateway_stripe.go

Summary

Maintainability
A
0 mins
Test Coverage
package entities

// StripeGateway is a Moltin StripeGateway - https://docs.moltin.com/payments/gateways/configure-stripe
type StripeGateway struct {
    Type    string `json:"type"`
    Name    string `json:"name"`
    Slug    string `json:"slug"`
    Enabled bool   `json:"enabled"`
    Login   string `json:"login"`
}

// SetType sets the resource type on the struct
func (s *StripeGateway) SetType() {
    s.Type = gatewayType
}