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.



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

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.



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

def host
  @host
end

#project_idObject (readonly)

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

#project_secretObject (readonly)

Returns the value of attribute project_secret.



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

def project_secret
  @project_secret
end

Instance Method Details

#activity(data = {}) ⇒ Object

Create a new Activity instance



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

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

#addon(data = {}) ⇒ Object

Create a new Addon instance



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

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

#alternative_merchant_certificate(data = {}) ⇒ Object

Create a new AlternativeMerchantCertificate instance



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

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

#api_version(data = {}) ⇒ Object

Create a new APIVersion instance



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

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

#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object

Create a new ApplePayAlternativeMerchantCertificates instance



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

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

#balance(data = {}) ⇒ Object

Create a new Balance instance



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

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

#balances(data = {}) ⇒ Object

Create a new Balances instance



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

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

#balances_customer_action(data = {}) ⇒ Object

Create a new BalancesCustomerAction instance



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

def balances_customer_action(data = {})
  obj = BalancesCustomerAction.new(self, data)
end

#card(data = {}) ⇒ Object

Create a new Card instance



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

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

#card_contact(data = {}) ⇒ Object

Create a new CardContact instance



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

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

#card_create_request(data = {}) ⇒ Object

Create a new CardCreateRequest instance



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

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

#card_information(data = {}) ⇒ Object

Create a new CardInformation instance



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

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

#card_shipping(data = {}) ⇒ Object

Create a new CardShipping instance



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

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

#card_update_request(data = {}) ⇒ Object

Create a new CardUpdateRequest instance



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

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

#category_error_codes(data = {}) ⇒ Object

Create a new CategoryErrorCodes instance



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

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

#coupon(data = {}) ⇒ Object

Create a new Coupon instance



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

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

#customer(data = {}) ⇒ Object

Create a new Customer instance



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

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

#customer_action(data = {}) ⇒ Object

Create a new CustomerAction instance



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

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

#customer_phone(data = {}) ⇒ Object

Create a new CustomerPhone instance



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

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

#device(data = {}) ⇒ Object

Create a new Device instance



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

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

#discount(data = {}) ⇒ Object

Create a new Discount instance



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

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

#dunning_action(data = {}) ⇒ Object

Create a new DunningAction instance



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

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

#error_codes(data = {}) ⇒ Object

Create a new ErrorCodes instance



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

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

#event(data = {}) ⇒ Object

Create a new Event instance



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

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

#export_layout(data = {}) ⇒ Object

Create a new ExportLayout instance



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

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

#export_layout_configuration(data = {}) ⇒ Object

Create a new ExportLayoutConfiguration instance



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

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

#export_layout_configuration_amount(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationAmount instance



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

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

#export_layout_configuration_column(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationColumn instance



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

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



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

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



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

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



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

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

#export_layout_configuration_time(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationTime instance



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

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

#external_three_ds(data = {}) ⇒ Object

Create a new ExternalThreeDS instance



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

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

#gateway(data = {}) ⇒ Object

Create a new Gateway instance



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

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

#gateway_configuration(data = {}) ⇒ Object

Create a new GatewayConfiguration instance



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

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

#invoice(data = {}) ⇒ Object

Create a new Invoice instance



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

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

#invoice_billing(data = {}) ⇒ Object

Create a new InvoiceBilling instance



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

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

#invoice_detail(data = {}) ⇒ Object

Create a new InvoiceDetail instance



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

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

#invoice_device(data = {}) ⇒ Object

Create a new InvoiceDevice instance



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

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

#invoice_external_fraud_tools(data = {}) ⇒ Object

Create a new InvoiceExternalFraudTools instance



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

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

#invoice_risk(data = {}) ⇒ Object

Create a new InvoiceRisk instance



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

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

#invoice_shipping(data = {}) ⇒ Object

Create a new InvoiceShipping instance



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

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

#invoice_shipping_phone(data = {}) ⇒ Object

Create a new InvoiceShippingPhone instance



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

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

#invoice_submerchant(data = {}) ⇒ Object

Create a new InvoiceSubmerchant instance



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

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

#invoice_tax(data = {}) ⇒ Object

Create a new InvoiceTax instance



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

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

#native_apm_parameter_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterDefinition instance



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

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

#native_apm_parameter_value(data = {}) ⇒ Object

Create a new NativeAPMParameterValue instance



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

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

#native_apm_parameter_value_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterValueDefinition instance



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

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

#native_apm_request(data = {}) ⇒ Object

Create a new NativeAPMRequest instance



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

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

#native_apm_response(data = {}) ⇒ Object

Create a new NativeAPMResponse instance



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

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

#native_apm_transaction_details(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetails instance



467
468
469
# File 'lib/processout.rb', line 467

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

#native_apm_transaction_details_gateway(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetailsGateway instance



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

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



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

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

#payment_data_network_authentication(data = {}) ⇒ Object

Create a new PaymentDataNetworkAuthentication instance



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

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

#payment_data_three_ds_authentication(data = {}) ⇒ Object

Create a new PaymentDataThreeDSAuthentication instance



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

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



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

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

#payout(data = {}) ⇒ Object

Create a new Payout instance



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

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

#payout_item(data = {}) ⇒ Object

Create a new PayoutItem instance



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

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

#payout_item_amount_breakdowns(data = {}) ⇒ Object

Create a new PayoutItemAmountBreakdowns instance



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

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

#phone(data = {}) ⇒ Object

Create a new Phone instance



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

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

#plan(data = {}) ⇒ Object

Create a new Plan instance



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

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

#product(data = {}) ⇒ Object

Create a new Product instance



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

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

#project(data = {}) ⇒ Object

Create a new Project instance



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

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

#project_sftp_settings(data = {}) ⇒ Object

Create a new ProjectSFTPSettings instance



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

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

#project_sftp_settings_public(data = {}) ⇒ Object

Create a new ProjectSFTPSettingsPublic instance



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

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

#refund(data = {}) ⇒ Object

Create a new Refund instance



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

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

#submerchant_address(data = {}) ⇒ Object

Create a new SubmerchantAddress instance



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

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

#submerchant_phone_number(data = {}) ⇒ Object

Create a new SubmerchantPhoneNumber instance



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

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

#subscription(data = {}) ⇒ Object

Create a new Subscription instance



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

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

#three_ds(data = {}) ⇒ Object

Create a new ThreeDS instance



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

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

#token(data = {}) ⇒ Object

Create a new Token instance



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

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

#transaction(data = {}) ⇒ Object

Create a new Transaction instance



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

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

#transaction_operation(data = {}) ⇒ Object

Create a new TransactionOperation instance



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

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

#unsupported_feature_bypass(data = {}) ⇒ Object

Create a new UnsupportedFeatureBypass instance



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

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

#webhook(data = {}) ⇒ Object

Create a new Webhook instance



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

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

#webhook_endpoint(data = {}) ⇒ Object

Create a new WebhookEndpoint instance



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

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