Class: ProcessOut::Client
- Inherits:
-
Object
- Object
- ProcessOut::Client
- Defined in:
- lib/processout.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#project_id ⇒ Object
readonly
Returns the value of attribute project_id.
-
#project_secret ⇒ Object
readonly
Returns the value of attribute project_secret.
Instance Method Summary collapse
-
#activity(data = {}) ⇒ Object
Create a new Activity instance.
-
#addon(data = {}) ⇒ Object
Create a new Addon instance.
-
#api_request(data = {}) ⇒ Object
Create a new APIRequest instance.
-
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance.
-
#balance(data = {}) ⇒ Object
Create a new Balance instance.
-
#balances(data = {}) ⇒ Object
Create a new Balances instance.
-
#card(data = {}) ⇒ Object
Create a new Card instance.
-
#card_information(data = {}) ⇒ Object
Create a new CardInformation instance.
-
#coupon(data = {}) ⇒ Object
Create a new Coupon instance.
-
#customer(data = {}) ⇒ Object
Create a new Customer instance.
-
#customer_action(data = {}) ⇒ Object
Create a new CustomerAction instance.
-
#discount(data = {}) ⇒ Object
Create a new Discount instance.
-
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction instance.
-
#event(data = {}) ⇒ Object
Create a new Event instance.
-
#gateway(data = {}) ⇒ Object
Create a new Gateway instance.
-
#gateway_configuration(data = {}) ⇒ Object
Create a new GatewayConfiguration instance.
-
#initialize(project_id, project_secret) ⇒ Client
constructor
A new instance of Client.
-
#invoice(data = {}) ⇒ Object
Create a new Invoice instance.
-
#invoice_detail(data = {}) ⇒ Object
Create a new InvoiceDetail instance.
-
#invoice_device(data = {}) ⇒ Object
Create a new InvoiceDevice instance.
-
#invoice_external_fraud_tools(data = {}) ⇒ Object
Create a new InvoiceExternalFraudTools instance.
-
#invoice_risk(data = {}) ⇒ Object
Create a new InvoiceRisk instance.
-
#invoice_shipping(data = {}) ⇒ Object
Create a new InvoiceShipping instance.
-
#invoice_tax(data = {}) ⇒ Object
Create a new InvoiceTax instance.
-
#payment_data_network_authentication(data = {}) ⇒ Object
Create a new PaymentDataNetworkAuthentication instance.
-
#payment_data_three_ds_authentication(data = {}) ⇒ Object
Create a new PaymentDataThreeDSAuthentication instance.
-
#payment_data_three_ds_request(data = {}) ⇒ Object
Create a new PaymentDataThreeDSRequest instance.
-
#payout(data = {}) ⇒ Object
Create a new Payout instance.
-
#payout_item(data = {}) ⇒ Object
Create a new PayoutItem instance.
-
#plan(data = {}) ⇒ Object
Create a new Plan instance.
-
#product(data = {}) ⇒ Object
Create a new Product instance.
-
#project(data = {}) ⇒ Object
Create a new Project instance.
-
#refund(data = {}) ⇒ Object
Create a new Refund instance.
-
#subscription(data = {}) ⇒ Object
Create a new Subscription instance.
-
#three_ds(data = {}) ⇒ Object
Create a new ThreeDS instance.
-
#token(data = {}) ⇒ Object
Create a new Token instance.
-
#transaction(data = {}) ⇒ Object
Create a new Transaction instance.
-
#transaction_operation(data = {}) ⇒ Object
Create a new TransactionOperation instance.
-
#webhook(data = {}) ⇒ Object
Create a new Webhook instance.
-
#webhook_endpoint(data = {}) ⇒ Object
Create a new WebhookEndpoint instance.
Constructor Details
#initialize(project_id, project_secret) ⇒ Client
Returns a new instance of Client.
47 48 49 50 51 52 |
# File 'lib/processout.rb', line 47 def initialize(project_id, project_secret) @host = "https://api.processout.com" @project_id = project_id @project_secret = project_secret end |
Instance Attribute Details
#host ⇒ Object (readonly)
Returns the value of attribute host.
45 46 47 |
# File 'lib/processout.rb', line 45 def host @host end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
45 46 47 |
# File 'lib/processout.rb', line 45 def project_id @project_id end |
#project_secret ⇒ Object (readonly)
Returns the value of attribute project_secret.
45 46 47 |
# File 'lib/processout.rb', line 45 def project_secret @project_secret end |
Instance Method Details
#activity(data = {}) ⇒ Object
Create a new Activity instance
55 56 57 |
# File 'lib/processout.rb', line 55 def activity(data = {}) obj = Activity.new(self, data) end |
#addon(data = {}) ⇒ Object
Create a new Addon instance
60 61 62 |
# File 'lib/processout.rb', line 60 def addon(data = {}) obj = Addon.new(self, data) end |
#api_request(data = {}) ⇒ Object
Create a new APIRequest instance
65 66 67 |
# File 'lib/processout.rb', line 65 def api_request(data = {}) obj = APIRequest.new(self, data) end |
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance
70 71 72 |
# File 'lib/processout.rb', line 70 def api_version(data = {}) obj = APIVersion.new(self, data) end |
#balance(data = {}) ⇒ Object
Create a new Balance instance
80 81 82 |
# File 'lib/processout.rb', line 80 def balance(data = {}) obj = Balance.new(self, data) end |
#balances(data = {}) ⇒ Object
Create a new Balances instance
75 76 77 |
# File 'lib/processout.rb', line 75 def balances(data = {}) obj = Balances.new(self, data) end |
#card(data = {}) ⇒ Object
Create a new Card instance
85 86 87 |
# File 'lib/processout.rb', line 85 def card(data = {}) obj = Card.new(self, data) end |
#card_information(data = {}) ⇒ Object
Create a new CardInformation instance
90 91 92 |
# File 'lib/processout.rb', line 90 def card_information(data = {}) obj = CardInformation.new(self, data) end |
#coupon(data = {}) ⇒ Object
Create a new Coupon instance
95 96 97 |
# File 'lib/processout.rb', line 95 def coupon(data = {}) obj = Coupon.new(self, data) end |
#customer(data = {}) ⇒ Object
Create a new Customer instance
100 101 102 |
# File 'lib/processout.rb', line 100 def customer(data = {}) obj = Customer.new(self, data) end |
#customer_action(data = {}) ⇒ Object
Create a new CustomerAction instance
165 166 167 |
# File 'lib/processout.rb', line 165 def customer_action(data = {}) obj = CustomerAction.new(self, data) end |
#discount(data = {}) ⇒ Object
Create a new Discount instance
110 111 112 |
# File 'lib/processout.rb', line 110 def discount(data = {}) obj = Discount.new(self, data) end |
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction instance
170 171 172 |
# File 'lib/processout.rb', line 170 def dunning_action(data = {}) obj = DunningAction.new(self, data) end |
#event(data = {}) ⇒ Object
Create a new Event instance
115 116 117 |
# File 'lib/processout.rb', line 115 def event(data = {}) obj = Event.new(self, data) end |
#gateway(data = {}) ⇒ Object
Create a new Gateway instance
120 121 122 |
# File 'lib/processout.rb', line 120 def gateway(data = {}) obj = Gateway.new(self, data) end |
#gateway_configuration(data = {}) ⇒ Object
Create a new GatewayConfiguration instance
125 126 127 |
# File 'lib/processout.rb', line 125 def gateway_configuration(data = {}) obj = GatewayConfiguration.new(self, data) end |
#invoice(data = {}) ⇒ Object
Create a new Invoice instance
130 131 132 |
# File 'lib/processout.rb', line 130 def invoice(data = {}) obj = Invoice.new(self, data) end |
#invoice_detail(data = {}) ⇒ Object
Create a new InvoiceDetail instance
160 161 162 |
# File 'lib/processout.rb', line 160 def invoice_detail(data = {}) obj = InvoiceDetail.new(self, data) end |
#invoice_device(data = {}) ⇒ Object
Create a new InvoiceDevice instance
150 151 152 |
# File 'lib/processout.rb', line 150 def invoice_device(data = {}) obj = InvoiceDevice.new(self, data) end |
#invoice_external_fraud_tools(data = {}) ⇒ Object
Create a new InvoiceExternalFraudTools instance
140 141 142 |
# File 'lib/processout.rb', line 140 def invoice_external_fraud_tools(data = {}) obj = InvoiceExternalFraudTools.new(self, data) end |
#invoice_risk(data = {}) ⇒ Object
Create a new InvoiceRisk instance
145 146 147 |
# File 'lib/processout.rb', line 145 def invoice_risk(data = {}) obj = InvoiceRisk.new(self, data) end |
#invoice_shipping(data = {}) ⇒ Object
Create a new InvoiceShipping instance
155 156 157 |
# File 'lib/processout.rb', line 155 def invoice_shipping(data = {}) obj = InvoiceShipping.new(self, data) end |
#invoice_tax(data = {}) ⇒ Object
Create a new InvoiceTax instance
135 136 137 |
# File 'lib/processout.rb', line 135 def invoice_tax(data = {}) obj = InvoiceTax.new(self, data) end |
#payment_data_network_authentication(data = {}) ⇒ Object
Create a new PaymentDataNetworkAuthentication instance
225 226 227 |
# File 'lib/processout.rb', line 225 def payment_data_network_authentication(data = {}) obj = PaymentDataNetworkAuthentication.new(self, data) end |
#payment_data_three_ds_authentication(data = {}) ⇒ Object
Create a new PaymentDataThreeDSAuthentication instance
230 231 232 |
# File 'lib/processout.rb', line 230 def payment_data_three_ds_authentication(data = {}) obj = PaymentDataThreeDSAuthentication.new(self, data) end |
#payment_data_three_ds_request(data = {}) ⇒ Object
Create a new PaymentDataThreeDSRequest instance
220 221 222 |
# File 'lib/processout.rb', line 220 def payment_data_three_ds_request(data = {}) obj = PaymentDataThreeDSRequest.new(self, data) end |
#payout(data = {}) ⇒ Object
Create a new Payout instance
175 176 177 |
# File 'lib/processout.rb', line 175 def payout(data = {}) obj = Payout.new(self, data) end |
#payout_item(data = {}) ⇒ Object
Create a new PayoutItem instance
180 181 182 |
# File 'lib/processout.rb', line 180 def payout_item(data = {}) obj = PayoutItem.new(self, data) end |
#plan(data = {}) ⇒ Object
Create a new Plan instance
185 186 187 |
# File 'lib/processout.rb', line 185 def plan(data = {}) obj = Plan.new(self, data) end |
#product(data = {}) ⇒ Object
Create a new Product instance
190 191 192 |
# File 'lib/processout.rb', line 190 def product(data = {}) obj = Product.new(self, data) end |
#project(data = {}) ⇒ Object
Create a new Project instance
195 196 197 |
# File 'lib/processout.rb', line 195 def project(data = {}) obj = Project.new(self, data) end |
#refund(data = {}) ⇒ Object
Create a new Refund instance
200 201 202 |
# File 'lib/processout.rb', line 200 def refund(data = {}) obj = Refund.new(self, data) end |
#subscription(data = {}) ⇒ Object
Create a new Subscription instance
205 206 207 |
# File 'lib/processout.rb', line 205 def subscription(data = {}) obj = Subscription.new(self, data) end |
#three_ds(data = {}) ⇒ Object
Create a new ThreeDS instance
215 216 217 |
# File 'lib/processout.rb', line 215 def three_ds(data = {}) obj = ThreeDS.new(self, data) end |
#token(data = {}) ⇒ Object
Create a new Token instance
105 106 107 |
# File 'lib/processout.rb', line 105 def token(data = {}) obj = Token.new(self, data) end |
#transaction(data = {}) ⇒ Object
Create a new Transaction instance
210 211 212 |
# File 'lib/processout.rb', line 210 def transaction(data = {}) obj = Transaction.new(self, data) end |
#transaction_operation(data = {}) ⇒ Object
Create a new TransactionOperation instance
235 236 237 |
# File 'lib/processout.rb', line 235 def transaction_operation(data = {}) obj = TransactionOperation.new(self, data) end |
#webhook(data = {}) ⇒ Object
Create a new Webhook instance
240 241 242 |
# File 'lib/processout.rb', line 240 def webhook(data = {}) obj = Webhook.new(self, data) end |
#webhook_endpoint(data = {}) ⇒ Object
Create a new WebhookEndpoint instance
245 246 247 |
# File 'lib/processout.rb', line 245 def webhook_endpoint(data = {}) obj = WebhookEndpoint.new(self, data) end |