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.
-
#api_request(data = {}) ⇒ Object
Create a new APIRequest instance.
-
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance.
-
#authorization_request(data = {}) ⇒ Object
Create a new AuthorizationRequest 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_risk(data = {}) ⇒ Object
Create a new InvoiceRisk instance.
-
#invoice_shipping(data = {}) ⇒ Object
Create a new InvoiceShipping 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.
-
#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.
43 44 45 46 47 48 |
# File 'lib/processout.rb', line 43 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.
41 42 43 |
# File 'lib/processout.rb', line 41 def host @host end |
#project_id ⇒ Object (readonly)
Returns the value of attribute project_id.
41 42 43 |
# File 'lib/processout.rb', line 41 def project_id @project_id end |
#project_secret ⇒ Object (readonly)
Returns the value of attribute project_secret.
41 42 43 |
# File 'lib/processout.rb', line 41 def project_secret @project_secret end |
Instance Method Details
#activity(data = {}) ⇒ Object
Create a new Activity instance
51 52 53 |
# File 'lib/processout.rb', line 51 def activity(data = {}) obj = Activity.new(self, data) end |
#addon(data = {}) ⇒ Object
Create a new Addon instance
56 57 58 |
# File 'lib/processout.rb', line 56 def addon(data = {}) obj = Addon.new(self, data) end |
#api_request(data = {}) ⇒ Object
Create a new APIRequest instance
61 62 63 |
# File 'lib/processout.rb', line 61 def api_request(data = {}) obj = APIRequest.new(self, data) end |
#api_version(data = {}) ⇒ Object
Create a new APIVersion instance
66 67 68 |
# File 'lib/processout.rb', line 66 def api_version(data = {}) obj = APIVersion.new(self, data) end |
#authorization_request(data = {}) ⇒ Object
Create a new AuthorizationRequest instance
71 72 73 |
# File 'lib/processout.rb', line 71 def (data = {}) obj = AuthorizationRequest.new(self, data) end |
#card(data = {}) ⇒ Object
Create a new Card instance
76 77 78 |
# File 'lib/processout.rb', line 76 def card(data = {}) obj = Card.new(self, data) end |
#card_information(data = {}) ⇒ Object
Create a new CardInformation instance
81 82 83 |
# File 'lib/processout.rb', line 81 def card_information(data = {}) obj = CardInformation.new(self, data) end |
#coupon(data = {}) ⇒ Object
Create a new Coupon instance
86 87 88 |
# File 'lib/processout.rb', line 86 def coupon(data = {}) obj = Coupon.new(self, data) end |
#customer(data = {}) ⇒ Object
Create a new Customer instance
91 92 93 |
# File 'lib/processout.rb', line 91 def customer(data = {}) obj = Customer.new(self, data) end |
#customer_action(data = {}) ⇒ Object
Create a new CustomerAction instance
146 147 148 |
# File 'lib/processout.rb', line 146 def customer_action(data = {}) obj = CustomerAction.new(self, data) end |
#discount(data = {}) ⇒ Object
Create a new Discount instance
101 102 103 |
# File 'lib/processout.rb', line 101 def discount(data = {}) obj = Discount.new(self, data) end |
#dunning_action(data = {}) ⇒ Object
Create a new DunningAction instance
151 152 153 |
# File 'lib/processout.rb', line 151 def dunning_action(data = {}) obj = DunningAction.new(self, data) end |
#event(data = {}) ⇒ Object
Create a new Event instance
106 107 108 |
# File 'lib/processout.rb', line 106 def event(data = {}) obj = Event.new(self, data) end |
#gateway(data = {}) ⇒ Object
Create a new Gateway instance
111 112 113 |
# File 'lib/processout.rb', line 111 def gateway(data = {}) obj = Gateway.new(self, data) end |
#gateway_configuration(data = {}) ⇒ Object
Create a new GatewayConfiguration instance
116 117 118 |
# File 'lib/processout.rb', line 116 def gateway_configuration(data = {}) obj = GatewayConfiguration.new(self, data) end |
#invoice(data = {}) ⇒ Object
Create a new Invoice instance
121 122 123 |
# File 'lib/processout.rb', line 121 def invoice(data = {}) obj = Invoice.new(self, data) end |
#invoice_detail(data = {}) ⇒ Object
Create a new InvoiceDetail instance
141 142 143 |
# File 'lib/processout.rb', line 141 def invoice_detail(data = {}) obj = InvoiceDetail.new(self, data) end |
#invoice_device(data = {}) ⇒ Object
Create a new InvoiceDevice instance
131 132 133 |
# File 'lib/processout.rb', line 131 def invoice_device(data = {}) obj = InvoiceDevice.new(self, data) end |
#invoice_risk(data = {}) ⇒ Object
Create a new InvoiceRisk instance
126 127 128 |
# File 'lib/processout.rb', line 126 def invoice_risk(data = {}) obj = InvoiceRisk.new(self, data) end |
#invoice_shipping(data = {}) ⇒ Object
Create a new InvoiceShipping instance
136 137 138 |
# File 'lib/processout.rb', line 136 def invoice_shipping(data = {}) obj = InvoiceShipping.new(self, data) end |
#payment_data_network_authentication(data = {}) ⇒ Object
Create a new PaymentDataNetworkAuthentication instance
201 202 203 |
# File 'lib/processout.rb', line 201 def payment_data_network_authentication(data = {}) obj = PaymentDataNetworkAuthentication.new(self, data) end |
#payment_data_three_ds_authentication(data = {}) ⇒ Object
Create a new PaymentDataThreeDSAuthentication instance
206 207 208 |
# File 'lib/processout.rb', line 206 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
196 197 198 |
# File 'lib/processout.rb', line 196 def payment_data_three_ds_request(data = {}) obj = PaymentDataThreeDSRequest.new(self, data) end |
#payout(data = {}) ⇒ Object
Create a new Payout instance
156 157 158 |
# File 'lib/processout.rb', line 156 def payout(data = {}) obj = Payout.new(self, data) end |
#payout_item(data = {}) ⇒ Object
Create a new PayoutItem instance
161 162 163 |
# File 'lib/processout.rb', line 161 def payout_item(data = {}) obj = PayoutItem.new(self, data) end |
#plan(data = {}) ⇒ Object
Create a new Plan instance
166 167 168 |
# File 'lib/processout.rb', line 166 def plan(data = {}) obj = Plan.new(self, data) end |
#product(data = {}) ⇒ Object
Create a new Product instance
171 172 173 |
# File 'lib/processout.rb', line 171 def product(data = {}) obj = Product.new(self, data) end |
#project(data = {}) ⇒ Object
Create a new Project instance
176 177 178 |
# File 'lib/processout.rb', line 176 def project(data = {}) obj = Project.new(self, data) end |
#refund(data = {}) ⇒ Object
Create a new Refund instance
181 182 183 |
# File 'lib/processout.rb', line 181 def refund(data = {}) obj = Refund.new(self, data) end |
#subscription(data = {}) ⇒ Object
Create a new Subscription instance
186 187 188 |
# File 'lib/processout.rb', line 186 def subscription(data = {}) obj = Subscription.new(self, data) end |
#token(data = {}) ⇒ Object
Create a new Token instance
96 97 98 |
# File 'lib/processout.rb', line 96 def token(data = {}) obj = Token.new(self, data) end |
#transaction(data = {}) ⇒ Object
Create a new Transaction instance
191 192 193 |
# File 'lib/processout.rb', line 191 def transaction(data = {}) obj = Transaction.new(self, data) end |
#transaction_operation(data = {}) ⇒ Object
Create a new TransactionOperation instance
211 212 213 |
# File 'lib/processout.rb', line 211 def transaction_operation(data = {}) obj = TransactionOperation.new(self, data) end |
#webhook(data = {}) ⇒ Object
Create a new Webhook instance
216 217 218 |
# File 'lib/processout.rb', line 216 def webhook(data = {}) obj = Webhook.new(self, data) end |
#webhook_endpoint(data = {}) ⇒ Object
Create a new WebhookEndpoint instance
221 222 223 |
# File 'lib/processout.rb', line 221 def webhook_endpoint(data = {}) obj = WebhookEndpoint.new(self, data) end |