Class PaymentReferencesRequestBuilder
- Namespace
- Autodesk.ACC.CostManagement.V1.Projects.Item.PaymentReferences
- Assembly
- Autodesk.ACC.CostManagement.dll
Builds and executes requests for operations under \v1\projects{projectId}\payment-references
public class PaymentReferencesRequestBuilder : BaseRequestBuilder
- Inheritance
-
BaseRequestBuilderPaymentReferencesRequestBuilder
- Inherited Members
-
BaseRequestBuilder.PathParametersBaseRequestBuilder.RequestAdapterBaseRequestBuilder.UrlTemplate
Constructors
PaymentReferencesRequestBuilder(Dictionary<string, object>, IRequestAdapter)
Instantiates a new PaymentReferencesRequestBuilder and sets the default values.
public PaymentReferencesRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter)
Parameters
pathParameters
Dictionary<string, object>Path parameters for the request
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
PaymentReferencesRequestBuilder(string, IRequestAdapter)
Instantiates a new PaymentReferencesRequestBuilder and sets the default values.
public PaymentReferencesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
Parameters
rawUrl
stringThe raw URL to use for the request builder.
requestAdapter
IRequestAdapterThe request adapter to use to execute the requests.
Properties
this[string]
Gets an item from the Autodesk.ACC.CostManagement.v1.projects.item.paymentReferences.item collection
public PaymentReferencesItemRequestBuilder this[string position] { get; }
Parameters
position
stringThe object ID of the item.
Property Value
Methods
GetAsync(Action<RequestConfiguration<PaymentReferencesRequestBuilderGetQueryParameters>>?, CancellationToken)
Gets all the payment references in a project filtering by associated payment or expense.
public Task<PaymentReferenceListResponse?> GetAsync(Action<RequestConfiguration<PaymentReferencesRequestBuilder.PaymentReferencesRequestBuilderGetQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
requestConfiguration
Action<RequestConfiguration<PaymentReferencesRequestBuilder.PaymentReferencesRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- DefinedError
When receiving a 400 status code
- Error
When receiving a 401 status code
- Error
When receiving a 403 status code
- Error
When receiving a 404 status code
- Error
When receiving a 500 status code
- Error
When receiving a 503 status code
PostAsync(PaymentReferenceCreate, Action<RequestConfiguration<DefaultQueryParameters>>?, CancellationToken)
Creates an payment references in a specific project.
public Task<PaymentReference?> PostAsync(PaymentReferenceCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null, CancellationToken cancellationToken = default)
Parameters
body
PaymentReferenceCreateThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
cancellationToken
CancellationTokenCancellation token to use when cancelling requests
Returns
Exceptions
- DefinedError
When receiving a 400 status code
- Error
When receiving a 401 status code
- Error
When receiving a 403 status code
- Error
When receiving a 404 status code
- Error
When receiving a 500 status code
- Error
When receiving a 503 status code
ToGetRequestInformation(Action<RequestConfiguration<PaymentReferencesRequestBuilderGetQueryParameters>>?)
Gets all the payment references in a project filtering by associated payment or expense.
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<PaymentReferencesRequestBuilder.PaymentReferencesRequestBuilderGetQueryParameters>>? requestConfiguration = null)
Parameters
requestConfiguration
Action<RequestConfiguration<PaymentReferencesRequestBuilder.PaymentReferencesRequestBuilderGetQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
ToPostRequestInformation(PaymentReferenceCreate, Action<RequestConfiguration<DefaultQueryParameters>>?)
Creates an payment references in a specific project.
public RequestInformation ToPostRequestInformation(PaymentReferenceCreate body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = null)
Parameters
body
PaymentReferenceCreateThe request body
requestConfiguration
Action<RequestConfiguration<DefaultQueryParameters>>Configuration for the request such as headers, query parameters, and middleware options.
Returns
- RequestInformation
A Microsoft.Kiota.Abstractions.RequestInformation
WithUrl(string)
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
public PaymentReferencesRequestBuilder WithUrl(string rawUrl)
Parameters
rawUrl
stringThe raw URL to use for the request builder.