class GoCardlessPro::Resources::NegativeBalanceLimit
The negative balance limit is a threshold for the creditor balance beyond which refunds are not permitted. The default limit is zero — refunds are not permitted if the creditor has a negative balance. The limit can be changed on a per-creditor basis.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/negative_balance_limit.rb, line 23 def initialize(object, response = nil) @object = object @balance_limit = object['balance_limit'] @created_at = object['created_at'] @currency = object['currency'] @id = object['id'] @links = object['links'] @response = response end
Initialize a negative_balance_limit resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/negative_balance_limit.rb, line 34 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/negative_balance_limit.rb, line 39 def links @negative_balance_limit_links ||= Links.new(@links) end
Return the links that the resource has
Source
# File lib/gocardless_pro/resources/negative_balance_limit.rb, line 44 def to_h @object end
Provides the negative_balance_limit resource as a hash of all its readable attributes