ripper

package module
v0.0.0-...-14f16db Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

ripper

ios/안드로이드 환불 감지

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNil = errors.New("ERR_CONFIG_NIL")
)

Functions

This section is empty.

Types

type AppStoreHandler

type AppStoreHandler func(voided *AppStoreVoidedPurchasesListResponse, err error) error

type AppStoreLatestReceiptInfo

type AppStoreLatestReceiptInfo struct {
	OriginalTransactionID string `json:"original_transaction_id"`
	ProductID             string `json:"product_id"`
	Reason                string `json:"cancellation_reason"` // 1: refund requested by user
	CancellationDateMS    string `json:"cancellation_ms"`
	InAppOwnershipType    string `json:"in_app_ownership_type"`
}

type AppStoreNotiType

type AppStoreNotiType string

type AppStoreVoidedPurchasesListResponse

type AppStoreVoidedPurchasesListResponse struct {
	NotificationType  AppStoreNotiType          `json:"notification_type"`
	BundleID          string                    `json:"bid"`
	Password          string                    `json:"password"`
	LatestReceiptInfo AppStoreLatestReceiptInfo `json:"latest_receipt_info"`
}

type Platform

type Platform string

type PlayStoreConfiguration

type PlayStoreConfiguration struct {
	PackageName                  string
	GCloudServiceAccountFilePath string
}

func (*PlayStoreConfiguration) Auth

func (c *PlayStoreConfiguration) Auth() string

func (*PlayStoreConfiguration) ID

type PlayStoreHandler

type PlayStoreHandler func(voided *PlayStoreVoidedPurchasesListResponse, err error) error

type PlayStoreVoidedPurchasesListResponse

type PlayStoreVoidedPurchasesListResponse androidpublisher.VoidedPurchasesListResponse

type Receiver

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

func NewReceiver

func NewReceiver(ctx context.Context, config configuration) *Receiver

func (*Receiver) ReceiveAppStore

func (sub *Receiver) ReceiveAppStore(handler AppStoreHandler, addr string)

func (*Receiver) ReceivePlayStore

func (sub *Receiver) ReceivePlayStore(handler PlayStoreHandler, interval time.Duration, opts ...opt.Option) error

NOTE: this function serves all voided purchases all the time. you need to check whether the order duplicated.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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