checkout

package
v0.0.0-...-1d4cb17 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonCheckout

type AmazonCheckout struct {
	Id              string
	UserAgent       string
	SessionId       string
	Cookies         string
	Proxy           string
	RetryDelay      int
	MaxRetries      int
	Sku             string
	OfferId         string
	OrderNum        string
	LoggingDisabled bool
	Active          bool
	Mimicer         mimic.ClientSpec
}

func (*AmazonCheckout) AmazonAddToCartV1

func (checkout *AmazonCheckout) AmazonAddToCartV1(client *http.Client) (bool, string, string, bool, error)

func (*AmazonCheckout) AmazonCheckoutTask

func (checkout *AmazonCheckout) AmazonCheckoutTask() (bool, bool, error)

func (*AmazonCheckout) AmazonPlaceOrderV1

func (checkout *AmazonCheckout) AmazonPlaceOrderV1(client *http.Client, purchaseId string, csrfToken string) (bool, string, bool, error)

func (*AmazonCheckout) Cancel

func (checkout *AmazonCheckout) Cancel()

type BestBuyCheckout

type BestBuyCheckout struct {
	UserAgent        string
	CartId           string
	Cookies          string
	Proxy            string
	RetryDelay       int
	MaxRetries       int
	Sku              string
	OrderNum         string
	BestBuyShipping  BestBuyShipping
	BestBuyOrderData BestBuyOrderData
}

func (*BestBuyCheckout) BestBuyCheckoutTask

func (checkout *BestBuyCheckout) BestBuyCheckoutTask() (bool, bool, error)

type BestBuyOrderData

type BestBuyOrderData struct {
	OrderId   string
	ItemId    string
	PaymentId string
}

type BestBuyShipping

type BestBuyShipping struct {
	Phone         string
	Email         string
	FirstName     string
	MiddleInitial string
	LastName      string
	Addressln1    string
	Addressln2    string
	State         string
	City          string
	ZipCode       string
}

Jump to

Keyboard shortcuts

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