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.
-
#alternative_merchant_certificate(data = {}) ⇒ Object
Create a new AlternativeMerchantCertificate instance.
-
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance.
-
#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object
Create a new ApplePayAlternativeMerchantCertificates 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_contact(data = {}) ⇒ Object
Create a new CardContact instance.
-
#card_create_request(data = {}) ⇒ Object
Create a new CardCreateRequest instance.
-
#card_information(data = {}) ⇒ Object
Create a new CardInformation instance.
-
#card_shipping(data = {}) ⇒ Object
Create a new CardShipping instance.
-
#card_update_request(data = {}) ⇒ Object
Create a new CardUpdateRequest instance.
-
#category_error_codes(data = {}) ⇒ Object
Create a new CategoryErrorCodes 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.
-
#customer_phone(data = {}) ⇒ Object
Create a new CustomerPhone instance.
-
#device(data = {}) ⇒ Object
Create a new Device instance.
-
#discount(data = {}) ⇒ Object
Create a new Discount instance.
-
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction instance.
-
#error_codes(data = {}) ⇒ Object
Create a new ErrorCodes 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_billing(data = {}) ⇒ Object
Create a new InvoiceBilling 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_shipping_phone(data = {}) ⇒ Object
Create a new InvoiceShippingPhone instance.
-
#invoice_tax(data = {}) ⇒ Object
Create a new InvoiceTax instance.
-
#native_apm_parameter_definition(data = {}) ⇒ Object
Create a new NativeAPMParameterDefinition instance.
-
#native_apm_parameter_value(data = {}) ⇒ Object
Create a new NativeAPMParameterValue instance.
-
#native_apm_parameter_value_definition(data = {}) ⇒ Object
Create a new NativeAPMParameterValueDefinition instance.
-
#native_apm_request(data = {}) ⇒ Object
Create a new NativeAPMRequest instance.
-
#native_apm_response(data = {}) ⇒ Object
Create a new NativeAPMResponse instance.
-
#native_apm_transaction_details(data = {}) ⇒ Object
Create a new NativeAPMTransactionDetails instance.
-
#native_apm_transaction_details_gateway(data = {}) ⇒ Object
Create a new NativeAPMTransactionDetailsGateway instance.
-
#native_apm_transaction_details_invoice(data = {}) ⇒ Object
Create a new NativeAPMTransactionDetailsInvoice 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.
-
#payout_item_amount_breakdowns(data = {}) ⇒ Object
Create a new PayoutItemAmountBreakdowns instance.
-
#phone(data = {}) ⇒ Object
Create a new Phone 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.
-
#project_sftp_settings(data = {}) ⇒ Object
Create a new ProjectSFTPSettings instance.
-
#project_sftp_settings_public(data = {}) ⇒ Object
Create a new ProjectSFTPSettingsPublic 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.
-
#unsupported_feature_bypass(data = {}) ⇒ Object
Create a new UnsupportedFeatureBypass 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.
71 72 73 74 75 76 |
# File 'lib/processout.rb', line 71 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.
69 70 71 |
# File 'lib/processout.rb', line 69 def host @host end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
69 70 71 |
# File 'lib/processout.rb', line 69 def project_id @project_id end |
#project_secret ⇒ Object (readonly)
Returns the value of attribute project_secret.
69 70 71 |
# File 'lib/processout.rb', line 69 def project_secret @project_secret end |
Instance Method Details
#activity(data = {}) ⇒ Object
Create a new Activity instance
79 80 81 |
# File 'lib/processout.rb', line 79 def activity(data = {}) obj = Activity.new(self, data) end |
#addon(data = {}) ⇒ Object
Create a new Addon instance
84 85 86 |
# File 'lib/processout.rb', line 84 def addon(data = {}) obj = Addon.new(self, data) end |
#alternative_merchant_certificate(data = {}) ⇒ Object
Create a new AlternativeMerchantCertificate instance
99 100 101 |
# File 'lib/processout.rb', line 99 def alternative_merchant_certificate(data = {}) obj = AlternativeMerchantCertificate.new(self, data) end |
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance
89 90 91 |
# File 'lib/processout.rb', line 89 def api_version(data = {}) obj = APIVersion.new(self, data) end |
#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object
Create a new ApplePayAlternativeMerchantCertificates instance
94 95 96 |
# File 'lib/processout.rb', line 94 def apple_pay_alternative_merchant_certificates(data = {}) obj = ApplePayAlternativeMerchantCertificates.new(self, data) end |
#balance(data = {}) ⇒ Object
Create a new Balance instance
109 110 111 |
# File 'lib/processout.rb', line 109 def balance(data = {}) obj = Balance.new(self, data) end |
#balances(data = {}) ⇒ Object
Create a new Balances instance
104 105 106 |
# File 'lib/processout.rb', line 104 def balances(data = {}) obj = Balances.new(self, data) end |
#card(data = {}) ⇒ Object
Create a new Card instance
114 115 116 |
# File 'lib/processout.rb', line 114 def card(data = {}) obj = Card.new(self, data) end |
#card_contact(data = {}) ⇒ Object
Create a new CardContact instance
354 355 356 |
# File 'lib/processout.rb', line 354 def card_contact(data = {}) obj = CardContact.new(self, data) end |
#card_create_request(data = {}) ⇒ Object
Create a new CardCreateRequest instance
344 345 346 |
# File 'lib/processout.rb', line 344 def card_create_request(data = {}) obj = CardCreateRequest.new(self, data) end |
#card_information(data = {}) ⇒ Object
Create a new CardInformation instance
119 120 121 |
# File 'lib/processout.rb', line 119 def card_information(data = {}) obj = CardInformation.new(self, data) end |
#card_shipping(data = {}) ⇒ Object
Create a new CardShipping instance
359 360 361 |
# File 'lib/processout.rb', line 359 def card_shipping(data = {}) obj = CardShipping.new(self, data) end |
#card_update_request(data = {}) ⇒ Object
Create a new CardUpdateRequest instance
364 365 366 |
# File 'lib/processout.rb', line 364 def card_update_request(data = {}) obj = CardUpdateRequest.new(self, data) end |
#category_error_codes(data = {}) ⇒ Object
Create a new CategoryErrorCodes instance
374 375 376 |
# File 'lib/processout.rb', line 374 def category_error_codes(data = {}) obj = CategoryErrorCodes.new(self, data) end |
#coupon(data = {}) ⇒ Object
Create a new Coupon instance
129 130 131 |
# File 'lib/processout.rb', line 129 def coupon(data = {}) obj = Coupon.new(self, data) end |
#customer(data = {}) ⇒ Object
Create a new Customer instance
134 135 136 |
# File 'lib/processout.rb', line 134 def customer(data = {}) obj = Customer.new(self, data) end |
#customer_action(data = {}) ⇒ Object
Create a new CustomerAction instance
229 230 231 |
# File 'lib/processout.rb', line 229 def customer_action(data = {}) obj = CustomerAction.new(self, data) end |
#customer_phone(data = {}) ⇒ Object
Create a new CustomerPhone instance
139 140 141 |
# File 'lib/processout.rb', line 139 def customer_phone(data = {}) obj = CustomerPhone.new(self, data) end |
#device(data = {}) ⇒ Object
Create a new Device instance
349 350 351 |
# File 'lib/processout.rb', line 349 def device(data = {}) obj = Device.new(self, data) end |
#discount(data = {}) ⇒ Object
Create a new Discount instance
149 150 151 |
# File 'lib/processout.rb', line 149 def discount(data = {}) obj = Discount.new(self, data) end |
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction instance
234 235 236 |
# File 'lib/processout.rb', line 234 def dunning_action(data = {}) obj = DunningAction.new(self, data) end |
#error_codes(data = {}) ⇒ Object
Create a new ErrorCodes instance
369 370 371 |
# File 'lib/processout.rb', line 369 def error_codes(data = {}) obj = ErrorCodes.new(self, data) end |
#event(data = {}) ⇒ Object
Create a new Event instance
154 155 156 |
# File 'lib/processout.rb', line 154 def event(data = {}) obj = Event.new(self, data) end |
#gateway(data = {}) ⇒ Object
Create a new Gateway instance
159 160 161 |
# File 'lib/processout.rb', line 159 def gateway(data = {}) obj = Gateway.new(self, data) end |
#gateway_configuration(data = {}) ⇒ Object
Create a new GatewayConfiguration instance
164 165 166 |
# File 'lib/processout.rb', line 164 def gateway_configuration(data = {}) obj = GatewayConfiguration.new(self, data) end |
#invoice(data = {}) ⇒ Object
Create a new Invoice instance
169 170 171 |
# File 'lib/processout.rb', line 169 def invoice(data = {}) obj = Invoice.new(self, data) end |
#invoice_billing(data = {}) ⇒ Object
Create a new InvoiceBilling instance
214 215 216 |
# File 'lib/processout.rb', line 214 def invoice_billing(data = {}) obj = InvoiceBilling.new(self, data) end |
#invoice_detail(data = {}) ⇒ Object
Create a new InvoiceDetail instance
224 225 226 |
# File 'lib/processout.rb', line 224 def invoice_detail(data = {}) obj = InvoiceDetail.new(self, data) end |
#invoice_device(data = {}) ⇒ Object
Create a new InvoiceDevice instance
199 200 201 |
# File 'lib/processout.rb', line 199 def invoice_device(data = {}) obj = InvoiceDevice.new(self, data) end |
#invoice_external_fraud_tools(data = {}) ⇒ Object
Create a new InvoiceExternalFraudTools instance
189 190 191 |
# File 'lib/processout.rb', line 189 def invoice_external_fraud_tools(data = {}) obj = InvoiceExternalFraudTools.new(self, data) end |
#invoice_risk(data = {}) ⇒ Object
Create a new InvoiceRisk instance
194 195 196 |
# File 'lib/processout.rb', line 194 def invoice_risk(data = {}) obj = InvoiceRisk.new(self, data) end |
#invoice_shipping(data = {}) ⇒ Object
Create a new InvoiceShipping instance
204 205 206 |
# File 'lib/processout.rb', line 204 def invoice_shipping(data = {}) obj = InvoiceShipping.new(self, data) end |
#invoice_shipping_phone(data = {}) ⇒ Object
Create a new InvoiceShippingPhone instance
209 210 211 |
# File 'lib/processout.rb', line 209 def invoice_shipping_phone(data = {}) obj = InvoiceShippingPhone.new(self, data) end |
#invoice_tax(data = {}) ⇒ Object
Create a new InvoiceTax instance
184 185 186 |
# File 'lib/processout.rb', line 184 def invoice_tax(data = {}) obj = InvoiceTax.new(self, data) end |
#native_apm_parameter_definition(data = {}) ⇒ Object
Create a new NativeAPMParameterDefinition instance
299 300 301 |
# File 'lib/processout.rb', line 299 def native_apm_parameter_definition(data = {}) obj = NativeAPMParameterDefinition.new(self, data) end |
#native_apm_parameter_value(data = {}) ⇒ Object
Create a new NativeAPMParameterValue instance
179 180 181 |
# File 'lib/processout.rb', line 179 def native_apm_parameter_value(data = {}) obj = NativeAPMParameterValue.new(self, data) end |
#native_apm_parameter_value_definition(data = {}) ⇒ Object
Create a new NativeAPMParameterValueDefinition instance
304 305 306 |
# File 'lib/processout.rb', line 304 def native_apm_parameter_value_definition(data = {}) obj = NativeAPMParameterValueDefinition.new(self, data) end |
#native_apm_request(data = {}) ⇒ Object
Create a new NativeAPMRequest instance
174 175 176 |
# File 'lib/processout.rb', line 174 def native_apm_request(data = {}) obj = NativeAPMRequest.new(self, data) end |
#native_apm_response(data = {}) ⇒ Object
Create a new NativeAPMResponse instance
294 295 296 |
# File 'lib/processout.rb', line 294 def native_apm_response(data = {}) obj = NativeAPMResponse.new(self, data) end |
#native_apm_transaction_details(data = {}) ⇒ Object
Create a new NativeAPMTransactionDetails instance
389 390 391 |
# File 'lib/processout.rb', line 389 def native_apm_transaction_details(data = {}) obj = NativeAPMTransactionDetails.new(self, data) end |
#native_apm_transaction_details_gateway(data = {}) ⇒ Object
Create a new NativeAPMTransactionDetailsGateway instance
379 380 381 |
# File 'lib/processout.rb', line 379 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
384 385 386 |
# File 'lib/processout.rb', line 384 def native_apm_transaction_details_invoice(data = {}) obj = NativeAPMTransactionDetailsInvoice.new(self, data) end |
#payment_data_network_authentication(data = {}) ⇒ Object
Create a new PaymentDataNetworkAuthentication instance
319 320 321 |
# File 'lib/processout.rb', line 319 def payment_data_network_authentication(data = {}) obj = PaymentDataNetworkAuthentication.new(self, data) end |
#payment_data_three_ds_authentication(data = {}) ⇒ Object
Create a new PaymentDataThreeDSAuthentication instance
324 325 326 |
# File 'lib/processout.rb', line 324 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
314 315 316 |
# File 'lib/processout.rb', line 314 def payment_data_three_ds_request(data = {}) obj = PaymentDataThreeDSRequest.new(self, data) end |
#payout(data = {}) ⇒ Object
Create a new Payout instance
239 240 241 |
# File 'lib/processout.rb', line 239 def payout(data = {}) obj = Payout.new(self, data) end |
#payout_item(data = {}) ⇒ Object
Create a new PayoutItem instance
244 245 246 |
# File 'lib/processout.rb', line 244 def payout_item(data = {}) obj = PayoutItem.new(self, data) end |
#payout_item_amount_breakdowns(data = {}) ⇒ Object
Create a new PayoutItemAmountBreakdowns instance
249 250 251 |
# File 'lib/processout.rb', line 249 def payout_item_amount_breakdowns(data = {}) obj = PayoutItemAmountBreakdowns.new(self, data) end |
#phone(data = {}) ⇒ Object
Create a new Phone instance
124 125 126 |
# File 'lib/processout.rb', line 124 def phone(data = {}) obj = Phone.new(self, data) end |
#plan(data = {}) ⇒ Object
Create a new Plan instance
254 255 256 |
# File 'lib/processout.rb', line 254 def plan(data = {}) obj = Plan.new(self, data) end |
#product(data = {}) ⇒ Object
Create a new Product instance
259 260 261 |
# File 'lib/processout.rb', line 259 def product(data = {}) obj = Product.new(self, data) end |
#project(data = {}) ⇒ Object
Create a new Project instance
264 265 266 |
# File 'lib/processout.rb', line 264 def project(data = {}) obj = Project.new(self, data) end |
#project_sftp_settings(data = {}) ⇒ Object
Create a new ProjectSFTPSettings instance
269 270 271 |
# File 'lib/processout.rb', line 269 def project_sftp_settings(data = {}) obj = ProjectSFTPSettings.new(self, data) end |
#project_sftp_settings_public(data = {}) ⇒ Object
Create a new ProjectSFTPSettingsPublic instance
274 275 276 |
# File 'lib/processout.rb', line 274 def project_sftp_settings_public(data = {}) obj = ProjectSFTPSettingsPublic.new(self, data) end |
#refund(data = {}) ⇒ Object
Create a new Refund instance
279 280 281 |
# File 'lib/processout.rb', line 279 def refund(data = {}) obj = Refund.new(self, data) end |
#subscription(data = {}) ⇒ Object
Create a new Subscription instance
284 285 286 |
# File 'lib/processout.rb', line 284 def subscription(data = {}) obj = Subscription.new(self, data) end |
#three_ds(data = {}) ⇒ Object
Create a new ThreeDS instance
309 310 311 |
# File 'lib/processout.rb', line 309 def three_ds(data = {}) obj = ThreeDS.new(self, data) end |
#token(data = {}) ⇒ Object
Create a new Token instance
144 145 146 |
# File 'lib/processout.rb', line 144 def token(data = {}) obj = Token.new(self, data) end |
#transaction(data = {}) ⇒ Object
Create a new Transaction instance
289 290 291 |
# File 'lib/processout.rb', line 289 def transaction(data = {}) obj = Transaction.new(self, data) end |
#transaction_operation(data = {}) ⇒ Object
Create a new TransactionOperation instance
329 330 331 |
# File 'lib/processout.rb', line 329 def transaction_operation(data = {}) obj = TransactionOperation.new(self, data) end |
#unsupported_feature_bypass(data = {}) ⇒ Object
Create a new UnsupportedFeatureBypass instance
219 220 221 |
# File 'lib/processout.rb', line 219 def unsupported_feature_bypass(data = {}) obj = UnsupportedFeatureBypass.new(self, data) end |
#webhook(data = {}) ⇒ Object
Create a new Webhook instance
334 335 336 |
# File 'lib/processout.rb', line 334 def webhook(data = {}) obj = Webhook.new(self, data) end |
#webhook_endpoint(data = {}) ⇒ Object
Create a new WebhookEndpoint instance
339 340 341 |
# File 'lib/processout.rb', line 339 def webhook_endpoint(data = {}) obj = WebhookEndpoint.new(self, data) end |