paddle

package
v0.0.0-...-acda5ee Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaddleResponse

type PaddleResponse struct {
	IsSuccess bool            `json:"success"`
	Response  json.RawMessage `json:"response"`
	Error     struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	}
}

type PaddleSubscriptionItem

type PaddleSubscriptionItem struct {
	SignupDate         string `json:"signup_date"`
	UpdateURL          string `json:"update_url"`
	CancelURL          string `json:"cancel_url"`
	PaymentInformation struct {
		PaymentMethod  string `json:"payment_method"`
		CardType       string `json:"card_type"`
		LastFourDigits string `json:"last_four_digits"`
		ExpiryDate     string `json:"expiry_date"`
	} `json:"payment_information"`
	LastPayment struct {
		Amount   float64 `json:"amount"`
		Currency string  `json:"currency"`
		Date     string  `json:"date"`
	} `json:"last_payment"`
	NextPayment struct {
		Amount   float64 `json:"amount"`
		Currency string  `json:"currency"`
		Date     string  `json:"date"`
	} `json:"next_payment"`
}

type Service

type Service struct{}

func (Service) Category

func (s Service) Category() string

func (Service) Enabled

func (s Service) Enabled() bool

func (Service) Init

func (s Service) Init()

func (Service) Name

func (s Service) Name() string

Jump to

Keyboard shortcuts

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