github.com/seeker-insurance/kit@v0.0.13/payments/stripe/customer.go (about)

     1  package stripe
     2  
     3  // Customer ...
     4  type Customer struct {
     5  	StripeCustomerID *string
     6  }
     7  
     8  // Source ...
     9  type Source struct {
    10  	StripeSourceID *string
    11  }
    12  
    13  // Parent parent model interface
    14  type Parent interface {
    15  	StripeCustomerDescription() *string
    16  	GetStripeCustomerID() *string
    17  	SetStripeCustomerID(*string) error
    18  }
    19  
    20  // GetStripeCustomerID ...
    21  func (c Customer) GetStripeCustomerID() *string {
    22  	return c.StripeCustomerID
    23  }
    24  
    25  // SetSource ...
    26  func (i *Source) SetSource(sourceID string, source interface{}) error {
    27  	i.StripeSourceID = &sourceID
    28  
    29  	return nil
    30  }