Mm 39663 (#19340)
* Add CurrentProductName to invoice * make quantity a float
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
dcd4e50bde
Коммит
3172adfce9
@@ -138,24 +138,25 @@ func (s *Subscription) GetWorkSpaceNameFromDNS() string {
|
|||||||
|
|
||||||
// Invoice model represents a cloud invoice
|
// Invoice model represents a cloud invoice
|
||||||
type Invoice struct {
|
type Invoice struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
Number string `json:"number"`
|
Number string `json:"number"`
|
||||||
CreateAt int64 `json:"create_at"`
|
CreateAt int64 `json:"create_at"`
|
||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
Tax int64 `json:"tax"`
|
Tax int64 `json:"tax"`
|
||||||
Status string `json:"status"`
|
Status string `json:"status"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
PeriodStart int64 `json:"period_start"`
|
PeriodStart int64 `json:"period_start"`
|
||||||
PeriodEnd int64 `json:"period_end"`
|
PeriodEnd int64 `json:"period_end"`
|
||||||
SubscriptionID string `json:"subscription_id"`
|
SubscriptionID string `json:"subscription_id"`
|
||||||
Items []*InvoiceLineItem `json:"line_items"`
|
Items []*InvoiceLineItem `json:"line_items"`
|
||||||
|
CurrentProductName string `json:"current_product_name"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// InvoiceLineItem model represents a cloud invoice lineitem tied to an invoice.
|
// InvoiceLineItem model represents a cloud invoice lineitem tied to an invoice.
|
||||||
type InvoiceLineItem struct {
|
type InvoiceLineItem struct {
|
||||||
PriceID string `json:"price_id"`
|
PriceID string `json:"price_id"`
|
||||||
Total int64 `json:"total"`
|
Total int64 `json:"total"`
|
||||||
Quantity int64 `json:"quantity"`
|
Quantity float64 `json:"quantity"`
|
||||||
PricePerUnit int64 `json:"price_per_unit"`
|
PricePerUnit int64 `json:"price_per_unit"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user