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_request(data = {}) ⇒ Object
Create a new APIRequest 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_information(data = {}) ⇒ Object
Create a new CardInformation 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.
-
#discount(data = {}) ⇒ Object
Create a new Discount instance.
-
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction 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_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_tax(data = {}) ⇒ Object
Create a new InvoiceTax 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.
-
#plan(data = {}) ⇒ Object
Create a new Plan instance.
-
#product(data = {}) ⇒ Object
Create a new Product instance.
-
#project(data = {}) ⇒ Object
Create a new Project 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.
-
#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.
49 50 51 52 53 54 |
# File 'lib/processout.rb', line 49 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.
47 48 49 |
# File 'lib/processout.rb', line 47 def host @host end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
47 48 49 |
# File 'lib/processout.rb', line 47 def project_id @project_id end |
#project_secret ⇒ Object (readonly)
Returns the value of attribute project_secret.
47 48 49 |
# File 'lib/processout.rb', line 47 def project_secret @project_secret end |
Instance Method Details
#activity(data = {}) ⇒ Object
Create a new Activity instance
57 58 59 |
# File 'lib/processout.rb', line 57 def activity(data = {}) obj = Activity.new(self, data) end |
#addon(data = {}) ⇒ Object
Create a new Addon instance
62 63 64 |
# File 'lib/processout.rb', line 62 def addon(data = {}) obj = Addon.new(self, data) end |
#alternative_merchant_certificate(data = {}) ⇒ Object
Create a new AlternativeMerchantCertificate instance
82 83 84 |
# File 'lib/processout.rb', line 82 def alternative_merchant_certificate(data = {}) obj = AlternativeMerchantCertificate.new(self, data) end |
#api_request(data = {}) ⇒ Object
Create a new APIRequest instance
67 68 69 |
# File 'lib/processout.rb', line 67 def api_request(data = {}) obj = APIRequest.new(self, data) end |
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance
72 73 74 |
# File 'lib/processout.rb', line 72 def api_version(data = {}) obj = APIVersion.new(self, data) end |
#apple_pay_alternative_merchant_certificates(data = {}) ⇒ Object
Create a new ApplePayAlternativeMerchantCertificates instance
77 78 79 |
# File 'lib/processout.rb', line 77 def apple_pay_alternative_merchant_certificates(data = {}) obj = ApplePayAlternativeMerchantCertificates.new(self, data) end |
#balance(data = {}) ⇒ Object
Create a new Balance instance
92 93 94 |
# File 'lib/processout.rb', line 92 def balance(data = {}) obj = Balance.new(self, data) end |
#balances(data = {}) ⇒ Object
Create a new Balances instance
87 88 89 |
# File 'lib/processout.rb', line 87 def balances(data = {}) obj = Balances.new(self, data) end |
#card(data = {}) ⇒ Object
Create a new Card instance
97 98 99 |
# File 'lib/processout.rb', line 97 def card(data = {}) obj = Card.new(self, data) end |
#card_information(data = {}) ⇒ Object
Create a new CardInformation instance
102 103 104 |
# File 'lib/processout.rb', line 102 def card_information(data = {}) obj = CardInformation.new(self, data) end |
#coupon(data = {}) ⇒ Object
Create a new Coupon instance
107 108 109 |
# File 'lib/processout.rb', line 107 def coupon(data = {}) obj = Coupon.new(self, data) end |
#customer(data = {}) ⇒ Object
Create a new Customer instance
112 113 114 |
# File 'lib/processout.rb', line 112 def customer(data = {}) obj = Customer.new(self, data) end |
#customer_action(data = {}) ⇒ Object
Create a new CustomerAction instance
177 178 179 |
# File 'lib/processout.rb', line 177 def customer_action(data = {}) obj = CustomerAction.new(self, data) end |
#discount(data = {}) ⇒ Object
Create a new Discount instance
122 123 124 |
# File 'lib/processout.rb', line 122 def discount(data = {}) obj = Discount.new(self, data) end |
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction instance
182 183 184 |
# File 'lib/processout.rb', line 182 def dunning_action(data = {}) obj = DunningAction.new(self, data) end |
#event(data = {}) ⇒ Object
Create a new Event instance
127 128 129 |
# File 'lib/processout.rb', line 127 def event(data = {}) obj = Event.new(self, data) end |
#gateway(data = {}) ⇒ Object
Create a new Gateway instance
132 133 134 |
# File 'lib/processout.rb', line 132 def gateway(data = {}) obj = Gateway.new(self, data) end |
#gateway_configuration(data = {}) ⇒ Object
Create a new GatewayConfiguration instance
137 138 139 |
# File 'lib/processout.rb', line 137 def gateway_configuration(data = {}) obj = GatewayConfiguration.new(self, data) end |
#invoice(data = {}) ⇒ Object
Create a new Invoice instance
142 143 144 |
# File 'lib/processout.rb', line 142 def invoice(data = {}) obj = Invoice.new(self, data) end |
#invoice_detail(data = {}) ⇒ Object
Create a new InvoiceDetail instance
172 173 174 |
# File 'lib/processout.rb', line 172 def invoice_detail(data = {}) obj = InvoiceDetail.new(self, data) end |
#invoice_device(data = {}) ⇒ Object
Create a new InvoiceDevice instance
162 163 164 |
# File 'lib/processout.rb', line 162 def invoice_device(data = {}) obj = InvoiceDevice.new(self, data) end |
#invoice_external_fraud_tools(data = {}) ⇒ Object
Create a new InvoiceExternalFraudTools instance
152 153 154 |
# File 'lib/processout.rb', line 152 def invoice_external_fraud_tools(data = {}) obj = InvoiceExternalFraudTools.new(self, data) end |
#invoice_risk(data = {}) ⇒ Object
Create a new InvoiceRisk instance
157 158 159 |
# File 'lib/processout.rb', line 157 def invoice_risk(data = {}) obj = InvoiceRisk.new(self, data) end |
#invoice_shipping(data = {}) ⇒ Object
Create a new InvoiceShipping instance
167 168 169 |
# File 'lib/processout.rb', line 167 def invoice_shipping(data = {}) obj = InvoiceShipping.new(self, data) end |
#invoice_tax(data = {}) ⇒ Object
Create a new InvoiceTax instance
147 148 149 |
# File 'lib/processout.rb', line 147 def invoice_tax(data = {}) obj = InvoiceTax.new(self, data) end |
#payment_data_network_authentication(data = {}) ⇒ Object
Create a new PaymentDataNetworkAuthentication instance
237 238 239 |
# File 'lib/processout.rb', line 237 def payment_data_network_authentication(data = {}) obj = PaymentDataNetworkAuthentication.new(self, data) end |
#payment_data_three_ds_authentication(data = {}) ⇒ Object
Create a new PaymentDataThreeDSAuthentication instance
242 243 244 |
# File 'lib/processout.rb', line 242 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
232 233 234 |
# File 'lib/processout.rb', line 232 def payment_data_three_ds_request(data = {}) obj = PaymentDataThreeDSRequest.new(self, data) end |
#payout(data = {}) ⇒ Object
Create a new Payout instance
187 188 189 |
# File 'lib/processout.rb', line 187 def payout(data = {}) obj = Payout.new(self, data) end |
#payout_item(data = {}) ⇒ Object
Create a new PayoutItem instance
192 193 194 |
# File 'lib/processout.rb', line 192 def payout_item(data = {}) obj = PayoutItem.new(self, data) end |
#plan(data = {}) ⇒ Object
Create a new Plan instance
197 198 199 |
# File 'lib/processout.rb', line 197 def plan(data = {}) obj = Plan.new(self, data) end |
#product(data = {}) ⇒ Object
Create a new Product instance
202 203 204 |
# File 'lib/processout.rb', line 202 def product(data = {}) obj = Product.new(self, data) end |
#project(data = {}) ⇒ Object
Create a new Project instance
207 208 209 |
# File 'lib/processout.rb', line 207 def project(data = {}) obj = Project.new(self, data) end |
#refund(data = {}) ⇒ Object
Create a new Refund instance
212 213 214 |
# File 'lib/processout.rb', line 212 def refund(data = {}) obj = Refund.new(self, data) end |
#subscription(data = {}) ⇒ Object
Create a new Subscription instance
217 218 219 |
# File 'lib/processout.rb', line 217 def subscription(data = {}) obj = Subscription.new(self, data) end |
#three_ds(data = {}) ⇒ Object
Create a new ThreeDS instance
227 228 229 |
# File 'lib/processout.rb', line 227 def three_ds(data = {}) obj = ThreeDS.new(self, data) end |
#token(data = {}) ⇒ Object
Create a new Token instance
117 118 119 |
# File 'lib/processout.rb', line 117 def token(data = {}) obj = Token.new(self, data) end |
#transaction(data = {}) ⇒ Object
Create a new Transaction instance
222 223 224 |
# File 'lib/processout.rb', line 222 def transaction(data = {}) obj = Transaction.new(self, data) end |
#transaction_operation(data = {}) ⇒ Object
Create a new TransactionOperation instance
247 248 249 |
# File 'lib/processout.rb', line 247 def transaction_operation(data = {}) obj = TransactionOperation.new(self, data) end |
#webhook(data = {}) ⇒ Object
Create a new Webhook instance
252 253 254 |
# File 'lib/processout.rb', line 252 def webhook(data = {}) obj = Webhook.new(self, data) end |
#webhook_endpoint(data = {}) ⇒ Object
Create a new WebhookEndpoint instance
257 258 259 |
# File 'lib/processout.rb', line 257 def webhook_endpoint(data = {}) obj = WebhookEndpoint.new(self, data) end |