wallos

package
v0.28.11 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID          = "wallos"
	EndpointKey = "endpoint"
	ApikeyKey   = "api_key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMonthlyCostResponse added in v0.24.1

type GetMonthlyCostResponse struct {
	Success              bool     `json:"success"`
	Title                string   `json:"title"`
	MonthlyCost          string   `json:"monthly_cost"`
	LocalizedMonthlyCost string   `json:"localized_monthly_cost"`
	CurrencyCode         string   `json:"currency_code"`
	CurrencySymbol       string   `json:"currency_symbol"`
	Notes                []string `json:"notes"`
}

type GetSubscriptionsResponse added in v0.24.1

type GetSubscriptionsResponse struct {
	Success       bool           `json:"success"`
	Title         string         `json:"title"`
	Subscriptions []Subscription `json:"subscriptions"`
	Notes         []interface{}  `json:"notes"`
}

type Subscription added in v0.24.1

type Subscription struct {
	Id                        int         `json:"id"`
	Name                      string      `json:"name"`
	Price                     float64     `json:"price"`
	CurrencyId                int         `json:"currency_id"`
	StartDate                 string      `json:"start_date"`
	NextPayment               string      `json:"next_payment"`
	Cycle                     int         `json:"cycle"`
	Frequency                 int         `json:"frequency"`
	AutoRenew                 int         `json:"auto_renew"`
	Notes                     string      `json:"notes"`
	PaymentMethodId           int         `json:"payment_method_id"`
	PayerUserId               int         `json:"payer_user_id"`
	CategoryId                int         `json:"category_id"`
	Notify                    int         `json:"notify"`
	Url                       string      `json:"url"`
	Inactive                  int         `json:"inactive"`
	NotifyDaysBefore          *int        `json:"notify_days_before"`
	UserId                    int         `json:"user_id"`
	CancelationDate           interface{} `json:"cancelation_date"`
	CancellationDate          string      `json:"cancellation_date"`
	CategoryName              string      `json:"category_name"`
	PayerUserName             string      `json:"payer_user_name"`
	PaymentMethodName         string      `json:"payment_method_name"`
	ReplacementSubscriptionId int         `json:"replacement_subscription_id,omitempty"`
}

type Wallos

type Wallos struct {
	// contains filtered or unexported fields
}

func GetClient added in v0.28.11

func GetClient() *Wallos

func NewWallos

func NewWallos(endpoint string, apiKey string) *Wallos

func (*Wallos) GetMonthlyCost added in v0.24.1

func (i *Wallos) GetMonthlyCost(ctx context.Context, year, month int32) (*GetMonthlyCostResponse, error)

GetMonthlyCost Get monthly cost Document: https://github.com/ellite/Wallos/blob/main/api/subscriptions/get_monthly_cost.php

func (*Wallos) GetSubscriptions

func (i *Wallos) GetSubscriptions(ctx context.Context) (*GetSubscriptionsResponse, error)

GetSubscriptions Get wallos subscriptions Document: https://github.com/ellite/Wallos/blob/main/api/subscriptions/get_subscriptions.php

Jump to

Keyboard shortcuts

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