@akinon/next 1.71.0-rc.10 → 1.71.0-rc.11

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.71.0-rc.11
4
+
5
+ ### Minor Changes
6
+
7
+ - cc538c6a: ZERO-3048: Update hepsiPayMiddleware to use Success flag for availability check
8
+ - 5a333a57: ZERO-3061: Add success parameter for completeWalletPage
9
+ - f0b2f416: ZERO-3062: Update proxyRequest to handle multiple values for search parameters
10
+
3
11
  ## 1.71.0-rc.10
4
12
 
5
13
  ### Minor Changes
package/api/client.ts CHANGED
@@ -43,7 +43,11 @@ async function proxyRequest(...args) {
43
43
  Array.from(searchParams.keys())
44
44
  .filter((key) => !['slug', 'options'].includes(key))
45
45
  .forEach((key) => {
46
- urlSearchParams.append(key, `${searchParams.get(key)}`);
46
+ urlSearchParams.delete(key);
47
+
48
+ searchParams.getAll(key).forEach((value) => {
49
+ urlSearchParams.append(key, value);
50
+ });
47
51
  });
48
52
 
49
53
  const extraHeaders: Record<string, string> = {};
@@ -484,10 +484,13 @@ export const checkoutApi = api.injectEndpoints({
484
484
  dispatch(setPaymentStepBusy(false));
485
485
  }
486
486
  }),
487
- setWalletCompletePage: build.mutation<CheckoutResponse, void>({
488
- query: () => ({
487
+ setWalletCompletePage: build.mutation<CheckoutResponse, boolean>({
488
+ query: (success: boolean) => ({
489
489
  url: buildClientRequestUrl(checkout.setWalletCompletePage),
490
- method: 'POST'
490
+ method: 'POST',
491
+ body: {
492
+ success
493
+ }
491
494
  }),
492
495
  async onQueryStarted(arg, { dispatch, queryFulfilled }) {
493
496
  dispatch(setPaymentStepBusy(true));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@akinon/next",
3
3
  "description": "Core package for Project Zero Next",
4
- "version": "1.71.0-rc.10",
4
+ "version": "1.71.0-rc.11",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -30,7 +30,7 @@
30
30
  "set-cookie-parser": "2.6.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@akinon/eslint-plugin-projectzero": "1.71.0-rc.10",
33
+ "@akinon/eslint-plugin-projectzero": "1.71.0-rc.11",
34
34
  "@types/react-redux": "7.1.30",
35
35
  "@types/set-cookie-parser": "2.4.7",
36
36
  "@typescript-eslint/eslint-plugin": "6.7.4",
@@ -368,8 +368,7 @@ export const hepsiPayMiddleware: Middleware = ({
368
368
  ) {
369
369
  dispatch(
370
370
  setHepsipayAvailability(
371
- walletSelectionPage.page_context.paymentData.data
372
- .IsAccountAlreadyLinked
371
+ walletSelectionPage.page_context.paymentData.data.Success
373
372
  )
374
373
  );
375
374
  }