Class: ProcessOut::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/processout.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_id, project_secret) ⇒ Client

Returns a new instance of Client.



64
65
66
67
68
69
# File 'lib/processout.rb', line 64

def initialize(project_id, project_secret)
  @host = "https://api.processout.com"

  @project_id = project_id
  @project_secret = project_secret
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



62
63
64
# File 'lib/processout.rb', line 62

def host
  @host
end

#project_idObject (readonly)

Returns the value of attribute project_id.



62
63
64
# File 'lib/processout.rb', line 62

def project_id
  @project_id
end

#project_secretObject (readonly)

Returns the value of attribute project_secret.



62
63
64
# File 'lib/processout.rb', line 62

def project_secret
  @project_secret
end

Instance Method Details

#activity(data = {}) ⇒ Object

Create a new Activity instance



72
73
74
# File 'lib/processout.rb', line 72

def activity(data = {})
  obj = Activity.new(self, data)
end

#addon(data = {}) ⇒ Object

Create a new Addon instance



77
78
79
# File 'lib/processout.rb', line 77

def addon(data = {})
  obj = Addon.new(self, data)
end

#alternative_merchant_certificate(data = {}) ⇒ Object

Create a new AlternativeMerchantCertificate instance



92
93
94
# File 'lib/processout.rb', line 92

def alternative_merchant_certificate(data = {})
  obj = AlternativeMerchantCertificate.new(self, data)
end

#api_version(data = {}) ⇒ Object

Create a new APIVersion instance



82
83
84
# File 'lib/processout.rb', line 82

def api_version(data = {})
  obj = APIVersion.new(self, data)
end

#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object

Create a new ApplePayAlternativeMerchantCertificates instance



87
88
89
# File 'lib/processout.rb', line 87

def apple_pay_alternative_merchant_certificates(data = {})
  obj = ApplePayAlternativeMerchantCertificates.new(self, data)
end

#balance(data = {}) ⇒ Object

Create a new Balance instance



102
103
104
# File 'lib/processout.rb', line 102

def balance(data = {})
  obj = Balance.new(self, data)
end

#balances(data = {}) ⇒ Object

Create a new Balances instance



97
98
99
# File 'lib/processout.rb', line 97

def balances(data = {})
  obj = Balances.new(self, data)
end

#card(data = {}) ⇒ Object

Create a new Card instance



107
108
109
# File 'lib/processout.rb', line 107

def card(data = {})
  obj = Card.new(self, data)
end

#card_information(data = {}) ⇒ Object

Create a new CardInformation instance



112
113
114
# File 'lib/processout.rb', line 112

def card_information(data = {})
  obj = CardInformation.new(self, data)
end

#category_error_codes(data = {}) ⇒ Object

Create a new CategoryErrorCodes instance



327
328
329
# File 'lib/processout.rb', line 327

def category_error_codes(data = {})
  obj = CategoryErrorCodes.new(self, data)
end

#coupon(data = {}) ⇒ Object

Create a new Coupon instance



117
118
119
# File 'lib/processout.rb', line 117

def coupon(data = {})
  obj = Coupon.new(self, data)
end

#customer(data = {}) ⇒ Object

Create a new Customer instance



122
123
124
# File 'lib/processout.rb', line 122

def customer(data = {})
  obj = Customer.new(self, data)
end

#customer_action(data = {}) ⇒ Object

Create a new CustomerAction instance



217
218
219
# File 'lib/processout.rb', line 217

def customer_action(data = {})
  obj = CustomerAction.new(self, data)
end

#customer_phone(data = {}) ⇒ Object

Create a new CustomerPhone instance



127
128
129
# File 'lib/processout.rb', line 127

def customer_phone(data = {})
  obj = CustomerPhone.new(self, data)
end

#discount(data = {}) ⇒ Object

Create a new Discount instance



137
138
139
# File 'lib/processout.rb', line 137

def discount(data = {})
  obj = Discount.new(self, data)
end

#dunning_action(data = {}) ⇒ Object

Create a new DunningAction instance



222
223
224
# File 'lib/processout.rb', line 222

def dunning_action(data = {})
  obj = DunningAction.new(self, data)
end

#error_codes(data = {}) ⇒ Object

Create a new ErrorCodes instance



322
323
324
# File 'lib/processout.rb', line 322

def error_codes(data = {})
  obj = ErrorCodes.new(self, data)
end

#event(data = {}) ⇒ Object

Create a new Event instance



142
143
144
# File 'lib/processout.rb', line 142

def event(data = {})
  obj = Event.new(self, data)
end

#gateway(data = {}) ⇒ Object

Create a new Gateway instance



147
148
149
# File 'lib/processout.rb', line 147

def gateway(data = {})
  obj = Gateway.new(self, data)
end

#gateway_configuration(data = {}) ⇒ Object

Create a new GatewayConfiguration instance



152
153
154
# File 'lib/processout.rb', line 152

def gateway_configuration(data = {})
  obj = GatewayConfiguration.new(self, data)
end

#invoice(data = {}) ⇒ Object

Create a new Invoice instance



157
158
159
# File 'lib/processout.rb', line 157

def invoice(data = {})
  obj = Invoice.new(self, data)
end

#invoice_billing(data = {}) ⇒ Object

Create a new InvoiceBilling instance



202
203
204
# File 'lib/processout.rb', line 202

def invoice_billing(data = {})
  obj = InvoiceBilling.new(self, data)
end

#invoice_detail(data = {}) ⇒ Object

Create a new InvoiceDetail instance



212
213
214
# File 'lib/processout.rb', line 212

def invoice_detail(data = {})
  obj = InvoiceDetail.new(self, data)
end

#invoice_device(data = {}) ⇒ Object

Create a new InvoiceDevice instance



187
188
189
# File 'lib/processout.rb', line 187

def invoice_device(data = {})
  obj = InvoiceDevice.new(self, data)
end

#invoice_external_fraud_tools(data = {}) ⇒ Object

Create a new InvoiceExternalFraudTools instance



177
178
179
# File 'lib/processout.rb', line 177

def invoice_external_fraud_tools(data = {})
  obj = InvoiceExternalFraudTools.new(self, data)
end

#invoice_risk(data = {}) ⇒ Object

Create a new InvoiceRisk instance



182
183
184
# File 'lib/processout.rb', line 182

def invoice_risk(data = {})
  obj = InvoiceRisk.new(self, data)
end

#invoice_shipping(data = {}) ⇒ Object

Create a new InvoiceShipping instance



192
193
194
# File 'lib/processout.rb', line 192

def invoice_shipping(data = {})
  obj = InvoiceShipping.new(self, data)
end

#invoice_shipping_phone(data = {}) ⇒ Object

Create a new InvoiceShippingPhone instance



197
198
199
# File 'lib/processout.rb', line 197

def invoice_shipping_phone(data = {})
  obj = InvoiceShippingPhone.new(self, data)
end

#invoice_tax(data = {}) ⇒ Object

Create a new InvoiceTax instance



172
173
174
# File 'lib/processout.rb', line 172

def invoice_tax(data = {})
  obj = InvoiceTax.new(self, data)
end

#invoices_process_native_payment_response(data = {}) ⇒ Object

Create a new InvoicesProcessNativePaymentResponse instance



347
348
349
# File 'lib/processout.rb', line 347

def invoices_process_native_payment_response(data = {})
  obj = InvoicesProcessNativePaymentResponse.new(self, data)
end

#native_apm_parameter_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterDefinition instance



277
278
279
# File 'lib/processout.rb', line 277

def native_apm_parameter_definition(data = {})
  obj = NativeAPMParameterDefinition.new(self, data)
end

#native_apm_parameter_value(data = {}) ⇒ Object

Create a new NativeAPMParameterValue instance



167
168
169
# File 'lib/processout.rb', line 167

def native_apm_parameter_value(data = {})
  obj = NativeAPMParameterValue.new(self, data)
end

#native_apm_parameter_value_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterValueDefinition instance



282
283
284
# File 'lib/processout.rb', line 282

def native_apm_parameter_value_definition(data = {})
  obj = NativeAPMParameterValueDefinition.new(self, data)
end

#native_apm_request(data = {}) ⇒ Object

Create a new NativeAPMRequest instance



162
163
164
# File 'lib/processout.rb', line 162

def native_apm_request(data = {})
  obj = NativeAPMRequest.new(self, data)
end

#native_apm_response(data = {}) ⇒ Object

Create a new NativeAPMResponse instance



272
273
274
# File 'lib/processout.rb', line 272

def native_apm_response(data = {})
  obj = NativeAPMResponse.new(self, data)
end

#native_apm_transaction_details(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetails instance



342
343
344
# File 'lib/processout.rb', line 342

def native_apm_transaction_details(data = {})
  obj = NativeAPMTransactionDetails.new(self, data)
end

#native_apm_transaction_details_gateway(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetailsGateway instance



332
333
334
# File 'lib/processout.rb', line 332

def native_apm_transaction_details_gateway(data = {})
  obj = NativeAPMTransactionDetailsGateway.new(self, data)
end

#native_apm_transaction_details_invoice(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetailsInvoice instance



337
338
339
# File 'lib/processout.rb', line 337

def native_apm_transaction_details_invoice(data = {})
  obj = NativeAPMTransactionDetailsInvoice.new(self, data)
end

#payment_data_network_authentication(data = {}) ⇒ Object

Create a new PaymentDataNetworkAuthentication instance



297
298
299
# File 'lib/processout.rb', line 297

def payment_data_network_authentication(data = {})
  obj = PaymentDataNetworkAuthentication.new(self, data)
end

#payment_data_three_ds_authentication(data = {}) ⇒ Object

Create a new PaymentDataThreeDSAuthentication instance



302
303
304
# File 'lib/processout.rb', line 302

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



292
293
294
# File 'lib/processout.rb', line 292

def payment_data_three_ds_request(data = {})
  obj = PaymentDataThreeDSRequest.new(self, data)
end

#payout(data = {}) ⇒ Object

Create a new Payout instance



227
228
229
# File 'lib/processout.rb', line 227

def payout(data = {})
  obj = Payout.new(self, data)
end

#payout_item(data = {}) ⇒ Object

Create a new PayoutItem instance



232
233
234
# File 'lib/processout.rb', line 232

def payout_item(data = {})
  obj = PayoutItem.new(self, data)
end

#plan(data = {}) ⇒ Object

Create a new Plan instance



237
238
239
# File 'lib/processout.rb', line 237

def plan(data = {})
  obj = Plan.new(self, data)
end

#product(data = {}) ⇒ Object

Create a new Product instance



242
243
244
# File 'lib/processout.rb', line 242

def product(data = {})
  obj = Product.new(self, data)
end

#project(data = {}) ⇒ Object

Create a new Project instance



247
248
249
# File 'lib/processout.rb', line 247

def project(data = {})
  obj = Project.new(self, data)
end

#project_sftp_settings(data = {}) ⇒ Object

Create a new ProjectSFTPSettings instance



252
253
254
# File 'lib/processout.rb', line 252

def project_sftp_settings(data = {})
  obj = ProjectSFTPSettings.new(self, data)
end

#refund(data = {}) ⇒ Object

Create a new Refund instance



257
258
259
# File 'lib/processout.rb', line 257

def refund(data = {})
  obj = Refund.new(self, data)
end

#subscription(data = {}) ⇒ Object

Create a new Subscription instance



262
263
264
# File 'lib/processout.rb', line 262

def subscription(data = {})
  obj = Subscription.new(self, data)
end

#three_ds(data = {}) ⇒ Object

Create a new ThreeDS instance



287
288
289
# File 'lib/processout.rb', line 287

def three_ds(data = {})
  obj = ThreeDS.new(self, data)
end

#token(data = {}) ⇒ Object

Create a new Token instance



132
133
134
# File 'lib/processout.rb', line 132

def token(data = {})
  obj = Token.new(self, data)
end

#transaction(data = {}) ⇒ Object

Create a new Transaction instance



267
268
269
# File 'lib/processout.rb', line 267

def transaction(data = {})
  obj = Transaction.new(self, data)
end

#transaction_operation(data = {}) ⇒ Object

Create a new TransactionOperation instance



307
308
309
# File 'lib/processout.rb', line 307

def transaction_operation(data = {})
  obj = TransactionOperation.new(self, data)
end

#unsupported_feature_bypass(data = {}) ⇒ Object

Create a new UnsupportedFeatureBypass instance



207
208
209
# File 'lib/processout.rb', line 207

def unsupported_feature_bypass(data = {})
  obj = UnsupportedFeatureBypass.new(self, data)
end

#webhook(data = {}) ⇒ Object

Create a new Webhook instance



312
313
314
# File 'lib/processout.rb', line 312

def webhook(data = {})
  obj = Webhook.new(self, data)
end

#webhook_endpoint(data = {}) ⇒ Object

Create a new WebhookEndpoint instance



317
318
319
# File 'lib/processout.rb', line 317

def webhook_endpoint(data = {})
  obj = WebhookEndpoint.new(self, data)
end