@pax2pay/client 0.3.3 → 0.3.4

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.
@@ -12,6 +12,12 @@ export class Configuration {
12
12
  const result = await this.connection.get<Currency[]>(`config/currencies`, { provider: providerCode })
13
13
  return result
14
14
  }
15
+ async updateOrganisationConfig(
16
+ request: model.OrganisationConfig
17
+ ): Promise<model.OrganisationConfig | model.ErrorResponse> {
18
+ const result = await this.connection.post<model.OrganisationConfig>(`config/organisation`, request)
19
+ return result
20
+ }
15
21
  async getOrganisationConfig(): Promise<model.OrganisationConfig | model.ErrorResponse> {
16
22
  const result = await this.connection.get<model.OrganisationConfig>(`config/organisation`)
17
23
  return result
@@ -8,6 +8,7 @@ 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>;
11
12
  getOrganisationConfig(): Promise<model.OrganisationConfig | model.ErrorResponse>;
12
13
  getUserConfig(): Promise<model.UserConfig | model.ErrorResponse>;
13
14
  getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse>;
@@ -10,6 +10,10 @@ export class Configuration {
10
10
  const result = await this.connection.get(`config/currencies`, { provider: providerCode });
11
11
  return result;
12
12
  }
13
+ async updateOrganisationConfig(request) {
14
+ const result = await this.connection.post(`config/organisation`, request);
15
+ return result;
16
+ }
13
17
  async getOrganisationConfig() {
14
18
  const result = await this.connection.get(`config/organisation`);
15
19
  return result;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Configuration/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAa;IAEzB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QADzC,WAAM,GAAG,QAAQ,CAAA;IAC2B,CA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wB,CAC7B,OAAiC;QAEjC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA2B,qBAAqB,EAAE,OAAO,CAAC,CAAA;QACnG,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,qBAAqB;QAC1B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAA2B,qBAAqB,CAAC,CAAA;QACzF,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,aAAa;QAClB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAmB,aAAa,CAAC,CAAA;QACzE,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,iBAAiB;QACtB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,eAAe,CAAC,CAAA;IACzE,CAAC;CACD"}
@@ -3,6 +3,7 @@ export interface CardTypeResponseV2 {
3
3
  providerCode: ProviderCode;
4
4
  cardTypeId: string;
5
5
  description: string;
6
+ originalDescription?: string;
6
7
  scheme: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS";
7
8
  funding?: "DEBIT" | "CREDIT" | "PREPAID";
8
9
  currencies?: string[];
@@ -1,5 +1,7 @@
1
+ import { ProviderCode } from "./ProviderCode";
1
2
  export interface CardTypesConfig {
2
3
  useLegacyCardTypesInResponse?: boolean;
3
4
  hideCardTypes?: any;
4
5
  onlyShowCardTypes?: any;
6
+ aliases?: Partial<Record<ProviderCode, Record<string, string>>>;
5
7
  }
@@ -4,6 +4,7 @@ export interface CardTypeResponseV2 {
4
4
  providerCode: ProviderCode
5
5
  cardTypeId: string
6
6
  description: string
7
+ originalDescription?: string
7
8
  scheme: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS"
8
9
  funding?: "DEBIT" | "CREDIT" | "PREPAID"
9
10
  currencies?: string[]
@@ -1,3 +1,4 @@
1
+ import { ProviderCode } from "./ProviderCode"
1
2
  /**
2
3
  * Config related to card types
3
4
  */
@@ -5,4 +6,5 @@ export interface CardTypesConfig {
5
6
  useLegacyCardTypesInResponse?: boolean
6
7
  hideCardTypes?: any
7
8
  onlyShowCardTypes?: any
9
+ aliases?: Partial<Record<ProviderCode, Record<string, string>>>
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",