@pax2pay/client 0.3.131 → 0.3.132

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.
Files changed (83) hide show
  1. package/Client/Accounts/index.ts +1 -1
  2. package/Client/Api-keys/index.ts +1 -1
  3. package/Client/Beneficiaries/index.ts +1 -1
  4. package/Client/Categories/index.ts +1 -1
  5. package/Client/Configuration/index.ts +20 -68
  6. package/Client/Credentials/index.ts +63 -0
  7. package/Client/Currency/index.ts +1 -1
  8. package/Client/Email/index.ts +1 -1
  9. package/Client/Merchants/index.ts +1 -1
  10. package/Client/Metadata/index.ts +1 -1
  11. package/Client/Organisations/index.ts +1 -1
  12. package/Client/Rolesets/index.ts +1 -1
  13. package/Client/Transfers/index.ts +1 -1
  14. package/Client/Users/index.ts +1 -1
  15. package/Client/index.ts +3 -0
  16. package/dist/Client/Accounts/index.d.ts +1 -1
  17. package/dist/Client/Accounts/index.js.map +1 -1
  18. package/dist/Client/Api-keys/index.d.ts +1 -1
  19. package/dist/Client/Api-keys/index.js.map +1 -1
  20. package/dist/Client/Beneficiaries/index.d.ts +1 -1
  21. package/dist/Client/Beneficiaries/index.js.map +1 -1
  22. package/dist/Client/Categories/index.d.ts +1 -1
  23. package/dist/Client/Categories/index.js.map +1 -1
  24. package/dist/Client/Configuration/index.d.ts +7 -11
  25. package/dist/Client/Configuration/index.js +12 -34
  26. package/dist/Client/Configuration/index.js.map +1 -1
  27. package/dist/Client/Credentials/index.d.ts +13 -0
  28. package/dist/Client/Credentials/index.js +32 -0
  29. package/dist/Client/Credentials/index.js.map +1 -0
  30. package/dist/Client/Currency/index.d.ts +1 -1
  31. package/dist/Client/Currency/index.js.map +1 -1
  32. package/dist/Client/Email/index.d.ts +1 -1
  33. package/dist/Client/Email/index.js.map +1 -1
  34. package/dist/Client/Merchants/index.d.ts +1 -1
  35. package/dist/Client/Merchants/index.js.map +1 -1
  36. package/dist/Client/Metadata/index.d.ts +1 -1
  37. package/dist/Client/Metadata/index.js.map +1 -1
  38. package/dist/Client/Organisations/index.d.ts +1 -1
  39. package/dist/Client/Organisations/index.js.map +1 -1
  40. package/dist/Client/Rolesets/index.d.ts +1 -1
  41. package/dist/Client/Rolesets/index.js.map +1 -1
  42. package/dist/Client/Transfers/index.d.ts +1 -1
  43. package/dist/Client/Transfers/index.js.map +1 -1
  44. package/dist/Client/Users/index.d.ts +1 -1
  45. package/dist/Client/Users/index.js.map +1 -1
  46. package/dist/Client/index.d.ts +3 -0
  47. package/dist/Client/index.js +2 -0
  48. package/dist/Client/index.js.map +1 -1
  49. package/dist/index.js +2 -2
  50. package/dist/index.js.map +1 -1
  51. package/dist/model/ApprovalNotificationConfig.d.ts +8 -0
  52. package/dist/model/ApprovalNotificationConfig.js +10 -0
  53. package/dist/model/ApprovalNotificationConfig.js.map +1 -0
  54. package/dist/model/CardDeliveryEmailConfig.d.ts +2 -1
  55. package/dist/model/CardDeliveryEmailConfig.js +7 -6
  56. package/dist/model/CardDeliveryEmailConfig.js.map +1 -1
  57. package/dist/model/CardTypesConfig.d.ts +3 -0
  58. package/dist/model/CardTypesConfig.js +11 -1
  59. package/dist/model/CardTypesConfig.js.map +1 -1
  60. package/dist/model/CardUsage.d.ts +5 -2
  61. package/dist/model/CardUsage.js +4 -4
  62. package/dist/model/CardUsage.js.map +1 -1
  63. package/dist/model/CreateCardRequest.d.ts +2 -1
  64. package/dist/model/FundingAccountInboundTransferNotificationConfig.d.ts +4 -0
  65. package/dist/model/FundingAccountInboundTransferNotificationConfig.js +9 -1
  66. package/dist/model/FundingAccountInboundTransferNotificationConfig.js.map +1 -1
  67. package/dist/model/FundingLimitConfig.d.ts +2 -1
  68. package/dist/model/FundingLimitConfig.js +6 -4
  69. package/dist/model/FundingLimitConfig.js.map +1 -1
  70. package/dist/model/OrganisationConfig.d.ts +6 -2
  71. package/dist/model/OrganisationConfig.js +26 -5
  72. package/dist/model/OrganisationConfig.js.map +1 -1
  73. package/dist/model/index.js +3 -1
  74. package/dist/model/index.js.map +1 -1
  75. package/model/ApprovalNotificationConfig.ts +15 -0
  76. package/model/CardDeliveryEmailConfig.ts +8 -7
  77. package/model/CardTypesConfig.ts +10 -0
  78. package/model/CardUsage.ts +6 -4
  79. package/model/CreateCardRequest.ts +2 -1
  80. package/model/FundingAccountInboundTransferNotificationConfig.ts +9 -0
  81. package/model/FundingLimitConfig.ts +7 -3
  82. package/model/OrganisationConfig.ts +21 -7
  83. package/package.json +1 -1
@@ -3,7 +3,7 @@ import { Connection } from "../Connection"
3
3
  import { List } from "../List"
4
4
 
5
5
  export class Accounts extends List<model.AccountResponse> {
6
- protected folder = "funding-accounts"
6
+ protected readonly folder = "funding-accounts"
7
7
  private constructor(connection: Connection) {
8
8
  super(connection)
9
9
  }
@@ -2,7 +2,7 @@ import * as model from "../../model"
2
2
  import { Connection } from "../Connection"
3
3
  import { List } from "../List"
4
4
  export class ApiKeys extends List<model.ApiKeyResponse> {
5
- protected folder = "api-keys"
5
+ protected readonly folder = "api-keys"
6
6
  private constructor(connection: Connection) {
7
7
  super(connection)
8
8
  }
@@ -3,7 +3,7 @@ import { Connection } from "../Connection"
3
3
  import { List } from "../List"
4
4
 
5
5
  export class Beneficiaries extends List<model.BeneficiaryResponse> {
6
- protected folder = "beneficiaries"
6
+ protected readonly folder = "beneficiaries"
7
7
  constructor(connection: Connection) {
8
8
  super(connection)
9
9
  }
@@ -3,7 +3,7 @@ import { CategoryResponse } from "../../model/CategoryResponse"
3
3
  import { Connection } from "../Connection"
4
4
  import { List } from "../List"
5
5
  export class Categories extends List<model.CategoryResponse> {
6
- protected folder = "category"
6
+ protected readonly folder = "category"
7
7
  private constructor(connection: Connection) {
8
8
  super(connection)
9
9
  }
@@ -3,7 +3,7 @@ import * as model from "../../model"
3
3
  import { ProviderCode } from "../../model/ProviderCode"
4
4
  import { Connection } from "../Connection"
5
5
  export class Configuration {
6
- protected folder = "config"
6
+ protected readonly folder = "config"
7
7
  constructor(private readonly connection: Connection) {}
8
8
  static create(connection: Connection) {
9
9
  return new Configuration(connection)
@@ -11,31 +11,37 @@ 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 getOrganisation(): Promise<model.OrganisationConfig | model.ErrorResponse> {
15
- return await this.connection.get<model.OrganisationConfig>(`${this.folder}/organisation`)
14
+ async getOrganisation(code?: string): Promise<model.OrganisationConfig | model.ErrorResponse> {
15
+ return await this.connection.get<model.OrganisationConfig>(`${this.folder}/organisation${code ? `/${code}` : ""}`)
16
16
  }
17
- async updateOrganisation(request: model.OrganisationConfig): Promise<model.OrganisationConfig | model.ErrorResponse> {
18
- return await this.connection.post<model.OrganisationConfig>(`${this.folder}/organisation`, request)
17
+ async updateOrganisation(
18
+ request: model.OrganisationConfig,
19
+ code?: string
20
+ ): Promise<model.OrganisationConfig | model.ErrorResponse> {
21
+ return await this.connection.post<model.OrganisationConfig>(
22
+ `${this.folder}/organisation${code ? `/${code}` : ""}`,
23
+ request
24
+ )
19
25
  }
20
- async getInternalOrganisation(organisation: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
26
+ async getInternalOrganisation(code?: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
21
27
  return await this.connection.get<model.InternalOrganisationConfig>(
22
- `${this.folder}/organisation_internal/${organisation}`
28
+ `${this.folder}/organisation_internal/${code ? `/${code}` : ""}`
23
29
  )
24
30
  }
25
31
  async updateInternalOrganisation(
26
- organisation: string,
27
- request: model.InternalOrganisationConfig
32
+ request: model.InternalOrganisationConfig,
33
+ code?: string
28
34
  ): Promise<model.InternalOrganisationConfig | model.ErrorResponse> {
29
35
  return await this.connection.post<model.InternalOrganisationConfig>(
30
- `${this.folder}/organisation_internal/${organisation}`,
36
+ `${this.folder}/organisation_internal/${code ? `/${code}` : ""}`,
31
37
  request
32
38
  )
33
39
  }
34
- async getUser(): Promise<model.UserConfig | model.ErrorResponse> {
35
- return await this.connection.get<model.UserConfig>(`${this.folder}/user`)
40
+ async getUser(username?: string): Promise<model.UserConfig | model.ErrorResponse> {
41
+ return await this.connection.get<model.UserConfig>(`${this.folder}/user${username ? `/${username}` : ""}`)
36
42
  }
37
- async updateUser(request: model.UserConfig): Promise<model.UserConfig | model.ErrorResponse> {
38
- return await this.connection.post<model.UserConfig>(`${this.folder}/user`, request)
43
+ async updateUser(request: model.UserConfig, username?: string): Promise<model.UserConfig | model.ErrorResponse> {
44
+ return await this.connection.post<model.UserConfig>(`${this.folder}/user${username ? `/${username}` : ""}`, request)
39
45
  }
40
46
  async getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse> {
41
47
  return await this.connection.get<model.PaxpayFeature[]>(`${this.folder}/portal`)
@@ -43,58 +49,4 @@ export class Configuration {
43
49
  async getConfigValueFromKey(category: string, key: string): Promise<any | model.ErrorResponse> {
44
50
  return await this.connection.get<any>(`${this.folder}/key/${category}/${key}`)
45
51
  }
46
-
47
- async setupCredentials(
48
- organisationCode: string,
49
- providerCode: ProviderCode,
50
- request: model.CredentialRequest
51
- ): Promise<model.CredentialResponse | model.ErrorResponse> {
52
- const header = { "x-assume": organisationCode }
53
- return await this.connection.post<model.CredentialResponse>(
54
- `credentials/${providerCode}/setup`,
55
- request,
56
- undefined,
57
- header
58
- )
59
- }
60
- async getAllCredentials(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse> {
61
- const header = { "x-assume": organisationCode }
62
- const parameters = { totalCount: false }
63
- const response = await this.connection.get<{ list: model.CredentialResponse[]; totalCount: number }>(
64
- `credentials`,
65
- parameters,
66
- header
67
- )
68
- if (model.ErrorResponse.is(response))
69
- return response
70
- else
71
- return response.list
72
- }
73
-
74
- async updateCredentials(
75
- organisationCode: string,
76
- providerCode: ProviderCode,
77
- request: model.CredentialRequest
78
- ): Promise<model.CredentialResponse | model.ErrorResponse> {
79
- const header = { "x-assume": organisationCode }
80
- return await this.connection.put<model.CredentialResponse>(
81
- `credentials/${providerCode}`,
82
- request,
83
- undefined,
84
- header
85
- )
86
- }
87
- async saveCredentials(
88
- organisationCode: string,
89
- providerCode: ProviderCode,
90
- request: model.CredentialRequest
91
- ): Promise<model.CredentialResponse | model.ErrorResponse> {
92
- const header = { "x-assume": organisationCode }
93
- return await this.connection.post<model.CredentialResponse>(
94
- `credentials/${providerCode}`,
95
- request,
96
- undefined,
97
- header
98
- )
99
- }
100
52
  }
@@ -0,0 +1,63 @@
1
+ import * as model from "../../model"
2
+ import { ProviderCode } from "../../model/ProviderCode"
3
+ import { Connection } from "../Connection"
4
+ export class Credentials {
5
+ protected readonly folder = "credentials"
6
+ constructor(private readonly connection: Connection) {}
7
+ static create(connection: Connection) {
8
+ return new Credentials(connection)
9
+ }
10
+ async setup(
11
+ organisationCode: string,
12
+ providerCode: ProviderCode,
13
+ request: model.CredentialRequest
14
+ ): Promise<model.CredentialResponse | model.ErrorResponse> {
15
+ const header = { "x-assume": organisationCode }
16
+ return await this.connection.post<model.CredentialResponse>(
17
+ `${this.folder}/${providerCode}/setup`,
18
+ request,
19
+ undefined,
20
+ header
21
+ )
22
+ }
23
+ async getAll(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse> {
24
+ const header = { "x-assume": organisationCode }
25
+ const parameters = { totalCount: false }
26
+ const response = await this.connection.get<{ list: model.CredentialResponse[]; totalCount: number }>(
27
+ `${this.folder}`,
28
+ parameters,
29
+ header
30
+ )
31
+ if (model.ErrorResponse.is(response))
32
+ return response
33
+ else
34
+ return response.list
35
+ }
36
+
37
+ async update(
38
+ organisationCode: string,
39
+ providerCode: ProviderCode,
40
+ request: model.CredentialRequest
41
+ ): Promise<model.CredentialResponse | model.ErrorResponse> {
42
+ const header = { "x-assume": organisationCode }
43
+ return await this.connection.put<model.CredentialResponse>(
44
+ `${this.folder}/${providerCode}`,
45
+ request,
46
+ undefined,
47
+ header
48
+ )
49
+ }
50
+ async save(
51
+ organisationCode: string,
52
+ providerCode: ProviderCode,
53
+ request: model.CredentialRequest
54
+ ): Promise<model.CredentialResponse | model.ErrorResponse> {
55
+ const header = { "x-assume": organisationCode }
56
+ return await this.connection.post<model.CredentialResponse>(
57
+ `${this.folder}/${providerCode}`,
58
+ request,
59
+ undefined,
60
+ header
61
+ )
62
+ }
63
+ }
@@ -5,7 +5,7 @@ import { CurrencyConversionResponse } from "../../model/CurrencyConversionRespon
5
5
  import { Connection } from "../Connection"
6
6
 
7
7
  export class Currency {
8
- protected folder = "currency"
8
+ protected readonly folder = "currency"
9
9
  #connection: Connection
10
10
  protected get connection() {
11
11
  return this.#connection
@@ -2,7 +2,7 @@ import * as model from "../../model"
2
2
  import { Connection } from "../Connection"
3
3
 
4
4
  export class Email {
5
- protected folder = "email"
5
+ protected readonly folder = "email"
6
6
  constructor(private readonly connection: Connection) {}
7
7
  static create(connection: Connection) {
8
8
  return new Email(connection)
@@ -4,7 +4,7 @@ import { List } from "../List"
4
4
  import { Paginated } from "../Paginated"
5
5
 
6
6
  export class Merchants extends List<model.MerchantResponse> {
7
- protected folder = "merchants" as const
7
+ protected readonly folder = "merchants"
8
8
  constructor(connection: Connection) {
9
9
  super(connection)
10
10
  }
@@ -4,7 +4,7 @@ import { List } from "../List"
4
4
  import { Paginated } from "../Paginated"
5
5
 
6
6
  export class Metadata extends List<MetadataFormat.Response> {
7
- protected folder = "metadata" as const
7
+ protected readonly folder = "metadata"
8
8
  constructor(connection: Connection) {
9
9
  super(connection)
10
10
  }
@@ -3,7 +3,7 @@ import { Connection } from "../Connection"
3
3
  import { List } from "../List"
4
4
 
5
5
  export class Organisations extends List<model.OrganisationResponse> {
6
- protected readonly folder = "organisations" as const
6
+ protected readonly folder = "organisations"
7
7
  constructor(connection: Connection) {
8
8
  super(connection)
9
9
  }
@@ -2,7 +2,7 @@ import * as model from "../../model"
2
2
  import { Connection } from "../Connection"
3
3
  import { List } from "../List"
4
4
  export class Rolesets extends List<model.RolesetResponse> {
5
- protected folder = "rolesets"
5
+ protected readonly folder = "rolesets"
6
6
  private constructor(connection: Connection) {
7
7
  super(connection)
8
8
  }
@@ -5,7 +5,7 @@ import { List } from "../List"
5
5
  import { Paginated } from "../Paginated"
6
6
 
7
7
  export class Transfers extends List<model.TransferResponse> {
8
- protected folder = "transfers"
8
+ protected readonly folder = "transfers"
9
9
  constructor(connection: Connection) {
10
10
  super(connection)
11
11
  }
@@ -4,7 +4,7 @@ import { List } from "../List"
4
4
  import { Paginated } from "../Paginated"
5
5
 
6
6
  export class Users extends List<model.UserResponse> {
7
- protected folder = "users"
7
+ protected readonly folder = "users"
8
8
  private constructor(connection: Connection) {
9
9
  super(connection)
10
10
  }
package/Client/index.ts CHANGED
@@ -6,6 +6,7 @@ import { Cards as ClientCards } from "./Cards"
6
6
  import { Categories as ClientCategories } from "./Categories"
7
7
  import { Configuration as ClientConfiguration } from "./Configuration"
8
8
  import { Connection } from "./Connection"
9
+ import { Credentials as ClientCredentials } from "./Credentials"
9
10
  import { Currency as ClientCurrency } from "./Currency"
10
11
  import { Email as ClientEmail } from "./Email"
11
12
  import { List as ClientList } from "./List"
@@ -32,6 +33,7 @@ export class Client {
32
33
  cards = ClientCards.create(this.connection)
33
34
  categories = ClientCategories.create(this.connection)
34
35
  configuration = ClientConfiguration.create(this.connection)
36
+ credentials = ClientCredentials.create(this.connection)
35
37
  currency = ClientCurrency.create(this.connection)
36
38
  email = ClientEmail.create(this.connection)
37
39
  merchants = ClientMerchants.create(this.connection)
@@ -66,6 +68,7 @@ export namespace Client {
66
68
  export type Cards = ClientCards
67
69
  export type Categories = ClientCategories
68
70
  export type Configuration = ClientConfiguration
71
+ export type Credentials = ClientCredentials
69
72
  export type Currency = ClientCurrency
70
73
  export type Email = ClientEmail
71
74
  export type Merchants = ClientMerchants
@@ -2,7 +2,7 @@ import * as model from "../../model";
2
2
  import { Connection } from "../Connection";
3
3
  import { List } from "../List";
4
4
  export declare class Accounts extends List<model.AccountResponse> {
5
- protected folder: string;
5
+ protected readonly folder = "funding-accounts";
6
6
  private constructor();
7
7
  static create(connection: Connection): Accounts;
8
8
  addFundingAccount(request: model.AccountCreationRequest): Promise<model.ErrorResponse | model.FundingAccountResponseV2Full | (model.ErrorResponse & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,QAAS,SAAQ,IAA2B;IAExD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,kBAAkB,CAAA;IAGrC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAA;IAChC,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,OAAqC;QAC5D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB,OAAO,CACP,CAAA;IACF,CAAC;IACD,KAAK,CAAC,oBAAoB,CAAC,OAAqC;QAC/D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAChC,GAAG,IAAI,CAAC,MAAM,aAAa,EAC3B,OAAO,CACP,CAAA;IACF,CAAC;IACD,KAAK,CAAC,iBAAiB,CACtB,aAAmC,EACnC,SAAkB,EAClB,aAAoC,EACpC,iBAA0B;QAE1B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAMxC,mBAAmB,EAAE;YACtB,OAAO,EAAE,KAAK;YACd,aAAa,EAAE,aAAa;YAC5B,SAAS,EAAE,SAAS;YACpB,aAAa,EAAE,aAAa;YAC5B,iBAAiB,EAAE,iBAAiB;SACpC,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAuB,QAAQ,CAAC,CAAA;IAC5D,CAAC;IACD,KAAK,CAAC,oBAAoB,CACzB,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YAC9G,QAAQ,EAAE,YAAY;YACtB,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;CACD"}
@@ -2,7 +2,7 @@ import * as model from "../../model";
2
2
  import { Connection } from "../Connection";
3
3
  import { List } from "../List";
4
4
  export declare class ApiKeys extends List<model.ApiKeyResponse> {
5
- protected folder: string;
5
+ protected readonly folder = "api-keys";
6
6
  private constructor();
7
7
  static create(connection: Connection): ApiKeys;
8
8
  create(request: model.ApiKeyCreateRequest): Promise<model.ApiKeyCreateResponse | (model.ErrorResponse & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Api-keys/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,OAAQ,SAAQ,IAA0B;IAEtD,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,UAAU,CAAA;IAG7B,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;IAC/B,CAAC;IACD,KAAK,CAAC,MAAM,CACX,OAAkC;QAElC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAoD,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;QAClH,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,SAAS,CACd,UAAkB;QAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACvC,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,EAAE,CAC9B,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,aAAa;QAGlB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU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SACnB,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,YAAY,CACjB,UAAkB;QAElB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAC1C,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,EAAE,CAC9B,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;CACD"}
@@ -2,7 +2,7 @@ import * as model from "../../model";
2
2
  import { Connection } from "../Connection";
3
3
  import { List } from "../List";
4
4
  export declare class Beneficiaries extends List<model.BeneficiaryResponse> {
5
- protected folder: string;
5
+ protected readonly folder = "beneficiaries";
6
6
  constructor(connection: Connection);
7
7
  static create(connection: Connection): Beneficiaries;
8
8
  getAll(sort?: string): Promise<model.ErrorResponse | model.BeneficiaryResponse[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Beneficiaries/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAE9B,MAAM,OAAO,aAAc,SAAQ,IAA+B;IAEjE,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,eAAe,CAAA;IAGlC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,aAAa,CAAC,UAAU,CAAC,CAAA;IACrC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAa;QACzB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,cAAc,CAAC,aAAqB;QACzC,OAAO,MAAM,IAAI,CAA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,CAAC,aAAqB;QACjC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,MAAM,CAA4B,GAAG,IAAI,CAAC,MAAM,IAAI,aAAa,EAAE,CAAC,CAAA;IAClG,CAAC;CACD"}
@@ -2,7 +2,7 @@ import * as model from "../../model";
2
2
  import { Connection } from "../Connection";
3
3
  import { List } from "../List";
4
4
  export declare class Categories extends List<model.CategoryResponse> {
5
- protected folder: string;
5
+ protected readonly folder = "category";
6
6
  private constructor();
7
7
  static create(connection: Connection): Categories;
8
8
  getAllCategories(): Promise<model.ErrorResponse | model.CategoryResponse[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Categories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,UAAW,SAAQ,IAA4B;IAE3D,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,UAAU,CAAA;IAG7B,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAA;IAClC,CAAC;IACD,KAAK,CAAC,gBAAgB;QACrB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAmD,IAAI,CAAC,MAAM,EAAE;YACvG,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,MAAM;SACZ,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;IACpC,CAAC;IACD,KAAK,CAAC,kBAAkB,CACvB,QAAgB,EAChB,OAAoC;QAEpC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAA;IAChG,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,QAAgB;QACjC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC,CAAA;IACvF,CAAC;CACD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Categories/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,MAAM,OAAO,UAAW,SAAQ,IAA4B;IAE3D,YAAoB,UAAsB;QACzC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFC,WAAM,GAAG,UAAU,CAAA;IAGtC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAA;IAClC,CAAC;IACD,KAAK,CAAC,gBAAgB;QACrB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAmD,IAAI,CAAC,MAAM,EAAE;YACvG,IAAI,EAAE,GAAG;YACT,IAAI,EAAE,MAAM;SACZ,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAA;IACpC,CAAC;IACD,KAAK,CAAC,kBAAkB,CACvB,QAAgB,EAChB,OAAoC;QAEpC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAA;IAChG,CAAC;IACD,KAAK,CAAC,WAAW,CAAC,QAAgB;QACjC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAyB,GAAG,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC,CAAA;IACvF,CAAC;CACD"}
@@ -4,20 +4,16 @@ import { ProviderCode } from "../../model/ProviderCode";
4
4
  import { Connection } from "../Connection";
5
5
  export declare class Configuration {
6
6
  private readonly connection;
7
- protected folder: string;
7
+ protected readonly folder = "config";
8
8
  constructor(connection: Connection);
9
9
  static create(connection: Connection): Configuration;
10
10
  getAvailableCurrency(providerCode?: ProviderCode): Promise<Currency[] | 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>;
11
+ getOrganisation(code?: string): Promise<model.OrganisationConfig | model.ErrorResponse>;
12
+ updateOrganisation(request: model.OrganisationConfig, code?: string): Promise<model.OrganisationConfig | model.ErrorResponse>;
13
+ getInternalOrganisation(code?: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse>;
14
+ updateInternalOrganisation(request: model.InternalOrganisationConfig, code?: string): Promise<model.InternalOrganisationConfig | model.ErrorResponse>;
15
+ getUser(username?: string): Promise<model.UserConfig | model.ErrorResponse>;
16
+ updateUser(request: model.UserConfig, username?: string): Promise<model.UserConfig | model.ErrorResponse>;
17
17
  getPortalFeatures(): Promise<model.PaxpayFeature[] | model.ErrorResponse>;
18
18
  getConfigValueFromKey(category: string, key: string): Promise<any | model.ErrorResponse>;
19
- setupCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
20
- getAllCredentials(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse>;
21
- updateCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
22
- saveCredentials(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
23
19
  }
@@ -1,4 +1,3 @@
1
- import * as model from "../../model";
2
1
  export class Configuration {
3
2
  constructor(connection) {
4
3
  this.connection = connection;
@@ -10,23 +9,23 @@ export class Configuration {
10
9
  async getAvailableCurrency(providerCode = "modulr") {
11
10
  return await this.connection.get(`${this.folder}/currencies`, { provider: providerCode });
12
11
  }
13
- async getOrganisation() {
14
- return await this.connection.get(`${this.folder}/organisation`);
12
+ async getOrganisation(code) {
13
+ return await this.connection.get(`${this.folder}/organisation${code ? `/${code}` : ""}`);
15
14
  }
16
- async updateOrganisation(request) {
17
- return await this.connection.post(`${this.folder}/organisation`, request);
15
+ async updateOrganisation(request, code) {
16
+ return await this.connection.post(`${this.folder}/organisation${code ? `/${code}` : ""}`, request);
18
17
  }
19
- async getInternalOrganisation(organisation) {
20
- return await this.connection.get(`${this.folder}/organisation_internal/${organisation}`);
18
+ async getInternalOrganisation(code) {
19
+ return await this.connection.get(`${this.folder}/organisation_internal/${code ? `/${code}` : ""}`);
21
20
  }
22
- async updateInternalOrganisation(organisation, request) {
23
- return await this.connection.post(`${this.folder}/organisation_internal/${organisation}`, request);
21
+ async updateInternalOrganisation(request, code) {
22
+ return await this.connection.post(`${this.folder}/organisation_internal/${code ? `/${code}` : ""}`, request);
24
23
  }
25
- async getUser() {
26
- return await this.connection.get(`${this.folder}/user`);
24
+ async getUser(username) {
25
+ return await this.connection.get(`${this.folder}/user${username ? `/${username}` : ""}`);
27
26
  }
28
- async updateUser(request) {
29
- return await this.connection.post(`${this.folder}/user`, request);
27
+ async updateUser(request, username) {
28
+ return await this.connection.post(`${this.folder}/user${username ? `/${username}` : ""}`, request);
30
29
  }
31
30
  async getPortalFeatures() {
32
31
  return await this.connection.get(`${this.folder}/portal`);
@@ -34,26 +33,5 @@ export class Configuration {
34
33
  async getConfigValueFromKey(category, key) {
35
34
  return await this.connection.get(`${this.folder}/key/${category}/${key}`);
36
35
  }
37
- async setupCredentials(organisationCode, providerCode, request) {
38
- const header = { "x-assume": organisationCode };
39
- return await this.connection.post(`credentials/${providerCode}/setup`, request, undefined, header);
40
- }
41
- async getAllCredentials(organisationCode) {
42
- const header = { "x-assume": organisationCode };
43
- const parameters = { totalCount: false };
44
- const response = await this.connection.get(`credentials`, parameters, header);
45
- if (model.ErrorResponse.is(response))
46
- return response;
47
- else
48
- return response.list;
49
- }
50
- async updateCredentials(organisationCode, providerCode, request) {
51
- const header = { "x-assume": organisationCode };
52
- return await this.connection.put(`credentials/${providerCode}`, request, undefined, header);
53
- }
54
- async saveCredentials(organisationCode, providerCode, request) {
55
- const header = { "x-assume": organisationCode };
56
- return await this.connection.post(`credentials/${providerCode}`, request, undefined, header);
57
- }
58
36
  }
59
37
  //# sourceMappingURL=index.js.map
@@ -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,eAAe;QACpB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAA2B,GAAG,IAAI,CAAC,MAAM,eAAe,CAAC,CAAA;IAC1F,CAAC;IACD,KAAK,CAAC,kBAAkB,CAAC,OAAiC;QACzD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA2B,GAAG,IAAI,CAAC,MAAM,eAAe,EAAE,OAAO,CAAC,CAAA;IACpG,CAAC;IACD,KAAK,CAAC,uB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I,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;IAC3G,CAAC;IACD,KAAK,CAAC,UAAU,CAAC,OAAyB,EAAE,QAAiB;QAC5D,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAmB,GAAG,IAAI,CAAC,MAAM,QAAQ,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAA;IACrH,CAAC;IACD,KAAK,CAAC,iBAAiB;QACtB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAwB,GAAG,IAAI,CAAC,MAAM,SAAS,CAAC,CAAA;IACjF,CAAC;IACD,KAAK,CAAC,qBAAqB,CAAC,QAAgB,EAAE,GAAW;QACxD,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAM,GAAG,IAAI,CAAC,MAAM,QAAQ,QAAQ,IAAI,GAAG,EAAE,CAAC,CAAA;IAC/E,CAAC;CACD"}
@@ -0,0 +1,13 @@
1
+ import * as model from "../../model";
2
+ import { ProviderCode } from "../../model/ProviderCode";
3
+ import { Connection } from "../Connection";
4
+ export declare class Credentials {
5
+ private readonly connection;
6
+ protected readonly folder = "credentials";
7
+ constructor(connection: Connection);
8
+ static create(connection: Connection): Credentials;
9
+ setup(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
10
+ getAll(organisationCode: string): Promise<model.CredentialResponse[] | model.ErrorResponse>;
11
+ update(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
12
+ save(organisationCode: string, providerCode: ProviderCode, request: model.CredentialRequest): Promise<model.CredentialResponse | model.ErrorResponse>;
13
+ }
@@ -0,0 +1,32 @@
1
+ import * as model from "../../model";
2
+ export class Credentials {
3
+ constructor(connection) {
4
+ this.connection = connection;
5
+ this.folder = "credentials";
6
+ }
7
+ static create(connection) {
8
+ return new Credentials(connection);
9
+ }
10
+ async setup(organisationCode, providerCode, request) {
11
+ const header = { "x-assume": organisationCode };
12
+ return await this.connection.post(`${this.folder}/${providerCode}/setup`, request, undefined, header);
13
+ }
14
+ async getAll(organisationCode) {
15
+ const header = { "x-assume": organisationCode };
16
+ const parameters = { totalCount: false };
17
+ const response = await this.connection.get(`${this.folder}`, parameters, header);
18
+ if (model.ErrorResponse.is(response))
19
+ return response;
20
+ else
21
+ return response.list;
22
+ }
23
+ async update(organisationCode, providerCode, request) {
24
+ const header = { "x-assume": organisationCode };
25
+ return await this.connection.put(`${this.folder}/${providerCode}`, request, undefined, header);
26
+ }
27
+ async save(organisationCode, providerCode, request) {
28
+ const header = { "x-assume": organisationCode };
29
+ return await this.connection.post(`${this.folder}/${providerCode}`, request, undefined, header);
30
+ }
31
+ }
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Credentials/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAA;AAGpC,MAAM,OAAO,WAAW;IAEvB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QADhC,WAAM,GAAG,aAAa,CAAA;IACa,CAAC;IACvD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAA;IACnC,CAAC;IACD,KAAK,CAAC,KAAK,CACV,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,GAAG,IAAI,CAAC,MAAM,IAAI,YAAY,QAAQ,EACtC,OAAO,EACP,SAAS,EACT,MAAM,CACN,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,gBAAwB;QACpC,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,GAAG,IAAI,CAAC,MAAM,EAAE,EAChB,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,MAAM,CACX,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,GAAG,IAAI,CAAC,MAAM,IAAI,YAAY,EAAE,EAChC,OAAO,EACP,SAAS,EACT,MAAM,CACN,CAAA;IACF,CAAC;IACD,KAAK,CAAC,IAAI,CACT,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,GAAG,IAAI,CAAC,MAAM,IAAI,YAAY,EAAE,EAChC,OAAO,EACP,SAAS,EACT,MAAM,CACN,CAAA;IACF,CAAC;CACD"}
@@ -5,7 +5,7 @@ import { CurrencyConversionResponse } from "../../model/CurrencyConversionRespon
5
5
  import { Connection } from "../Connection";
6
6
  export declare class Currency {
7
7
  #private;
8
- protected folder: string;
8
+ protected readonly folder = "currency";
9
9
  protected get connection(): Connection;
10
10
  constructor(connection: Connection);
11
11
  static create(connection: Connection): Currency;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Currency/index.ts"],"names":[],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CAAC,MAAM,YAAY,IAAI,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC,CAAA;IAC3F,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,OAAkC;QAC/C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAA6B,GAAG,IAAI,CAAC,MAAM,UAAU,EAAE,OAAO,CAAC,CAAA;IACjG,CAAC;CACD"}
@@ -2,7 +2,7 @@ import * as model from "../../model";
2
2
  import { Connection } from "../Connection";
3
3
  export declare class Email {
4
4
  private readonly connection;
5
- protected folder: string;
5
+ protected readonly folder = "email";
6
6
  constructor(connection: Connection);
7
7
  static create(connection: Connection): Email;
8
8
  validateEmail(email: string): Promise<model.EmailValidationResponse | (model.ErrorResponse & {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Email/index.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,KAAK;IAEjB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QADzC,WAAM,GAAG,OAAO,CAAA;IAC4B,CAAC;IACvD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7B,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,KAAa;QAChC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAgC,GAAG,IAAI,CAAC,MAAM,aAAa,KAAK,EAAE,CAAC,CAAA;IACpG,CAAC;CACD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Email/index.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,KAAK;IAEjB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;QADhC,WAAM,GAAG,OAAO,CAAA;IACmB,CAAC;IACvD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,KAAK,CAAC,UAAU,CAAC,CAAA;IAC7B,CAAC;IACD,KAAK,CAAC,aAAa,CAAC,KAAa;QAChC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAgC,GAAG,IAAI,CAAC,MAAM,aAAa,KAAK,EAAE,CAAC,CAAA;IACpG,CAAC;CACD"}
@@ -3,7 +3,7 @@ import { Connection } from "../Connection";
3
3
  import { List } from "../List";
4
4
  import { Paginated } from "../Paginated";
5
5
  export declare class Merchants extends List<model.MerchantResponse> {
6
- protected folder: "merchants";
6
+ protected readonly folder = "merchants";
7
7
  constructor(connection: Connection);
8
8
  static create(connection: Connection): Merchants;
9
9
  create(request: model.MerchantRequest): Promise<model.MerchantResponse | (model.ErrorResponse & {