public BaseResponse <GetOrderResponse> UpdateOrderMetadata(string orderId, UpdateMetadataRequest request) { var method = new HttpMethod("PATCH"); var endpoint = $"/orders/{orderId}/metadata"; var query = request.ToDictionary(); return(this.HttpClientUtil.SendRequest <GetOrderResponse>(method, endpoint, request)); }
public BaseResponse <GetInvoiceResponse, ErrorsResponse> UpdateInvoiceMetadata(string invoiceId, UpdateMetadataRequest request) { var method = new HttpMethod("PATCH"); var endpoint = $"/invoices/{invoiceId}/metadata"; return(this.SendRequest <GetInvoiceResponse>(method, endpoint, request)); }
public BaseResponse <GetChargeResponse, MundipaggErrorsResponse> UpdateChargeMetadata(string chargeId, UpdateMetadataRequest request) { var method = new HttpMethod("PATCH"); var endpoint = $"/charges/{chargeId}/metadata"; return(this.SendRequest <GetChargeResponse>(method, endpoint, request)); }
public BaseResponse <GetSubscriptionResponse> UpdateSubscriptionMetadata(string subscriptionId, UpdateMetadataRequest request) { var method = new HttpMethod("PATCH"); var endpoint = $"/subscriptions/{subscriptionId}/metadata"; return(this.HttpClientUtil.SendRequest <GetSubscriptionResponse>(method, endpoint, request)); }
public BaseResponse <GetCustomerResponse> UpdateCustomerMetadata(string customerId, UpdateMetadataRequest request) { var method = new HttpMethod("PATCH"); var endpoint = $"/customers/{customerId}/metadata"; return(this.HttpClientUtil.SendRequest <GetCustomerResponse>(method, endpoint, request)); }