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/invoice.rb,
lib/simplify/payment.rb,
lib/simplify/webhook.rb,
lib/simplify/customer.rb,
lib/simplify/cardtoken.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 - 2022 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, Constants, Coupon, Customer, 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
- @@request_timeout =
nil
- @@request_options =
nil
Class Method Summary collapse
-
.api_base_live_url ⇒ Object
Returns the base URL for the live API.
-
.api_base_live_url=(url) ⇒ Object
Sets the base URL for the live API.
-
.api_base_sandbox_url ⇒ Object
Returns the base URL for the sandbox API.
-
.api_base_sandbox_url=(url) ⇒ Object
Sets the base URL for the sandbox API.
-
.oauth_base_url ⇒ Object
Returns the base URL for the OAuth API.
-
.oauth_base_url=(url) ⇒ Object
Sets the base URL for the OAuth API.
-
.private_key ⇒ Object
Returns the value of the private API key.
-
.private_key=(key) ⇒ Object
Sets the value of the private API key.
-
.public_key ⇒ Object
Returns the value of the public API key.
-
.public_key=(key) ⇒ Object
Sets the value of the public API key.
-
.request_options ⇒ Object
:nodoc:.
-
.request_options=(o) ⇒ Object
:nodoc:.
-
.request_timeout ⇒ Object
Returns the timeout in seconds for API requests.
-
.request_timeout=(s) ⇒ Object
Sets the timeout in seconds for API requests.
-
.user_agent ⇒ Object
Returns the user agent value sent in requests to the API.
-
.user_agent=(ua) ⇒ Object
Sets the value of the user agent sent in requests to the API.
Class Method Details
.api_base_live_url ⇒ Object
Returns the base URL for the live API.
72 73 74 |
# File 'lib/simplify/paymentsapi.rb', line 72 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.
77 78 79 |
# File 'lib/simplify/paymentsapi.rb', line 77 def self.api_base_live_url=(url) @@api_base_live_url = url end |
.api_base_sandbox_url ⇒ Object
Returns the base URL for the sandbox API.
82 83 84 |
# File 'lib/simplify/paymentsapi.rb', line 82 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.
87 88 89 |
# File 'lib/simplify/paymentsapi.rb', line 87 def self.api_base_sandbox_url=(url) @@api_base_sandbox_url = url end |
.oauth_base_url ⇒ Object
Returns the base URL for the OAuth API.
92 93 94 |
# File 'lib/simplify/paymentsapi.rb', line 92 def self.oauth_base_url @@oauth_base_url end |
.oauth_base_url=(url) ⇒ Object
Sets the base URL for the OAuth API.
97 98 99 |
# File 'lib/simplify/paymentsapi.rb', line 97 def self.oauth_base_url=(url) @@oauth_base_url = url end |
.private_key ⇒ Object
Returns the value of the private API key.
62 63 64 |
# File 'lib/simplify/paymentsapi.rb', line 62 def self.private_key @@private_key end |
.private_key=(key) ⇒ Object
Sets the value of the private API key.
67 68 69 |
# File 'lib/simplify/paymentsapi.rb', line 67 def self.private_key=(key) @@private_key = key end |
.public_key ⇒ Object
Returns the value of the public API key.
52 53 54 |
# File 'lib/simplify/paymentsapi.rb', line 52 def self.public_key @@public_key end |
.public_key=(key) ⇒ Object
Sets the value of the public API key.
57 58 59 |
# File 'lib/simplify/paymentsapi.rb', line 57 def self.public_key=(key) @@public_key = key end |
.request_options ⇒ Object
:nodoc:
122 123 124 |
# File 'lib/simplify/paymentsapi.rb', line 122 def self. @@request_options end |
.request_options=(o) ⇒ Object
:nodoc:
127 128 129 |
# File 'lib/simplify/paymentsapi.rb', line 127 def self.(o) @@request_options = o end |
.request_timeout ⇒ Object
Returns the timeout in seconds for API requests.
112 113 114 |
# File 'lib/simplify/paymentsapi.rb', line 112 def self.request_timeout @@request_timeout end |
.request_timeout=(s) ⇒ Object
Sets the timeout in seconds for API requests.
117 118 119 |
# File 'lib/simplify/paymentsapi.rb', line 117 def self.request_timeout=(s) @@request_timeout = s end |
.user_agent ⇒ Object
Returns the user agent value sent in requests to the API.
102 103 104 |
# File 'lib/simplify/paymentsapi.rb', line 102 def self.user_agent @@user_agent end |
.user_agent=(ua) ⇒ Object
Sets the value of the user agent sent in requests to the API.
107 108 109 |
# File 'lib/simplify/paymentsapi.rb', line 107 def self.user_agent=(ua) @@user_agent = ua end |