quotedcharge

package
v2.27.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addon

type Addon struct {
	Id                 string             `json:"id"`
	Quantity           int32              `json:"quantity"`
	UnitPrice          int32              `json:"unit_price"`
	QuantityInDecimal  string             `json:"quantity_in_decimal"`
	UnitPriceInDecimal string             `json:"unit_price_in_decimal"`
	ProrationType      enum.ProrationType `json:"proration_type"`
	ServicePeriod      int32              `json:"service_period"`
	Object             string             `json:"object"`
}

type Charge

type Charge struct {
	Amount                 int32                `json:"amount"`
	AmountInDecimal        string               `json:"amount_in_decimal"`
	Description            string               `json:"description"`
	ServicePeriodInDays    int32                `json:"service_period_in_days"`
	AvalaraSaleType        enum.AvalaraSaleType `json:"avalara_sale_type"`
	AvalaraTransactionType int32                `json:"avalara_transaction_type"`
	AvalaraServiceType     int32                `json:"avalara_service_type"`
	Object                 string               `json:"object"`
}

type Coupon

type Coupon struct {
	CouponId string `json:"coupon_id"`
	Object   string `json:"object"`
}

type InvoiceItem

type InvoiceItem struct {
	ItemPriceId        string `json:"item_price_id"`
	Quantity           int32  `json:"quantity"`
	QuantityInDecimal  string `json:"quantity_in_decimal"`
	UnitPrice          int32  `json:"unit_price"`
	UnitPriceInDecimal string `json:"unit_price_in_decimal"`
	ServicePeriodDays  int32  `json:"service_period_days"`
	Object             string `json:"object"`
}

type ItemTier

type ItemTier struct {
	ItemPriceId           string `json:"item_price_id"`
	StartingUnit          int32  `json:"starting_unit"`
	EndingUnit            int32  `json:"ending_unit"`
	Price                 int32  `json:"price"`
	StartingUnitInDecimal string `json:"starting_unit_in_decimal"`
	EndingUnitInDecimal   string `json:"ending_unit_in_decimal"`
	PriceInDecimal        string `json:"price_in_decimal"`
	Index                 int32  `json:"index"`
	Object                string `json:"object"`
}

type QuotedCharge

type QuotedCharge struct {
	Charges      []*Charge      `json:"charges"`
	Addons       []*Addon       `json:"addons"`
	InvoiceItems []*InvoiceItem `json:"invoice_items"`
	ItemTiers    []*ItemTier    `json:"item_tiers"`
	Coupons      []*Coupon      `json:"coupons"`
	Object       string         `json:"object"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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