Class: Openpix::RubySdk::Resources::Refund
- Defined in:
- lib/openpix/ruby_sdk/resources/refund.rb
Overview
Make API operations on Refund resource
Constant Summary collapse
- ATTRS =
%w[ value transactionEndToEndId correlationID comment ].freeze
Instance Method Summary collapse
- #create_attributes ⇒ Object
-
#destroy(id:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
- #destroy!(id:) ⇒ Object
- #init_body(params: {}, rest: {}) ⇒ Object
- #to_url ⇒ Object
Methods inherited from Resource
#fetch, #fetch!, #fetch_next_page!, #fetch_previous_page!, #find, #find!, #initialize, #save, #save!, #to_body, #to_collection_resource, #to_single_resource
Constructor Details
This class inherits a constructor from Openpix::RubySdk::Resources::Resource
Instance Method Details
#create_attributes ⇒ Object
28 29 30 |
# File 'lib/openpix/ruby_sdk/resources/refund.rb', line 28 def create_attributes ATTRS end |
#destroy(id:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
37 38 39 40 41 42 |
# File 'lib/openpix/ruby_sdk/resources/refund.rb', line 37 def destroy(id:) raise( ActionNotImplementedError, 'refund does not implement DELETE action' ) end |
#destroy!(id:) ⇒ Object
44 45 46 47 48 49 |
# File 'lib/openpix/ruby_sdk/resources/refund.rb', line 44 def destroy!(id:) raise( ActionNotImplementedError, 'refund does not implement DELETE action' ) end |
#init_body(params: {}, rest: {}) ⇒ Object
24 25 26 |
# File 'lib/openpix/ruby_sdk/resources/refund.rb', line 24 def init_body(params: {}, rest: {}) super(base_attrs: ATTRS, params: params, rest: rest) end |
#to_url ⇒ Object
32 33 34 |
# File 'lib/openpix/ruby_sdk/resources/refund.rb', line 32 def to_url 'refund' end |