Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ByDate ¶
type ByDate []*Order
ByDate implements sort.Interface for []Order based on the CreatedAt field.
type Order ¶
type Order struct { ID string Status string Total string CreatedAt time.Time Deliveries []Delivery }
Order is the complete transaction.
type OrderService ¶
type OrderService struct {
// contains filtered or unexported fields
}
OrderService implements business logic for exporting orders from Instacart.
func NewOrderService ¶
func NewOrderService(client *instacart.Client) *OrderService
NewOrderService creates a new OrderService.
func (*OrderService) GetOrderPages ¶
func (o *OrderService) GetOrderPages(start, end int) ([]*Order, error)
GetOrderPages retrieves pages of orders starting with start and ending with end, inclusive. Results are returned in reverse chronological order.
Click to show internal directories.
Click to hide internal directories.