Class: Stripe::Quote::UpdateParams::Line::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Quote::UpdateParams::Line::Action
- Defined in:
- lib/stripe/resources/quote.rb
Defined Under Namespace
Classes: AddDiscount, AddItem, RemoveDiscount, RemoveItem, SetDiscount, SetItem
Instance Attribute Summary collapse
-
#add_discount ⇒ Object
Details for the ‘add_discount` type.
-
#add_item ⇒ Object
Details for the ‘add_item` type.
-
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
-
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
-
#remove_item ⇒ Object
Details for the ‘remove_item` type.
-
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
-
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
-
#set_items ⇒ Object
Details for the ‘set_items` type.
-
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
-
#type ⇒ Object
The type of action the quote line performs.
Instance Method Summary collapse
-
#initialize(add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil) ⇒ Action
constructor
A new instance of Action.
Methods inherited from RequestParams
Constructor Details
#initialize(add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil) ⇒ Action
Returns a new instance of Action.
1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 |
# File 'lib/stripe/resources/quote.rb', line 1955 def initialize( add_discount: nil, add_item: nil, add_metadata: nil, remove_discount: nil, remove_item: nil, remove_metadata: nil, set_discounts: nil, set_items: nil, set_metadata: nil, type: nil ) @add_discount = add_discount @add_item = add_item @add_metadata = @remove_discount = remove_discount @remove_item = remove_item @remove_metadata = @set_discounts = set_discounts @set_items = set_items @set_metadata = @type = type end |
Instance Attribute Details
#add_discount ⇒ Object
Details for the ‘add_discount` type.
1935 1936 1937 |
# File 'lib/stripe/resources/quote.rb', line 1935 def add_discount @add_discount end |
#add_item ⇒ Object
Details for the ‘add_item` type.
1937 1938 1939 |
# File 'lib/stripe/resources/quote.rb', line 1937 def add_item @add_item end |
#add_metadata ⇒ Object
Details for the ‘add_metadata` type: specify a hash of key-value pairs.
1939 1940 1941 |
# File 'lib/stripe/resources/quote.rb', line 1939 def @add_metadata end |
#remove_discount ⇒ Object
Details for the ‘remove_discount` type.
1941 1942 1943 |
# File 'lib/stripe/resources/quote.rb', line 1941 def remove_discount @remove_discount end |
#remove_item ⇒ Object
Details for the ‘remove_item` type.
1943 1944 1945 |
# File 'lib/stripe/resources/quote.rb', line 1943 def remove_item @remove_item end |
#remove_metadata ⇒ Object
Details for the ‘remove_metadata` type: specify an array of metadata keys.
1945 1946 1947 |
# File 'lib/stripe/resources/quote.rb', line 1945 def @remove_metadata end |
#set_discounts ⇒ Object
Details for the ‘set_discounts` type.
1947 1948 1949 |
# File 'lib/stripe/resources/quote.rb', line 1947 def set_discounts @set_discounts end |
#set_items ⇒ Object
Details for the ‘set_items` type.
1949 1950 1951 |
# File 'lib/stripe/resources/quote.rb', line 1949 def set_items @set_items end |
#set_metadata ⇒ Object
Details for the ‘set_metadata` type: specify an array of key-value pairs.
1951 1952 1953 |
# File 'lib/stripe/resources/quote.rb', line 1951 def @set_metadata end |
#type ⇒ Object
The type of action the quote line performs.
1953 1954 1955 |
# File 'lib/stripe/resources/quote.rb', line 1953 def type @type end |