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:
@@ -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}`,
|
||||
},
|
||||
|
||||
@@ -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}`,
|
||||
},
|
||||
|
||||
@@ -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}`,
|
||||
|
||||
@@ -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}`,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user