Module: Simplify

Defined in:
lib/simplify/constants.rb,
lib/simplify/tax.rb,
lib/simplify/plan.rb,
lib/simplify/event.rb,
lib/simplify/coupon.rb,
lib/simplify/refund.rb,
lib/simplify/deposit.rb,
lib/simplify/invoice.rb,
lib/simplify/payment.rb,
lib/simplify/webhook.rb,
lib/simplify/customer.rb,
lib/simplify/cardtoken.rb,
lib/simplify/chargeback.rb,
lib/simplify/fraudcheck.rb,
lib/simplify/accesstoken.rb,
lib/simplify/invoiceitem.rb,
lib/simplify/paymentsapi.rb,
lib/simplify/apiexception.rb,
lib/simplify/subscription.rb,
lib/simplify/authorization.rb,
lib/simplify/authentication.rb,
lib/simplify/transactionreview.rb

Overview

Copyright © 2013 - 2015 MasterCard International Incorporated All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of the MasterCard International Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Defined Under Namespace

Classes: AccessToken, ApiException, Authentication, AuthenticationException, Authorization, BadRequestException, CardToken, Chargeback, Constants, Coupon, Customer, Deposit, Event, FraudCheck, Invoice, InvoiceItem, NotAllowedException, ObjectNotFoundException, Payment, PaymentsApi, Plan, Refund, Subscription, SystemException, Tax, TransactionReview, Webhook

Constant Summary collapse

@@public_key =
nil
@@private_key =
nil
@@api_base_live_url =
Constants::api_base_live_url
@@api_base_sandbox_url =
Constants::api_base_sandbox_url
@@oauth_base_url =
Constants::oauth_base_url
@@user_agent =
nil

Class Method Summary collapse

Class Method Details

.api_base_live_urlObject

Returns the base URL for the live API.



70
71
72
# File 'lib/simplify/paymentsapi.rb', line 70

def self.api_base_live_url
  @@api_base_live_url
end

.api_base_live_url=(url) ⇒ Object

Sets the base URL for the live API.



75
76
77
# File 'lib/simplify/paymentsapi.rb', line 75

def self.api_base_live_url=(url)
  @@api_base_live_url = url
end

.api_base_sandbox_urlObject

Returns the base URL for the sandbox API.



80
81
82
# File 'lib/simplify/paymentsapi.rb', line 80

def self.api_base_sandbox_url
  @@api_base_sandbox_url
end

.api_base_sandbox_url=(url) ⇒ Object

Sets the base URL for the sandbox API.



85
86
87
# File 'lib/simplify/paymentsapi.rb', line 85

def self.api_base_sandbox_url=(url)
  @@api_base_sandbox_url = url
end

.oauth_base_urlObject

Returns the base URL for the OAuth API.



90
91
92
# File 'lib/simplify/paymentsapi.rb', line 90

def self.oauth_base_url
  @@oauth_base_url
end

.oauth_base_url=(url) ⇒ Object

Sets the base URL for the OAuth API.



95
96
97
# File 'lib/simplify/paymentsapi.rb', line 95

def self.oauth_base_url=(url)
  @@oauth_base_url = url
end

.private_keyObject

Returns the value of the private API key.



60
61
62
# File 'lib/simplify/paymentsapi.rb', line 60

def self.private_key
  @@private_key
end

.private_key=(key) ⇒ Object

Sets the value of the private API key.



65
66
67
# File 'lib/simplify/paymentsapi.rb', line 65

def self.private_key=(key)
  @@private_key = key
end

.public_keyObject

Returns the value of the public API key.



50
51
52
# File 'lib/simplify/paymentsapi.rb', line 50

def self.public_key
  @@public_key
end

.public_key=(key) ⇒ Object

Sets the value of the public API key.



55
56
57
# File 'lib/simplify/paymentsapi.rb', line 55

def self.public_key=(key)
  @@public_key = key
end

.user_agentObject

Returns the user agent value sent in requests to the API.



100
101
102
# File 'lib/simplify/paymentsapi.rb', line 100

def self.user_agent
  @@user_agent
end

.user_agent=(ua) ⇒ Object

Sets the value of the user agent sent in requests to the API.



105
106
107
# File 'lib/simplify/paymentsapi.rb', line 105

def self.user_agent=(ua)
  @@user_agent = ua
end