@pax2pay/model-banking 0.1.91 → 0.1.92

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.
@@ -9,6 +9,6 @@ export class Rails extends rest.Collection<gracely.Error> {
9
9
  super(client)
10
10
  }
11
11
  async create(account: string, supplier: Supplier): Promise<Rail | gracely.Error> {
12
- return this.client.post<Rail>(`/api/account/${account}/rail`, supplier)
12
+ return this.client.post<Rail>(`/account/${account}/rail`, supplier)
13
13
  }
14
14
  }
@@ -10,12 +10,12 @@ export class Accounts extends rest.Collection<gracely.Error> {
10
10
  super(client)
11
11
  }
12
12
  async create(account: Account.Creatable): Promise<Account | gracely.Error> {
13
- return this.client.post<Account>("/api/account", account)
13
+ return this.client.post<Account>("/account", account)
14
14
  }
15
15
  async list(options?: {
16
16
  limit?: string
17
17
  cursor?: string
18
18
  }): Promise<(Account[] & { cursor?: string | undefined }) | gracely.Error> {
19
- return this.client.get<Account[] & { cursor?: string | undefined }>("/api/account", options)
19
+ return this.client.get<Account[] & { cursor?: string | undefined }>("/account", options)
20
20
  }
21
21
  }
package/Client/Cards.ts CHANGED
@@ -10,10 +10,10 @@ export class Cards extends rest.Collection<gracely.Error> {
10
10
 
11
11
  async fetch(card: string): Promise<Card | gracely.Error> {
12
12
  // I mean it's supposed to return Card.Storable
13
- return this.client.get<Card>(`/card/card/${card}`)
13
+ return this.client.get<Card>(`/card/${card}`)
14
14
  }
15
15
  async create(card: Card.Creatable): Promise<Card | gracely.Error> {
16
- return this.client.post<Card>("/card/card", card)
16
+ return this.client.post<Card>("/card", card)
17
17
  }
18
18
  async list(options?: {
19
19
  start?: string
@@ -32,7 +32,7 @@ export class Cards extends rest.Collection<gracely.Error> {
32
32
  ? `?end=${options?.end}`
33
33
  : ""
34
34
  return this.client.get<Card[] & { cursor?: string | undefined }>(
35
- `/card/card${search}`,
35
+ `/card${search}`,
36
36
  options && (({ start, end, ...headers }) => headers)(options)
37
37
  )
38
38
  }
@@ -23,7 +23,7 @@ export class Operations extends rest.Collection<gracely.Error> {
23
23
  ? `?end=${options?.end}`
24
24
  : ""
25
25
  return this.client.get<Operation[] & { cursor?: string | undefined }>(
26
- `/api/operation${search}`,
26
+ `/operation${search}`,
27
27
  options && (({ start, end, ...headers }) => headers)(options)
28
28
  )
29
29
  }
@@ -8,7 +8,7 @@ export class Rules extends rest.Collection<gracely.Error> {
8
8
  super(client)
9
9
  }
10
10
  async replace(organization: string, rules: Organization.Rule[]): Promise<Organization.Rule[] | gracely.Error> {
11
- return this.client.put<Organization.Rule[]>(`/api/organization/rule`, rules, {
11
+ return this.client.put<Organization.Rule[]>(`/organization/rule`, rules, {
12
12
  organization: organization,
13
13
  })
14
14
  }
@@ -13,9 +13,9 @@ export class Organizations extends rest.Collection<gracely.Error> {
13
13
  limit?: string
14
14
  cursor?: string
15
15
  }): Promise<(Organization[] & { cursor?: string | undefined }) | gracely.Error> {
16
- return this.client.get<Organization[] & { cursor?: string | undefined }>(`/api/organization`, options)
16
+ return this.client.get<Organization[] & { cursor?: string | undefined }>(`/organization`, options)
17
17
  }
18
18
  async create(organization: Organization.Creatable): Promise<Organization | gracely.Error> {
19
- return this.client.post<Organization>(`/api/organization`, organization)
19
+ return this.client.post<Organization>(`/organization`, organization)
20
20
  }
21
21
  }
@@ -10,18 +10,18 @@ export class Settlements extends rest.Collection<gracely.Error> {
10
10
  }
11
11
 
12
12
  async create(configuration: string): Promise<Settlement | gracely.Error> {
13
- return this.client.post<Settlement>(`/card/settlement`, { configuration: configuration })
13
+ return this.client.post<Settlement>(`/settlement`, { configuration: configuration })
14
14
  }
15
15
  async fetch(id: string, created: isoly.DateTime): Promise<Settlement | gracely.Error> {
16
- return this.client.get<Settlement>(`/card/settlement/${id}?created=${created}`)
16
+ return this.client.get<Settlement>(`/settlement/${id}?created=${created}`)
17
17
  }
18
18
  async list(): Promise<Settlement.Summary[] | gracely.Error> {
19
- return this.client.get<Settlement.Summary[] & { cursor?: string | undefined }>(`/card/settlement`)
19
+ return this.client.get<Settlement.Summary[] & { cursor?: string | undefined }>(`/settlement`)
20
20
  }
21
21
  async remove(settlement: string): Promise<Settlement | gracely.Error> {
22
- return this.client.delete<Settlement>(`/card/settlement/${settlement}`)
22
+ return this.client.delete<Settlement>(`/settlement/${settlement}`)
23
23
  }
24
24
  async update(settlement: string): Promise<Settlement | gracely.Error> {
25
- return this.client.patch<Settlement>(`/card/settlement/${settlement}`, {})
25
+ return this.client.patch<Settlement>(`/settlement/${settlement}`, {})
26
26
  }
27
27
  }
@@ -13,7 +13,7 @@ export class Notes extends rest.Collection<gracely.Error> {
13
13
  transaction: string,
14
14
  note: Transaction.Note.Creatable
15
15
  ): Promise<Transaction | gracely.Error> {
16
- return this.client.post<Transaction>(`/api/transaction/${transaction}/note`, note, {
16
+ return this.client.post<Transaction>(`/transaction/${transaction}/note`, note, {
17
17
  organization: organization,
18
18
  account: account,
19
19
  })
@@ -10,7 +10,7 @@ export class Transactions extends rest.Collection<gracely.Error> {
10
10
  super(client)
11
11
  }
12
12
  async create(account: string, transaction: Transaction.Creatable): Promise<Transaction | gracely.Error> {
13
- return this.client.post<Transaction>(`/api/account/${account}/transaction`, transaction)
13
+ return this.client.post<Transaction>(`/account/${account}/transaction`, transaction)
14
14
  }
15
15
  async list(options?: {
16
16
  account?: string
@@ -29,8 +29,7 @@ export class Transactions extends rest.Collection<gracely.Error> {
29
29
  .map(([k, v]) => `${k}=${v}`)
30
30
  .reduce((prev, curr, i) => `${prev}${i == 0 ? "?" : "&"}${curr}`, "")
31
31
  : ""
32
- const path =
33
- options && options.account ? `/api/account/${options.account}/transaction${query}` : `/api/transaction${query}`
32
+ const path = options && options.account ? `/account/${options.account}/transaction${query}` : `/transaction${query}`
34
33
  return this.client.get<Transaction[] & { cursor?: string | undefined }>(
35
34
  path,
36
35
  options &&
package/Client/Version.ts CHANGED
@@ -7,6 +7,6 @@ export class Version extends rest.Collection<gracely.Error> {
7
7
  super(client)
8
8
  }
9
9
  async fetch() {
10
- return this.client.get<any>("/api/version")
10
+ return this.client.get<any>("/version")
11
11
  }
12
12
  }
@@ -4,7 +4,7 @@ export class Rails extends rest.Collection {
4
4
  super(client);
5
5
  }
6
6
  async create(account, supplier) {
7
- return this.client.post(`/api/account/${account}/rail`, supplier);
7
+ return this.client.post(`/account/${account}/rail`, supplier);
8
8
  }
9
9
  }
10
10
  //# sourceMappingURL=Rails.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rails.js","sourceRoot":"../","sources":["Client/Accounts/Rails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAIpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,QAAkB;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,gBAAgB,OAAO,OAAO,EAAE,QAAQ,CAAC,CAAA;IACxE,CAAC;CACD"}
1
+ {"version":3,"file":"Rails.js","sourceRoot":"../","sources":["Client/Accounts/Rails.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAIpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,QAAkB;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,YAAY,OAAO,OAAO,EAAE,QAAQ,CAAC,CAAA;IACpE,CAAC;CACD"}
@@ -6,10 +6,10 @@ export class Accounts extends rest.Collection {
6
6
  this.Rails = new Rails(this.client);
7
7
  }
8
8
  async create(account) {
9
- return this.client.post("/api/account", account);
9
+ return this.client.post("/account", account);
10
10
  }
11
11
  async list(options) {
12
- return this.client.get("/api/account", options);
12
+ return this.client.get("/account", options);
13
13
  }
14
14
  }
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAE3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,cAAc,EAAE,OAAO,CAAC,CAAA;IAC1D,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,cAAc,EAAE,OAAO,CAAC,CAAA;IAC7F,CAAC;CACD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,QAAS,SAAQ,IAAI,CAAC,UAAyB;IAE3D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA0B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAU,UAAU,EAAE,OAAO,CAAC,CAAA;IACtD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA8C,UAAU,EAAE,OAAO,CAAC,CAAA;IACzF,CAAC;CACD"}
@@ -4,10 +4,10 @@ export class Cards extends rest.Collection {
4
4
  super(client);
5
5
  }
6
6
  async fetch(card) {
7
- return this.client.get(`/card/card/${card}`);
7
+ return this.client.get(`/card/${card}`);
8
8
  }
9
9
  async create(card) {
10
- return this.client.post("/card/card", card);
10
+ return this.client.post("/card", card);
11
11
  }
12
12
  async list(options) {
13
13
  const search = options?.start && options?.end
@@ -17,7 +17,7 @@ export class Cards extends rest.Collection {
17
17
  : options?.end
18
18
  ? `?end=${options?.end}`
19
19
  : "";
20
- return this.client.get(`/card/card${search}`, options && (({ start, end, ...headers }) => headers)(options));
20
+ return this.client.get(`/card${search}`, options && (({ start, end, ...headers }) => headers)(options));
21
21
  }
22
22
  }
23
23
  //# sourceMappingURL=Cards.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Cards.js","sourceRoot":"../","sources":["Client/Cards.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,IAAY;QAEvB,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAO,cAAc,IAAI,EAAE,CAAC,CAAA;IACnD,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,IAAoB;QAChC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAO,YAAY,EAAE,IAAI,CAAC,CAAA;IAClD,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAMV;QAEA,MAAM,MAAM,GACX,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,GAAG;YAC7B,CAAC,CAAC,UAAU,OAAO,EAAE,KAAK,QAAQ,OAAO,EAAE,GAAG,EAAE;YAChD,CAAC,CAAC,OAAO,EAAE,K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B,CAAC,CAAC,EAAE,CAAA;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,QAAQ,MAAM,EAAE,EAChB,OAAO,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAC7D,CAAA;IACF,CAAC;CACD"}
@@ -11,7 +11,7 @@ export class Operations extends rest.Collection {
11
11
  : options?.end
12
12
  ? `?end=${options?.end}`
13
13
  : "";
14
- return this.client.get(`/api/operation${search}`, options && (({ start, end, ...headers }) => headers)(options));
14
+ return this.client.get(`/operation${search}`, options && (({ start, end, ...headers }) => headers)(options));
15
15
  }
16
16
  }
17
17
  //# sourceMappingURL=Operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Operations.js","sourceRoot":"../","sources":["Client/Operations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,UAAW,SAAQ,IAAI,CAAC,UAAyB;IAC7D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAMV;QACA,MAAM,MAAM,GACX,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,GAAG;YAC7B,CAAC,CAAC,UAAU,OAAO,EAAE,KAAK,QAAQ,OAAO,EAAE,GAAG,EAAE;YAChD,CAAC,CAAC,OAAO,EAAE,KAAK;gBAChB,CAAC,CAAC,UAAU,OAAO,EAAE,KAAK,EAAE;gBAC5B,CAAC,CAAC,OAAO,EAAE,GAAG;oBACd,CAAC,CAAC,QAAQ,OAAO,EAAE,GAAG,EAAE;oBACxB,CAAC,CAAC,EAAE,CAAA;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,iBAAiB,MAAM,EAAE,EACzB,OAAO,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAC7D,CAAA;IACF,CAAC;CACD"}
1
+ {"version":3,"file":"Operations.js","sourceRoot":"../","sources":["Client/Operations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,UAAW,SAAQ,IAAI,CAAC,UAAyB;IAC7D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAMV;QACA,MAAM,MAAM,GACX,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,GAAG;YAC7B,CAAC,CAAC,UAAU,OAAO,EAAE,KAAK,QAAQ,OAAO,EAAE,GAAG,EAAE;YAChD,CAAC,CAAC,OAAO,EAAE,KAAK;gBAChB,CAAC,CAAC,UAAU,OAAO,EAAE,KAAK,EAAE;gBAC5B,CAAC,CAAC,OAAO,EAAE,GAAG;oBACd,CAAC,CAAC,QAAQ,OAAO,EAAE,GAAG,EAAE;oBACxB,CAAC,CAAC,EAAE,CAAA;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACrB,aAAa,MAAM,EAAE,EACrB,OAAO,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAC7D,CAAA;IACF,CAAC;CACD"}
@@ -4,7 +4,7 @@ export class Rules extends rest.Collection {
4
4
  super(client);
5
5
  }
6
6
  async replace(organization, rules) {
7
- return this.client.put(`/api/organization/rule`, rules, {
7
+ return this.client.put(`/organization/rule`, rules, {
8
8
  organization: organization,
9
9
  });
10
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Organizations/Rules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,KAA0B;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,wBAAwB,EAAE,KAAK,EAAE;YAC5E,YAAY,EAAE,YAAY;SAC1B,CAAC,CAAA;IACH,CAAC;CACD"}
1
+ {"version":3,"file":"Rules.js","sourceRoot":"../","sources":["Client/Organizations/Rules.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,OAAO,CAAC,YAAoB,EAAE,KAA0B;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,oBAAoB,EAAE,KAAK,EAAE;YACxE,YAAY,EAAE,YAAY;SAC1B,CAAC,CAAA;IACH,CAAC;CACD"}
@@ -6,10 +6,10 @@ export class Organizations extends rest.Collection {
6
6
  this.Rules = new Rules(this.client);
7
7
  }
8
8
  async list(options) {
9
- return this.client.get(`/api/organization`, options);
9
+ return this.client.get(`/organization`, options);
10
10
  }
11
11
  async create(organization) {
12
- return this.client.post(`/api/organization`, organization);
12
+ return this.client.post(`/organization`, organization);
13
13
  }
14
14
  }
15
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;IAEhE,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmD,mBAAmB,EAAE,OAAO,CAAC,CAAA;IACvG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,mBAAmB,EAAE,YAAY,CAAC,CAAA;IACzE,CAAC;CACD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Organizations/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,aAAc,SAAQ,IAAI,CAAC,UAAyB;IAEhE,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAGV;QACA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAmD,eAAe,EAAE,OAAO,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,YAAoC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAe,eAAe,EAAE,YAAY,CAAC,CAAA;IACrE,CAAC;CACD"}
@@ -4,19 +4,19 @@ export class Settlements extends rest.Collection {
4
4
  super(client);
5
5
  }
6
6
  async create(configuration) {
7
- return this.client.post(`/card/settlement`, { configuration: configuration });
7
+ return this.client.post(`/settlement`, { configuration: configuration });
8
8
  }
9
9
  async fetch(id, created) {
10
- return this.client.get(`/card/settlement/${id}?created=${created}`);
10
+ return this.client.get(`/settlement/${id}?created=${created}`);
11
11
  }
12
12
  async list() {
13
- return this.client.get(`/card/settlement`);
13
+ return this.client.get(`/settlement`);
14
14
  }
15
15
  async remove(settlement) {
16
- return this.client.delete(`/card/settlement/${settlement}`);
16
+ return this.client.delete(`/settlement/${settlement}`);
17
17
  }
18
18
  async update(settlement) {
19
- return this.client.patch(`/card/settlement/${settlement}`, {});
19
+ return this.client.patch(`/settlement/${settlement}`, {});
20
20
  }
21
21
  }
22
22
  //# sourceMappingURL=Settlements.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,UAAyB;IAC9D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,aAAqB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,kBAAkB,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAA;IAC1F,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,oBAAoB,EAAE,YAAY,OAAO,EAAE,CAAC,CAAA;IAChF,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyD,kBAAkB,CAAC,CAAA;IACnG,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAa,oBAAoB,UAAU,EAAE,CAAC,CAAA;IACxE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,oBAAoB,UAAU,EAAE,EAAE,EAAE,CAAC,CAAA;IAC3E,CAAC;CACD"}
1
+ {"version":3,"file":"Settlements.js","sourceRoot":"../","sources":["Client/Settlements.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,UAAyB;IAC9D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,aAAqB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAa,aAAa,EAAE,EAAE,aAAa,EAAE,aAAa,EAAE,CAAC,CAAA;IACrF,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,EAAU,EAAE,OAAuB;QAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAa,eAAe,EAAE,YAAY,OAAO,EAAE,CAAC,CAAA;IAC3E,CAAC;IACD,KAAK,CAAC,IAAI;QACT,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyD,aAAa,CAAC,CAAA;IAC9F,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAa,eAAe,UAAU,EAAE,CAAC,CAAA;IACnE,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAa,eAAe,UAAU,EAAE,EAAE,EAAE,CAAC,CAAA;IACtE,CAAC;CACD"}
@@ -4,7 +4,7 @@ export class Notes extends rest.Collection {
4
4
  super(client);
5
5
  }
6
6
  async create(organization, account, transaction, note) {
7
- return this.client.post(`/api/transaction/${transaction}/note`, note, {
7
+ return this.client.post(`/transaction/${transaction}/note`, note, {
8
8
  organization: organization,
9
9
  account: account,
10
10
  });
@@ -1 +1 @@
1
- {"version":3,"file":"Notes.js","sourceRoot":"../","sources":["Client/Transactions/Notes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,MAAM,CACX,YAAoB,EACpB,OAAe,EACf,WAAmB,EACnB,IAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAc,oBAAoB,WAAW,OAAO,EAAE,IAAI,EAAE;YAClF,YAAY,EAAE,YAAY;YAC1B,OAAO,EAAE,OAAO;SAChB,CAAC,CAAA;IACH,CAAC;CACD"}
1
+ {"version":3,"file":"Notes.js","sourceRoot":"../","sources":["Client/Transactions/Notes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAGpC,MAAM,OAAO,KAAM,SAAQ,IAAI,CAAC,UAAyB;IACxD,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,MAAM,CACX,YAAoB,EACpB,OAAe,EACf,WAAmB,EACnB,IAAgC;QAEhC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAc,gBAAgB,WAAW,OAAO,EAAE,IAAI,EAAE;YAC9E,YAAY,EAAE,YAAY;YAC1B,OAAO,EAAE,OAAO;SAChB,CAAC,CAAA;IACH,CAAC;CACD"}
@@ -6,7 +6,7 @@ export class Transactions extends rest.Collection {
6
6
  this.Notes = new Notes(this.client);
7
7
  }
8
8
  async create(account, transaction) {
9
- return this.client.post(`/api/account/${account}/transaction`, transaction);
9
+ return this.client.post(`/account/${account}/transaction`, transaction);
10
10
  }
11
11
  async list(options) {
12
12
  const searchOptions = options && (({ account, limit, cursor, ...search }) => search)(options);
@@ -15,7 +15,7 @@ export class Transactions extends rest.Collection {
15
15
  .map(([k, v]) => `${k}=${v}`)
16
16
  .reduce((prev, curr, i) => `${prev}${i == 0 ? "?" : "&"}${curr}`, "")
17
17
  : "";
18
- const path = options && options.account ? `/api/account/${options.account}/transaction${query}` : `/api/transaction${query}`;
18
+ const path = options && options.account ? `/account/${options.account}/transaction${query}` : `/transaction${query}`;
19
19
  return this.client.get(path, options &&
20
20
  (({ limit, cursor }) => limit || cursor
21
21
  ? { ...(limit ? { limit: limit.toString() } : {}), ...(cursor ? { cursor: cursor } : {}) }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Transactions/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,OAAO,YAAa,SAAQ,IAAI,CAAC,UAAyB;IAE/D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;QAFL,UAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAGvC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAAe,EAAE,WAAkC;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAc,gBAAgB,OAAO,cAAc,EAAE,WAAW,CAAC,CAAA;IACzF,CAAC;IACD,KAAK,CAAC,IAAI,CAAC,OAUV;QACA,MAAM,aAAa,GAAG,OAAO,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;QAC7F,MAAM,KAAK,GAAG,aAAa;YAC1B,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;iBAC5B,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;iBAC5B,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,CA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CACxB,CAAA;IACF,CAAC;CACD"}
@@ -4,7 +4,7 @@ export class Version extends rest.Collection {
4
4
  super(client);
5
5
  }
6
6
  async fetch() {
7
- return this.client.get("/api/version");
7
+ return this.client.get("/version");
8
8
  }
9
9
  }
10
10
  //# sourceMappingURL=Version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Version.js","sourceRoot":"../","sources":["Client/Version.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,MAAM,OAAO,OAAQ,SAAQ,IAAI,CAAC,UAAyB;IAC1D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,KAAK;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAM,cAAc,CAAC,CAAA;IAC5C,CAAC;CACD"}
1
+ {"version":3,"file":"Version.js","sourceRoot":"../","sources":["Client/Version.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,cAAc,CAAA;AAEpC,MAAM,OAAO,OAAQ,SAAQ,IAAI,CAAC,UAAyB;IAC1D,YAAY,MAAmB;QAC9B,KAAK,CAAC,MAAM,CAAC,CAAA;IACd,CAAC;IACD,KAAK,CAAC,KAAK;QACV,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAM,UAAU,CAAC,CAAA;IACxC,CAAC;CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/model-banking",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",