customers

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	API checkout.HTTPClient
}

Client ...

func NewClient

func NewClient(config checkout.Config) *Client

NewClient ...

func (*Client) Update

func (c *Client) Update(customerID string, request *Request) (*Response, error)

Update customer details

type Customer

type Customer struct {
	Email   string `json:"email,omitempty"`
	Name    string `json:"name,omitempty"`
	Default string `json:"default,omitempty"`
}

Customer -

type Request

type Request struct {
	*Customer
}

Request -

type Response

type Response struct {
	StatusResponse *checkout.StatusResponse `json:"api_response,omitempty"`
}

Response -

Jump to

Keyboard shortcuts

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