Merged in feat/LOY-431-profile-v2 (pull request #3202)

Feat/LOY-431: Switch to V2 of Profile endpoint

* feat(LOY-431): switch to v2 of profile endpoint

* feat(LOY-431): use CreditCard

* feat(LOY-431): remove hotelinformation from friendTransaction schema

* chore(LOY-431): add hotel data request to transactions

* fix(LOY-431): use v1 of friendTransactions


Approved-by: Linus Flood
Approved-by: Erik Tiekstra
Approved-by: Anton Gunnarsson
This commit is contained in:
Matilda Landström
2025-11-28 13:58:06 +00:00
parent c29b724317
commit 22dd2f60fe
15 changed files with 98 additions and 81 deletions

View File

@@ -29,7 +29,7 @@ export const linkAccount = protectedProcedure
sasLogger.debug("[SAS] link account")
const apiResponse = await api.post(api.endpoints.v1.Profile.link, {
const apiResponse = await api.post(api.endpoints.v2.Profile.link, {
headers: {
Authorization: `Bearer ${ctx.session.token.access_token}`,
},

View File

@@ -42,7 +42,7 @@ export const performLevelUpgrade = protectedProcedure
sasLogger.debug("tier match started")
const apiResponse = await api.post(api.endpoints.v1.Profile.matchTier, {
const apiResponse = await api.post(api.endpoints.v2.Profile.matchTier, {
headers: {
Authorization: `Bearer ${ctx.session.token.access_token}`,
},

View File

@@ -25,7 +25,7 @@ export const transferPoints = protectedProcedure
const { referenceId } = await getOTPState()
const apiResponse = await api.post(
api.endpoints.v1.Profile.pointTransfer,
api.endpoints.v2.Profile.pointTransfer,
{
headers: {
Authorization: `Bearer ${ctx.session.token.access_token}`,

View File

@@ -17,7 +17,7 @@ export const unlinkAccount = protectedProcedure
const sasAuthToken = await getSasToken()
const { referenceId } = await getOTPState()
const apiResponse = await api.post(api.endpoints.v1.Profile.unlink, {
const apiResponse = await api.post(api.endpoints.v2.Profile.unlink, {
headers: {
Authorization: `Bearer ${ctx.session.token.access_token}`,
},