@pax2pay/client 0.3.88 → 0.3.89

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.
@@ -11,18 +11,30 @@ export class Configuration {
11
11
  async getAvailableCurrency(providerCode: ProviderCode = "modulr"): Promise<Currency[] | model.ErrorResponse> {
12
12
  return await this.connection.get<Currency[]>(`${this.folder}/currencies`, { provider: providerCode })
13
13
  }
14
- async updateOrganisationConfig(
15
- request: model.OrganisationConfig
16
- ): Promise<model.OrganisationConfig | model.ErrorResponse> {
14
+ async getOrganisation(): Promise<model.OrganisationConfig | model.ErrorResponse> {
15
+ return await this.connection.get<model.OrganisationConfig>(`${this.folder}/organisation`)
16
+ }
17
+ async updateOrganisation(request: model.OrganisationConfig): Promise<model.OrganisationConfig | model.ErrorResponse> {
17
18
  return await this.connection.post<model.OrganisationConfig>(`${this.folder}/organisation`, request)
18
19
  }
19
- async getOrganisationConfig(): Promise<model.OrganisationConfig | model.ErrorResponse> {
20
- return await this.connection.get<model.OrganisationConfig>(`${this.folder}/organisation`)
20
+ async getInternalOrganisation(organisation: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
21
+ return await this.connection.get<model.InternalOrganisationConfig>(
22
+ `${this.folder}/organisation_internal/${organisation}`
23
+ )
24
+ }
25
+ async updateInternalOrganisation(
26
+ organisation: string,
27
+ request: model.InternalOrganisationConfig
28
+ ): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
29
+ return await this.connection.post<model.InternalOrganisationConfig>(
30
+ `${this.folder}/organisation_internal/${organisation}`,
31
+ request
32
+ )
21
33
  }
22
- async getUserConfig(): Promise<model.UserConfig | model.ErrorResponse> {
34
+ async getUser(): Promise<model.UserConfig | model.ErrorResponse> {
23
35
  return await this.connection.get<model.UserConfig>(`${this.folder}/user`)
24
36
  }
25
- async updateUserConfig(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse> {
37
+ async updateUser(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse> {
26
38
  return await this.connection.post<model.UserConfig>(`${this.folder}/user`, request)
27
39
  }
28
40
  async getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse> {
@@ -8,10 +8,12 @@ export declare class Configuration {
8
8
  constructor(connection: Connection);
9
9
  static create(connection: Connection): Configuration;
10
10
  getAvailableCurrency(providerCode?: ProviderCode): Promise<Currency[] | model.ErrorResponse>;
11
- updateOrganisationConfig(request: model.OrganisationConfig): Promise<model.OrganisationConfig | model.ErrorResponse>;
12
- getOrganisationConfig(): Promise<model.OrganisationConfig | model.ErrorResponse>;
13
- getUserConfig(): Promise<model.UserConfig | model.ErrorResponse>;
14
- updateUserConfig(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse>;
11
+ getOrganisation(): Promise<model.OrganisationConfig | model.ErrorResponse>;
12
+ updateOrganisation(request: model.OrganisationConfig): Promise<model.OrganisationConfig | model.ErrorResponse>;
13
+ getInternalOrganisation(organisation: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse>;
14
+ updateInternalOrganisation(organisation: string, request: model.InternalOrganisationConfig): Promise<model.InternalOrganisationConfig | model.ErrorResponse>;
15
+ getUser(): Promise<model.UserConfig | model.ErrorResponse>;
16
+ updateUser(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse>;
15
17
  getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse>;
16
18
  getConfigValueFromKey(category: string, key: string): Promise<any | model.ErrorResponse>;
17
19
  setupCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
@@ -10,16 +10,22 @@ export class Configuration {
10
10
  async getAvailableCurrency(providerCode = "modulr") {
11
11
  return await this.connection.get(`${this.folder}/currencies`, { provider: providerCode });
12
12
  }
13
- async updateOrganisationConfig(request) {
13
+ async getOrganisation() {
14
+ return await this.connection.get(`${this.folder}/organisation`);
15
+ }
16
+ async updateOrganisation(request) {
14
17
  return await this.connection.post(`${this.folder}/organisation`, request);
15
18
  }
16
- async getOrganisationConfig() {
17
- return await this.connection.get(`${this.folder}/organisation`);
19
+ async getInternalOrganisation(organisation) {
20
+ return await this.connection.get(`${this.folder}/organisation_internal/${organisation}`);
21
+ }
22
+ async updateInternalOrganisation(organisation, request) {
23
+ return await this.connection.post(`${this.folder}/organisation_internal/${organisation}`, request);
18
24
  }
19
- async getUserConfig() {
25
+ async getUser() {
20
26
  return await this.connection.get(`${this.folder}/user`);
21
27
  }
22
- async updateUserConfig(request) {
28
+ async updateUser(request) {
23
29
  return await this.connection.post(`${this.folder}/user`, request);
24
30
  }
25
31
  async getPortalFeatures() {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Configuration/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC,MAAM,OAAO,aAAa;IAEzB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QADzC,WAAM,GAAG,QAAQ,CAAA;IAC2B,CAAC;IACvD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAA;IACrC,CAAC;IACD,KAAK,CAAC,oBAAoB,CAAC,eAA6B,QAAQ;QAC/D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAa,GAAG,IAAI,CAAC,MAAM,aAAa,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC,CAAA;IACtG,CAAC;IACD,KAAK,CAAC,wBAAwB,CAC7B,OAAiC;QAEjC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA2B,GAAG,IAAI,CAAC,MAAM,eAAe,EAAE,OAAO,CAAC,CAAA;IACpG,CAAC;IACD,KAAK,CAAC,qBAAqB;QAC1B,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAA2B,GAAG,IAAI,CAAC,MAAM,eAAe,CAAC,CAAA;IAC1F,CAA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AAE,gBAAgB,EAAE,CAAA;QAC/C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,eAAe,YAAY,QAAQ,EACnC,OAAO,EACP,SAAS,EACT,MAAM,CACN,CAAA;IACF,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,gBAAwB;QAC/C,MAAM,MAAM,GAAG,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA;QAC/C,MAAM,UAAU,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;QACxC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,aAAa,EACb,UAAU,EACV,MAAM,CACN,CAAA;QACD,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,QAAQ,CAAC;YACnC,OAAO,QAAQ,CAAA;;YAEf,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,KAAK,CAAC,iBAAiB,CACtB,gBAAwB,EACxB,YAA0B,EAC1B,OAAgC;QAEhC,MAAM,MAAM,GAAG,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA;QAC/C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAC/B,eAAe,YAAY,EAAE,EAC7B,OAAO,EACP,SAAS,EACT,MAAM,CACN,CAAA;IACF,CAAC;IACD,KAAK,CAAC,eAAe,CACpB,gBAAwB,EACxB,YAA0B,EAC1B,OAAgC;QAEhC,MAAM,MAAM,GAAG,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAA;QAC/C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,eAAe,YAAY,EAAE,EAC7B,OAAO,EACP,SAAS,EACT,MAAM,CACN,CAAA;IACF,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.88",
3
+ "version": "0.3.89",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",