~evanj/cms

ref: f2ad8887d95788430ed361e00b18eec1699b2253 cms/vendor/github.com/stripe/stripe-go/v71/lineitem/client.go -rw-r--r-- 601 bytes
f2ad8887Evan J Feat(vendor): Updating deps. 1 year, 19 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Package lineitem provides the tools needs to interact with the LineItem resource.
package lineitem

import (
	stripe "github.com/stripe/stripe-go/v71"
)

// Iter is an iterator for line items across various resources.
type Iter struct {
	*stripe.Iter
}

// LineItem returns the line item which the iterator is currently pointing to.
func (i *Iter) LineItem() *stripe.LineItem {
	return i.Current().(*stripe.LineItem)
}

// LineItemList returns the line item which the iterator is currently pointing to.
func (i *Iter) LineItemList() *stripe.LineItemList {
	return i.List().(*stripe.LineItemList)
}