Class: OSTSdk::Saas::TransactionKind
- Defined in:
- lib/ost-sdk-ruby-stag/saas/transaction_kind.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#create(params) ⇒ Object
Creates a new transaction type.
-
#delete(params) ⇒ Object
Delete a transaction type.
-
#initialize(environment, credentials) ⇒ TransactionKind
constructor
Initialize.
-
#list ⇒ Object
Creates a new transaction type.
-
#update(params) ⇒ Object
Update a transaction type.
Methods included from Util::ServicesHelper
#current_time, #current_timestamp, #error_with_data, #exception_with_data, #perform_and_handle_exceptions, #success, #success_with_data
Constructor Details
#initialize(environment, credentials) ⇒ TransactionKind
Initialize
Arguments:
environment: (String)
credentials: (OSTSdk::Util::APICredentials)
13 14 15 16 |
# File 'lib/ost-sdk-ruby-stag/saas/transaction_kind.rb', line 13 def initialize(environment, credentials) super @url_prefix = 'transaction/kind' end |
Instance Method Details
#create(params) ⇒ Object
Creates a new transaction type
28 29 30 |
# File 'lib/ost-sdk-ruby-stag/saas/transaction_kind.rb', line 28 def create(params) http_helper.send_post_request("#{@url_prefix}/create", params) end |
#delete(params) ⇒ Object
Delete a transaction type
44 45 46 |
# File 'lib/ost-sdk-ruby-stag/saas/transaction_kind.rb', line 44 def delete(params) http_helper.send_post_request("#{@url_prefix}/delete", params) end |
#list ⇒ Object
Creates a new transaction type
20 21 22 |
# File 'lib/ost-sdk-ruby-stag/saas/transaction_kind.rb', line 20 def list http_helper.send_get_request("#{@url_prefix}/get-all", {}) end |
#update(params) ⇒ Object
Update a transaction type
36 37 38 |
# File 'lib/ost-sdk-ruby-stag/saas/transaction_kind.rb', line 36 def update(params) http_helper.send_post_request("#{@url_prefix}/update", params) end |