export

package
v1.37.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(c *gin.Context)

Types

type CDATA

type CDATA string

func (CDATA) MarshalXML

func (c CDATA) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Customer

type Customer struct {
	CustomerCode CDATA
	BillTo       struct {
		Name    CDATA
		Company CDATA
		Phone   CDATA
		Email   CDATA
	}
	ShipTo struct {
		Name       CDATA
		Company    CDATA
		Address1   CDATA
		Address2   CDATA
		City       CDATA
		State      CDATA
		PostalCode CDATA
		Country    CDATA
		Phone      CDATA
	}
}

type Date

type Date time.Time

func (Date) MarshalXML

func (d Date) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Item

type Item struct {
	XMLName xml.Name `xml:"Item"`

	SKU         CDATA
	Name        CDATA
	ImageUrl    CDATA
	Weight      string
	WeightUnits string
	Quantity    int
	UnitPrice   string
	Location    CDATA

	Options struct {
		Options []Option
	}
}

type Option

type Option struct {
	XMLName xml.Name `xml:"Option"`

	Name   CDATA
	Value  CDATA
	Weight string
}

type Order

type Order struct {
	XMLName        xml.Name `xml:"Order"`
	OrderID        CDATA
	OrderNumber    int
	OrderDate      Date
	OrderStatus    CDATA
	LastModified   Date
	ShippingMethod CDATA
	PaymentMethod  CDATA
	OrderTotal     string
	TaxAmount      string
	ShippingAmount string
	CustomerNotes  CDATA
	InternalNotes  CDATA

	// Need to nest items slice so we can have a proper XML node here
	Items struct {
		Items []Item
	}

	Customer *Customer
	// Order Id
	CustomField1 string
	// Payment Ids
	CustomField2 string
	// User Id
	CustomField3 string
}

type Response

type Response struct {
	XMLName xml.Name `xml:"Orders"`
	Orders  []*Order
	Pages   int `xml:"pages,attr"`
}

Jump to

Keyboard shortcuts

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