Skip to content

Commit c9e8b85

Browse files
authored
Drop beta in url (#292)
1 parent 3259f53 commit c9e8b85

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

layouts/default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,8 @@ export default class DefaultLayoutsClass extends Vue {
370370
to: '/debug/payments/create',
371371
},
372372
{
373-
title: 'POST /beta/payments',
374-
to: '/debug/beta/payments/create',
373+
title: 'POST /payments/crypto',
374+
to: '/debug/payments/crypto/create',
375375
},
376376
{
377377
title: 'GET /payments/{id}',

lib/beta/paymentsApi.ts renamed to lib/cryptoPaymentsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import get from 'lodash/get'
22
import axios from 'axios'
33

4-
import { getAPIHostname } from '../apiTarget'
4+
import { getAPIHostname } from './apiTarget'
55

66
interface ProtocolMetadata {
77
type: string
@@ -67,7 +67,7 @@ function getInstance() {
6767
* @param {*} payload
6868
*/
6969
function createCryptoPayment(payload: CreateCryptoPaymentPayload) {
70-
const url = '/v1/payments/beta'
70+
const url = '/v1/payments/crypto'
7171
return instance.post(url, payload)
7272
}
7373

nuxt.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
'~/plugins/businessAccount/payoutsApi',
6767
'~/plugins/businessAccount/transfersApi',
6868
'~/plugins/cryptoPaymentMetadataApi',
69-
'~/plugins/beta/paymentsApi',
69+
'~/plugins/cryptoPaymentsApi',
7070
'~/plugins/beta/addressBookApi',
7171
'~/plugins/checkoutSessionsApi',
7272
],

pages/debug/beta/payments/create.vue renamed to pages/debug/payments/crypto/create.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import { mapGetters } from 'vuex'
9999
import { v4 as uuidv4 } from 'uuid'
100100
import RequestInfo from '@/components/RequestInfo.vue'
101101
import ErrorSheet from '@/components/ErrorSheet.vue'
102-
import { CreateCryptoPaymentPayload } from '~/lib/beta/paymentsApi'
102+
import { CreateCryptoPaymentPayload } from '~/lib/cryptoPaymentsApi'
103103
104104
@Component({
105105
components: {

plugins/beta/paymentsApi.ts renamed to plugins/cryptoPaymentsApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import paymentsApiBeta, {
22
CreateCryptoPaymentPayload,
3-
} from '@/lib/beta/paymentsApi'
3+
} from '@/lib/cryptoPaymentsApi'
44

55
declare module 'vue/types/vue' {
66
interface Vue {

0 commit comments

Comments
 (0)