Class: Stripe::V2::Billing::ServiceAction::CreditGrant

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

Defined Under Namespace

Classes: Amount, ApplicabilityConfig, ExpiryConfig

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, 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

#amountObject (readonly)

The amount of the credit grant.



45
46
47
# File 'lib/stripe/resources/v2/billing/service_action.rb', line 45

def amount
  @amount
end

#applicability_configObject (readonly)

Defines the scope where the credit grant is applicable.



47
48
49
# File 'lib/stripe/resources/v2/billing/service_action.rb', line 47

def applicability_config
  @applicability_config
end

#expiry_configObject (readonly)

The expiry configuration for the credit grant.



49
50
51
# File 'lib/stripe/resources/v2/billing/service_action.rb', line 49

def expiry_config
  @expiry_config
end

#nameObject (readonly)

A descriptive name shown in dashboard.



51
52
53
# File 'lib/stripe/resources/v2/billing/service_action.rb', line 51

def name
  @name
end