Module: Cielo::API30
- Defined in:
- lib/cielo/api30.rb,
lib/cielo/api30/sale.rb,
lib/cielo/api30/client.rb,
lib/cielo/api30/address.rb,
lib/cielo/api30/payment.rb,
lib/cielo/api30/version.rb,
lib/cielo/api30/customer.rb,
lib/cielo/api30/merchant.rb,
lib/cielo/api30/credit_card.rb,
lib/cielo/api30/environment.rb,
lib/cielo/api30/return_info.rb,
lib/cielo/api30/payment/status.rb,
lib/cielo/api30/recurrent_payment.rb,
lib/cielo/api30/request/cielo_error.rb,
lib/cielo/api30/request/cielo_request.rb,
lib/cielo/api30/request/query_sale_request.rb,
lib/cielo/api30/request/create_sale_request.rb,
lib/cielo/api30/request/update_sale_request.rb
Defined Under Namespace
Modules: Request
Classes: Address, Client, CreditCard, Customer, Environment, Merchant, Payment, RecurrentPayment, ReturnInfo, Sale
Constant Summary
collapse
- VERSION =
"1.2.0"
Class Method Summary
collapse
Class Method Details
.client(merchant, environment = nil) ⇒ Object
22
23
24
|
# File 'lib/cielo/api30.rb', line 22
def self.client(merchant, environment = nil)
Client.new(merchant, environment)
end
|
.merchant(merchant_id, merchant_key) ⇒ Object
26
27
28
|
# File 'lib/cielo/api30.rb', line 26
def self.merchant(merchant_id, merchant_key)
Merchant.new(merchant_id, merchant_key)
end
|
.root_path ⇒ Object
18
19
20
|
# File 'lib/cielo/api30.rb', line 18
def self.root_path
File.dirname __dir__
end
|