Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit aea9fb3

Browse files
authored
feat: Updated base API urls (#821)
1 parent 2ae1080 commit aea9fb3

37 files changed

+39
-39
lines changed

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Config {
3535
this.client_id = client_id
3636
this.client_secret = client_secret
3737
this.store_id = store_id
38-
this.host = host || 'api.moltin.com'
38+
this.host = host || 'euwest.api.elasticpath.com'
3939
this.protocol = protocol || 'https'
4040
this.version = 'v2'
4141
this.currency = currency

test/unit/account-addresses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
attributeResponse
88
} from '../factories'
99

10-
const apiUrl = 'https://api.moltin.com/v2'
10+
const apiUrl = 'https://euwest.api.elasticpath.com/v2'
1111

1212
describe('Moltin addresses', () => {
1313
const Moltin = MoltinGateway({

test/unit/account-authentication-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert } from 'chai'
22
import nock from 'nock'
33
import { gateway as MoltinGateway } from '../../src/moltin'
44

5-
const apiUrl = 'https://api.moltin.com/v2'
5+
const apiUrl = 'https://euwest.api.elasticpath.com/v2'
66

77
describe('Moltin Account Authentication Settings', () => {
88
const Moltin = MoltinGateway({

test/unit/account-members.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert } from 'chai'
22
import nock from 'nock'
33
import { gateway as MoltinGateway } from '../../src/moltin'
44

5-
const apiUrl = 'https://api.moltin.com'
5+
const apiUrl = 'https://euwest.api.elasticpath.com'
66

77
describe('Moltin Account Members', () => {
88
const Moltin = MoltinGateway({

test/unit/account-membership-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert } from 'chai'
22
import nock from 'nock'
33
import { gateway as MoltinGateway } from '../../src/moltin'
44

5-
const apiUrl = 'https://api.moltin.com/v2'
5+
const apiUrl = 'https://euwest.api.elasticpath.com/v2'
66

77
describe('Moltin Account Membership Settings', () => {
88
const Moltin = MoltinGateway({

test/unit/account-memberships.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from '../../src/moltin'
77
import { accountMembershipsArray } from '../factories'
88

9-
const apiUrl = 'https://api.moltin.com'
9+
const apiUrl = 'https://euwest.api.elasticpath.com'
1010

1111
describe('Moltin Account Memberships', () => {
1212
const Moltin = MoltinGateway({

test/unit/accounts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert } from 'chai'
22
import nock from 'nock'
33
import { gateway as MoltinGateway } from '../../src/moltin'
44

5-
const apiUrl = 'https://api.moltin.com'
5+
const apiUrl = 'https://euwest.api.elasticpath.com'
66

77
describe('Moltin Accounts', () => {
88
const Moltin = MoltinGateway({

test/unit/application-keys.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import nock from 'nock'
33
import { ApplicationKeyBase, gateway as MoltinGateway } from '../../src/moltin'
44
import { applicationKeysArray as applicationKeys } from '../factories'
55

6-
const apiUrl = 'https://api.moltin.com/v2'
6+
const apiUrl = 'https://euwest.api.elasticpath.com/v2'
77

88
describe('Store Application Keys', () => {
99
it('should return an array of application keys', () => {

test/unit/authentication-realm.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert } from 'chai'
22
import nock from 'nock'
33
import { gateway as MoltinGateway } from '../../src/moltin'
44

5-
const apiUrl = 'https://api.moltin.com/v2'
5+
const apiUrl = 'https://euwest.api.elasticpath.com/v2'
66

77
describe('Moltin Authentication Realms', () => {
88
const Moltin = MoltinGateway({

test/unit/authentication-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { assert } from 'chai'
22
import nock from 'nock'
33
import { gateway as MoltinGateway } from '../../src/moltin'
44

5-
const apiUrl = 'https://api.moltin.com/v2'
5+
const apiUrl = 'https://euwest.api.elasticpath.com/v2'
66

77
describe('Moltin Authentication Settings', () => {
88
const Moltin = MoltinGateway({

0 commit comments

Comments
 (0)