@pax2pay/model-banking 0.1.91 → 0.1.93

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 (56) hide show
  1. package/Client/Accounts/Rails.ts +1 -1
  2. package/Client/Accounts/index.ts +2 -2
  3. package/Client/Cards.ts +3 -3
  4. package/Client/Operations.ts +1 -1
  5. package/Client/Organizations/Rules.ts +1 -1
  6. package/Client/Organizations/index.ts +2 -2
  7. package/Client/Settlements.ts +5 -5
  8. package/Client/Transactions/Notes.ts +1 -1
  9. package/Client/Transactions/index.ts +2 -3
  10. package/Client/Version.ts +1 -1
  11. package/Organization/Contact/Address/GB.ts +23 -0
  12. package/Organization/Contact/Address/General.ts +24 -0
  13. package/Organization/Contact/Address/SE.ts +18 -0
  14. package/Organization/Contact/Address/index.ts +12 -0
  15. package/Organization/Contact/Addresses.ts +17 -0
  16. package/Organization/{Contact.ts → Contact/index.ts} +8 -8
  17. package/dist/Client/Accounts/Rails.js +1 -1
  18. package/dist/Client/Accounts/Rails.js.map +1 -1
  19. package/dist/Client/Accounts/index.js +2 -2
  20. package/dist/Client/Accounts/index.js.map +1 -1
  21. package/dist/Client/Cards.js +3 -3
  22. package/dist/Client/Cards.js.map +1 -1
  23. package/dist/Client/Operations.js +1 -1
  24. package/dist/Client/Operations.js.map +1 -1
  25. package/dist/Client/Organizations/Rules.js +1 -1
  26. package/dist/Client/Organizations/Rules.js.map +1 -1
  27. package/dist/Client/Organizations/index.js +2 -2
  28. package/dist/Client/Organizations/index.js.map +1 -1
  29. package/dist/Client/Settlements.js +5 -5
  30. package/dist/Client/Settlements.js.map +1 -1
  31. package/dist/Client/Transactions/Notes.js +1 -1
  32. package/dist/Client/Transactions/Notes.js.map +1 -1
  33. package/dist/Client/Transactions/index.js +2 -2
  34. package/dist/Client/Transactions/index.js.map +1 -1
  35. package/dist/Client/Version.js +1 -1
  36. package/dist/Client/Version.js.map +1 -1
  37. package/dist/Organization/Contact/Address/GB.d.ts +14 -0
  38. package/dist/Organization/Contact/Address/GB.js +16 -0
  39. package/dist/Organization/Contact/Address/GB.js.map +1 -0
  40. package/dist/Organization/Contact/Address/General.d.ts +15 -0
  41. package/dist/Organization/Contact/Address/General.js +15 -0
  42. package/dist/Organization/Contact/Address/General.js.map +1 -0
  43. package/dist/Organization/Contact/Address/SE.d.ts +12 -0
  44. package/dist/Organization/Contact/Address/SE.js +13 -0
  45. package/dist/Organization/Contact/Address/SE.js.map +1 -0
  46. package/dist/Organization/Contact/Address/index.d.ts +10 -0
  47. package/dist/Organization/Contact/Address/index.js +10 -0
  48. package/dist/Organization/Contact/Address/index.js.map +1 -0
  49. package/dist/Organization/Contact/Addresses.d.ts +11 -0
  50. package/dist/Organization/Contact/Addresses.js +12 -0
  51. package/dist/Organization/Contact/Addresses.js.map +1 -0
  52. package/dist/Organization/{Contact.d.ts → Contact/index.d.ts} +7 -4
  53. package/dist/Organization/{Contact.js → Contact/index.js} +6 -5
  54. package/dist/Organization/Contact/index.js.map +1 -0
  55. package/package.json +1 -1
  56. package/dist/Organization/Contact.js.map +0 -1
@@ -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
  }
@@ -0,0 +1,23 @@
1
+ import { isoly } from "isoly"
2
+ import { isly } from "isly"
3
+
4
+ export interface GB {
5
+ countryCode: "GB"
6
+ city: string
7
+ zipCode: string
8
+ street: string
9
+ building: string
10
+ }
11
+
12
+ export namespace GB {
13
+ export const name = isoly.CountryCode.Name.en.from("GB")
14
+ export const type = isly.object<GB>({
15
+ countryCode: isly.string("GB"),
16
+ city: isly.string(),
17
+ street: isly.string(),
18
+ building: isly.string(),
19
+ zipCode: isly.string(),
20
+ })
21
+ export const is = type.is
22
+ export const flaw = type.flaw
23
+ }
@@ -0,0 +1,24 @@
1
+ import { isoly } from "isoly"
2
+ import { isly } from "isly"
3
+
4
+ export interface Default {
5
+ countryCode: isoly.CountryCode.Alpha2
6
+ state?: string
7
+ county?: string
8
+ city: string
9
+ zipCode: string
10
+ street: string
11
+ }
12
+
13
+ export namespace Default {
14
+ export const type = isly.object<Default>({
15
+ countryCode: isly.string("GB"),
16
+ state: isly.string().optional(),
17
+ county: isly.string().optional(),
18
+ city: isly.string(),
19
+ street: isly.string(),
20
+ zipCode: isly.string(),
21
+ })
22
+ export const is = type.is
23
+ export const flaw = type.flaw
24
+ }
@@ -0,0 +1,18 @@
1
+ import { isly } from "isly"
2
+
3
+ export interface SE {
4
+ countryCode: "SE"
5
+ zipCode: string
6
+ city: string
7
+ street: string
8
+ }
9
+ export namespace SE {
10
+ export const type = isly.object<SE>({
11
+ countryCode: isly.string("SE"),
12
+ zipCode: isly.string(),
13
+ city: isly.string(),
14
+ street: isly.string(),
15
+ })
16
+ export const is = type.is
17
+ export const flaw = type.flaw
18
+ }
@@ -0,0 +1,12 @@
1
+ import { isly } from "isly"
2
+ import { GB } from "./GB"
3
+ import { Default } from "./General"
4
+ import { SE } from "./SE"
5
+
6
+ export type Address = GB | SE | Default
7
+
8
+ export namespace Address {
9
+ export const type = isly.union<Address, GB, Default>(GB.type, Default.type)
10
+ export const is = type.is
11
+ export const flaw = type.flaw
12
+ }
@@ -0,0 +1,17 @@
1
+ import { isly } from "isly"
2
+ import { Address } from "./Address"
3
+
4
+ export interface Addresses {
5
+ primary: Address
6
+ billing?: Address
7
+ delivery?: Address
8
+ visit?: Address
9
+ }
10
+ export namespace Addresses {
11
+ export const type = isly.object<Addresses>({
12
+ primary: Address.type,
13
+ billing: Address.type.optional(),
14
+ delivery: Address.type.optional(),
15
+ visit: Address.type.optional(),
16
+ })
17
+ }
@@ -1,11 +1,10 @@
1
1
  import { isoly } from "isoly"
2
2
  import { isly } from "isly"
3
+ import { Address as ContactAddress } from "./Address"
4
+ import { Addresses as ContactAddresses } from "./Addresses"
3
5
 
4
6
  export interface Contact {
5
- address: string
6
- city: string
7
- zip: string
8
- country: isoly.CountryCode.Alpha2
7
+ address: Contact.Addresses
9
8
  email: `${string}@${string}.${string}`
10
9
  name: {
11
10
  first: string
@@ -18,11 +17,12 @@ export interface Contact {
18
17
  }
19
18
 
20
19
  export namespace Contact {
20
+ export const Addresses = ContactAddresses
21
+ export type Addresses = ContactAddresses
22
+ export const Address = ContactAddress
23
+ export type Address = ContactAddress
21
24
  export const type = isly.object<Contact>({
22
- address: isly.string(),
23
- city: isly.string(),
24
- zip: isly.string(),
25
- country: isly.fromIs("CountryCode.Alpha2", isoly.CountryCode.Alpha2.is),
25
+ address: Addresses.type,
26
26
  email: isly.string(),
27
27
  name: isly.object<Contact["name"]>({
28
28
  first: isly.string(),
@@ -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,C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AE,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,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,CAA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AAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE;gBAC1F,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,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"}
@@ -0,0 +1,14 @@
1
+ import { isly } from "isly";
2
+ export interface GB {
3
+ countryCode: "GB";
4
+ city: string;
5
+ zipCode: string;
6
+ street: string;
7
+ building: string;
8
+ }
9
+ export declare namespace GB {
10
+ const name: string;
11
+ const type: isly.object.ExtendableType<GB>;
12
+ const is: isly.Type.IsFunction<GB>;
13
+ const flaw: isly.Type.FlawFunction;
14
+ }
@@ -0,0 +1,16 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export var GB;
4
+ (function (GB) {
5
+ GB.name = isoly.CountryCode.Name.en.from("GB");
6
+ GB.type = isly.object({
7
+ countryCode: isly.string("GB"),
8
+ city: isly.string(),
9
+ street: isly.string(),
10
+ building: isly.string(),
11
+ zipCode: isly.string(),
12
+ });
13
+ GB.is = GB.type.is;
14
+ GB.flaw = GB.type.flaw;
15
+ })(GB || (GB = {}));
16
+ //# sourceMappingURL=GB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GB.js","sourceRoot":"../","sources":["Organization/Contact/Address/GB.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAU3B,MAAM,KAAW,EAAE,CAWlB;AAXD,WAAiB,EAAE;IACL,OAAI,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAC3C,OAAI,GAAG,IAAI,CAAC,MAAM,CAAK;QACnC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC9B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE;QACvB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,KAAE,GAAG,GAAA,IAAI,CAAC,EAAE,CAAA;IACZ,OAAI,GAAG,GAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,EAAE,KAAF,EAAE,QAWlB"}
@@ -0,0 +1,15 @@
1
+ import { isoly } from "isoly";
2
+ import { isly } from "isly";
3
+ export interface Default {
4
+ countryCode: isoly.CountryCode.Alpha2;
5
+ state?: string;
6
+ county?: string;
7
+ city: string;
8
+ zipCode: string;
9
+ street: string;
10
+ }
11
+ export declare namespace Default {
12
+ const type: isly.object.ExtendableType<Default>;
13
+ const is: isly.Type.IsFunction<Default>;
14
+ const flaw: isly.Type.FlawFunction;
15
+ }
@@ -0,0 +1,15 @@
1
+ import { isly } from "isly";
2
+ export var Default;
3
+ (function (Default) {
4
+ Default.type = isly.object({
5
+ countryCode: isly.string("GB"),
6
+ state: isly.string().optional(),
7
+ county: isly.string().optional(),
8
+ city: isly.string(),
9
+ street: isly.string(),
10
+ zipCode: isly.string(),
11
+ });
12
+ Default.is = Default.type.is;
13
+ Default.flaw = Default.type.flaw;
14
+ })(Default || (Default = {}));
15
+ //# sourceMappingURL=General.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"General.js","sourceRoot":"../","sources":["Organization/Contact/Address/General.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAW3B,MAAM,KAAW,OAAO,CAWvB;AAXD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC9B,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;KACtB,CAAC,CAAA;IACW,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAXgB,OAAO,KAAP,OAAO,QAWvB"}
@@ -0,0 +1,12 @@
1
+ import { isly } from "isly";
2
+ export interface SE {
3
+ countryCode: "SE";
4
+ zipCode: string;
5
+ city: string;
6
+ street: string;
7
+ }
8
+ export declare namespace SE {
9
+ const type: isly.object.ExtendableType<SE>;
10
+ const is: isly.Type.IsFunction<SE>;
11
+ const flaw: isly.Type.FlawFunction;
12
+ }
@@ -0,0 +1,13 @@
1
+ import { isly } from "isly";
2
+ export var SE;
3
+ (function (SE) {
4
+ SE.type = isly.object({
5
+ countryCode: isly.string("SE"),
6
+ zipCode: isly.string(),
7
+ city: isly.string(),
8
+ street: isly.string(),
9
+ });
10
+ SE.is = SE.type.is;
11
+ SE.flaw = SE.type.flaw;
12
+ })(SE || (SE = {}));
13
+ //# sourceMappingURL=SE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SE.js","sourceRoot":"../","sources":["Organization/Contact/Address/SE.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAQ3B,MAAM,KAAW,EAAE,CASlB;AATD,WAAiB,EAAE;IACL,OAAI,GAAG,IAAI,CAAC,MAAM,CAAK;QACnC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;QAC9B,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;KACrB,CAAC,CAAA;IACW,KAAE,GAAG,GAAA,IAAI,CAAC,EAAE,CAAA;IACZ,OAAI,GAAG,GAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EATgB,EAAE,KAAF,EAAE,QASlB"}
@@ -0,0 +1,10 @@
1
+ import { isly } from "isly";
2
+ import { GB } from "./GB";
3
+ import { Default } from "./General";
4
+ import { SE } from "./SE";
5
+ export type Address = GB | SE | Default;
6
+ export declare namespace Address {
7
+ const type: isly.Type<Address>;
8
+ const is: isly.Type.IsFunction<Address>;
9
+ const flaw: isly.Type.FlawFunction;
10
+ }
@@ -0,0 +1,10 @@
1
+ import { isly } from "isly";
2
+ import { GB } from "./GB";
3
+ import { Default } from "./General";
4
+ export var Address;
5
+ (function (Address) {
6
+ Address.type = isly.union(GB.type, Default.type);
7
+ Address.is = Address.type.is;
8
+ Address.flaw = Address.type.flaw;
9
+ })(Address || (Address = {}));
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Organization/Contact/Address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAKnC,MAAM,KAAW,OAAO,CAIvB;AAJD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,KAAK,CAAuB,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAC9D,UAAE,GAAG,QAAA,IAAI,CAAC,EAAE,CAAA;IACZ,YAAI,GAAG,QAAA,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC,EAJgB,OAAO,KAAP,OAAO,QAIvB"}
@@ -0,0 +1,11 @@
1
+ import { isly } from "isly";
2
+ import { Address } from "./Address";
3
+ export interface Addresses {
4
+ primary: Address;
5
+ billing?: Address;
6
+ delivery?: Address;
7
+ visit?: Address;
8
+ }
9
+ export declare namespace Addresses {
10
+ const type: isly.object.ExtendableType<Addresses>;
11
+ }
@@ -0,0 +1,12 @@
1
+ import { isly } from "isly";
2
+ import { Address } from "./Address";
3
+ export var Addresses;
4
+ (function (Addresses) {
5
+ Addresses.type = isly.object({
6
+ primary: Address.type,
7
+ billing: Address.type.optional(),
8
+ delivery: Address.type.optional(),
9
+ visit: Address.type.optional(),
10
+ });
11
+ })(Addresses || (Addresses = {}));
12
+ //# sourceMappingURL=Addresses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Addresses.js","sourceRoot":"../","sources":["Organization/Contact/Addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAQnC,MAAM,KAAW,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACZ,cAAI,GAAG,IAAI,CAAC,MAAM,CAAY;QAC1C,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;QAChC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAA;AACH,CAAC,EAPgB,SAAS,KAAT,SAAS,QAOzB"}
@@ -1,10 +1,9 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
+ import { Address as ContactAddress } from "./Address";
4
+ import { Addresses as ContactAddresses } from "./Addresses";
3
5
  export interface Contact {
4
- address: string;
5
- city: string;
6
- zip: string;
7
- country: isoly.CountryCode.Alpha2;
6
+ address: Contact.Addresses;
8
7
  email: `${string}@${string}.${string}`;
9
8
  name: {
10
9
  first: string;
@@ -16,5 +15,9 @@ export interface Contact {
16
15
  };
17
16
  }
18
17
  export declare namespace Contact {
18
+ const Addresses: typeof ContactAddresses;
19
+ type Addresses = ContactAddresses;
20
+ const Address: typeof ContactAddress;
21
+ type Address = ContactAddress;
19
22
  const type: isly.object.ExtendableType<Contact>;
20
23
  }
@@ -1,12 +1,13 @@
1
1
  import { isoly } from "isoly";
2
2
  import { isly } from "isly";
3
+ import { Address as ContactAddress } from "./Address";
4
+ import { Addresses as ContactAddresses } from "./Addresses";
3
5
  export var Contact;
4
6
  (function (Contact) {
7
+ Contact.Addresses = ContactAddresses;
8
+ Contact.Address = ContactAddress;
5
9
  Contact.type = isly.object({
6
- address: isly.string(),
7
- city: isly.string(),
8
- zip: isly.string(),
9
- country: isly.fromIs("CountryCode.Alpha2", isoly.CountryCode.Alpha2.is),
10
+ address: Contact.Addresses.type,
10
11
  email: isly.string(),
11
12
  name: isly.object({
12
13
  first: isly.string(),
@@ -18,4 +19,4 @@ export var Contact;
18
19
  }),
19
20
  });
20
21
  })(Contact || (Contact = {}));
21
- //# sourceMappingURL=Contact.js.map
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Organization/Contact/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAe3D,MAAM,KAAW,OAAO,CAiBvB;AAjBD,WAAiB,OAAO;IACV,iBAAS,GAAG,gBAAgB,CAAA;IAE5B,eAAO,GAAG,cAAc,CAAA;IAExB,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,OAAO,EAAE,QAAA,SAAS,CAAC,IAAI;QACvB,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;QACpB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAkB;YAClC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;SACnB,CAAC;QACF,KAAK,EAAE,IAAI,CAAC,MAAM,CAAmB;YACpC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC;SACtD,CAAC;KACF,CAAC,CAAA;AACH,CAAC,EAjBgB,OAAO,KAAP,OAAO,QAiBvB"}
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.93",
4
4
  "description": "Library containing data model types and functions for the Pax2Pay Banking API.",
5
5
  "author": "Pax2Pay Ltd",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contact.js","sourceRoot":"../","sources":["Organization/Contact.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAkB3B,MAAM,KAAW,OAAO,CAgBvB;AAhBD,WAAiB,OAAO;IACV,YAAI,GAAG,IAAI,CAAC,MAAM,CAAU;QACxC,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE;QACtB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;QACnB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE;QAClB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,CAAC;QACvE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;QACpB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAkB;YAClC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE;YACpB,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE;SACnB,CAAC;QACF,KAAK,EAAE,IAAI,CAAC,MAAM,CAAmB;YACpC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE;YACrB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC;SACtD,CAAC;KACF,CAAC,CAAA;AACH,CAAC,EAhBgB,OAAO,KAAP,OAAO,QAgBvB"}