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.



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

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.



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

def host
  @host
end

#project_idObject (readonly)

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

#project_secretObject (readonly)

Returns the value of attribute project_secret.



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

def project_secret
  @project_secret
end

Instance Method Details

#activity(data = {}) ⇒ Object

Create a new Activity instance



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

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

#addon(data = {}) ⇒ Object

Create a new Addon instance



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

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

#alternative_merchant_certificate(data = {}) ⇒ Object

Create a new AlternativeMerchantCertificate instance



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

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

#api_version(data = {}) ⇒ Object

Create a new APIVersion instance



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

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

#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object

Create a new ApplePayAlternativeMerchantCertificates instance



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

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

#balance(data = {}) ⇒ Object

Create a new Balance instance



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

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

#balances(data = {}) ⇒ Object

Create a new Balances instance



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

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

#card(data = {}) ⇒ Object

Create a new Card instance



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

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

#card_contact(data = {}) ⇒ Object

Create a new CardContact instance



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

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

#card_create_request(data = {}) ⇒ Object

Create a new CardCreateRequest instance



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

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

#card_information(data = {}) ⇒ Object

Create a new CardInformation instance



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

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

#card_shipping(data = {}) ⇒ Object

Create a new CardShipping instance



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

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

#card_update_request(data = {}) ⇒ Object

Create a new CardUpdateRequest instance



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

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

#category_error_codes(data = {}) ⇒ Object

Create a new CategoryErrorCodes instance



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

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

#coupon(data = {}) ⇒ Object

Create a new Coupon instance



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

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

#customer(data = {}) ⇒ Object

Create a new Customer instance



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

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

#customer_action(data = {}) ⇒ Object

Create a new CustomerAction instance



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

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

#customer_phone(data = {}) ⇒ Object

Create a new CustomerPhone instance



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

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

#device(data = {}) ⇒ Object

Create a new Device instance



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

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

#discount(data = {}) ⇒ Object

Create a new Discount instance



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

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

#dunning_action(data = {}) ⇒ Object

Create a new DunningAction instance



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

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

#error_codes(data = {}) ⇒ Object

Create a new ErrorCodes instance



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

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

#event(data = {}) ⇒ Object

Create a new Event instance



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

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

#export_layout(data = {}) ⇒ Object

Create a new ExportLayout instance



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

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

#export_layout_configuration(data = {}) ⇒ Object

Create a new ExportLayoutConfiguration instance



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

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

#export_layout_configuration_amount(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationAmount instance



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

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

#export_layout_configuration_column(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationColumn instance



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

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



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

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



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

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



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

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

#export_layout_configuration_time(data = {}) ⇒ Object

Create a new ExportLayoutConfigurationTime instance



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

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

#external_three_ds(data = {}) ⇒ Object

Create a new ExternalThreeDS instance



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

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

#gateway(data = {}) ⇒ Object

Create a new Gateway instance



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

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

#gateway_configuration(data = {}) ⇒ Object

Create a new GatewayConfiguration instance



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

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

#invoice(data = {}) ⇒ Object

Create a new Invoice instance



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

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

#invoice_billing(data = {}) ⇒ Object

Create a new InvoiceBilling instance



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

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

#invoice_detail(data = {}) ⇒ Object

Create a new InvoiceDetail instance



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

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

#invoice_device(data = {}) ⇒ Object

Create a new InvoiceDevice instance



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

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

#invoice_external_fraud_tools(data = {}) ⇒ Object

Create a new InvoiceExternalFraudTools instance



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

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

#invoice_risk(data = {}) ⇒ Object

Create a new InvoiceRisk instance



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

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

#invoice_shipping(data = {}) ⇒ Object

Create a new InvoiceShipping instance



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

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

#invoice_shipping_phone(data = {}) ⇒ Object

Create a new InvoiceShippingPhone instance



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

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

#invoice_tax(data = {}) ⇒ Object

Create a new InvoiceTax instance



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

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

#native_apm_parameter_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterDefinition instance



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

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

#native_apm_parameter_value(data = {}) ⇒ Object

Create a new NativeAPMParameterValue instance



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

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

#native_apm_parameter_value_definition(data = {}) ⇒ Object

Create a new NativeAPMParameterValueDefinition instance



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

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

#native_apm_request(data = {}) ⇒ Object

Create a new NativeAPMRequest instance



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

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

#native_apm_response(data = {}) ⇒ Object

Create a new NativeAPMResponse instance



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

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

#native_apm_transaction_details(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetails instance



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

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

#native_apm_transaction_details_gateway(data = {}) ⇒ Object

Create a new NativeAPMTransactionDetailsGateway instance



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

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



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

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

#payment_data_network_authentication(data = {}) ⇒ Object

Create a new PaymentDataNetworkAuthentication instance



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

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

#payment_data_three_ds_authentication(data = {}) ⇒ Object

Create a new PaymentDataThreeDSAuthentication instance



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

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



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

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

#payout(data = {}) ⇒ Object

Create a new Payout instance



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

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

#payout_item(data = {}) ⇒ Object

Create a new PayoutItem instance



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

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

#payout_item_amount_breakdowns(data = {}) ⇒ Object

Create a new PayoutItemAmountBreakdowns instance



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

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

#phone(data = {}) ⇒ Object

Create a new Phone instance



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

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

#plan(data = {}) ⇒ Object

Create a new Plan instance



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

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

#product(data = {}) ⇒ Object

Create a new Product instance



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

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

#project(data = {}) ⇒ Object

Create a new Project instance



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

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

#project_sftp_settings(data = {}) ⇒ Object

Create a new ProjectSFTPSettings instance



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

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

#project_sftp_settings_public(data = {}) ⇒ Object

Create a new ProjectSFTPSettingsPublic instance



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

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

#refund(data = {}) ⇒ Object

Create a new Refund instance



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

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

#subscription(data = {}) ⇒ Object

Create a new Subscription instance



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

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

#three_ds(data = {}) ⇒ Object

Create a new ThreeDS instance



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

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

#token(data = {}) ⇒ Object

Create a new Token instance



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

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

#transaction(data = {}) ⇒ Object

Create a new Transaction instance



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

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

#transaction_operation(data = {}) ⇒ Object

Create a new TransactionOperation instance



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

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

#unsupported_feature_bypass(data = {}) ⇒ Object

Create a new UnsupportedFeatureBypass instance



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

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

#webhook(data = {}) ⇒ Object

Create a new Webhook instance



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

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

#webhook_endpoint(data = {}) ⇒ Object

Create a new WebhookEndpoint instance



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

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