Class: Stripe::V2::Billing::IntentAction::Apply

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/billing/intent_action.rb

Defined Under Namespace

Classes: EffectiveAt, InvoiceDiscountRule, SpendModifierRule

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#effective_atObject (readonly)

When the apply action will take effect. Defaults to on_reserve if not specified.



147
148
149
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 147

def effective_at
  @effective_at
end

#invoice_discount_ruleObject (readonly)

Details for applying a discount rule to future invoices.



151
152
153
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 151

def invoice_discount_rule
  @invoice_discount_rule
end

#spend_modifier_ruleObject (readonly)

Details for applying a spend modifier rule. Only present if type is spend_modifier_rule.



153
154
155
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 153

def spend_modifier_rule
  @spend_modifier_rule
end

#typeObject (readonly)

Type of the apply action details.



149
150
151
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 149

def type
  @type
end

Class Method Details

.field_remappingsObject



163
164
165
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 163

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



155
156
157
158
159
160
161
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 155

def self.inner_class_types
  @inner_class_types = {
    effective_at: EffectiveAt,
    invoice_discount_rule: InvoiceDiscountRule,
    spend_modifier_rule: SpendModifierRule,
  }
end