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.



83
84
85
86
87
88
# File 'lib/processout.rb', line 83

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.



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

def host
  @host
end

#project_idObject (readonly)

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

#project_secretObject (readonly)

Returns the value of attribute project_secret.



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

def project_secret
  @project_secret
end

Instance Method Details

#activity(data = {}) ⇒ Object

Create a new Activity instance



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

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

#addon(data = {}) ⇒ Object

Create a new Addon instance



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

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

#alternative_merchant_certificate(data = {}) ⇒ Object

Create a new AlternativeMerchantCertificate instance



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

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

#api_version(data = {}) ⇒ Object

Create a new APIVersion instance



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

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

#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object

Create a new ApplePayAlternativeMerchantCertificates instance



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

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

#balance(data = {}) ⇒ Object

Create a new Balance instance



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

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

#balances(data = {}) ⇒ Object

Create a new Balances instance



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

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

#card(data = {}) ⇒ Object

Create a new Card instance



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

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

#card_contact(data = {}) ⇒ Object

Create a new CardContact instance



421
422
423
# File 'lib/processout.rb', line 421

def card_contact(data = {})
  obj = CardContact.new(self, data)
end

#card_create_request(data = {}) ⇒ Object

Create a new CardCreateRequest instance



411
412
413
# File 'lib/processout.rb', line 411

def card_create_request(data = {})
  obj = CardCreateRequest.new(self, data)
end

#card_information(data = {}) ⇒ Object

Create a new CardInformation instance



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

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

#card_shipping(data = {}) ⇒ Object

Create a new CardShipping instance



426
427
428
# File 'lib/processout.rb', line 426

def card_shipping(data = {})
  obj = CardShipping.new(self, data)
end

#card_update_request(data = {}) ⇒ Object

Create a new CardUpdateRequest instance



431
432
433
# File 'lib/processout.rb', line 431

def card_update_request(data = {})
  obj = CardUpdateRequest.new(self, data)
end

#category_error_codes(data = {}) ⇒ Object

Create a new CategoryErrorCodes instance



441
442
443
# File 'lib/processout.rb', line 441

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

#coupon(data = {}) ⇒ Object

Create a new Coupon instance



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

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

#customer(data = {}) ⇒ Object

Create a new Customer instance



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

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

#customer_action(data = {}) ⇒ Object

Create a new CustomerAction instance



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

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

#customer_phone(data = {}) ⇒ Object

Create a new CustomerPhone instance



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

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

#device(data = {}) ⇒ Object

Create a new Device instance



416
417
418
# File 'lib/processout.rb', line 416

def device(data = {})
  obj = Device.new(self, data)
end

#discount(data = {}) ⇒ Object

Create a new Discount instance



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

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

#dunning_action(data = {}) ⇒ Object

Create a new DunningAction instance



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

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

#error_codes(data = {}) ⇒ Object

Create a new ErrorCodes instance



436
437
438
# File 'lib/processout.rb', line 436

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

#event(data = {}) ⇒ Object

Create a new Event instance



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

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

#export_layout(data = {}) ⇒ Object

Create a new ExportLayout instance



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

def export_layout(data = {})
  obj = ExportLayout.new(self, data)
end

#export_layout_configuration(data = {}) ⇒ Object

Create a new ExportLayoutConfiguration instance



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

def export_layout_configuration(data = {})
  obj = ExportLayoutConfiguration.new(self, data)
end

#export_layout_configuration_amount(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationAmount instance



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

def export_layout_configuration_amount(data = {})
  obj = ExportLayoutConfigurationAmount.new(self, data)
end

#export_layout_configuration_column(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationColumn instance



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

def export_layout_configuration_column(data = {})
  obj = ExportLayoutConfigurationColumn.new(self, data)
end

#export_layout_configuration_configuration_options_amount(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationConfigurationOptionsAmount instance



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

def export_layout_configuration_configuration_options_amount(data = {})
  obj = ExportLayoutConfigurationConfigurationOptionsAmount.new(self, data)
end

#export_layout_configuration_configuration_options_time(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationConfigurationOptionsTime instance



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

def export_layout_configuration_configuration_options_time(data = {})
  obj = ExportLayoutConfigurationConfigurationOptionsTime.new(self, data)
end

#export_layout_configuration_options(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationOptions instance



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

def export_layout_configuration_options(data = {})
  obj = ExportLayoutConfigurationOptions.new(self, data)
end

#export_layout_configuration_time(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationTime instance



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

def export_layout_configuration_time(data = {})
  obj = ExportLayoutConfigurationTime.new(self, data)
end

#external_three_ds(data = {}) ⇒ Object

Create a new ExternalThreeDS instance



446
447
448
# File 'lib/processout.rb', line 446

def external_three_ds(data = {})
  obj = ExternalThreeDS.new(self, data)
end

#gateway(data = {}) ⇒ Object

Create a new Gateway instance



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

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

#gateway_configuration(data = {}) ⇒ Object

Create a new GatewayConfiguration instance



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

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

#invoice(data = {}) ⇒ Object

Create a new Invoice instance



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

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

#invoice_billing(data = {}) ⇒ Object

Create a new InvoiceBilling instance



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

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

#invoice_detail(data = {}) ⇒ Object

Create a new InvoiceDetail instance



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

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

#invoice_device(data = {}) ⇒ Object

Create a new InvoiceDevice instance



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

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

#invoice_external_fraud_tools(data = {}) ⇒ Object

Create a new InvoiceExternalFraudTools instance



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

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

#invoice_risk(data = {}) ⇒ Object

Create a new InvoiceRisk instance



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

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

#invoice_shipping(data = {}) ⇒ Object

Create a new InvoiceShipping instance



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

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

#invoice_shipping_phone(data = {}) ⇒ Object

Create a new InvoiceShippingPhone instance



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

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

#invoice_submerchant(data = {}) ⇒ Object

Create a new InvoiceSubmerchant instance



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

def invoice_submerchant(data = {})
  obj = InvoiceSubmerchant.new(self, data)
end

#invoice_tax(data = {}) ⇒ Object

Create a new InvoiceTax instance



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

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

#native_apm_parameter_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterDefinition instance



366
367
368
# File 'lib/processout.rb', line 366

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

#native_apm_parameter_value(data = {}) ⇒ Object

Create a new NativeAPMParameterValue instance



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

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

#native_apm_parameter_value_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterValueDefinition instance



371
372
373
# File 'lib/processout.rb', line 371

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

#native_apm_request(data = {}) ⇒ Object

Create a new NativeAPMRequest instance



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

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

#native_apm_response(data = {}) ⇒ Object

Create a new NativeAPMResponse instance



361
362
363
# File 'lib/processout.rb', line 361

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

#native_apm_transaction_details(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetails instance



461
462
463
# File 'lib/processout.rb', line 461

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

#native_apm_transaction_details_gateway(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetailsGateway instance



451
452
453
# File 'lib/processout.rb', line 451

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



456
457
458
# File 'lib/processout.rb', line 456

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

#payment_data_network_authentication(data = {}) ⇒ Object

Create a new PaymentDataNetworkAuthentication instance



386
387
388
# File 'lib/processout.rb', line 386

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

#payment_data_three_ds_authentication(data = {}) ⇒ Object

Create a new PaymentDataThreeDSAuthentication instance



391
392
393
# File 'lib/processout.rb', line 391

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



381
382
383
# File 'lib/processout.rb', line 381

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

#payout(data = {}) ⇒ Object

Create a new Payout instance



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

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

#payout_item(data = {}) ⇒ Object

Create a new PayoutItem instance



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

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

#payout_item_amount_breakdowns(data = {}) ⇒ Object

Create a new PayoutItemAmountBreakdowns instance



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

def payout_item_amount_breakdowns(data = {})
  obj = PayoutItemAmountBreakdowns.new(self, data)
end

#phone(data = {}) ⇒ Object

Create a new Phone instance



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

def phone(data = {})
  obj = Phone.new(self, data)
end

#plan(data = {}) ⇒ Object

Create a new Plan instance



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

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

#product(data = {}) ⇒ Object

Create a new Product instance



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

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

#project(data = {}) ⇒ Object

Create a new Project instance



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

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

#project_sftp_settings(data = {}) ⇒ Object

Create a new ProjectSFTPSettings instance



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

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

#project_sftp_settings_public(data = {}) ⇒ Object

Create a new ProjectSFTPSettingsPublic instance



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

def project_sftp_settings_public(data = {})
  obj = ProjectSFTPSettingsPublic.new(self, data)
end

#refund(data = {}) ⇒ Object

Create a new Refund instance



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

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

#submerchant_address(data = {}) ⇒ Object

Create a new SubmerchantAddress instance



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

def submerchant_address(data = {})
  obj = SubmerchantAddress.new(self, data)
end

#submerchant_phone_number(data = {}) ⇒ Object

Create a new SubmerchantPhoneNumber instance



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

def submerchant_phone_number(data = {})
  obj = SubmerchantPhoneNumber.new(self, data)
end

#subscription(data = {}) ⇒ Object

Create a new Subscription instance



351
352
353
# File 'lib/processout.rb', line 351

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

#three_ds(data = {}) ⇒ Object

Create a new ThreeDS instance



376
377
378
# File 'lib/processout.rb', line 376

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

#token(data = {}) ⇒ Object

Create a new Token instance



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

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

#transaction(data = {}) ⇒ Object

Create a new Transaction instance



356
357
358
# File 'lib/processout.rb', line 356

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

#transaction_operation(data = {}) ⇒ Object

Create a new TransactionOperation instance



396
397
398
# File 'lib/processout.rb', line 396

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

#unsupported_feature_bypass(data = {}) ⇒ Object

Create a new UnsupportedFeatureBypass instance



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

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

#webhook(data = {}) ⇒ Object

Create a new Webhook instance



401
402
403
# File 'lib/processout.rb', line 401

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

#webhook_endpoint(data = {}) ⇒ Object

Create a new WebhookEndpoint instance



406
407
408
# File 'lib/processout.rb', line 406

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