Module: Justifi::Business
- Defined in:
- lib/justifi/business.rb
Class Method Summary collapse
- .create(params:, headers: {}) ⇒ Object
- .get(business_id:, headers: {}) ⇒ Object
- .list(params: {}, headers: {}) ⇒ Object
- .update(business_id:, params:, headers: {}) ⇒ Object
Class Method Details
.create(params:, headers: {}) ⇒ Object
6 7 8 |
# File 'lib/justifi/business.rb', line 6 def create(params:, headers: {}) JustifiOperations.execute_post_request("/v1/entities/business", params, headers) end |
.get(business_id:, headers: {}) ⇒ Object
14 15 16 17 18 |
# File 'lib/justifi/business.rb', line 14 def get(business_id:, headers: {}) JustifiOperations.execute_get_request("/v1/entities/business/#{business_id}", {}, headers) end |
.list(params: {}, headers: {}) ⇒ Object
10 11 12 |
# File 'lib/justifi/business.rb', line 10 def list(params: {}, headers: {}) JustifiOperations.list("/v1/entities/business", params, headers) end |
.update(business_id:, params:, headers: {}) ⇒ Object
20 21 22 |
# File 'lib/justifi/business.rb', line 20 def update(business_id:, params:, headers: {}) JustifiOperations.execute_patch_request("/v1/entities/business/#{business_id}", params, headers) end |