forked from stripe/stripe-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorderitem.go
26 lines (23 loc) · 878 Bytes
/
orderitem.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package stripe
import (
// This is pretty silly. Nowhere else do we import a subpackage from the
// top-level namespace like this. We should try to deprecate this at some
// point.
"github.com/stripe/stripe-go/orderitem"
)
type OrderItemParams struct {
Amount int64 `form:"amount"`
Currency Currency `form:"currency"`
Description string `form:"description"`
Parent string `form:"parent"`
Quantity *int64 `form:"quantity"`
Type orderitem.ItemType `form:"type"`
}
type OrderItem struct {
Amount int64 `json:"amount"`
Currency Currency `json:"currency"`
Description string `json:"description"`
Parent string `json:"parent"`
Quantity int64 `json:"quantity"`
Type orderitem.ItemType `json:"type"`
}