@paysponge/sdk 0.1.44 → 0.1.45

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.
@@ -6630,6 +6630,37 @@ export class DefaultApi extends runtime.BaseAPI {
6630
6630
  async postApiSpongeCardCustomer(requestParameters, initOverrides) {
6631
6631
  await this.postApiSpongeCardCustomerRaw(requestParameters, initOverrides);
6632
6632
  }
6633
+ /**
6634
+ * Creates request options for postApiSpongeCardCustomerConsent without sending the request
6635
+ */
6636
+ async postApiSpongeCardCustomerConsentRequestOpts(requestParameters) {
6637
+ if (requestParameters['postApiSpongeCardCustomerRefreshRequest'] == null) {
6638
+ throw new runtime.RequiredError('postApiSpongeCardCustomerRefreshRequest', 'Required parameter "postApiSpongeCardCustomerRefreshRequest" was null or undefined when calling postApiSpongeCardCustomerConsent().');
6639
+ }
6640
+ const queryParameters = {};
6641
+ const headerParameters = {};
6642
+ headerParameters['Content-Type'] = 'application/json';
6643
+ let urlPath = `/api/sponge-card/customer/consent`;
6644
+ return {
6645
+ path: urlPath,
6646
+ method: 'POST',
6647
+ headers: headerParameters,
6648
+ query: queryParameters,
6649
+ body: PostApiSpongeCardCustomerRefreshRequestToJSON(requestParameters['postApiSpongeCardCustomerRefreshRequest']),
6650
+ };
6651
+ }
6652
+ /**
6653
+ */
6654
+ async postApiSpongeCardCustomerConsentRaw(requestParameters, initOverrides) {
6655
+ const requestOptions = await this.postApiSpongeCardCustomerConsentRequestOpts(requestParameters);
6656
+ const response = await this.request(requestOptions, initOverrides);
6657
+ return new runtime.VoidApiResponse(response);
6658
+ }
6659
+ /**
6660
+ */
6661
+ async postApiSpongeCardCustomerConsent(requestParameters, initOverrides) {
6662
+ await this.postApiSpongeCardCustomerConsentRaw(requestParameters, initOverrides);
6663
+ }
6633
6664
  /**
6634
6665
  * Creates request options for postApiSpongeCardCustomerRefresh without sending the request
6635
6666
  */