| GET | /v1/workforce/payrules/list |
|---|
namespace CRM.AgencyPlatform.API.Internal
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type PayRulePolicy() =
member val PayRulePolicyId:Int32 = new Int32() with get,set
member val PayRulePolicyUID:Guid = new Guid() with get,set
member val Name:String = null with get,set
member val ScopeLevel:String = null with get,set
member val BranchId:Nullable<Guid> = new Nullable<Guid>() with get,set
member val JurisdictionKey:String = null with get,set
member val CbaKey:String = null with get,set
member val WorkTypeKey:String = null with get,set
member val CurrentVersion:Int32 = new Int32() with get,set
member val IsActive:Boolean = new Boolean() with get,set
member val BranchName:String = null with get,set
[<AllowNullLiteral>]
type PayRulePoliciesResponse() =
member val Policies:ResizeArray<PayRulePolicy> = new ResizeArray<PayRulePolicy>() with get,set
member val ResponseStatus:ResponseStatus = null with get,set
[<AllowNullLiteral>]
type PayRulePoliciesRequest() =
class end
F# PayRulePoliciesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/workforce/payrules/list HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Policies":[{"PayRulePolicyId":0,"PayRulePolicyUID":"00000000000000000000000000000000","Name":"String","ScopeLevel":"String","BranchId":"00000000000000000000000000000000","JurisdictionKey":"String","CbaKey":"String","WorkTypeKey":"String","CurrentVersion":0,"IsActive":false,"BranchName":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}