github.com/stripe/stripe-go/v76@v76.25.0/applepaydomain.go (about)

     1  //
     2  //
     3  // File generated from our OpenAPI spec
     4  //
     5  //
     6  
     7  package stripe
     8  
     9  // Delete an apple pay domain.
    10  type ApplePayDomainParams struct {
    11  	Params     `form:"*"`
    12  	DomainName *string `form:"domain_name"`
    13  	// Specifies which fields in the response should be expanded.
    14  	Expand []*string `form:"expand"`
    15  }
    16  
    17  // AddExpand appends a new field to expand.
    18  func (p *ApplePayDomainParams) AddExpand(f string) {
    19  	p.Expand = append(p.Expand, &f)
    20  }
    21  
    22  // List apple pay domains.
    23  type ApplePayDomainListParams struct {
    24  	ListParams `form:"*"`
    25  	DomainName *string `form:"domain_name"`
    26  	// Specifies which fields in the response should be expanded.
    27  	Expand []*string `form:"expand"`
    28  }
    29  
    30  // AddExpand appends a new field to expand.
    31  func (p *ApplePayDomainListParams) AddExpand(f string) {
    32  	p.Expand = append(p.Expand, &f)
    33  }
    34  
    35  type ApplePayDomain struct {
    36  	APIResource
    37  	// Time at which the object was created. Measured in seconds since the Unix epoch.
    38  	Created    int64  `json:"created"`
    39  	Deleted    bool   `json:"deleted"`
    40  	DomainName string `json:"domain_name"`
    41  	// Unique identifier for the object.
    42  	ID string `json:"id"`
    43  	// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
    44  	Livemode bool `json:"livemode"`
    45  	// String representing the object's type. Objects of the same type share the same value.
    46  	Object string `json:"object"`
    47  }
    48  
    49  // ApplePayDomainList is a list of ApplePayDomains as retrieved from a list endpoint.
    50  type ApplePayDomainList struct {
    51  	APIResource
    52  	ListMeta
    53  	Data []*ApplePayDomain `json:"data"`
    54  }