@paysponge/sdk 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -809,6 +809,39 @@ export class DefaultApi extends runtime.BaseAPI {
809
809
  async deleteApiMasterKeysById(requestParameters, initOverrides) {
810
810
  await this.deleteApiMasterKeysByIdRaw(requestParameters, initOverrides);
811
811
  }
812
+ /**
813
+ * Creates request options for deleteApiPaymentLinksByPaymentLinkId without sending the request
814
+ */
815
+ async deleteApiPaymentLinksByPaymentLinkIdRequestOpts(requestParameters) {
816
+ if (requestParameters['paymentLinkId'] == null) {
817
+ throw new runtime.RequiredError('paymentLinkId', 'Required parameter "paymentLinkId" was null or undefined when calling deleteApiPaymentLinksByPaymentLinkId().');
818
+ }
819
+ const queryParameters = {};
820
+ if (requestParameters['agentId'] != null) {
821
+ queryParameters['agentId'] = requestParameters['agentId'];
822
+ }
823
+ const headerParameters = {};
824
+ let urlPath = `/api/payment-links/{paymentLinkId}`;
825
+ urlPath = urlPath.replace(`{${"paymentLinkId"}}`, encodeURIComponent(String(requestParameters['paymentLinkId'])));
826
+ return {
827
+ path: urlPath,
828
+ method: 'DELETE',
829
+ headers: headerParameters,
830
+ query: queryParameters,
831
+ };
832
+ }
833
+ /**
834
+ */
835
+ async deleteApiPaymentLinksByPaymentLinkIdRaw(requestParameters, initOverrides) {
836
+ const requestOptions = await this.deleteApiPaymentLinksByPaymentLinkIdRequestOpts(requestParameters);
837
+ const response = await this.request(requestOptions, initOverrides);
838
+ return new runtime.VoidApiResponse(response);
839
+ }
840
+ /**
841
+ */
842
+ async deleteApiPaymentLinksByPaymentLinkId(requestParameters, initOverrides) {
843
+ await this.deleteApiPaymentLinksByPaymentLinkIdRaw(requestParameters, initOverrides);
844
+ }
812
845
  /**
813
846
  * Creates request options for deleteApiSpendingLimitsById without sending the request
814
847
  */