Class: Stripe::AccountCreateParams::Card

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/account_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(object: nil, address_city: nil, address_country: nil, address_line1: nil, address_line2: nil, address_state: nil, address_zip: nil, currency: nil, cvc: nil, default_for_currency: nil, exp_month: nil, exp_year: nil, metadata: nil, name: nil, number: nil) ⇒ Card

Returns a new instance of Card.



1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
# File 'lib/stripe/params/account_create_params.rb', line 1049

def initialize(
  object: nil,
  address_city: nil,
  address_country: nil,
  address_line1: nil,
  address_line2: nil,
  address_state: nil,
  address_zip: nil,
  currency: nil,
  cvc: nil,
  default_for_currency: nil,
  exp_month: nil,
  exp_year: nil,
  metadata: nil,
  name: nil,
  number: nil
)
  @object = object
  @address_city = address_city
  @address_country = address_country
  @address_line1 = address_line1
  @address_line2 = address_line2
  @address_state = address_state
  @address_zip = address_zip
  @currency = currency
  @cvc = cvc
  @default_for_currency = default_for_currency
  @exp_month = exp_month
  @exp_year = exp_year
  @metadata = 
  @name = name
  @number = number
end

Instance Attribute Details

#address_cityObject

Attribute for param field address_city



1021
1022
1023
# File 'lib/stripe/params/account_create_params.rb', line 1021

def address_city
  @address_city
end

#address_countryObject

Attribute for param field address_country



1023
1024
1025
# File 'lib/stripe/params/account_create_params.rb', line 1023

def address_country
  @address_country
end

#address_line1Object

Attribute for param field address_line1



1025
1026
1027
# File 'lib/stripe/params/account_create_params.rb', line 1025

def address_line1
  @address_line1
end

#address_line2Object

Attribute for param field address_line2



1027
1028
1029
# File 'lib/stripe/params/account_create_params.rb', line 1027

def address_line2
  @address_line2
end

#address_stateObject

Attribute for param field address_state



1029
1030
1031
# File 'lib/stripe/params/account_create_params.rb', line 1029

def address_state
  @address_state
end

#address_zipObject

Attribute for param field address_zip



1031
1032
1033
# File 'lib/stripe/params/account_create_params.rb', line 1031

def address_zip
  @address_zip
end

#currencyObject

Attribute for param field currency



1033
1034
1035
# File 'lib/stripe/params/account_create_params.rb', line 1033

def currency
  @currency
end

#cvcObject

Attribute for param field cvc



1035
1036
1037
# File 'lib/stripe/params/account_create_params.rb', line 1035

def cvc
  @cvc
end

#default_for_currencyObject

Attribute for param field default_for_currency



1037
1038
1039
# File 'lib/stripe/params/account_create_params.rb', line 1037

def default_for_currency
  @default_for_currency
end

#exp_monthObject

Attribute for param field exp_month



1039
1040
1041
# File 'lib/stripe/params/account_create_params.rb', line 1039

def exp_month
  @exp_month
end

#exp_yearObject

Attribute for param field exp_year



1041
1042
1043
# File 'lib/stripe/params/account_create_params.rb', line 1041

def exp_year
  @exp_year
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.



1043
1044
1045
# File 'lib/stripe/params/account_create_params.rb', line 1043

def 
  @metadata
end

#nameObject

Attribute for param field name



1045
1046
1047
# File 'lib/stripe/params/account_create_params.rb', line 1045

def name
  @name
end

#numberObject

Attribute for param field number



1047
1048
1049
# File 'lib/stripe/params/account_create_params.rb', line 1047

def number
  @number
end

#objectObject

Attribute for param field object



1019
1020
1021
# File 'lib/stripe/params/account_create_params.rb', line 1019

def object
  @object
end