Class: Stripe::GiftCards::CardService::ValidateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/gift_cards/card_service.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.



107
108
109
110
111
# File 'lib/stripe/services/gift_cards/card_service.rb', line 107

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.



101
102
103
# File 'lib/stripe/services/gift_cards/card_service.rb', line 101

def code
  @code
end

#expandObject

Specifies which fields in the response should be expanded.



103
104
105
# File 'lib/stripe/services/gift_cards/card_service.rb', line 103

def expand
  @expand
end

#giftcard_pinObject

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



105
106
107
# File 'lib/stripe/services/gift_cards/card_service.rb', line 105

def giftcard_pin
  @giftcard_pin
end