Class: Stripe::Issuing::PersonalizationDesignService::CreateParams

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/issuing/personalization_design_service.rb

Defined Under Namespace

Classes: CarrierText, Preferences

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(card_logo: nil, carrier_text: nil, expand: nil, lookup_key: nil, metadata: nil, name: nil, physical_bundle: nil, preferences: nil, transfer_lookup_key: nil) ⇒ CreateParams

Returns a new instance of CreateParams.



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 99

def initialize(
  card_logo: nil,
  carrier_text: nil,
  expand: nil,
  lookup_key: nil,
  metadata: nil,
  name: nil,
  physical_bundle: nil,
  preferences: nil,
  transfer_lookup_key: nil
)
  @card_logo = 
  @carrier_text = carrier_text
  @expand = expand
  @lookup_key = lookup_key
  @metadata = 
  @name = name
  @physical_bundle = physical_bundle
  @preferences = preferences
  @transfer_lookup_key = transfer_lookup_key
end

Instance Attribute Details

#card_logoObject

The file for the card logo, for use with physical bundles that support card logos. Must have a ‘purpose` value of `issuing_logo`.



81
82
83
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 81

def 
  @card_logo
end

#carrier_textObject

Hash containing carrier text, for use with physical bundles that support carrier text.



83
84
85
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 83

def carrier_text
  @carrier_text
end

#expandObject

Specifies which fields in the response should be expanded.



85
86
87
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 85

def expand
  @expand
end

#lookup_keyObject

A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.



87
88
89
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 87

def lookup_key
  @lookup_key
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



89
90
91
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 89

def 
  @metadata
end

#nameObject

Friendly display name.



91
92
93
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 91

def name
  @name
end

#physical_bundleObject

The physical bundle object belonging to this personalization design.



93
94
95
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 93

def physical_bundle
  @physical_bundle
end

#preferencesObject

Information on whether this personalization design is used to create cards when one is not specified.



95
96
97
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 95

def preferences
  @preferences
end

#transfer_lookup_keyObject

If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.



97
98
99
# File 'lib/stripe/services/issuing/personalization_design_service.rb', line 97

def transfer_lookup_key
  @transfer_lookup_key
end