@pax2pay/client 0.0.73 → 0.0.76

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 (44) hide show
  1. package/.eslintrc +1 -2
  2. package/Client/Card/index.ts +1 -3
  3. package/Client/Cards/index.ts +2 -3
  4. package/Client/Reports/index.ts +10 -0
  5. package/dist/Client/Card/index.js.map +1 -1
  6. package/dist/Client/Cards/index.js +2 -1
  7. package/dist/Client/Cards/index.js.map +1 -1
  8. package/dist/Client/Reports/index.d.ts +3 -0
  9. package/dist/Client/Reports/index.js +3 -0
  10. package/dist/Client/Reports/index.js.map +1 -1
  11. package/dist/index.d.ts +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/model/AccountStatementRequest.d.ts +10 -0
  15. package/dist/model/AccountStatementRequest.js +2 -0
  16. package/dist/model/AccountStatementRequest.js.map +1 -0
  17. package/dist/model/AccountStatementResponse.d.ts +8 -0
  18. package/dist/model/AccountStatementResponse.js +2 -0
  19. package/dist/model/AccountStatementResponse.js.map +1 -0
  20. package/dist/model/AccountStatementResponseItem.d.ts +29 -0
  21. package/dist/model/AccountStatementResponseItem.js +2 -0
  22. package/dist/model/AccountStatementResponseItem.js.map +1 -0
  23. package/dist/model/AccountStatementTransactionType.d.ts +6 -0
  24. package/dist/model/AccountStatementTransactionType.js +18 -0
  25. package/dist/model/AccountStatementTransactionType.js.map +1 -0
  26. package/dist/model/BookingInfoType.d.ts +6 -0
  27. package/dist/model/BookingInfoType.js +9 -0
  28. package/dist/model/BookingInfoType.js.map +1 -0
  29. package/dist/model/MinimalBookingInfo.d.ts +6 -0
  30. package/dist/model/MinimalBookingInfo.js +2 -0
  31. package/dist/model/MinimalBookingInfo.js.map +1 -0
  32. package/dist/model/index.d.ts +9 -1
  33. package/dist/model/index.js +3 -1
  34. package/dist/model/index.js.map +1 -1
  35. package/index.ts +16 -0
  36. package/model/AccountStatementRequest.ts +11 -0
  37. package/model/AccountStatementResponse.ts +9 -0
  38. package/model/AccountStatementResponseItem.ts +34 -0
  39. package/model/AccountStatementTransactionType.ts +19 -0
  40. package/model/BookingInfoType.ts +8 -0
  41. package/model/CardDeliveryResponse.ts +0 -1
  42. package/model/MinimalBookingInfo.ts +7 -0
  43. package/model/index.ts +16 -0
  44. package/package.json +4 -4
package/.eslintrc CHANGED
@@ -10,8 +10,7 @@
10
10
  "eslint:recommended",
11
11
  "plugin:@typescript-eslint/eslint-recommended",
12
12
  "plugin:@typescript-eslint/recommended",
13
- "plugin:prettierx/default",
14
- "plugin:prettierx/@typescript-eslint"
13
+ "plugin:prettierx/default"
15
14
  ],
16
15
  "rules": {
17
16
  "prettierx/options": [
@@ -6,9 +6,7 @@ export class Card extends Resource<model.CardResponse | model.CardResponseV2, mo
6
6
  constructor(connection: Connection, folder: string, backend: model.CardResponse | model.CardResponseV2) {
7
7
  super(connection, folder, backend)
8
8
  }
9
- amend(
10
- request: model.AmendCardRequest
11
- ): Promise<
9
+ amend(request: model.AmendCardRequest): Promise<
12
10
  | model.CardResponse
13
11
  | (model.ErrorResponse & {
14
12
  status: 400 | 403 | 404 | 500 | 503
@@ -37,9 +37,8 @@ export class Cards extends List<
37
37
  return new Cards(connection)
38
38
  }
39
39
  async getCard(providerCardId: string, providerCode: model.ProviderCode) {
40
- const result = await this.connection.get<
41
- model.CardResponse
42
- >(`cards/virtual/${providerCode}/${providerCardId}?includeSchedules=true
40
+ const result = await this.connection
41
+ .get<model.CardResponse>(`cards/virtual/${providerCode}/${providerCardId}?includeSchedules=true
43
42
  `)
44
43
  return model.ErrorResponse.is(result) ? result : this.mapLegacy(result)
45
44
  }
@@ -31,6 +31,16 @@ export class Reports {
31
31
 
32
32
  return await this.connection.post<model.Report.Statement>(`../reports/statement`, request)
33
33
  }
34
+
35
+ statementForTable(request: model.AccountStatementRequest): Promise<
36
+ | model.AccountStatementResponse
37
+ | (model.ErrorResponse & {
38
+ status: 400 | 403 | 404 | 500 | 503
39
+ })
40
+ > {
41
+ return this.connection.post<model.AccountStatementResponse>(`statement`, request)
42
+ }
43
+
34
44
  static create(connection: Connection) {
35
45
  return new Reports(connection)
36
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Card/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,OAAO,IAAK,SAAQ,QAA4E;IACrG,YAAY,UAAsB,EAAE,MAAc,EAAE,OAAkD;QACrG,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,CAAC;IACD,KAAK,CACJ,OAA+B;QAO/B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAqB,GAAG,IAAI,CAAC,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;IACD,MAAM;QAML,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,SAAS,CAAC,CAAA;IACxE,CAAC;IACD,IAAI;QAMH,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,OAAO,CAAC,CAAA;IACtE,CAAC;IACD,MAAM;QAML,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,SAAS,CAAC,CAAA;IACxE,CAAC;IACD,OAAO;QAMN,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,uBAAuB,CAAC,CAAA;IACtF,CAAC;IACD,eAAe;QAMd,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAA4B,GAAG,IAAI,CAAC,MAAM,eAAe,CAAC,CAAA;IACrF,CAAC;CACD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Card/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,OAAO,IAAK,SAAQ,QAA4E;IACrG,YAAY,UAAsB,EAAE,MAAc,EAAE,OAAkD;QACrG,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,CAAC;IACD,KAAK,CAAC,OAA+B;QAMpC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAqB,GAAG,IAAI,CAAC,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAA;IACjF,CAAC;IACD,MAAM;QAML,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,SAAS,CAAC,CAAA;IACxE,CAAC;IACD,IAAI;QAMH,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,OAAO,CAAC,CAAA;IACtE,CAAC;IACD,MAAM;QAML,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,SAAS,CAAC,CAAA;IACxE,CAAC;IACD,OAAO;QAMN,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,GAAG,IAAI,CAAC,MAAM,uBAAuB,CAAC,CAAA;IACtF,CAAC;IACD,eAAe;QAMd,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAA4B,GAAG,IAAI,CAAC,MAAM,eAAe,CAAC,CAAA;IACrF,CAAC;CACD"}
@@ -30,7 +30,8 @@ export class Cards extends List {
30
30
  return new Cards(connection);
31
31
  }
32
32
  async getCard(providerCardId, providerCode) {
33
- const result = await this.connection.get(`cards/virtual/${providerCode}/${providerCardId}?includeSchedules=true
33
+ const result = await this.connection
34
+ .get(`cards/virtual/${providerCode}/${providerCardId}?includeSchedules=true
34
35
  `);
35
36
  return model.ErrorResponse.is(result) ? result : this.mapLegacy(result);
36
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Cards/index.ts"],"names":[],"mappings":"AAAA,OA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,CAAC,UAAU,CAAC,GAAG,CAA2B,kBAAkB,YAAY,EAAE,CAAC,CAAA;QACpG,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,kBAAkB,CAAC,aAAgD;QACxE,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CACxC,2BAA2B,EAC3B,aAAa,CACb,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,kBAAkB,CAAC,cAAsB,EAAE,YAAgC;QAChF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAqB,uBAAuB,YAAY,IAAI,cAAc;CACnH,CAAC,CAAA;QACA,OAAO,KAAK,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;IACxE,CAAC;CACD"}
@@ -10,5 +10,8 @@ export declare class Reports {
10
10
  statement(start: isoly.DateTime, end: isoly.DateTime, account: string): Promise<model.Report.Statement | (model.ErrorResponse & {
11
11
  status: 400 | 404 | 500 | 403 | 503;
12
12
  })>;
13
+ statementForTable(request: model.AccountStatementRequest): Promise<model.AccountStatementResponse | (model.ErrorResponse & {
14
+ status: 400 | 403 | 404 | 500 | 503;
15
+ })>;
13
16
  static create(connection: Connection): Reports;
14
17
  }
@@ -25,6 +25,9 @@ export class Reports {
25
25
  };
26
26
  return await this.connection.post(`../reports/statement`, request);
27
27
  }
28
+ statementForTable(request) {
29
+ return this.connection.post(`statement`, request);
30
+ }
28
31
  static create(connection) {
29
32
  return new Reports(connection);
30
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Reports/index.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,OAAO;IACnB,YAA6B,UAAsB;QAAtB,eAAU,GAAV,UAAU,CAAY;IAAG,CAAC;IAEvD,KAAK,CAAC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O,CAAC,CAAA;IACrG,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,KAAqB,EAAE,GAAmB,EAAE,OAAe;QAC1E,MAAM,OAAO,GAAG;YACf,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAChC,IAAI,EAAE,KAAK;YACX,EAAE,EAAE,GAAG;YACP,UAAU,EAAE,OAAO;YACnB,MAAM,EAAE;gBACP,IAAI,EAAE,MAAM;aACZ;SACD,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAyB,sBAAsB,EAAE,OAAO,CAAC,CAAA;IAC3F,CAAC;IAED,iBAAiB,CAAC,OAAsC;QAMvD,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAiC,WAAW,EAAE,OAAO,CAAC,CAAA;IAClF,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,CAAA;IAC/B,CAAC;CACD"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { Client } from "./Client";
2
- import { AccountCreationRequest, AccountResponse, AccountSearchRequest, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } from "./model";
3
- export { Client, AccountCreationRequest, AccountResponse, AccountSearchRequest, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
2
+ import { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } from "./model";
3
+ export { Client, AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import { Client } from "./Client";
2
- import { CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, } from "./model";
3
- export { Client, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
2
+ import { AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, } from "./model";
3
+ export { Client, AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAcN,kCAAkC,EAClC,mBAAmB,EACnB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAKb,wBAAwB,EAQxB,KAAK,EAGL,aAAa,EAEb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA4BhB,YAAY,EAGZ,SAAS,GACT,MAAM,SAAS,CAAA;AAEhB,OAAO,EACN,MAAM,EAcN,kCAAkC,EAClC,mBAAmB,EACnB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAKb,wBAAwB,EAQxB,KAAK,EAGL,aAAa,EAEb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA4BhB,YAAY,EAGZ,SAAS,GACT,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAON,+BAA+B,EAU/B,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EAEnB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAKb,wBAAwB,EASxB,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA4BhB,YAAY,EAGZ,SAAS,GACT,MAAM,SAAS,CAAA;AAEhB,OAAO,EACN,MAAM,EAON,+BAA+B,EAU/B,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EAEnB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAKb,wBAAwB,EASxB,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA4BhB,YAAY,EAGZ,SAAS,GACT,CAAA"}
@@ -0,0 +1,10 @@
1
+ import * as isoly from "isoly";
2
+ import { ProviderCode } from "./ProviderCode";
3
+ export interface AccountStatementRequest {
4
+ providerCode: ProviderCode;
5
+ providerAccountId: string;
6
+ period: {
7
+ start: isoly.DateTime;
8
+ end: isoly.DateTime;
9
+ };
10
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AccountStatementRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountStatementRequest.js","sourceRoot":"../","sources":["model/AccountStatementRequest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { AccountStatementResponseItem } from "./AccountStatementResponseItem";
2
+ export interface AccountStatementResponse {
3
+ openingAvailableBalance: number;
4
+ closingAvailableBalance: number;
5
+ openingActualBalance: number;
6
+ closingActualBalance: number;
7
+ statements: AccountStatementResponseItem[];
8
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AccountStatementResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountStatementResponse.js","sourceRoot":"../","sources":["model/AccountStatementResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import * as isoly from "isoly";
2
+ import { AccountStatementTransactionType } from "./AccountStatementTransactionType";
3
+ import { MinimalBookingInfo } from "./MinimalBookingInfo";
4
+ import { ProviderCode } from "./ProviderCode";
5
+ export interface AccountStatementResponseItem {
6
+ transactionType: AccountStatementTransactionType;
7
+ amount: BillingTransactionAmountPair;
8
+ bookingInfo: MinimalBookingInfo;
9
+ timestamp: isoly.DateTime;
10
+ actualBalance: number;
11
+ availableBalance: number;
12
+ rowType: StatementReportRowType;
13
+ ids: StatementRowIds;
14
+ }
15
+ export interface BillingTransactionAmountPair {
16
+ billing: AmountPair;
17
+ transaction: AmountPair;
18
+ fxRate: number;
19
+ }
20
+ export interface AmountPair {
21
+ amount: number;
22
+ currency: isoly.Currency;
23
+ }
24
+ export declare type StatementReportRowType = "FULL" | "SUMMARY";
25
+ export interface StatementRowIds {
26
+ rowId: string;
27
+ providerCode: ProviderCode;
28
+ providerCardId: string;
29
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AccountStatementResponseItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountStatementResponseItem.js","sourceRoot":"../","sources":["model/AccountStatementResponseItem.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ declare const accountStatementTransactionType: readonly ["AUTHORISATION", "AUTHORISATION_DECLINED", "SETTLEMENT", "AUTHORISATION_AND_SETTLEMENT", "REVERSAL", "REFUND", "TRANSFER_IN", "TRANSFER_OUT"];
2
+ export declare type AccountStatementTransactionType = typeof accountStatementTransactionType[number];
3
+ export declare namespace AccountStatementTransactionType {
4
+ function is(value: unknown): value is AccountStatementTransactionType;
5
+ }
6
+ export {};
@@ -0,0 +1,18 @@
1
+ const accountStatementTransactionType = [
2
+ "AUTHORISATION",
3
+ "AUTHORISATION_DECLINED",
4
+ "SETTLEMENT",
5
+ "AUTHORISATION_AND_SETTLEMENT",
6
+ "REVERSAL",
7
+ "REFUND",
8
+ "TRANSFER_IN",
9
+ "TRANSFER_OUT",
10
+ ];
11
+ export var AccountStatementTransactionType;
12
+ (function (AccountStatementTransactionType) {
13
+ function is(value) {
14
+ return (typeof value == "string" && accountStatementTransactionType.includes(value));
15
+ }
16
+ AccountStatementTransactionType.is = is;
17
+ })(AccountStatementTransactionType || (AccountStatementTransactionType = {}));
18
+ //# sourceMappingURL=AccountStatementTransactionType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccountStatementTransactionType.js","sourceRoot":"../","sources":["model/AccountStatementTransactionType.ts"],"names":[],"mappings":"AAAA,MAAM,+BAA+B,GAAG;IACvC,eAAe;IACf,wBAAwB;IACxB,YAAY;IACZ,8BAA8B;IAC9B,UAAU;IACV,QAAQ;IACR,aAAa;IACb,cAAc;CACL,CAAA;AAGV,MAAM,KAAW,+BAA+B,CAM/C;AAND,WAAiB,+BAA+B;IAC/C,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ,IAAI,+BAA+B,CAAC,QAAQ,CAAC,KAAwC,CAAC,CAC9G,CAAA;IACF,CAAC;IAJe,kCAAE,KAIjB,CAAA;AACF,CAAC,EANgB,+BAA+B,KAA/B,+BAA+B,QAM/C"}
@@ -0,0 +1,6 @@
1
+ declare const bookingInfotype: readonly ["HOTEL", "FLIGHT", "FIVE_FIELDS"];
2
+ export declare type BookingInfoType = typeof bookingInfotype[number];
3
+ export declare namespace BookingInfoType {
4
+ function is(value: unknown): value is BookingInfoType;
5
+ }
6
+ export {};
@@ -0,0 +1,9 @@
1
+ const bookingInfotype = ["HOTEL", "FLIGHT", "FIVE_FIELDS"];
2
+ export var BookingInfoType;
3
+ (function (BookingInfoType) {
4
+ function is(value) {
5
+ return typeof value == "string" && bookingInfotype.includes(value);
6
+ }
7
+ BookingInfoType.is = is;
8
+ })(BookingInfoType || (BookingInfoType = {}));
9
+ //# sourceMappingURL=BookingInfoType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BookingInfoType.js","sourceRoot":"../","sources":["model/BookingInfoType.ts"],"names":[],"mappings":"AAAA,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,aAAa,CAAU,CAAA;AAGnE,MAAM,KAAW,eAAe,CAI/B;AAJD,WAAiB,eAAe;IAC/B,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAwB,CAAC,CAAA;IACtF,CAAC;IAFe,kBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,eAAe,KAAf,eAAe,QAI/B"}
@@ -0,0 +1,6 @@
1
+ import { BookingInfoType } from "./BookingInfoType";
2
+ export interface MinimalBookingInfo {
3
+ type: BookingInfoType;
4
+ leadPassengerName: string;
5
+ agentBookingReference: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MinimalBookingInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MinimalBookingInfo.js","sourceRoot":"../","sources":["model/MinimalBookingInfo.ts"],"names":[],"mappings":""}
@@ -1,6 +1,10 @@
1
1
  import { AccountCreationRequest } from "./AccountCreationRequest";
2
2
  import { AccountResponse } from "./AccountResponse";
3
3
  import { AccountSearchRequest } from "./AccountSearchRequest";
4
+ import { AccountStatementRequest } from "./AccountStatementRequest";
5
+ import { AccountStatementResponse } from "./AccountStatementResponse";
6
+ import { AccountStatementResponseItem } from "./AccountStatementResponseItem";
7
+ import { AccountStatementTransactionType } from "./AccountStatementTransactionType";
4
8
  import { AddressInfo } from "./AddressInfo";
5
9
  import { AgentBookingInfo } from "./AgentBookingInfo";
6
10
  import { AmendCardRequest } from "./AmendCardRequest";
@@ -10,9 +14,11 @@ import { BookedProductInfo } from "./BookedProductInfo";
10
14
  import { BookingInfo } from "./BookingInfo";
11
15
  import { BookingInfoRequest } from "./BookingInfoRequest";
12
16
  import { BookingInfoResponse } from "./BookingInfoResponse";
17
+ import { BookingInfoType } from "./BookingInfoType";
13
18
  import { CardAmendmentScheduledTaskRequest } from "./CardAmendmentScheduledTaskRequest";
14
19
  import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
15
20
  import { CardDeliveryRequest } from "./CardDeliveryRequest";
21
+ import { CardDeliveryResponse } from "./CardDeliveryResponse";
16
22
  import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
17
23
  import { CardOptionSearch } from "./CardOptionSearch";
18
24
  import { CardResponse } from "./CardResponse";
@@ -52,12 +58,14 @@ import { FundingAccountSearchResponse } from "./FundingAccountSearchResponse";
52
58
  import { FundingLimitRequest } from "./FundingLimitRequest";
53
59
  import { FundingLimitResponse } from "./FundingLimitResponse";
54
60
  import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest";
61
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse";
55
62
  import { InsertCardOptionRequest } from "./InsertCardOptionRequest";
56
63
  import { InsertCardRequest } from "./InsertCardRequest";
57
64
  import { Issue } from "./Issue";
58
65
  import { LegacyBookingInfoRequest } from "./LegacyBookingInfoRequest";
59
66
  import { LoginRequest } from "./LoginRequest";
60
67
  import { LoginResponse } from "./LoginResponse";
68
+ import { MinimalBookingInfo } from "./MinimalBookingInfo";
61
69
  import { NonBeneficiaryTransferDestination } from "./NonBeneficiaryTransferDestination";
62
70
  import { OrganisationBalanceLimitResponse } from "./OrganisationBalanceLimitResponse";
63
71
  import { OrganisationConfig } from "./OrganisationConfig";
@@ -104,4 +112,4 @@ import { UserResponse } from "./UserResponse";
104
112
  import { UserRoleResponse } from "./UserRoleResponse";
105
113
  import { UserSearchRequest } from "./UserSearchRequest";
106
114
  import { YearMonth } from "./YearMonth";
107
- export { AccountCreationRequest, AccountResponse, AccountSearchRequest, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
115
+ export { AccountCreationRequest, AccountResponse, AccountSearchRequest, AccountStatementRequest, AccountStatementResponse, AccountStatementResponseItem, AccountStatementTransactionType, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, ScheduledTaskRequest, SearchRolesetsRequest, Sorting, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
@@ -1,3 +1,5 @@
1
+ import { AccountStatementTransactionType } from "./AccountStatementTransactionType";
2
+ import { BookingInfoType } from "./BookingInfoType";
1
3
  import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
2
4
  import { CardDeliveryRequest } from "./CardDeliveryRequest";
3
5
  import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
@@ -20,5 +22,5 @@ import { ProviderCode } from "./ProviderCode";
20
22
  import { ProviderResponse } from "./ProviderResponse";
21
23
  import { UserResponse } from "./UserResponse";
22
24
  import { YearMonth } from "./YearMonth";
23
- export { CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
25
+ export { AccountStatementTransactionType, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
24
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAA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,EAAE,MAAM,oCAAoC,CAAA;AAGrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAS7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AA4BrD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EAON,+BAA+B,EAU/B,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EAEnB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAIpC,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAKb,wBAAwB,EASxB,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EASpB,YAAY,EACZ,gBAAgB,EA4BhB,YAAY,EAGZ,SAAS,GACT,CAAA"}
package/index.ts CHANGED
@@ -3,6 +3,10 @@ import {
3
3
  AccountCreationRequest,
4
4
  AccountResponse,
5
5
  AccountSearchRequest,
6
+ AccountStatementRequest,
7
+ AccountStatementResponse,
8
+ AccountStatementResponseItem,
9
+ AccountStatementTransactionType,
6
10
  AddressInfo,
7
11
  AgentBookingInfo,
8
12
  AmendCardRequest,
@@ -12,9 +16,11 @@ import {
12
16
  BookingInfo,
13
17
  BookingInfoRequest,
14
18
  BookingInfoResponse,
19
+ BookingInfoType,
15
20
  CardAmendmentScheduledTaskRequest,
16
21
  CardAmendmentScheduledTaskResponse,
17
22
  CardDeliveryRequest,
23
+ CardDeliveryResponse,
18
24
  CardFundingAccountResponse,
19
25
  CardOptionSearch,
20
26
  CardResponse,
@@ -54,12 +60,14 @@ import {
54
60
  FundingLimitRequest,
55
61
  FundingLimitResponse,
56
62
  HotelBookingInfoRequest,
63
+ HotelBookingInfoResponse,
57
64
  InsertCardOptionRequest,
58
65
  InsertCardRequest,
59
66
  Issue,
60
67
  LegacyBookingInfoRequest,
61
68
  LoginRequest,
62
69
  LoginResponse,
70
+ MinimalBookingInfo,
63
71
  NonBeneficiaryTransferDestination,
64
72
  OrganisationBalanceLimitResponse,
65
73
  OrganisationConfig,
@@ -113,6 +121,10 @@ export {
113
121
  AccountCreationRequest,
114
122
  AccountResponse,
115
123
  AccountSearchRequest,
124
+ AccountStatementRequest,
125
+ AccountStatementResponse,
126
+ AccountStatementResponseItem,
127
+ AccountStatementTransactionType,
116
128
  AddressInfo,
117
129
  AgentBookingInfo,
118
130
  AmendCardRequest,
@@ -122,9 +134,11 @@ export {
122
134
  BookingInfo,
123
135
  BookingInfoRequest,
124
136
  BookingInfoResponse,
137
+ BookingInfoType,
125
138
  CardAmendmentScheduledTaskRequest,
126
139
  CardAmendmentScheduledTaskResponse,
127
140
  CardDeliveryRequest,
141
+ CardDeliveryResponse,
128
142
  CardFundingAccountResponse,
129
143
  CardOptionSearch,
130
144
  CardResponse,
@@ -164,12 +178,14 @@ export {
164
178
  FundingLimitRequest,
165
179
  FundingLimitResponse,
166
180
  HotelBookingInfoRequest,
181
+ HotelBookingInfoResponse,
167
182
  InsertCardOptionRequest,
168
183
  InsertCardRequest,
169
184
  Issue,
170
185
  LegacyBookingInfoRequest,
171
186
  LoginRequest,
172
187
  LoginResponse,
188
+ MinimalBookingInfo,
173
189
  NonBeneficiaryTransferDestination,
174
190
  OrganisationBalanceLimitResponse,
175
191
  OrganisationConfig,
@@ -0,0 +1,11 @@
1
+ import * as isoly from "isoly"
2
+ import { ProviderCode } from "./ProviderCode"
3
+
4
+ export interface AccountStatementRequest {
5
+ providerCode: ProviderCode
6
+ providerAccountId: string
7
+ period: {
8
+ start: isoly.DateTime
9
+ end: isoly.DateTime
10
+ }
11
+ }
@@ -0,0 +1,9 @@
1
+ import { AccountStatementResponseItem } from "./AccountStatementResponseItem"
2
+
3
+ export interface AccountStatementResponse {
4
+ openingAvailableBalance: number
5
+ closingAvailableBalance: number
6
+ openingActualBalance: number
7
+ closingActualBalance: number
8
+ statements: AccountStatementResponseItem[]
9
+ }
@@ -0,0 +1,34 @@
1
+ import * as isoly from "isoly"
2
+ import { AccountStatementTransactionType } from "./AccountStatementTransactionType"
3
+ import { MinimalBookingInfo } from "./MinimalBookingInfo"
4
+ import { ProviderCode } from "./ProviderCode"
5
+
6
+ export interface AccountStatementResponseItem {
7
+ transactionType: AccountStatementTransactionType
8
+ amount: BillingTransactionAmountPair
9
+ bookingInfo: MinimalBookingInfo
10
+ timestamp: isoly.DateTime
11
+ actualBalance: number
12
+ availableBalance: number
13
+ rowType: StatementReportRowType
14
+ ids: StatementRowIds
15
+ }
16
+
17
+ export interface BillingTransactionAmountPair {
18
+ billing: AmountPair
19
+ transaction: AmountPair
20
+ fxRate: number
21
+ }
22
+
23
+ export interface AmountPair {
24
+ amount: number
25
+ currency: isoly.Currency
26
+ }
27
+
28
+ export type StatementReportRowType = "FULL" | "SUMMARY"
29
+
30
+ export interface StatementRowIds {
31
+ rowId: string
32
+ providerCode: ProviderCode
33
+ providerCardId: string
34
+ }
@@ -0,0 +1,19 @@
1
+ const accountStatementTransactionType = [
2
+ "AUTHORISATION",
3
+ "AUTHORISATION_DECLINED",
4
+ "SETTLEMENT",
5
+ "AUTHORISATION_AND_SETTLEMENT",
6
+ "REVERSAL",
7
+ "REFUND",
8
+ "TRANSFER_IN",
9
+ "TRANSFER_OUT",
10
+ ] as const
11
+ export type AccountStatementTransactionType = typeof accountStatementTransactionType[number]
12
+
13
+ export namespace AccountStatementTransactionType {
14
+ export function is(value: unknown): value is AccountStatementTransactionType {
15
+ return (
16
+ typeof value == "string" && accountStatementTransactionType.includes(value as AccountStatementTransactionType)
17
+ )
18
+ }
19
+ }
@@ -0,0 +1,8 @@
1
+ const bookingInfotype = ["HOTEL", "FLIGHT", "FIVE_FIELDS"] as const
2
+ export type BookingInfoType = typeof bookingInfotype[number]
3
+
4
+ export namespace BookingInfoType {
5
+ export function is(value: unknown): value is BookingInfoType {
6
+ return typeof value == "string" && bookingInfotype.includes(value as BookingInfoType)
7
+ }
8
+ }
@@ -9,4 +9,3 @@ export interface CardDeliveryResponse {
9
9
  status: "SUCCESS" | "FAILURE" | "TODO"
10
10
  statusText?: string
11
11
  }
12
-
@@ -0,0 +1,7 @@
1
+ import { BookingInfoType } from "./BookingInfoType"
2
+
3
+ export interface MinimalBookingInfo {
4
+ type: BookingInfoType
5
+ leadPassengerName: string
6
+ agentBookingReference: string
7
+ }
package/model/index.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { AccountCreationRequest } from "./AccountCreationRequest"
2
2
  import { AccountResponse } from "./AccountResponse"
3
3
  import { AccountSearchRequest } from "./AccountSearchRequest"
4
+ import { AccountStatementRequest } from "./AccountStatementRequest"
5
+ import { AccountStatementResponse } from "./AccountStatementResponse"
6
+ import { AccountStatementResponseItem } from "./AccountStatementResponseItem"
7
+ import { AccountStatementTransactionType } from "./AccountStatementTransactionType"
4
8
  import { AddressInfo } from "./AddressInfo"
5
9
  import { AgentBookingInfo } from "./AgentBookingInfo"
6
10
  import { AmendCardRequest } from "./AmendCardRequest"
@@ -10,9 +14,11 @@ import { BookedProductInfo } from "./BookedProductInfo"
10
14
  import { BookingInfo } from "./BookingInfo"
11
15
  import { BookingInfoRequest } from "./BookingInfoRequest"
12
16
  import { BookingInfoResponse } from "./BookingInfoResponse"
17
+ import { BookingInfoType } from "./BookingInfoType"
13
18
  import { CardAmendmentScheduledTaskRequest } from "./CardAmendmentScheduledTaskRequest"
14
19
  import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse"
15
20
  import { CardDeliveryRequest } from "./CardDeliveryRequest"
21
+ import { CardDeliveryResponse } from "./CardDeliveryResponse"
16
22
  import { CardFundingAccountResponse } from "./CardFundingAccountResponse"
17
23
  import { CardOptionSearch } from "./CardOptionSearch"
18
24
  import { CardResponse } from "./CardResponse"
@@ -52,12 +58,14 @@ import { FundingAccountSearchResponse } from "./FundingAccountSearchResponse"
52
58
  import { FundingLimitRequest } from "./FundingLimitRequest"
53
59
  import { FundingLimitResponse } from "./FundingLimitResponse"
54
60
  import { HotelBookingInfoRequest } from "./HotelBookingInfoRequest"
61
+ import { HotelBookingInfoResponse } from "./HotelBookingInfoResponse"
55
62
  import { InsertCardOptionRequest } from "./InsertCardOptionRequest"
56
63
  import { InsertCardRequest } from "./InsertCardRequest"
57
64
  import { Issue } from "./Issue"
58
65
  import { LegacyBookingInfoRequest } from "./LegacyBookingInfoRequest"
59
66
  import { LoginRequest } from "./LoginRequest"
60
67
  import { LoginResponse } from "./LoginResponse"
68
+ import { MinimalBookingInfo } from "./MinimalBookingInfo"
61
69
  import { NonBeneficiaryTransferDestination } from "./NonBeneficiaryTransferDestination"
62
70
  import { OrganisationBalanceLimitResponse } from "./OrganisationBalanceLimitResponse"
63
71
  import { OrganisationConfig } from "./OrganisationConfig"
@@ -109,6 +117,10 @@ export {
109
117
  AccountCreationRequest,
110
118
  AccountResponse,
111
119
  AccountSearchRequest,
120
+ AccountStatementRequest,
121
+ AccountStatementResponse,
122
+ AccountStatementResponseItem,
123
+ AccountStatementTransactionType,
112
124
  AddressInfo,
113
125
  AgentBookingInfo,
114
126
  AmendCardRequest,
@@ -118,9 +130,11 @@ export {
118
130
  BookingInfo,
119
131
  BookingInfoRequest,
120
132
  BookingInfoResponse,
133
+ BookingInfoType,
121
134
  CardAmendmentScheduledTaskRequest,
122
135
  CardAmendmentScheduledTaskResponse,
123
136
  CardDeliveryRequest,
137
+ CardDeliveryResponse,
124
138
  CardFundingAccountResponse,
125
139
  CardOptionSearch,
126
140
  CardResponse,
@@ -160,12 +174,14 @@ export {
160
174
  FundingLimitRequest,
161
175
  FundingLimitResponse,
162
176
  HotelBookingInfoRequest,
177
+ HotelBookingInfoResponse,
163
178
  InsertCardOptionRequest,
164
179
  InsertCardRequest,
165
180
  Issue,
166
181
  LegacyBookingInfoRequest,
167
182
  LoginRequest,
168
183
  LoginResponse,
184
+ MinimalBookingInfo,
169
185
  NonBeneficiaryTransferDestination,
170
186
  OrganisationBalanceLimitResponse,
171
187
  OrganisationConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pax2pay/client",
3
- "version": "0.0.73",
3
+ "version": "0.0.76",
4
4
  "description": "Client library for the Pax2Pay API",
5
5
  "author": "Pax2Pay Ltd.",
6
6
  "license": "MIT",
@@ -64,12 +64,12 @@
64
64
  "babel-core": "^6.26.3",
65
65
  "babel-jest": "^27.2.4",
66
66
  "dotenv": "^10.0.0",
67
- "eslint": "8.1.0",
68
- "eslint-plugin-prettierx": "github:nilssonemma/eslint-plugin-prettierx#master",
67
+ "eslint": "^8.11.0",
68
+ "eslint-plugin-prettierx": "github:utily/eslint-plugin-prettierx#utily-20220323",
69
69
  "eslint-plugin-simple-import-sort": "^7.0.0",
70
70
  "jest": "^27.3.1",
71
71
  "openapi-to-ts": "^1.1.0",
72
- "prettierx": "github:simonmika/prettierx#newline-before-clause",
72
+ "prettierx": "github:utily/prettierx#utily-20220323",
73
73
  "rimraf": "^3.0.2",
74
74
  "ts-jest": "^27.0.7",
75
75
  "typescript": "^4.4.4",