public VendorCatalogItem(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["vendorPartnerId"] != null)
     {
         this._VendorPartnerId = ParseInt(node["vendorPartnerId"].Value <string>());
     }
     if (node["name"] != null)
     {
         this._Name = node["name"].Value <string>();
     }
     if (node["systemName"] != null)
     {
         this._SystemName = node["systemName"].Value <string>();
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (VendorCatalogItemStatus)ParseEnum(typeof(VendorCatalogItemStatus), node["status"].Value <string>());
     }
     if (node["serviceType"] != null)
     {
         this._ServiceType = (VendorServiceType)ParseEnum(typeof(VendorServiceType), node["serviceType"].Value <string>());
     }
     if (node["serviceFeature"] != null)
     {
         this._ServiceFeature = (VendorServiceFeature)ParseEnum(typeof(VendorServiceFeature), node["serviceFeature"].Value <string>());
     }
     if (node["turnAroundTime"] != null)
     {
         this._TurnAroundTime = (VendorServiceTurnAroundTime)ParseEnum(typeof(VendorServiceTurnAroundTime), node["turnAroundTime"].Value <string>());
     }
     if (node["pricing"] != null)
     {
         this._Pricing = ObjectFactory.Create <VendorCatalogItemPricing>(node["pricing"]);
     }
     if (node["allowResubmission"] != null)
     {
         this._AllowResubmission = ParseBool(node["allowResubmission"].Value <string>());
     }
 }
 public static VendorCatalogItemUpdateStatusRequestBuilder UpdateStatus(int id, VendorCatalogItemStatus status)
 {
     return(new VendorCatalogItemUpdateStatusRequestBuilder(id, status));
 }
 public VendorCatalogItemUpdateStatusRequestBuilder(int id, VendorCatalogItemStatus status)
     : this()
 {
     this.Id     = id;
     this.Status = status;
 }
Example #4
0
 public VendorCatalogItemBaseFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = ParseInt(node["idEqual"].Value <string>());
     }
     if (node["idIn"] != null)
     {
         this._IdIn = node["idIn"].Value <string>();
     }
     if (node["idNotIn"] != null)
     {
         this._IdNotIn = node["idNotIn"].Value <string>();
     }
     if (node["vendorPartnerIdEqual"] != null)
     {
         this._VendorPartnerIdEqual = ParseInt(node["vendorPartnerIdEqual"].Value <string>());
     }
     if (node["vendorPartnerIdIn"] != null)
     {
         this._VendorPartnerIdIn = node["vendorPartnerIdIn"].Value <string>();
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
     if (node["statusEqual"] != null)
     {
         this._StatusEqual = (VendorCatalogItemStatus)ParseEnum(typeof(VendorCatalogItemStatus), node["statusEqual"].Value <string>());
     }
     if (node["statusIn"] != null)
     {
         this._StatusIn = node["statusIn"].Value <string>();
     }
     if (node["serviceTypeEqual"] != null)
     {
         this._ServiceTypeEqual = (VendorServiceType)ParseEnum(typeof(VendorServiceType), node["serviceTypeEqual"].Value <string>());
     }
     if (node["serviceTypeIn"] != null)
     {
         this._ServiceTypeIn = node["serviceTypeIn"].Value <string>();
     }
     if (node["serviceFeatureEqual"] != null)
     {
         this._ServiceFeatureEqual = (VendorServiceFeature)ParseEnum(typeof(VendorServiceFeature), node["serviceFeatureEqual"].Value <string>());
     }
     if (node["serviceFeatureIn"] != null)
     {
         this._ServiceFeatureIn = node["serviceFeatureIn"].Value <string>();
     }
     if (node["turnAroundTimeEqual"] != null)
     {
         this._TurnAroundTimeEqual = (VendorServiceTurnAroundTime)ParseEnum(typeof(VendorServiceTurnAroundTime), node["turnAroundTimeEqual"].Value <string>());
     }
     if (node["turnAroundTimeIn"] != null)
     {
         this._TurnAroundTimeIn = node["turnAroundTimeIn"].Value <string>();
     }
 }