Sha256: 8bfb6baaf2417c5bf0353aa5fc5a09c3d9de69650cd0c6ec4d8fe4bd1a10475c
Contents?: true
Size: 1.68 KB
Versions: 2
Compression:
Stored size: 1.68 KB
Contents
require_relative 'models/model_base' require_relative 'models/customer_beneficiary_id_only' module CorePro class CustomerBeneficiary < Models::ModelBase attr_accessor :customerId attr_accessor :customerBeneficiaryId attr_accessor :firstName attr_accessor :middleName attr_accessor :lastName attr_accessor :birthDate attr_accessor :taxId attr_accessor :taxIdMasked attr_accessor :isActive attr_accessor :lastModifiedDate def self.list(customerId, connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/customerbeneficiary/list/#{customerId}", CustomerBeneficiary, connection, loggingObject) end def self.get(customerId, customerBeneficiaryId, connection = nil, loggingObject = nil) CorePro::Utils::Requestor.get("/customerbeneficiary/get/#{customerId}/#{customerBeneficiaryId}", CustomerBeneficiary, connection, loggingObject) end def create(connection = nil, loggingObject = nil) cbid = CorePro::Utils::Requestor.post('/customerbeneficiary/create', CorePro::Models::CustomerBeneficiaryIdOnly, self, connection, loggingObject) cbid.customerBeneficiaryId end def update(connection = nil, loggingObject = nil) cbid = CorePro::Utils::Requestor.post('/customerbeneficiary/update', CorePro::Models::CustomerBeneficiaryIdOnly, self, connection, loggingObject) cbid.customerBeneficiaryId end def deactivate(connection = nil, loggingObject = nil) cbid = CorePro::Utils::Requestor.post('/customerbeneficiary/deactivate', CorePro::Models::CustomerBeneficiaryIdOnly, self, connection, loggingObject) cbid.customerBeneficiaryId end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
corepro-1.0.1 | lib/corepro/customer_beneficiary.rb |
corepro-1.0.0 | lib/corepro/customer_beneficiary.rb |