Class: LockstepSdk::InsertPaymentRequestModelErpWriteSyncSubmitModel
- Inherits:
-
Object
- Object
- LockstepSdk::InsertPaymentRequestModelErpWriteSyncSubmitModel
- Defined in:
- lib/lockstep_sdk/models/insert_payment_request_model_erp_write_sync_submit_model.rb
Overview
Lockstep.Shared.Models.Sync.ErpWriteSyncSubmitModel`1 represents a request to write back a collection
of requests to the connected AppEnrollment.
Instance Attribute Summary collapse
-
#app_enrollment_id ⇒ Uuid
The connected App Enrollment id.
-
#requests ⇒ InsertPaymentRequestModel
An array of requests to write back.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ InsertPaymentRequestModelErpWriteSyncSubmitModel
constructor
Initialize the InsertPaymentRequestModelErpWriteSyncSubmitModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ InsertPaymentRequestModelErpWriteSyncSubmitModel
Initialize the InsertPaymentRequestModelErpWriteSyncSubmitModel using the provided prototype
26 27 28 29 |
# File 'lib/lockstep_sdk/models/insert_payment_request_model_erp_write_sync_submit_model.rb', line 26 def initialize(params = {}) @app_enrollment_id = params.dig(:app_enrollment_id) @requests = params.dig(:requests) end |
Instance Attribute Details
#app_enrollment_id ⇒ Uuid
Returns The connected App Enrollment id.
33 34 35 |
# File 'lib/lockstep_sdk/models/insert_payment_request_model_erp_write_sync_submit_model.rb', line 33 def app_enrollment_id @app_enrollment_id end |
#requests ⇒ InsertPaymentRequestModel
Returns An array of requests to write back.
37 38 39 |
# File 'lib/lockstep_sdk/models/insert_payment_request_model_erp_write_sync_submit_model.rb', line 37 def requests @requests end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
41 42 43 44 45 46 |
# File 'lib/lockstep_sdk/models/insert_payment_request_model_erp_write_sync_submit_model.rb', line 41 def as_json(={}) { 'appEnrollmentId' => @app_enrollment_id, 'requests' => @requests, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
50 51 52 |
# File 'lib/lockstep_sdk/models/insert_payment_request_model_erp_write_sync_submit_model.rb', line 50 def to_json(*) "[#{as_json(*).to_json(*)}]" end |