class

KemalcrStarter::Infrastructure::DB::ProductRepository

Inherits KemalcrStarter::Infrastructure::DB::Repository < Reference < Object

Instance methods

create(id : String, organization_id : String, sku : String, name : String, description : String | Nil, price_cents : Int32, currency : String, created_by : String | Nil) : ProductRecord
Source
delete(id : String) : Bool
Source
find(id : String) : ProductRecord | Nil
Source
list_for_organization(organization_id : String, status : String | Nil = nil, limit : Int32 = 50, offset : Int32 = 0) : Array(ProductRecord)
Source
update(id : String, name : String | Nil, description : String | Nil, price_cents : Int32 | Nil, status : String | Nil) : ProductRecord | Nil
Source