class SBF::Client::RecurringGiftEndpoint
Public Instance Methods
change_amount(data)
click to toggle source
# File lib/stbaldricks/endpoints/recurring_gift.rb, line 28 def change_amount(data) response = SBF::Client::Api::Request.post_request("#{base_uri}/change_amount", data) unless ok?(response) parsed_response_body = JSON.parse(response.body).symbolize! error = SBF::Client::ErrorEntity.new(parsed_response_body) end SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error) end
change_billing_day(data)
click to toggle source
# File lib/stbaldricks/endpoints/recurring_gift.rb, line 17 def change_billing_day(data) response = SBF::Client::Api::Request.post_request("#{base_uri}/change_billing_day", data) unless ok?(response) parsed_response_body = JSON.parse(response.body).symbolize! error = SBF::Client::ErrorEntity.new(parsed_response_body) end SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error) end
sync(data)
click to toggle source
# File lib/stbaldricks/endpoints/recurring_gift.rb, line 6 def sync(data) response = SBF::Client::Api::Request.post_request("#{base_uri}/sync", data) unless ok?(response) parsed_response_body = JSON.parse(response.body).symbolize! error = SBF::Client::ErrorEntity.new(parsed_response_body) end SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error) end