All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openapitools.client.api.PaymentSchedulesApi Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
/*
* Quickstart API Reference
* Zuora Quickstart API is the API that helps you achieve fundamental use cases.
* It provides a much simplified object model and improved performance, enabling developers to easily learn and use.
*/

package org.openapitools.client.api;

import org.openapitools.client.ApiCallback;
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.model.Headers;
import org.openapitools.client.model.ListQueryParams;
import org.openapitools.client.model.GetByIdQueryParams;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.Pair;
import org.openapitools.client.ProgressRequestBody;
import org.openapitools.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;
import java.io.IOException;


import java.math.BigDecimal;
import org.openapitools.client.model.ErrorResponse;
import org.openapitools.client.model.PaymentSchedule;
import org.openapitools.client.model.PaymentScheduleCancel;
import org.openapitools.client.model.PaymentScheduleCreateRequest;
import org.openapitools.client.model.PaymentSchedulePatchRequest;

import org.openapitools.client.model.ErrorResponse;

import java.lang.reflect.Type;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;

    public class PaymentSchedulesApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;
    public PaymentSchedulesApi() {
    this(Configuration.getDefaultApiClient());
    }

    public PaymentSchedulesApi(ApiClient apiClient) {
    this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
    return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
    this.localVarApiClient = apiClient;
    }

    public int getHostIndex() {
    return localHostIndex;
    }

    public void setHostIndex(int hostIndex) {
    this.localHostIndex = hostIndex;
    }

    public String getCustomBaseUrl() {
    return localCustomBaseUrl;
    }

    public void setCustomBaseUrl(String customBaseUrl) {
    this.localCustomBaseUrl = customBaseUrl;
    }

        private okhttp3.Call cancelPaymentScheduleCall(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException {
        String basePath = null;
        // Operation Servers
        String[] localBasePaths = new String[] {  };

        // Determine Base Path to Use
        if (localCustomBaseUrl != null){
        basePath = localCustomBaseUrl;
        } else if ( localBasePaths.length > 0 ) {
        basePath = localBasePaths[localHostIndex];
        } else {
        basePath = null;
        }

        Object localVarPostBody = paymentScheduleCancel;

        // create path and map variables
            String localVarPath = "/payment_schedules/{payment_schedule_id}/cancel"
                .replace("{" + "payment_schedule_id" + "}", localVarApiClient.escapeString(paymentScheduleId.toString()));


        List localVarQueryParams = new ArrayList();
        List localVarCollectionQueryParams = new ArrayList();
        Map localVarHeaderParams = new HashMap();
        Map localVarCookieParams = new HashMap();
        Map localVarFormParams = new HashMap();

                    if (fields != null) {
                localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "fields[]", fields));
                    }

                    if (paymentScheduleFields != null) {
                localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule.fields[]", paymentScheduleFields));
                    }

                    if (paymentScheduleItemFields != null) {
                localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule_item.fields[]", paymentScheduleItemFields));
                    }

                    if (expand != null) {
                localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "expand[]", expand));
                    }

                    if (filter != null) {
                localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filter[]", filter));
                    }

                    if (pageSize != null) {
                localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize));
                    }

                    if (zuoraTrackId != null) {
                    localVarHeaderParams.put("zuora-track-id", localVarApiClient.parameterToString(zuoraTrackId));
                    }

                    if (async != null) {
                    localVarHeaderParams.put("async", localVarApiClient.parameterToString(async));
                    }

                    if (zuoraCacheEnabled != null) {
                    localVarHeaderParams.put("zuora-cache-enabled", localVarApiClient.parameterToString(zuoraCacheEnabled));
                    }

                    if (zuoraEntityIds != null) {
                    localVarHeaderParams.put("zuora-entity-ids", localVarApiClient.parameterToString(zuoraEntityIds));
                    }

                    if (idempotencyKey != null) {
                    localVarHeaderParams.put("idempotency-key", localVarApiClient.parameterToString(idempotencyKey));
                    }

                    if (acceptEncoding != null) {
                    localVarHeaderParams.put("accept-encoding", localVarApiClient.parameterToString(acceptEncoding));
                    }

                    if (contentEncoding != null) {
                    localVarHeaderParams.put("content-encoding", localVarApiClient.parameterToString(contentEncoding));
                    }

                    if (zuoraOrgIds != null) {
                    localVarHeaderParams.put("zuora-org-ids", localVarApiClient.parameterToString(zuoraOrgIds));
                    }

            final String[] localVarAccepts = {
                "application/json"
            };
            final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
            if (localVarAccept != null) {
            localVarHeaderParams.put("Accept", localVarAccept);
            }

            final String[] localVarContentTypes = {
                "application/json"
            };
            final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
            if (localVarContentType != null) {
            localVarHeaderParams.put("Content-Type", localVarContentType);
            }

            String[] localVarAuthNames = new String[] { "bearerAuth" };
            return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
            }

            @SuppressWarnings("rawtypes")
            private okhttp3.Call cancelPaymentScheduleValidateBeforeCall(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException {
                        // verify the required parameter 'paymentScheduleId' is set
                        if (paymentScheduleId == null) {
                        throw new ApiException("Missing the required parameter 'paymentScheduleId' when calling cancelPaymentSchedule(Async)");
                        }

                        // verify the required parameter 'paymentScheduleCancel' is set
                        if (paymentScheduleCancel == null) {
                        throw new ApiException("Missing the required parameter 'paymentScheduleCancel' when calling cancelPaymentSchedule(Async)");
                        }

                return cancelPaymentScheduleCall(paymentScheduleId, paymentScheduleCancel, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback);
            }

        private ApiResponse cancelPaymentScheduleWithHttpInfo(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds) throws ApiException {
            okhttp3.Call localVarCall = cancelPaymentScheduleValidateBeforeCall(paymentScheduleId, paymentScheduleCancel, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, null);
                    try {
                    Type localVarReturnType = new TypeToken(){}.getType();
                    return localVarApiClient.execute(localVarCall, localVarReturnType);
                    } catch (ApiException e) {
                    e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType()));
                    throw e;
                    }
            }

        private okhttp3.Call cancelPaymentScheduleAsync(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException {
            okhttp3.Call localVarCall = cancelPaymentScheduleValidateBeforeCall(paymentScheduleId, paymentScheduleCancel, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback);
        Type localVarReturnType = new TypeToken(){}.getType();
            localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
            return localVarCall;
            }

        public static class CancelPaymentScheduleParams {
                    private final String paymentScheduleId;
                    private final PaymentScheduleCancel paymentScheduleCancel;
            private Headers headers;
            /*
        * Check for list params
            */
                private GetByIdQueryParams getByIdQueryParams;
                    private List fields;
                    private List paymentScheduleFields;
                    private List paymentScheduleItemFields;
                    private List expand;
                    private List filter;
                    private Integer pageSize;
                    private String zuoraTrackId;
                    private Boolean async;
                    private Boolean zuoraCacheEnabled;
                    private String zuoraEntityIds;
                    private String idempotencyKey;
                    private String acceptEncoding;
                    private String contentEncoding;
                    private String zuoraOrgIds;
                public CancelPaymentScheduleParams(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel) {
                    this.paymentScheduleId = paymentScheduleId;
                    this.paymentScheduleCancel = paymentScheduleCancel;
                }
                    /**
                    * Set getByIdQueryParams
                    * @param getByIdQueryParams GetByIdQueryParams
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams getByIdQueryParams(GetByIdQueryParams getByIdQueryParams) {
                    this.getByIdQueryParams = getByIdQueryParams;
                        if (expand != null) {
                        this.expand = getByIdQueryParams.getExpand();
                        }
                        if (filter != null) {
                        this.filter = getByIdQueryParams.getFilter();
                        }
                        if (pageSize != null) {
                        this.pageSize = getByIdQueryParams.getPageSize();
                        }
                    return this;
                    }
            /**
            * Set headers
            * @param headers Headers
            * @return CancelPaymentScheduleParams
            */
            public CancelPaymentScheduleParams headers(Headers headers) {
            this.headers = headers;
                if (headers.getZuoraTrackId() != null) {
                this.zuoraTrackId = headers.getZuoraTrackId();
                }
                if (headers.getAsync() != null) {
                this.async = headers.getAsync();
                }
                if (headers.getZuoraCacheEnabled() != null) {
                this.zuoraCacheEnabled = headers.getZuoraCacheEnabled();
                }
                if (headers.getZuoraEntityIds() != null) {
                this.zuoraEntityIds = headers.getZuoraEntityIds();
                }
                if (headers.getIdempotencyKey() != null) {
                this.idempotencyKey = headers.getIdempotencyKey();
                }
                if (headers.getAcceptEncoding() != null) {
                this.acceptEncoding = headers.getAcceptEncoding();
                }
                if (headers.getContentEncoding() != null) {
                this.contentEncoding = headers.getContentEncoding();
                }
                if (headers.getZuoraOrgIds() != null) {
                this.zuoraOrgIds = headers.getZuoraOrgIds();
                }
            return this;
            }
                    /**
                    * Set fields
                    * @param fields Allows you to specify which fields are returned in the response.          <details>            <summary> Accepted values </summary>              `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id`          </details> (optional)
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams fields(List fields) {
                    this.fields = fields;
                    return this;
                    }
                    /**
                    * Set paymentScheduleFields
                    * @param paymentScheduleFields Allows you to specify which fields are returned in the response.          <details>            <summary> Accepted values </summary>              `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id`          </details> (optional)
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams paymentScheduleFields(List paymentScheduleFields) {
                    this.paymentScheduleFields = paymentScheduleFields;
                    return this;
                    }
                    /**
                    * Set paymentScheduleItemFields
                    * @param paymentScheduleItemFields Allows you to specify which fields are returned in the response.          <details>            <summary> Accepted values </summary>              `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `amount`, `balance`, `currency`, `debit_memo_id`, `invoice_id`, `payment_id`, `payment_method_id`, `description`, `prepayment`, `payment_gateway_id`, `run_hour`, `state`, `scheduled_date`, `payment_schedule_item_number`, `payment_schedule_id`, `cancellation_reason`, `error_message`, `payment_option_id`          </details> (optional)
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams paymentScheduleItemFields(List paymentScheduleItemFields) {
                    this.paymentScheduleItemFields = paymentScheduleItemFields;
                    return this;
                    }
                    /**
                    * Set expand
                    * @param expand Allows you to expand responses by including related object information in a single call. See the [Expand responses](https://developer.zuora.com/quickstart-api/tutorial/expand-responses/) section of the Quickstart API Tutorials for detailed instructions. (optional)
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams expand(List expand) {
                    this.expand = expand;
                    return this;
                    }
                    /**
                    * Set filter
                    * @param filter A case-sensitive filter on the list. See the [Filter lists](https://developer.zuora.com/quickstart-api/tutorial/filter-lists/) section of the Quickstart API Tutorial for detailed instructions.                         Note that the filters on this operation are only applicable to the related objects. For example, when you are calling the \"Retrieve a billing document\" operation, you can use the `filter[]` parameter on the related objects such as `filter[]=items[account_id].EQ:8ad09e208858b5cf0188595208151c63` (optional)
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams filter(List filter) {
                    this.filter = filter;
                    return this;
                    }
                    /**
                    * Set pageSize
                    * @param pageSize The maximum number of results to return in a single page. If the specified `page_size` is less than 1 or greater than 99, Zuora will return a 400 error. (optional)
                    * @return CancelPaymentScheduleParams
                    */
                    public CancelPaymentScheduleParams pageSize(Integer pageSize) {
                    this.pageSize = pageSize;
                    return this;
                    }
                }

            /**
            * Cancel a payment schedule
            * Cancels the payment schedule with the given ID.
                * @param paymentScheduleId Identifier for the payment schedule. Can be either `payment_schedule_number` or `payment_schedule_id` (required)
                * @param paymentScheduleCancel  (required)
            * @return PaymentSchedule
                * @http.response.details
                
Status Code Description Response Headers
200 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public CancelPaymentScheduleParams cancelPaymentScheduleParams(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel) { return new CancelPaymentScheduleParams(paymentScheduleId, paymentScheduleCancel); } public PaymentSchedule cancelPaymentSchedule(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel) throws ApiException { CancelPaymentScheduleParams params = new CancelPaymentScheduleParams(paymentScheduleId, paymentScheduleCancel); return executeCancelPaymentScheduleAPICall(params).getData(); } /** * Expose HTTP info public ApiResponse cancelPaymentScheduleWithHttpInfo(String paymentScheduleId, PaymentScheduleCancel paymentScheduleCancel) throws ApiException { CancelPaymentScheduleParams params = new CancelPaymentScheduleParams(paymentScheduleId, paymentScheduleCancel); return executeCancelPaymentScheduleAPICall(params); } **/ /** Legacy Query Params Requests **/ public PaymentSchedule cancelPaymentSchedule( String paymentScheduleId , PaymentScheduleCancel paymentScheduleCancel , List expand) throws ApiException { CancelPaymentScheduleParams params = new CancelPaymentScheduleParams(paymentScheduleId, paymentScheduleCancel); params.expand(expand); return executeCancelPaymentScheduleAPICall(params).getData(); } /* * add header methods */ public PaymentSchedule cancelPaymentSchedule(String paymentScheduleId , PaymentScheduleCancel paymentScheduleCancel ,List expand,Headers headers) throws ApiException { CancelPaymentScheduleParams params = new CancelPaymentScheduleParams(paymentScheduleId, paymentScheduleCancel) .expand(expand) .headers(headers); return executeCancelPaymentScheduleAPICall(params).getData(); } /** * Cancel a payment schedule * Cancels the payment schedule with the given ID. * @param params CancelPaymentScheduleParams * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
200 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public PaymentSchedule post(CancelPaymentScheduleParams params) throws ApiException { return executeCancelPaymentScheduleAPICall(params).getData(); } public ApiResponse postWithHttpInfo(CancelPaymentScheduleParams params) throws ApiException { return executeCancelPaymentScheduleAPICall(params); } ApiResponse executeCancelPaymentScheduleAPICall(CancelPaymentScheduleParams params) throws ApiException { return cancelPaymentScheduleWithHttpInfo(params.paymentScheduleId, params.paymentScheduleCancel, params.fields, params.paymentScheduleFields, params.paymentScheduleItemFields, params.expand, params.filter, params.pageSize, params.zuoraTrackId, params.async, params.zuoraCacheEnabled, params.zuoraEntityIds, params.idempotencyKey, params.acceptEncoding, params.contentEncoding, params.zuoraOrgIds); } private okhttp3.Call createPaymentScheduleCall(PaymentScheduleCreateRequest paymentScheduleCreateRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = paymentScheduleCreateRequest; // create path and map variables String localVarPath = "/payment_schedules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (fields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "fields[]", fields)); } if (paymentScheduleFields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule.fields[]", paymentScheduleFields)); } if (paymentScheduleItemFields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule_item.fields[]", paymentScheduleItemFields)); } if (expand != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "expand[]", expand)); } if (filter != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filter[]", filter)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize)); } if (zuoraTrackId != null) { localVarHeaderParams.put("zuora-track-id", localVarApiClient.parameterToString(zuoraTrackId)); } if (async != null) { localVarHeaderParams.put("async", localVarApiClient.parameterToString(async)); } if (zuoraCacheEnabled != null) { localVarHeaderParams.put("zuora-cache-enabled", localVarApiClient.parameterToString(zuoraCacheEnabled)); } if (zuoraEntityIds != null) { localVarHeaderParams.put("zuora-entity-ids", localVarApiClient.parameterToString(zuoraEntityIds)); } if (idempotencyKey != null) { localVarHeaderParams.put("idempotency-key", localVarApiClient.parameterToString(idempotencyKey)); } if (acceptEncoding != null) { localVarHeaderParams.put("accept-encoding", localVarApiClient.parameterToString(acceptEncoding)); } if (contentEncoding != null) { localVarHeaderParams.put("content-encoding", localVarApiClient.parameterToString(contentEncoding)); } if (zuoraOrgIds != null) { localVarHeaderParams.put("zuora-org-ids", localVarApiClient.parameterToString(zuoraOrgIds)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call createPaymentScheduleValidateBeforeCall(PaymentScheduleCreateRequest paymentScheduleCreateRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'paymentScheduleCreateRequest' is set if (paymentScheduleCreateRequest == null) { throw new ApiException("Missing the required parameter 'paymentScheduleCreateRequest' when calling createPaymentSchedule(Async)"); } return createPaymentScheduleCall(paymentScheduleCreateRequest, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback); } private ApiResponse createPaymentScheduleWithHttpInfo(PaymentScheduleCreateRequest paymentScheduleCreateRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds) throws ApiException { okhttp3.Call localVarCall = createPaymentScheduleValidateBeforeCall(paymentScheduleCreateRequest, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, null); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); throw e; } } private okhttp3.Call createPaymentScheduleAsync(PaymentScheduleCreateRequest paymentScheduleCreateRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = createPaymentScheduleValidateBeforeCall(paymentScheduleCreateRequest, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public static class CreatePaymentScheduleParams { private final PaymentScheduleCreateRequest paymentScheduleCreateRequest; private Headers headers; /* * Check for list params */ private GetByIdQueryParams getByIdQueryParams; private List fields; private List paymentScheduleFields; private List paymentScheduleItemFields; private List expand; private List filter; private Integer pageSize; private String zuoraTrackId; private Boolean async; private Boolean zuoraCacheEnabled; private String zuoraEntityIds; private String idempotencyKey; private String acceptEncoding; private String contentEncoding; private String zuoraOrgIds; public CreatePaymentScheduleParams(PaymentScheduleCreateRequest paymentScheduleCreateRequest) { this.paymentScheduleCreateRequest = paymentScheduleCreateRequest; } /** * Set getByIdQueryParams * @param getByIdQueryParams GetByIdQueryParams * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams getByIdQueryParams(GetByIdQueryParams getByIdQueryParams) { this.getByIdQueryParams = getByIdQueryParams; if (expand != null) { this.expand = getByIdQueryParams.getExpand(); } if (filter != null) { this.filter = getByIdQueryParams.getFilter(); } if (pageSize != null) { this.pageSize = getByIdQueryParams.getPageSize(); } return this; } /** * Set headers * @param headers Headers * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams headers(Headers headers) { this.headers = headers; if (headers.getZuoraTrackId() != null) { this.zuoraTrackId = headers.getZuoraTrackId(); } if (headers.getAsync() != null) { this.async = headers.getAsync(); } if (headers.getZuoraCacheEnabled() != null) { this.zuoraCacheEnabled = headers.getZuoraCacheEnabled(); } if (headers.getZuoraEntityIds() != null) { this.zuoraEntityIds = headers.getZuoraEntityIds(); } if (headers.getIdempotencyKey() != null) { this.idempotencyKey = headers.getIdempotencyKey(); } if (headers.getAcceptEncoding() != null) { this.acceptEncoding = headers.getAcceptEncoding(); } if (headers.getContentEncoding() != null) { this.contentEncoding = headers.getContentEncoding(); } if (headers.getZuoraOrgIds() != null) { this.zuoraOrgIds = headers.getZuoraOrgIds(); } return this; } /** * Set fields * @param fields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id` </details> (optional) * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams fields(List fields) { this.fields = fields; return this; } /** * Set paymentScheduleFields * @param paymentScheduleFields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id` </details> (optional) * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams paymentScheduleFields(List paymentScheduleFields) { this.paymentScheduleFields = paymentScheduleFields; return this; } /** * Set paymentScheduleItemFields * @param paymentScheduleItemFields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `amount`, `balance`, `currency`, `debit_memo_id`, `invoice_id`, `payment_id`, `payment_method_id`, `description`, `prepayment`, `payment_gateway_id`, `run_hour`, `state`, `scheduled_date`, `payment_schedule_item_number`, `payment_schedule_id`, `cancellation_reason`, `error_message`, `payment_option_id` </details> (optional) * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams paymentScheduleItemFields(List paymentScheduleItemFields) { this.paymentScheduleItemFields = paymentScheduleItemFields; return this; } /** * Set expand * @param expand Allows you to expand responses by including related object information in a single call. See the [Expand responses](https://developer.zuora.com/quickstart-api/tutorial/expand-responses/) section of the Quickstart API Tutorials for detailed instructions. (optional) * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams expand(List expand) { this.expand = expand; return this; } /** * Set filter * @param filter A case-sensitive filter on the list. See the [Filter lists](https://developer.zuora.com/quickstart-api/tutorial/filter-lists/) section of the Quickstart API Tutorial for detailed instructions. Note that the filters on this operation are only applicable to the related objects. For example, when you are calling the \"Retrieve a billing document\" operation, you can use the `filter[]` parameter on the related objects such as `filter[]=items[account_id].EQ:8ad09e208858b5cf0188595208151c63` (optional) * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams filter(List filter) { this.filter = filter; return this; } /** * Set pageSize * @param pageSize The maximum number of results to return in a single page. If the specified `page_size` is less than 1 or greater than 99, Zuora will return a 400 error. (optional) * @return CreatePaymentScheduleParams */ public CreatePaymentScheduleParams pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } } /** * Create a payment schedule * Creates a new Payment Schedule object. * @param paymentScheduleCreateRequest (required) * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
201 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public CreatePaymentScheduleParams createPaymentScheduleParams(PaymentScheduleCreateRequest paymentScheduleCreateRequest) { return new CreatePaymentScheduleParams(paymentScheduleCreateRequest); } public PaymentSchedule createPaymentSchedule(PaymentScheduleCreateRequest paymentScheduleCreateRequest) throws ApiException { CreatePaymentScheduleParams params = new CreatePaymentScheduleParams(paymentScheduleCreateRequest); return executeCreatePaymentScheduleAPICall(params).getData(); } /** * Expose HTTP info public ApiResponse createPaymentScheduleWithHttpInfo(PaymentScheduleCreateRequest paymentScheduleCreateRequest) throws ApiException { CreatePaymentScheduleParams params = new CreatePaymentScheduleParams(paymentScheduleCreateRequest); return executeCreatePaymentScheduleAPICall(params); } **/ /** Legacy Query Params Requests **/ public PaymentSchedule createPaymentSchedule( PaymentScheduleCreateRequest paymentScheduleCreateRequest , List expand) throws ApiException { CreatePaymentScheduleParams params = new CreatePaymentScheduleParams(paymentScheduleCreateRequest); params.expand(expand); return executeCreatePaymentScheduleAPICall(params).getData(); } /* * add header methods */ public PaymentSchedule createPaymentSchedule(PaymentScheduleCreateRequest paymentScheduleCreateRequest ,List expand,Headers headers) throws ApiException { CreatePaymentScheduleParams params = new CreatePaymentScheduleParams(paymentScheduleCreateRequest) .expand(expand) .headers(headers); return executeCreatePaymentScheduleAPICall(params).getData(); } /** * Create a payment schedule * Creates a new Payment Schedule object. * @param params CreatePaymentScheduleParams * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
201 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public PaymentSchedule create(CreatePaymentScheduleParams params) throws ApiException { return executeCreatePaymentScheduleAPICall(params).getData(); } public ApiResponse createWithHttpInfo(CreatePaymentScheduleParams params) throws ApiException { return executeCreatePaymentScheduleAPICall(params); } ApiResponse executeCreatePaymentScheduleAPICall(CreatePaymentScheduleParams params) throws ApiException { return createPaymentScheduleWithHttpInfo(params.paymentScheduleCreateRequest, params.fields, params.paymentScheduleFields, params.paymentScheduleItemFields, params.expand, params.filter, params.pageSize, params.zuoraTrackId, params.async, params.zuoraCacheEnabled, params.zuoraEntityIds, params.idempotencyKey, params.acceptEncoding, params.contentEncoding, params.zuoraOrgIds); } private okhttp3.Call getPaymentScheduleCall(String paymentScheduleId, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = null; // create path and map variables String localVarPath = "/payment_schedules/{payment_schedule_id}" .replace("{" + "payment_schedule_id" + "}", localVarApiClient.escapeString(paymentScheduleId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (fields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "fields[]", fields)); } if (paymentScheduleFields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule.fields[]", paymentScheduleFields)); } if (paymentScheduleItemFields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule_item.fields[]", paymentScheduleItemFields)); } if (expand != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "expand[]", expand)); } if (filter != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filter[]", filter)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize)); } if (zuoraTrackId != null) { localVarHeaderParams.put("zuora-track-id", localVarApiClient.parameterToString(zuoraTrackId)); } if (async != null) { localVarHeaderParams.put("async", localVarApiClient.parameterToString(async)); } if (zuoraCacheEnabled != null) { localVarHeaderParams.put("zuora-cache-enabled", localVarApiClient.parameterToString(zuoraCacheEnabled)); } if (zuoraEntityIds != null) { localVarHeaderParams.put("zuora-entity-ids", localVarApiClient.parameterToString(zuoraEntityIds)); } if (idempotencyKey != null) { localVarHeaderParams.put("idempotency-key", localVarApiClient.parameterToString(idempotencyKey)); } if (acceptEncoding != null) { localVarHeaderParams.put("accept-encoding", localVarApiClient.parameterToString(acceptEncoding)); } if (contentEncoding != null) { localVarHeaderParams.put("content-encoding", localVarApiClient.parameterToString(contentEncoding)); } if (zuoraOrgIds != null) { localVarHeaderParams.put("zuora-org-ids", localVarApiClient.parameterToString(zuoraOrgIds)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getPaymentScheduleValidateBeforeCall(String paymentScheduleId, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'paymentScheduleId' is set if (paymentScheduleId == null) { throw new ApiException("Missing the required parameter 'paymentScheduleId' when calling getPaymentSchedule(Async)"); } return getPaymentScheduleCall(paymentScheduleId, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback); } private ApiResponse getPaymentScheduleWithHttpInfo(String paymentScheduleId, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds) throws ApiException { okhttp3.Call localVarCall = getPaymentScheduleValidateBeforeCall(paymentScheduleId, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, null); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); throw e; } } private okhttp3.Call getPaymentScheduleAsync(String paymentScheduleId, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPaymentScheduleValidateBeforeCall(paymentScheduleId, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public static class GetPaymentScheduleParams { private final String paymentScheduleId; private Headers headers; /* * Check for list params */ private GetByIdQueryParams getByIdQueryParams; private List fields; private List paymentScheduleFields; private List paymentScheduleItemFields; private List expand; private List filter; private Integer pageSize; private String zuoraTrackId; private Boolean async; private Boolean zuoraCacheEnabled; private String zuoraEntityIds; private String idempotencyKey; private String acceptEncoding; private String contentEncoding; private String zuoraOrgIds; public GetPaymentScheduleParams(String paymentScheduleId) { this.paymentScheduleId = paymentScheduleId; } /** * Set getByIdQueryParams * @param getByIdQueryParams GetByIdQueryParams * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams getByIdQueryParams(GetByIdQueryParams getByIdQueryParams) { this.getByIdQueryParams = getByIdQueryParams; if (expand != null) { this.expand = getByIdQueryParams.getExpand(); } if (filter != null) { this.filter = getByIdQueryParams.getFilter(); } if (pageSize != null) { this.pageSize = getByIdQueryParams.getPageSize(); } return this; } /** * Set headers * @param headers Headers * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams headers(Headers headers) { this.headers = headers; if (headers.getZuoraTrackId() != null) { this.zuoraTrackId = headers.getZuoraTrackId(); } if (headers.getAsync() != null) { this.async = headers.getAsync(); } if (headers.getZuoraCacheEnabled() != null) { this.zuoraCacheEnabled = headers.getZuoraCacheEnabled(); } if (headers.getZuoraEntityIds() != null) { this.zuoraEntityIds = headers.getZuoraEntityIds(); } if (headers.getIdempotencyKey() != null) { this.idempotencyKey = headers.getIdempotencyKey(); } if (headers.getAcceptEncoding() != null) { this.acceptEncoding = headers.getAcceptEncoding(); } if (headers.getContentEncoding() != null) { this.contentEncoding = headers.getContentEncoding(); } if (headers.getZuoraOrgIds() != null) { this.zuoraOrgIds = headers.getZuoraOrgIds(); } return this; } /** * Set fields * @param fields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id` </details> (optional) * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams fields(List fields) { this.fields = fields; return this; } /** * Set paymentScheduleFields * @param paymentScheduleFields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id` </details> (optional) * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams paymentScheduleFields(List paymentScheduleFields) { this.paymentScheduleFields = paymentScheduleFields; return this; } /** * Set paymentScheduleItemFields * @param paymentScheduleItemFields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `amount`, `balance`, `currency`, `debit_memo_id`, `invoice_id`, `payment_id`, `payment_method_id`, `description`, `prepayment`, `payment_gateway_id`, `run_hour`, `state`, `scheduled_date`, `payment_schedule_item_number`, `payment_schedule_id`, `cancellation_reason`, `error_message`, `payment_option_id` </details> (optional) * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams paymentScheduleItemFields(List paymentScheduleItemFields) { this.paymentScheduleItemFields = paymentScheduleItemFields; return this; } /** * Set expand * @param expand Allows you to expand responses by including related object information in a single call. See the [Expand responses](https://developer.zuora.com/quickstart-api/tutorial/expand-responses/) section of the Quickstart API Tutorials for detailed instructions. (optional) * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams expand(List expand) { this.expand = expand; return this; } /** * Set filter * @param filter A case-sensitive filter on the list. See the [Filter lists](https://developer.zuora.com/quickstart-api/tutorial/filter-lists/) section of the Quickstart API Tutorial for detailed instructions. Note that the filters on this operation are only applicable to the related objects. For example, when you are calling the \"Retrieve a billing document\" operation, you can use the `filter[]` parameter on the related objects such as `filter[]=items[account_id].EQ:8ad09e208858b5cf0188595208151c63` (optional) * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams filter(List filter) { this.filter = filter; return this; } /** * Set pageSize * @param pageSize The maximum number of results to return in a single page. If the specified `page_size` is less than 1 or greater than 99, Zuora will return a 400 error. (optional) * @return GetPaymentScheduleParams */ public GetPaymentScheduleParams pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } } /** * Retrieve a payment schedule * Retrieves the payment schedule with the given ID. * @param paymentScheduleId Identifier for the payment schedule. Can be either `payment_schedule_number` or `payment_schedule_id` (required) * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
200 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public GetPaymentScheduleParams getPaymentScheduleParams(String paymentScheduleId) { return new GetPaymentScheduleParams(paymentScheduleId); } public PaymentSchedule getPaymentSchedule(String paymentScheduleId) throws ApiException { GetPaymentScheduleParams params = new GetPaymentScheduleParams(paymentScheduleId); return executeGetPaymentScheduleAPICall(params).getData(); } /** * Expose HTTP info public ApiResponse getPaymentScheduleWithHttpInfo(String paymentScheduleId) throws ApiException { GetPaymentScheduleParams params = new GetPaymentScheduleParams(paymentScheduleId); return executeGetPaymentScheduleAPICall(params); } **/ /** Legacy Query Params Requests **/ public PaymentSchedule getPaymentSchedule( String paymentScheduleId , List expand) throws ApiException { GetPaymentScheduleParams params = new GetPaymentScheduleParams(paymentScheduleId); params.expand(expand); return executeGetPaymentScheduleAPICall(params).getData(); } /* * add header methods */ public PaymentSchedule getPaymentSchedule(String paymentScheduleId ,List expand,Headers headers) throws ApiException { GetPaymentScheduleParams params = new GetPaymentScheduleParams(paymentScheduleId) .expand(expand) .headers(headers); return executeGetPaymentScheduleAPICall(params).getData(); } /** * Retrieve a payment schedule * Retrieves the payment schedule with the given ID. * @param params GetPaymentScheduleParams * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
200 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public PaymentSchedule get(GetPaymentScheduleParams params) throws ApiException { return executeGetPaymentScheduleAPICall(params).getData(); } public ApiResponse getWithHttpInfo(GetPaymentScheduleParams params) throws ApiException { return executeGetPaymentScheduleAPICall(params); } ApiResponse executeGetPaymentScheduleAPICall(GetPaymentScheduleParams params) throws ApiException { return getPaymentScheduleWithHttpInfo(params.paymentScheduleId, params.fields, params.paymentScheduleFields, params.paymentScheduleItemFields, params.expand, params.filter, params.pageSize, params.zuoraTrackId, params.async, params.zuoraCacheEnabled, params.zuoraEntityIds, params.idempotencyKey, params.acceptEncoding, params.contentEncoding, params.zuoraOrgIds); } private okhttp3.Call updatePaymentScheduleCall(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; // Determine Base Path to Use if (localCustomBaseUrl != null){ basePath = localCustomBaseUrl; } else if ( localBasePaths.length > 0 ) { basePath = localBasePaths[localHostIndex]; } else { basePath = null; } Object localVarPostBody = paymentSchedulePatchRequest; // create path and map variables String localVarPath = "/payment_schedules/{payment_schedule_id}" .replace("{" + "payment_schedule_id" + "}", localVarApiClient.escapeString(paymentScheduleId.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); if (fields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "fields[]", fields)); } if (paymentScheduleFields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule.fields[]", paymentScheduleFields)); } if (paymentScheduleItemFields != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "payment_schedule_item.fields[]", paymentScheduleItemFields)); } if (expand != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "expand[]", expand)); } if (filter != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "filter[]", filter)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("page_size", pageSize)); } if (zuoraTrackId != null) { localVarHeaderParams.put("zuora-track-id", localVarApiClient.parameterToString(zuoraTrackId)); } if (async != null) { localVarHeaderParams.put("async", localVarApiClient.parameterToString(async)); } if (zuoraCacheEnabled != null) { localVarHeaderParams.put("zuora-cache-enabled", localVarApiClient.parameterToString(zuoraCacheEnabled)); } if (zuoraEntityIds != null) { localVarHeaderParams.put("zuora-entity-ids", localVarApiClient.parameterToString(zuoraEntityIds)); } if (idempotencyKey != null) { localVarHeaderParams.put("idempotency-key", localVarApiClient.parameterToString(idempotencyKey)); } if (acceptEncoding != null) { localVarHeaderParams.put("accept-encoding", localVarApiClient.parameterToString(acceptEncoding)); } if (contentEncoding != null) { localVarHeaderParams.put("content-encoding", localVarApiClient.parameterToString(contentEncoding)); } if (zuoraOrgIds != null) { localVarHeaderParams.put("zuora-org-ids", localVarApiClient.parameterToString(zuoraOrgIds)); } final String[] localVarAccepts = { "application/json" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { localVarHeaderParams.put("Accept", localVarAccept); } final String[] localVarContentTypes = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "bearerAuth" }; return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call updatePaymentScheduleValidateBeforeCall(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'paymentScheduleId' is set if (paymentScheduleId == null) { throw new ApiException("Missing the required parameter 'paymentScheduleId' when calling updatePaymentSchedule(Async)"); } // verify the required parameter 'paymentSchedulePatchRequest' is set if (paymentSchedulePatchRequest == null) { throw new ApiException("Missing the required parameter 'paymentSchedulePatchRequest' when calling updatePaymentSchedule(Async)"); } return updatePaymentScheduleCall(paymentScheduleId, paymentSchedulePatchRequest, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback); } private ApiResponse updatePaymentScheduleWithHttpInfo(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds) throws ApiException { okhttp3.Call localVarCall = updatePaymentScheduleValidateBeforeCall(paymentScheduleId, paymentSchedulePatchRequest, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, null); try { Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } catch (ApiException e) { e.setErrorObject(localVarApiClient.getJSON().getGson().fromJson(e.getResponseBody(), new TypeToken(){}.getType())); throw e; } } private okhttp3.Call updatePaymentScheduleAsync(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest, List fields, List paymentScheduleFields, List paymentScheduleItemFields, List expand, List filter, Integer pageSize, String zuoraTrackId, Boolean async, Boolean zuoraCacheEnabled, String zuoraEntityIds, String idempotencyKey, String acceptEncoding, String contentEncoding, String zuoraOrgIds, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = updatePaymentScheduleValidateBeforeCall(paymentScheduleId, paymentSchedulePatchRequest, fields, paymentScheduleFields, paymentScheduleItemFields, expand, filter, pageSize, zuoraTrackId, async, zuoraCacheEnabled, zuoraEntityIds, idempotencyKey, acceptEncoding, contentEncoding, zuoraOrgIds, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public static class UpdatePaymentScheduleParams { private final String paymentScheduleId; private final PaymentSchedulePatchRequest paymentSchedulePatchRequest; private Headers headers; /* * Check for list params */ private GetByIdQueryParams getByIdQueryParams; private List fields; private List paymentScheduleFields; private List paymentScheduleItemFields; private List expand; private List filter; private Integer pageSize; private String zuoraTrackId; private Boolean async; private Boolean zuoraCacheEnabled; private String zuoraEntityIds; private String idempotencyKey; private String acceptEncoding; private String contentEncoding; private String zuoraOrgIds; public UpdatePaymentScheduleParams(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest) { this.paymentScheduleId = paymentScheduleId; this.paymentSchedulePatchRequest = paymentSchedulePatchRequest; } /** * Set getByIdQueryParams * @param getByIdQueryParams GetByIdQueryParams * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams getByIdQueryParams(GetByIdQueryParams getByIdQueryParams) { this.getByIdQueryParams = getByIdQueryParams; if (expand != null) { this.expand = getByIdQueryParams.getExpand(); } if (filter != null) { this.filter = getByIdQueryParams.getFilter(); } if (pageSize != null) { this.pageSize = getByIdQueryParams.getPageSize(); } return this; } /** * Set headers * @param headers Headers * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams headers(Headers headers) { this.headers = headers; if (headers.getZuoraTrackId() != null) { this.zuoraTrackId = headers.getZuoraTrackId(); } if (headers.getAsync() != null) { this.async = headers.getAsync(); } if (headers.getZuoraCacheEnabled() != null) { this.zuoraCacheEnabled = headers.getZuoraCacheEnabled(); } if (headers.getZuoraEntityIds() != null) { this.zuoraEntityIds = headers.getZuoraEntityIds(); } if (headers.getIdempotencyKey() != null) { this.idempotencyKey = headers.getIdempotencyKey(); } if (headers.getAcceptEncoding() != null) { this.acceptEncoding = headers.getAcceptEncoding(); } if (headers.getContentEncoding() != null) { this.contentEncoding = headers.getContentEncoding(); } if (headers.getZuoraOrgIds() != null) { this.zuoraOrgIds = headers.getZuoraOrgIds(); } return this; } /** * Set fields * @param fields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id` </details> (optional) * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams fields(List fields) { this.fields = fields; return this; } /** * Set paymentScheduleFields * @param paymentScheduleFields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `description`, `next_payment_date`, `payment_schedule_number`, `number_of_payments`, `prepayment`, `start_date`, `run_hour`, `state`, `recent_payment_date`, `total_payments_errored`, `total_payments_processed`, `total_amount`, `debit_memo_id`, `invoice_id` </details> (optional) * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams paymentScheduleFields(List paymentScheduleFields) { this.paymentScheduleFields = paymentScheduleFields; return this; } /** * Set paymentScheduleItemFields * @param paymentScheduleItemFields Allows you to specify which fields are returned in the response. <details> <summary> Accepted values </summary> `custom_fields`, `created_by_id`, `updated_by_id`, `created_time`, `id`, `updated_time`, `account_id`, `amount`, `balance`, `currency`, `debit_memo_id`, `invoice_id`, `payment_id`, `payment_method_id`, `description`, `prepayment`, `payment_gateway_id`, `run_hour`, `state`, `scheduled_date`, `payment_schedule_item_number`, `payment_schedule_id`, `cancellation_reason`, `error_message`, `payment_option_id` </details> (optional) * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams paymentScheduleItemFields(List paymentScheduleItemFields) { this.paymentScheduleItemFields = paymentScheduleItemFields; return this; } /** * Set expand * @param expand Allows you to expand responses by including related object information in a single call. See the [Expand responses](https://developer.zuora.com/quickstart-api/tutorial/expand-responses/) section of the Quickstart API Tutorials for detailed instructions. (optional) * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams expand(List expand) { this.expand = expand; return this; } /** * Set filter * @param filter A case-sensitive filter on the list. See the [Filter lists](https://developer.zuora.com/quickstart-api/tutorial/filter-lists/) section of the Quickstart API Tutorial for detailed instructions. Note that the filters on this operation are only applicable to the related objects. For example, when you are calling the \"Retrieve a billing document\" operation, you can use the `filter[]` parameter on the related objects such as `filter[]=items[account_id].EQ:8ad09e208858b5cf0188595208151c63` (optional) * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams filter(List filter) { this.filter = filter; return this; } /** * Set pageSize * @param pageSize The maximum number of results to return in a single page. If the specified `page_size` is less than 1 or greater than 99, Zuora will return a 400 error. (optional) * @return UpdatePaymentScheduleParams */ public UpdatePaymentScheduleParams pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } } /** * Update a payment schedule * Updates the specified payment schedule by setting the values of the parameters passed. Any parameters not provided will remain unchanged. * @param paymentScheduleId Identifier for the payment schedule. Can be either `payment_schedule_number` or `payment_schedule_id` (required) * @param paymentSchedulePatchRequest (required) * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
200 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public UpdatePaymentScheduleParams updatePaymentScheduleParams(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest) { return new UpdatePaymentScheduleParams(paymentScheduleId, paymentSchedulePatchRequest); } public PaymentSchedule updatePaymentSchedule(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest) throws ApiException { UpdatePaymentScheduleParams params = new UpdatePaymentScheduleParams(paymentScheduleId, paymentSchedulePatchRequest); return executeUpdatePaymentScheduleAPICall(params).getData(); } /** * Expose HTTP info public ApiResponse updatePaymentScheduleWithHttpInfo(String paymentScheduleId, PaymentSchedulePatchRequest paymentSchedulePatchRequest) throws ApiException { UpdatePaymentScheduleParams params = new UpdatePaymentScheduleParams(paymentScheduleId, paymentSchedulePatchRequest); return executeUpdatePaymentScheduleAPICall(params); } **/ /** Legacy Query Params Requests **/ public PaymentSchedule updatePaymentSchedule( String paymentScheduleId , PaymentSchedulePatchRequest paymentSchedulePatchRequest , List expand) throws ApiException { UpdatePaymentScheduleParams params = new UpdatePaymentScheduleParams(paymentScheduleId, paymentSchedulePatchRequest); params.expand(expand); return executeUpdatePaymentScheduleAPICall(params).getData(); } /* * add header methods */ public PaymentSchedule updatePaymentSchedule(String paymentScheduleId , PaymentSchedulePatchRequest paymentSchedulePatchRequest ,List expand,Headers headers) throws ApiException { UpdatePaymentScheduleParams params = new UpdatePaymentScheduleParams(paymentScheduleId, paymentSchedulePatchRequest) .expand(expand) .headers(headers); return executeUpdatePaymentScheduleAPICall(params).getData(); } /** * Update a payment schedule * Updates the specified payment schedule by setting the values of the parameters passed. Any parameters not provided will remain unchanged. * @param params UpdatePaymentScheduleParams * @return PaymentSchedule * @http.response.details
Status Code Description Response Headers
200 Default Response * ratelimit-limit - The request limit quota for the time window closest to exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-remaining - The number of requests remaining in the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* ratelimit-reset - The number of seconds until the quota resets for the time window closest to quota exhaustion. See [rate limits](https://developer.zuora.com/rest-api/general-concepts/rate-concurrency-limits/#rate-limits) for more information.
* zuora-request-id - Zuora’s internal identifier for this request.
* zuora-track-id - A user-supplied identifier for this request. If you supply a `zuora-track-id` as a request header, Zuora returns the `zuora-track-id` as a response header.
400 Bad Request -
401 Unauthorized -
404 Not Found -
405 Method Not Allowed -
429 Too Many Requests -
500 Internal Server Error -
502 Bad Gateway -
503 Service Unavailable -
504 Gateway Timeout -
*/ public PaymentSchedule update(UpdatePaymentScheduleParams params) throws ApiException { return executeUpdatePaymentScheduleAPICall(params).getData(); } public ApiResponse updateWithHttpInfo(UpdatePaymentScheduleParams params) throws ApiException { return executeUpdatePaymentScheduleAPICall(params); } ApiResponse executeUpdatePaymentScheduleAPICall(UpdatePaymentScheduleParams params) throws ApiException { return updatePaymentScheduleWithHttpInfo(params.paymentScheduleId, params.paymentSchedulePatchRequest, params.fields, params.paymentScheduleFields, params.paymentScheduleItemFields, params.expand, params.filter, params.pageSize, params.zuoraTrackId, params.async, params.zuoraCacheEnabled, params.zuoraEntityIds, params.idempotencyKey, params.acceptEncoding, params.contentEncoding, params.zuoraOrgIds); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy