@pax2pay/client 0.0.103 → 0.0.106

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.
@@ -0,0 +1,14 @@
1
+ import { Currency } from "isoly"
2
+ import { Connection } from "../Connection"
3
+
4
+ export class Configuration {
5
+ protected folder = "config"
6
+ constructor(private readonly connection: Connection) {}
7
+ static create(connection: Connection) {
8
+ return new Configuration(connection)
9
+ }
10
+ async getAvailableCurrency() {
11
+ const result = await this.connection.get<Currency[]>(`config/currencies`)
12
+ return result
13
+ }
14
+ }
package/Client/index.ts CHANGED
@@ -5,6 +5,7 @@ import { Beneficiaries as ClientBeneficiaries } from "./Beneficiaries"
5
5
  import { Card as ClientCard } from "./Card"
6
6
  import { Cards as ClientCards } from "./Cards"
7
7
  import { Collection as ClientCollection } from "./Collection"
8
+ import { Configuration as ClientConfiguration } from "./Configuration"
8
9
  import { Connection } from "./Connection"
9
10
  import { List as ClientList } from "./List"
10
11
  import { Organisation as ClientOrganisation } from "./Organisation"
@@ -25,6 +26,7 @@ export class Client {
25
26
  auth = ClientAuth.create(this.connection)
26
27
  beneficiaries = ClientBeneficiaries.create(this.connection)
27
28
  cards = ClientCards.create(this.connection)
29
+ configuration = ClientConfiguration.create(this.connection)
28
30
  users = ClientUsers.create(this.connection)
29
31
  organisations = ClientOrganisations.create(this.connection)
30
32
  reports = ClientReports.create(this.connection)
@@ -45,6 +47,7 @@ export namespace Client {
45
47
  export type Beneficiaries = ClientBeneficiaries
46
48
  export type Card = ClientCard
47
49
  export type Cards = ClientCards
50
+ export type Configuration = ClientConfiguration
48
51
  export type Organisation = ClientOrganisation
49
52
  export type Organisations = ClientOrganisations
50
53
  export type Reports = ClientReports
@@ -0,0 +1,11 @@
1
+ import { Currency } from "isoly";
2
+ import { Connection } from "../Connection";
3
+ export declare class Configuration {
4
+ private readonly connection;
5
+ protected folder: string;
6
+ constructor(connection: Connection);
7
+ static create(connection: Connection): Configuration;
8
+ getAvailableCurrency(): Promise<Currency[] | (import("../..").ErrorResponse & {
9
+ status: 400 | 404 | 500 | 403 | 503;
10
+ })>;
11
+ }
@@ -0,0 +1,14 @@
1
+ export class Configuration {
2
+ constructor(connection) {
3
+ this.connection = connection;
4
+ this.folder = "config";
5
+ }
6
+ static create(connection) {
7
+ return new Configuration(connection);
8
+ }
9
+ async getAvailableCurrency() {
10
+ const result = await this.connection.get(`config/currencies`);
11
+ return result;
12
+ }
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Configuration/index.ts"],"names":[],"mappings":"AAGA,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;QACzB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAa,mBAAmB,CAAC,CAAA;QACzE,OAAO,MAAM,CAAA;IACd,CAAC;CACD"}
@@ -5,6 +5,7 @@ import { Beneficiaries as ClientBeneficiaries } from "./Beneficiaries";
5
5
  import { Card as ClientCard } from "./Card";
6
6
  import { Cards as ClientCards } from "./Cards";
7
7
  import { Collection as ClientCollection } from "./Collection";
8
+ import { Configuration as ClientConfiguration } from "./Configuration";
8
9
  import { Connection } from "./Connection";
9
10
  import { List as ClientList } from "./List";
10
11
  import { Organisation as ClientOrganisation } from "./Organisation";
@@ -23,6 +24,7 @@ export declare class Client {
23
24
  auth: ClientAuth;
24
25
  beneficiaries: ClientBeneficiaries;
25
26
  cards: ClientCards;
27
+ configuration: ClientConfiguration;
26
28
  users: ClientUsers;
27
29
  organisations: ClientOrganisations;
28
30
  reports: ClientReports;
@@ -37,6 +39,7 @@ export declare namespace Client {
37
39
  type Beneficiaries = ClientBeneficiaries;
38
40
  type Card = ClientCard;
39
41
  type Cards = ClientCards;
42
+ type Configuration = ClientConfiguration;
40
43
  type Organisation = ClientOrganisation;
41
44
  type Organisations = ClientOrganisations;
42
45
  type Reports = ClientReports;
@@ -2,6 +2,7 @@ import { Accounts as ClientAccounts } from "./Accounts";
2
2
  import { Auth as ClientAuth } from "./Auth";
3
3
  import { Beneficiaries as ClientBeneficiaries } from "./Beneficiaries";
4
4
  import { Cards as ClientCards } from "./Cards";
5
+ import { Configuration as ClientConfiguration } from "./Configuration";
5
6
  import { Connection } from "./Connection";
6
7
  import { Organisations as ClientOrganisations } from "./Organisations";
7
8
  import { Reports as ClientReports } from "./Reports";
@@ -15,6 +16,7 @@ export class Client {
15
16
  this.auth = ClientAuth.create(this.connection);
16
17
  this.beneficiaries = ClientBeneficiaries.create(this.connection);
17
18
  this.cards = ClientCards.create(this.connection);
19
+ this.configuration = ClientConfiguration.create(this.connection);
18
20
  this.users = ClientUsers.create(this.connection);
19
21
  this.organisations = ClientOrganisations.create(this.connection);
20
22
  this.reports = ClientReports.create(this.connection);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;AACvD,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAEtE,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAGzC,OAAO,EAAE,aAAa,IAAI,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,WAAW,CAAA;AAEpD,OAAO,EAAE,SAAS,I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
  import { Client } from "./Client";
2
- import { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } from "./model";
3
- export { Client, AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
2
+ import { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } from "./model";
3
+ export { Client, AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
@@ -1,4 +1,4 @@
1
1
  export interface UserLimitsRequest {
2
2
  currency: string;
3
- limit: number;
3
+ limit?: number;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import { Currency } from "isoly";
2
- export interface UserLimit {
2
+ export interface UserLimitsResponse {
3
3
  currency: Currency;
4
4
  limit: number;
5
- setBy?: "USER" | "CATEGORY";
5
+ setBy: "USER" | "CATEGORY";
6
6
  }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=UserLimitsResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UserLimitsResponse.js","sourceRoot":"../","sources":["model/UserLimitsResponse.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { UserLimit } from "./UserLimit";
1
+ import { UserLimitsRequest } from "./UserLimitsRequest";
2
2
  export interface UserRequest {
3
3
  username: string;
4
4
  password: string;
@@ -6,7 +6,7 @@ export interface UserRequest {
6
6
  lastName: string;
7
7
  status?: "ACTIVE" | "INACTIVE" | "DELETED" | "PASSWORD_EXPIRED";
8
8
  email: string;
9
- userLimits?: UserLimit[];
9
+ userLimits?: UserLimitsRequest[];
10
10
  rolesets?: string[];
11
11
  category?: string;
12
12
  }
@@ -1,17 +1,17 @@
1
1
  import { OrganisationResponse } from "./OrganisationResponse";
2
2
  import { TwoFactorAuthenticationDetails } from "./TwoFactorAuthenticationDetails";
3
- import { UserLimit } from "./UserLimit";
3
+ import { UserLimitsResponse } from "./UserLimitsResponse";
4
4
  export interface UserResponse {
5
- username?: string;
6
- firstName?: string;
7
- lastName?: string;
8
- email?: string;
5
+ username: string;
6
+ firstName: string;
7
+ lastName: string;
8
+ email: string;
9
9
  status?: "ACTIVE" | "INACTIVE" | "DELETED" | "PASSWORD_EXPIRED";
10
10
  passwordUpdatedOn?: string;
11
11
  category?: string;
12
12
  organisation?: OrganisationResponse;
13
13
  roles?: string[];
14
- userLimits?: UserLimit[];
14
+ userLimits?: UserLimitsResponse[];
15
15
  "2fa"?: TwoFactorAuthenticationDetails;
16
16
  }
17
17
  export declare namespace UserResponse {
@@ -130,12 +130,12 @@ import { UpdateBeneficiaryRequest } from "./UpdateBeneficiaryRequest";
130
130
  import { UpdateRolesetRequest } from "./UpdateRolesetRequest";
131
131
  import { UserChangeRequest } from "./UserChangeRequest";
132
132
  import { UserConfig } from "./UserConfig";
133
- import { UserLimit } from "./UserLimit";
134
133
  import { UserLimitsDeleteRequest } from "./UserLimitsDeleteRequest";
135
134
  import { UserLimitsRequest } from "./UserLimitsRequest";
135
+ import { UserLimitsResponse } from "./UserLimitsResponse";
136
136
  import { UserRequest } from "./UserRequest";
137
137
  import { UserResponse } from "./UserResponse";
138
138
  import { UserRoleResponse } from "./UserRoleResponse";
139
139
  import { UserSearchRequest } from "./UserSearchRequest";
140
140
  import { YearMonth } from "./YearMonth";
141
- export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
141
+ export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
package/index.ts CHANGED
@@ -132,9 +132,9 @@ import {
132
132
  UpdateRolesetRequest,
133
133
  UserChangeRequest,
134
134
  UserConfig,
135
- UserLimit,
136
135
  UserLimitsDeleteRequest,
137
136
  UserLimitsRequest,
137
+ UserLimitsResponse,
138
138
  UserRequest,
139
139
  UserResponse,
140
140
  UserRoleResponse,
@@ -276,9 +276,9 @@ export {
276
276
  UpdateRolesetRequest,
277
277
  UserChangeRequest,
278
278
  UserConfig,
279
- UserLimit,
280
279
  UserLimitsDeleteRequest,
281
280
  UserLimitsRequest,
281
+ UserLimitsResponse,
282
282
  UserRequest,
283
283
  UserResponse,
284
284
  UserRoleResponse,
@@ -3,5 +3,5 @@
3
3
  */
4
4
  export interface UserLimitsRequest {
5
5
  currency: string
6
- limit: number
6
+ limit?: number
7
7
  }
@@ -3,8 +3,8 @@ import { Currency } from "isoly"
3
3
  /**
4
4
  * User's limits
5
5
  */
6
- export interface UserLimit {
6
+ export interface UserLimitsResponse {
7
7
  currency: Currency
8
8
  limit: number
9
- setBy?: "USER" | "CATEGORY"
9
+ setBy: "USER" | "CATEGORY"
10
10
  }
@@ -1,4 +1,4 @@
1
- import { UserLimit } from "./UserLimit"
1
+ import { UserLimitsRequest } from "./UserLimitsRequest"
2
2
 
3
3
  /**
4
4
  * The users that we are creating for this organisation. Must include at least one user with an 'Default Admin' role.
@@ -10,7 +10,7 @@ export interface UserRequest {
10
10
  lastName: string
11
11
  status?: "ACTIVE" | "INACTIVE" | "DELETED" | "PASSWORD_EXPIRED"
12
12
  email: string
13
- userLimits?: UserLimit[]
13
+ userLimits?: UserLimitsRequest[]
14
14
  rolesets?: string[]
15
15
  category?: string
16
16
  }
@@ -1,21 +1,21 @@
1
1
  import { OrganisationResponse } from "./OrganisationResponse"
2
2
  import { TwoFactorAuthenticationDetails } from "./TwoFactorAuthenticationDetails"
3
- import { UserLimit } from "./UserLimit"
3
+ import { UserLimitsResponse } from "./UserLimitsResponse"
4
4
 
5
5
  /**
6
6
  * The users created
7
7
  */
8
8
  export interface UserResponse {
9
- username?: string
10
- firstName?: string
11
- lastName?: string
12
- email?: string
9
+ username: string
10
+ firstName: string
11
+ lastName: string
12
+ email: string
13
13
  status?: "ACTIVE" | "INACTIVE" | "DELETED" | "PASSWORD_EXPIRED"
14
14
  passwordUpdatedOn?: string
15
15
  category?: string
16
16
  organisation?: OrganisationResponse
17
17
  roles?: string[]
18
- userLimits?: UserLimit[]
18
+ userLimits?: UserLimitsResponse[]
19
19
  "2fa"?: TwoFactorAuthenticationDetails
20
20
  }
21
21
 
package/model/index.ts CHANGED
@@ -130,9 +130,9 @@ import { UpdateBeneficiaryRequest } from "./UpdateBeneficiaryRequest"
130
130
  import { UpdateRolesetRequest } from "./UpdateRolesetRequest"
131
131
  import { UserChangeRequest } from "./UserChangeRequest"
132
132
  import { UserConfig } from "./UserConfig"
133
- import { UserLimit } from "./UserLimit"
134
133
  import { UserLimitsDeleteRequest } from "./UserLimitsDeleteRequest"
135
134
  import { UserLimitsRequest } from "./UserLimitsRequest"
135
+ import { UserLimitsResponse } from "./UserLimitsResponse"
136
136
  import { UserRequest } from "./UserRequest"
137
137
  import { UserResponse } from "./UserResponse"
138
138
  import { UserRoleResponse } from "./UserRoleResponse"
@@ -272,9 +272,9 @@ export {
272
272
  UpdateRolesetRequest,
273
273
  UserChangeRequest,
274
274
  UserConfig,
275
- UserLimit,
276
275
  UserLimitsDeleteRequest,
277
276
  UserLimitsRequest,
277
+ UserLimitsResponse,
278
278
  UserRequest,
279
279
  UserResponse,
280
280
  UserRoleResponse,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.0.103",
3
+ "version": "0.0.106",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=UserLimit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserLimit.js","sourceRoot":"../","sources":["model/UserLimit.ts"],"names":[],"mappings":""}