Class: Stripe::GiftCards::Card::ValidateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/resources/gift_cards/card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(code: nil, expand: nil, giftcard_pin: nil) ⇒ ValidateParams

Returns a new instance of ValidateParams.



138
139
140
141
142
# File 'lib/stripe/resources/gift_cards/card.rb', line 138

def initialize(code: nil, expand: nil, giftcard_pin: nil)
  @code = code
  @expand = expand
  @giftcard_pin = giftcard_pin
end

Instance Attribute Details

#codeObject

The gift card code to be validated.



132
133
134
# File 'lib/stripe/resources/gift_cards/card.rb', line 132

def code
  @code
end

#expandObject

Specifies which fields in the response should be expanded.



134
135
136
# File 'lib/stripe/resources/gift_cards/card.rb', line 134

def expand
  @expand
end

#giftcard_pinObject

The pin associated with the gift card. Not all gift cards have pins.



136
137
138
# File 'lib/stripe/resources/gift_cards/card.rb', line 136

def giftcard_pin
  @giftcard_pin
end