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

     1  //
     2  //
     3  // File generated from our OpenAPI spec
     4  //
     5  //
     6  
     7  package stripe
     8  
     9  // Simulated data for the card_present payment method.
    10  type TestHelpersTerminalReaderPresentPaymentMethodCardPresentParams struct {
    11  	// The card number, as a string without any separators.
    12  	Number *string `form:"number"`
    13  }
    14  
    15  // Simulated data for the interac_present payment method.
    16  type TestHelpersTerminalReaderPresentPaymentMethodInteracPresentParams struct {
    17  	// Card Number
    18  	Number *string `form:"number"`
    19  }
    20  
    21  // Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
    22  type TestHelpersTerminalReaderPresentPaymentMethodParams struct {
    23  	Params `form:"*"`
    24  	// Simulated on-reader tip amount.
    25  	AmountTip *int64 `form:"amount_tip"`
    26  	// Simulated data for the card_present payment method.
    27  	CardPresent *TestHelpersTerminalReaderPresentPaymentMethodCardPresentParams `form:"card_present"`
    28  	// Specifies which fields in the response should be expanded.
    29  	Expand []*string `form:"expand"`
    30  	// Simulated data for the interac_present payment method.
    31  	InteracPresent *TestHelpersTerminalReaderPresentPaymentMethodInteracPresentParams `form:"interac_present"`
    32  	// Simulated payment type.
    33  	Type *string `form:"type"`
    34  }
    35  
    36  // AddExpand appends a new field to expand.
    37  func (p *TestHelpersTerminalReaderPresentPaymentMethodParams) AddExpand(f string) {
    38  	p.Expand = append(p.Expand, &f)
    39  }