@pax2pay/client 0.0.60 → 0.0.65
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.
- package/.github/workflows/build.yml +3 -6
- package/.github/workflows/bump.yml +31 -0
- package/.github/workflows/publish.yml +7 -18
- package/Client/Card/index.ts +2 -2
- package/dist/Client/Card/index.d.ts +2 -2
- package/dist/Client/Card/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/CardAmendmentScheduledTaskResponse.d.ts +10 -0
- package/dist/model/CardAmendmentScheduledTaskResponse.js +12 -0
- package/dist/model/CardAmendmentScheduledTaskResponse.js.map +1 -0
- package/dist/model/CardResponseV2.d.ts +6 -3
- package/dist/model/CardResponseV2.js +9 -3
- package/dist/model/CardResponseV2.js.map +1 -1
- package/dist/model/CardScheduleResponseItem.d.ts +6 -0
- package/dist/model/CardScheduleResponseItem.js +11 -0
- package/dist/model/CardScheduleResponseItem.js.map +1 -0
- package/dist/model/CardScheduleTaskStatus.d.ts +6 -0
- package/dist/model/CardScheduleTaskStatus.js +19 -0
- package/dist/model/CardScheduleTaskStatus.js.map +1 -0
- package/dist/model/CardScheduleTaskType.d.ts +6 -1
- package/dist/model/CardScheduleTaskType.js +8 -1
- package/dist/model/CardScheduleTaskType.js.map +1 -1
- package/dist/model/CardStateChangeDesiredState.d.ts +6 -1
- package/dist/model/CardStateChangeDesiredState.js +8 -1
- package/dist/model/CardStateChangeDesiredState.js.map +1 -1
- package/dist/model/CardStateChangeScheduledTaskResponse.d.ts +9 -0
- package/dist/model/CardStateChangeScheduledTaskResponse.js +11 -0
- package/dist/model/CardStateChangeScheduledTaskResponse.js.map +1 -0
- package/dist/model/FundingAccountResponseV2.d.ts +7 -0
- package/dist/model/FundingAccountResponseV2.js +8 -0
- package/dist/model/FundingAccountResponseV2.js.map +1 -0
- package/dist/model/ScheduledTaskResponse.d.ts +7 -0
- package/dist/model/ScheduledTaskResponse.js +2 -0
- package/dist/model/ScheduledTaskResponse.js.map +1 -0
- package/dist/model/YearMonth.d.ts +7 -0
- package/dist/model/YearMonth.js +20 -0
- package/dist/model/YearMonth.js.map +1 -0
- package/dist/model/index.d.ts +7 -1
- package/dist/model/index.js +9 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +13 -1
- package/model/CardAmendmentScheduledTaskResponse.ts +20 -0
- package/model/CardResponseV2.ts +12 -5
- package/model/CardScheduleResponseItem.ts +12 -0
- package/model/CardScheduleTaskStatus.ts +18 -0
- package/model/CardScheduleTaskType.ts +8 -1
- package/model/CardStateChangeDesiredState.ts +8 -1
- package/model/CardStateChangeScheduledTaskResponse.ts +17 -0
- package/model/FundingAccountResponseV2.ts +10 -0
- package/model/ScheduledTaskResponse.ts +8 -0
- package/model/YearMonth.ts +16 -0
- package/model/index.ts +13 -1
- package/package.json +1 -1
|
@@ -17,9 +17,10 @@ jobs:
|
|
|
17
17
|
!~/cache/exclude
|
|
18
18
|
**/node_modules
|
|
19
19
|
key: ${{ runner.os }}-cache
|
|
20
|
-
-
|
|
20
|
+
- name: "Setup Node"
|
|
21
|
+
uses: "actions/setup-node@v2"
|
|
21
22
|
with:
|
|
22
|
-
node-version:
|
|
23
|
+
node-version: 16
|
|
23
24
|
- name: Update NPM
|
|
24
25
|
run: npm install -g npm
|
|
25
26
|
- name: Install Dependencies
|
|
@@ -29,8 +30,4 @@ jobs:
|
|
|
29
30
|
- name: Lint
|
|
30
31
|
run: npm run lint
|
|
31
32
|
- name: Test
|
|
32
|
-
env:
|
|
33
|
-
url: ${{ secrets.URL }}
|
|
34
|
-
username: ${{ secrets.USERNAME }}
|
|
35
|
-
password: ${{ secrets.PASSWORD }}
|
|
36
33
|
run: npm run test
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
name: "Bump"
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- "master"
|
|
7
|
+
jobs:
|
|
8
|
+
bump-version:
|
|
9
|
+
name: "Deploy from master"
|
|
10
|
+
timeout-minutes: 60
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
if: "!contains(github.event.head_commit.message, 'ci: version bump to ')"
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- name: "Checkout source code"
|
|
16
|
+
uses: "actions/checkout@v2"
|
|
17
|
+
with:
|
|
18
|
+
token: ${{ secrets.ADMIN_TOKEN }}
|
|
19
|
+
- name: "Setup Node"
|
|
20
|
+
uses: "actions/setup-node@v2"
|
|
21
|
+
with:
|
|
22
|
+
node-version: 16
|
|
23
|
+
- name: Update NPM
|
|
24
|
+
run: npm install -g npm
|
|
25
|
+
- name: "Version Bump"
|
|
26
|
+
id: version-bump
|
|
27
|
+
uses: "phips28/gh-action-bump-version@master"
|
|
28
|
+
with:
|
|
29
|
+
tag-prefix: 'release-'
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
|
|
@@ -1,32 +1,21 @@
|
|
|
1
|
-
name: "
|
|
1
|
+
name: "Publish"
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
|
|
6
|
-
- "
|
|
5
|
+
tags:
|
|
6
|
+
- "release-*"
|
|
7
7
|
jobs:
|
|
8
|
-
|
|
9
|
-
name: "
|
|
8
|
+
publish:
|
|
9
|
+
name: "Publish from master"
|
|
10
|
+
timeout-minutes: 60
|
|
10
11
|
runs-on: ubuntu-latest
|
|
11
|
-
if: "!contains(github.event.head_commit.message, 'ci: version bump to ')"
|
|
12
|
-
|
|
13
12
|
steps:
|
|
14
13
|
- name: "Checkout source code"
|
|
15
14
|
uses: "actions/checkout@v2"
|
|
16
|
-
with:
|
|
17
|
-
token: ${{ secrets.ADMIN_TOKEN }}
|
|
18
15
|
- name: "Setup Node"
|
|
19
16
|
uses: "actions/setup-node@v2"
|
|
20
17
|
with:
|
|
21
|
-
node-version:
|
|
22
|
-
|
|
23
|
-
- name: "Version Bump"
|
|
24
|
-
id: version-bump
|
|
25
|
-
uses: "phips28/gh-action-bump-version@master"
|
|
26
|
-
with:
|
|
27
|
-
tag-prefix: ''
|
|
28
|
-
env:
|
|
29
|
-
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
|
|
18
|
+
node-version: 16
|
|
30
19
|
- name: Update NPM
|
|
31
20
|
run: npm install -g npm
|
|
32
21
|
- name: Install
|
package/Client/Card/index.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as model from "../../model"
|
|
|
2
2
|
import { Connection } from "../Connection"
|
|
3
3
|
import { Resource } from "../Resource"
|
|
4
4
|
|
|
5
|
-
export class Card extends Resource<model.CardResponse, model.CreateCardRequest> {
|
|
6
|
-
constructor(connection: Connection, folder: string, backend: model.CardResponse) {
|
|
5
|
+
export class Card extends Resource<model.CardResponse | model.CardResponseV2, model.CreateCardRequest> {
|
|
6
|
+
constructor(connection: Connection, folder: string, backend: model.CardResponse | model.CardResponseV2) {
|
|
7
7
|
super(connection, folder, backend)
|
|
8
8
|
}
|
|
9
9
|
amend(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as model from "../../model";
|
|
2
2
|
import { Connection } from "../Connection";
|
|
3
3
|
import { Resource } from "../Resource";
|
|
4
|
-
export declare class Card extends Resource<model.CardResponse, model.CreateCardRequest> {
|
|
5
|
-
constructor(connection: Connection, folder: string, backend: model.CardResponse);
|
|
4
|
+
export declare class Card extends Resource<model.CardResponse | model.CardResponseV2, model.CreateCardRequest> {
|
|
5
|
+
constructor(connection: Connection, folder: string, backend: model.CardResponse | model.CardResponseV2);
|
|
6
6
|
amend(request: model.AmendCardRequest): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
7
7
|
status: 400 | 403 | 404 | 500 | 503;
|
|
8
8
|
})>;
|
|
@@ -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,
|
|
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"}
|
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, CardDeliveryRequest, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, 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 } from "./model";
|
|
3
|
-
export { Client, AccountCreationRequest, AccountResponse, AccountSearchRequest, AddressInfo, AgentBookingInfo, AmendCardRequest, BeneficiaryRequest, BeneficiaryResponse, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, CardAmendmentScheduledTaskRequest, CardDeliveryRequest, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FundingAccountInboundTransferNotificationConfig, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, InsertCardOptionRequest, InsertCardRequest, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, 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,
|
|
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, };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { CardFundingAccountResponse, CardResponseV2, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, } from "./model";
|
|
3
|
-
export { Client, CardFundingAccountResponse, CardResponseV2, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderResponse, UserResponse,
|
|
2
|
+
import { CardAmendmentScheduledTaskResponse, 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, 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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAcN,kCAAkC,EAElC,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,EAElC,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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ScheduledTaskResponse } from "./ScheduledTaskResponse";
|
|
2
|
+
export interface CardAmendmentScheduledTaskResponse extends ScheduledTaskResponse {
|
|
3
|
+
taskType: "CARD_AMENDMENT";
|
|
4
|
+
newBalance?: number;
|
|
5
|
+
balanceDifferential?: number;
|
|
6
|
+
remainingBalance?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace CardAmendmentScheduledTaskResponse {
|
|
9
|
+
function is(value: CardAmendmentScheduledTaskResponse | any): value is CardAmendmentScheduledTaskResponse;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export var CardAmendmentScheduledTaskResponse;
|
|
2
|
+
(function (CardAmendmentScheduledTaskResponse) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
value.taskType == "CARD_AMENDMENT" &&
|
|
6
|
+
(value.newBalance == undefined || typeof value.newBalance == "number") &&
|
|
7
|
+
(value.balanceDifferential == undefined || typeof value.balanceDifferential == "number") &&
|
|
8
|
+
(value.remainingBalance == undefined || typeof value.remainingBalance == "number"));
|
|
9
|
+
}
|
|
10
|
+
CardAmendmentScheduledTaskResponse.is = is;
|
|
11
|
+
})(CardAmendmentScheduledTaskResponse || (CardAmendmentScheduledTaskResponse = {}));
|
|
12
|
+
//# sourceMappingURL=CardAmendmentScheduledTaskResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardAmendmentScheduledTaskResponse.js","sourceRoot":"../","sources":["model/CardAmendmentScheduledTaskResponse.ts"],"names":[],"mappings":"AASA,MAAM,KAAW,kCAAkC,CAUlD;AAVD,WAAiB,kCAAkC;IAClD,SAAgB,EAAE,CAAC,KAA+C;QACjE,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,QAAQ,IAAI,gBAAgB;YAClC,CAAC,KAAK,CAAC,UAAU,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,CAAC;YACtE,CAAC,KAAK,CAAC,mBAAmB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,mBAAmB,IAAI,QAAQ,CAAC;YACxF,CAAC,KAAK,CAAC,gBAAgB,IAAI,SAAS,IAAI,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ,CAAC,CAClF,CAAA;IACF,CAAC;IARe,qCAAE,KAQjB,CAAA;AACF,CAAC,EAVgB,kCAAkC,KAAlC,kCAAkC,QAUlD"}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
2
2
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
3
3
|
import { CardUsage } from "./CardUsage";
|
|
4
|
+
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
4
5
|
import { ProviderCode } from "./ProviderCode";
|
|
6
|
+
import { YearMonth } from "./YearMonth";
|
|
5
7
|
export interface CardResponseV2 {
|
|
6
8
|
cardType: CardTypeSpecification | string;
|
|
7
9
|
cardNumber: string;
|
|
8
10
|
cvv: string;
|
|
9
|
-
expiryDate:
|
|
11
|
+
expiryDate: YearMonth;
|
|
10
12
|
nameOnCard: string;
|
|
11
13
|
balance: number;
|
|
12
14
|
issueDate: string;
|
|
13
15
|
providerCode: ProviderCode;
|
|
14
16
|
providerCardId: string;
|
|
15
17
|
usage: CardUsage;
|
|
16
|
-
fundingAccount:
|
|
18
|
+
fundingAccount: FundingAccountResponseV2;
|
|
19
|
+
schedule: CardScheduleResponseItem[];
|
|
17
20
|
createdBy: string;
|
|
18
21
|
}
|
|
19
22
|
export declare namespace CardResponseV2 {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
2
2
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
3
3
|
import { CardUsage } from "./CardUsage";
|
|
4
|
+
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
4
5
|
import { ProviderCode } from "./ProviderCode";
|
|
6
|
+
import { YearMonth } from "./YearMonth";
|
|
5
7
|
export var CardResponseV2;
|
|
6
8
|
(function (CardResponseV2) {
|
|
7
9
|
function is(value) {
|
|
@@ -9,14 +11,18 @@ export var CardResponseV2;
|
|
|
9
11
|
(typeof value.cardType == "string" || CardTypeSpecification.is(value.cardType)) &&
|
|
10
12
|
typeof value.cardNumber == "string" &&
|
|
11
13
|
typeof value.cvv == "string" &&
|
|
12
|
-
|
|
14
|
+
YearMonth.is(value.expiryDate) &&
|
|
13
15
|
typeof value.nameOnCard == "string" &&
|
|
14
16
|
typeof value.balance == "number" &&
|
|
15
17
|
typeof value.issueDate == "string" &&
|
|
16
18
|
ProviderCode.is(value.providerCode) &&
|
|
17
19
|
typeof value.providerCardId == "string" &&
|
|
18
20
|
CardUsage.is(value.usage) &&
|
|
19
|
-
|
|
21
|
+
FundingAccountResponseV2.is(value.fundingAccount) &&
|
|
22
|
+
Array.isArray(value.schedule) &&
|
|
23
|
+
value.schedule.every((a) => {
|
|
24
|
+
return CardScheduleResponseItem.is(a);
|
|
25
|
+
}) &&
|
|
20
26
|
typeof value.createdBy == "string");
|
|
21
27
|
}
|
|
22
28
|
CardResponseV2.is = is;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAkBvC,MAAM,KAAW,cAAc,CAsB9B;AAtBD,WAAiB,cAAc;IAC9B,SAAgB,EAAE,CAAC,KAA2B;QAC7C,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,IAAI,qBAAqB,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC/E,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,OAAO,KAAK,CAAC,GAAG,IAAI,QAAQ;YAC5B,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC9B,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ;YACnC,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ;YAChC,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ;YAClC,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC;YACnC,OAAO,KAAK,CAAC,cAAc,IAAI,QAAQ;YACvC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;YACzB,wBAAwB,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC;YACjD,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC;YAC7B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE;gBAC/B,OAAO,wBAAwB,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;YACtC,CAAC,CAAC;YACF,OAAO,KAAK,CAAC,SAAS,IAAI,QAAQ,CAClC,CAAA;IACF,CAAC;IApBe,iBAAE,KAoBjB,CAAA;AACF,CAAC,EAtBgB,cAAc,KAAd,cAAc,QAsB9B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
2
|
+
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse";
|
|
3
|
+
export declare type CardScheduleResponseItem = CardAmendmentScheduledTaskResponse | CardStateChangeScheduledTaskResponse;
|
|
4
|
+
export declare namespace CardScheduleResponseItem {
|
|
5
|
+
function is(value: CardScheduleResponseItem | any): value is CardScheduleResponseItem;
|
|
6
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
2
|
+
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse";
|
|
3
|
+
export var CardScheduleResponseItem;
|
|
4
|
+
(function (CardScheduleResponseItem) {
|
|
5
|
+
function is(value) {
|
|
6
|
+
return (typeof value == "object" &&
|
|
7
|
+
(CardAmendmentScheduledTaskResponse.is(value) || CardStateChangeScheduledTaskResponse.is(value)));
|
|
8
|
+
}
|
|
9
|
+
CardScheduleResponseItem.is = is;
|
|
10
|
+
})(CardScheduleResponseItem || (CardScheduleResponseItem = {}));
|
|
11
|
+
//# sourceMappingURL=CardScheduleResponseItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardScheduleResponseItem.js","sourceRoot":"../","sources":["model/CardScheduleResponseItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AACzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAA;AAG7F,MAAM,KAAW,wBAAwB,CAOxC;AAPD,WAAiB,wBAAwB;IACxC,SAAgB,EAAE,CAAC,KAAqC;QACvD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,CAAC,kCAAkC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,oCAAoC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAChG,CAAA;IACF,CAAC;IALe,2BAAE,KAKjB,CAAA;AACF,CAAC,EAPgB,wBAAwB,KAAxB,wBAAwB,QAOxC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const cardScheduleTaskStatus = [
|
|
2
|
+
"TODO",
|
|
3
|
+
"CANCELLED",
|
|
4
|
+
"CANCELLED_EXCEPTIONALLY",
|
|
5
|
+
"SUCCESSFUL",
|
|
6
|
+
"FAILED",
|
|
7
|
+
"FAILED_EXCEPTIONALLY",
|
|
8
|
+
"HALTED",
|
|
9
|
+
"PENDING",
|
|
10
|
+
"PENDING_DECLINED",
|
|
11
|
+
];
|
|
12
|
+
export var CardScheduleTaskStatus;
|
|
13
|
+
(function (CardScheduleTaskStatus) {
|
|
14
|
+
function is(value) {
|
|
15
|
+
return typeof value == "string" && cardScheduleTaskStatus.includes(value);
|
|
16
|
+
}
|
|
17
|
+
CardScheduleTaskStatus.is = is;
|
|
18
|
+
})(CardScheduleTaskStatus || (CardScheduleTaskStatus = {}));
|
|
19
|
+
//# sourceMappingURL=CardScheduleTaskStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardScheduleTaskStatus.js","sourceRoot":"../","sources":["model/CardScheduleTaskStatus.ts"],"names":[],"mappings":"AAAA,MAAM,sBAAsB,GAAG;IAC9B,MAAM;IACN,WAAW;IACX,yBAAyB;IACzB,YAAY;IACZ,QAAQ;IACR,sBAAsB;IACtB,QAAQ;IACR,SAAS;IACT,kBAAkB;CAClB,CAAA;AAGD,MAAM,KAAW,sBAAsB,CAItC;AAJD,WAAiB,sBAAsB;IACtC,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,sBAAsB,CAAC,QAAQ,CAAC,KAA+B,CAAC,CAAA;IACpG,CAAC;IAFe,yBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,sBAAsB,KAAtB,sBAAsB,QAItC"}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
declare const cardScheduleTaskType: readonly ["CARD_AMENDMENT", "CARD_STATE_CHANGE"];
|
|
2
|
+
export declare type CardScheduleTaskType = typeof cardScheduleTaskType[number];
|
|
3
|
+
export declare namespace CardScheduleTaskType {
|
|
4
|
+
function is(value: unknown): value is CardScheduleTaskType;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
const cardScheduleTaskType = ["CARD_AMENDMENT", "CARD_STATE_CHANGE"];
|
|
2
|
+
export var CardScheduleTaskType;
|
|
3
|
+
(function (CardScheduleTaskType) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return typeof value == "string" && cardScheduleTaskType.includes(value);
|
|
6
|
+
}
|
|
7
|
+
CardScheduleTaskType.is = is;
|
|
8
|
+
})(CardScheduleTaskType || (CardScheduleTaskType = {}));
|
|
2
9
|
//# sourceMappingURL=CardScheduleTaskType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardScheduleTaskType.js","sourceRoot":"../","sources":["model/CardScheduleTaskType.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"CardScheduleTaskType.js","sourceRoot":"../","sources":["model/CardScheduleTaskType.ts"],"names":[],"mappings":"AAAA,MAAM,oBAAoB,GAAG,CAAC,gBAAgB,EAAE,mBAAmB,CAAU,CAAA;AAG7E,MAAM,KAAW,oBAAoB,CAIpC;AAJD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAA6B,CAAC,CAAA;IAChG,CAAC;IAFe,uBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,oBAAoB,KAApB,oBAAoB,QAIpC"}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
declare const cardStateChangeDesiredState: readonly ["CANCEL", "FREEZE", "THAW"];
|
|
2
|
+
export declare type CardStateChangeDesiredState = typeof cardStateChangeDesiredState[number];
|
|
3
|
+
export declare namespace CardStateChangeDesiredState {
|
|
4
|
+
function is(value: unknown): value is CardStateChangeDesiredState;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
const cardStateChangeDesiredState = ["CANCEL", "FREEZE", "THAW"];
|
|
2
|
+
export var CardStateChangeDesiredState;
|
|
3
|
+
(function (CardStateChangeDesiredState) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return typeof value == "string" && cardStateChangeDesiredState.includes(value);
|
|
6
|
+
}
|
|
7
|
+
CardStateChangeDesiredState.is = is;
|
|
8
|
+
})(CardStateChangeDesiredState || (CardStateChangeDesiredState = {}));
|
|
2
9
|
//# sourceMappingURL=CardStateChangeDesiredState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardStateChangeDesiredState.js","sourceRoot":"../","sources":["model/CardStateChangeDesiredState.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"CardStateChangeDesiredState.js","sourceRoot":"../","sources":["model/CardStateChangeDesiredState.ts"],"names":[],"mappings":"AAAA,MAAM,2BAA2B,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAA;AAGzE,MAAM,KAAW,2BAA2B,CAI3C;AAJD,WAAiB,2BAA2B;IAC3C,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,2BAA2B,CAAC,QAAQ,CAAC,KAAoC,CAAC,CAAA;IAC9G,CAAC;IAFe,8BAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,2BAA2B,KAA3B,2BAA2B,QAI3C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState";
|
|
2
|
+
import { ScheduledTaskResponse } from "./ScheduledTaskResponse";
|
|
3
|
+
export interface CardStateChangeScheduledTaskResponse extends ScheduledTaskResponse {
|
|
4
|
+
taskType: "CARD_STATE_CHANGE";
|
|
5
|
+
desiredState: CardStateChangeDesiredState;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace CardStateChangeScheduledTaskResponse {
|
|
8
|
+
function is(value: CardStateChangeScheduledTaskResponse | any): value is CardStateChangeScheduledTaskResponse;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState";
|
|
2
|
+
export var CardStateChangeScheduledTaskResponse;
|
|
3
|
+
(function (CardStateChangeScheduledTaskResponse) {
|
|
4
|
+
function is(value) {
|
|
5
|
+
return (typeof value == "object" &&
|
|
6
|
+
value.taskType == "CARD_STATE_CHANGE" &&
|
|
7
|
+
CardStateChangeDesiredState.is(value.desiredState));
|
|
8
|
+
}
|
|
9
|
+
CardStateChangeScheduledTaskResponse.is = is;
|
|
10
|
+
})(CardStateChangeScheduledTaskResponse || (CardStateChangeScheduledTaskResponse = {}));
|
|
11
|
+
//# sourceMappingURL=CardStateChangeScheduledTaskResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardStateChangeScheduledTaskResponse.js","sourceRoot":"../","sources":["model/CardStateChangeScheduledTaskResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAQ3E,MAAM,KAAW,oCAAoC,CAQpD;AARD,WAAiB,oCAAoC;IACpD,SAAgB,EAAE,CAAC,KAAiD;QACnE,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,QAAQ,IAAI,mBAAmB;YACrC,2BAA2B,CAAC,EAAE,CAAC,KAAK,CAAC,YAAY,CAAC,CAClD,CAAA;IACF,CAAC;IANe,uCAAE,KAMjB,CAAA;AACF,CAAC,EARgB,oCAAoC,KAApC,oCAAoC,QAQpD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var FundingAccountResponseV2;
|
|
2
|
+
(function (FundingAccountResponseV2) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return typeof value == "object" && typeof value.providerAccountId == "string" && typeof value.balance == "number";
|
|
5
|
+
}
|
|
6
|
+
FundingAccountResponseV2.is = is;
|
|
7
|
+
})(FundingAccountResponseV2 || (FundingAccountResponseV2 = {}));
|
|
8
|
+
//# sourceMappingURL=FundingAccountResponseV2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FundingAccountResponseV2.js","sourceRoot":"../","sources":["model/FundingAccountResponseV2.ts"],"names":[],"mappings":"AAKA,MAAM,KAAW,wBAAwB,CAIxC;AAJD,WAAiB,wBAAwB;IACxC,SAAgB,EAAE,CAAC,KAAqC;QACvD,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,iBAAiB,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,OAAO,IAAI,QAAQ,CAAA;IAClH,CAAC;IAFe,2BAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,wBAAwB,KAAxB,wBAAwB,QAIxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduledTaskResponse.js","sourceRoot":"../","sources":["model/ScheduledTaskResponse.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export var YearMonth;
|
|
2
|
+
(function (YearMonth) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return typeof value == "string" && value.length == 7 && /^\d{4}-((0[1-9])|(1[0-2]))$/.test(value);
|
|
5
|
+
}
|
|
6
|
+
YearMonth.is = is;
|
|
7
|
+
function parse(value) {
|
|
8
|
+
return new Date(value + "28");
|
|
9
|
+
}
|
|
10
|
+
YearMonth.parse = parse;
|
|
11
|
+
function create(value) {
|
|
12
|
+
return value.toISOString().substring(0, 7);
|
|
13
|
+
}
|
|
14
|
+
YearMonth.create = create;
|
|
15
|
+
function now() {
|
|
16
|
+
return create(new Date());
|
|
17
|
+
}
|
|
18
|
+
YearMonth.now = now;
|
|
19
|
+
})(YearMonth || (YearMonth = {}));
|
|
20
|
+
//# sourceMappingURL=YearMonth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YearMonth.js","sourceRoot":"../","sources":["model/YearMonth.ts"],"names":[],"mappings":"AAEA,MAAM,KAAW,SAAS,CAazB;AAbD,WAAiB,SAAS;IACzB,SAAgB,EAAE,CAAC,KAAsB;QACxC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,IAAI,6BAA6B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAClG,CAAC;IAFe,YAAE,KAEjB,CAAA;IACD,SAAgB,KAAK,CAAC,KAAgB;QACrC,OAAO,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,CAAA;IAC9B,CAAC;IAFe,eAAK,QAEpB,CAAA;IACD,SAAgB,MAAM,CAAC,KAAW;QACjC,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IAC3C,CAAC;IAFe,gBAAM,SAErB,CAAA;IACD,SAAgB,GAAG;QAClB,OAAO,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAA;IAC1B,CAAC;IAFe,aAAG,MAElB,CAAA;AACF,CAAC,EAbgB,SAAS,KAAT,SAAS,QAazB"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -11,15 +11,19 @@ import { BookingInfo } from "./BookingInfo";
|
|
|
11
11
|
import { BookingInfoRequest } from "./BookingInfoRequest";
|
|
12
12
|
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
13
13
|
import { CardAmendmentScheduledTaskRequest } from "./CardAmendmentScheduledTaskRequest";
|
|
14
|
+
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
14
15
|
import { CardDeliveryRequest } from "./CardDeliveryRequest";
|
|
15
16
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
|
|
16
17
|
import { CardOptionSearch } from "./CardOptionSearch";
|
|
17
18
|
import { CardResponse } from "./CardResponse";
|
|
18
19
|
import { CardResponseV2 } from "./CardResponseV2";
|
|
20
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
21
|
+
import { CardScheduleTaskStatus } from "./CardScheduleTaskStatus";
|
|
19
22
|
import { CardScheduleTaskType } from "./CardScheduleTaskType";
|
|
20
23
|
import { CardSearch } from "./CardSearch";
|
|
21
24
|
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState";
|
|
22
25
|
import { CardStateChangeScheduledTaskRequest } from "./CardStateChangeScheduledTaskRequest";
|
|
26
|
+
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse";
|
|
23
27
|
import { CardTypeResponse } from "./CardTypeResponse";
|
|
24
28
|
import { CardTypesConfig } from "./CardTypesConfig";
|
|
25
29
|
import { CardTypeSearchRequest } from "./CardTypeSearchRequest";
|
|
@@ -42,6 +46,7 @@ import { FiveFieldsBookingInfoRequest } from "./FiveFieldsBookingInfoRequest";
|
|
|
42
46
|
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse";
|
|
43
47
|
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest";
|
|
44
48
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig";
|
|
49
|
+
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
45
50
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest";
|
|
46
51
|
import { FundingAccountSearchResponse } from "./FundingAccountSearchResponse";
|
|
47
52
|
import { FundingLimitRequest } from "./FundingLimitRequest";
|
|
@@ -98,4 +103,5 @@ import { UserRequest } from "./UserRequest";
|
|
|
98
103
|
import { UserResponse } from "./UserResponse";
|
|
99
104
|
import { UserRoleResponse } from "./UserRoleResponse";
|
|
100
105
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
101
|
-
|
|
106
|
+
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, };
|
package/dist/model/index.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
+
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse";
|
|
1
2
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
|
|
2
3
|
import { CardResponseV2 } from "./CardResponseV2";
|
|
4
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
5
|
+
import { CardScheduleTaskStatus } from "./CardScheduleTaskStatus";
|
|
6
|
+
import { CardScheduleTaskType } from "./CardScheduleTaskType";
|
|
7
|
+
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState";
|
|
8
|
+
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse";
|
|
3
9
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
4
10
|
import { CardTypeSpecificationFlag } from "./CardTypeSpecificationFlag";
|
|
5
11
|
import { ErrorMessageDto } from "./ErrorMessageDto";
|
|
6
12
|
import { ErrorResponse } from "./ErrorResponse";
|
|
13
|
+
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2";
|
|
7
14
|
import { Issue } from "./Issue";
|
|
8
15
|
import { LoginResponse } from "./LoginResponse";
|
|
9
16
|
import { OrganisationBalanceLimitResponse } from "./OrganisationBalanceLimitResponse";
|
|
@@ -11,5 +18,6 @@ import { OrganisationResponse } from "./OrganisationResponse";
|
|
|
11
18
|
import { ProviderCode } from "./ProviderCode";
|
|
12
19
|
import { ProviderResponse } from "./ProviderResponse";
|
|
13
20
|
import { UserResponse } from "./UserResponse";
|
|
14
|
-
|
|
21
|
+
import { YearMonth } from "./YearMonth";
|
|
22
|
+
export { CardAmendmentScheduledTaskResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FundingAccountResponseV2, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, ProviderCode, ProviderResponse, UserResponse, YearMonth, };
|
|
15
23
|
//# sourceMappingURL=index.js.map
|
package/dist/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["model/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAA;AAEzF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AAGzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAE3E,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAA;AAI7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAYvE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAK/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AAQrE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAG/B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,EAAE,gCAAgC,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,EAcN,kCAAkC,EAElC,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"}
|
package/index.ts
CHANGED
|
@@ -13,15 +13,19 @@ import {
|
|
|
13
13
|
BookingInfoRequest,
|
|
14
14
|
BookingInfoResponse,
|
|
15
15
|
CardAmendmentScheduledTaskRequest,
|
|
16
|
+
CardAmendmentScheduledTaskResponse,
|
|
16
17
|
CardDeliveryRequest,
|
|
17
18
|
CardFundingAccountResponse,
|
|
18
19
|
CardOptionSearch,
|
|
19
20
|
CardResponse,
|
|
20
21
|
CardResponseV2,
|
|
22
|
+
CardScheduleResponseItem,
|
|
23
|
+
CardScheduleTaskStatus,
|
|
21
24
|
CardScheduleTaskType,
|
|
22
25
|
CardSearch,
|
|
23
26
|
CardStateChangeDesiredState,
|
|
24
27
|
CardStateChangeScheduledTaskRequest,
|
|
28
|
+
CardStateChangeScheduledTaskResponse,
|
|
25
29
|
CardTypeResponse,
|
|
26
30
|
CardTypesConfig,
|
|
27
31
|
CardTypeSearchRequest,
|
|
@@ -44,6 +48,7 @@ import {
|
|
|
44
48
|
FiveFieldsBookingInfoResponse,
|
|
45
49
|
FlightBookingInfoRequest,
|
|
46
50
|
FundingAccountInboundTransferNotificationConfig,
|
|
51
|
+
FundingAccountResponseV2,
|
|
47
52
|
FundingAccountSearchRequest,
|
|
48
53
|
FundingAccountSearchResponse,
|
|
49
54
|
FundingLimitRequest,
|
|
@@ -100,6 +105,7 @@ import {
|
|
|
100
105
|
UserResponse,
|
|
101
106
|
UserRoleResponse,
|
|
102
107
|
UserSearchRequest,
|
|
108
|
+
YearMonth,
|
|
103
109
|
} from "./model"
|
|
104
110
|
|
|
105
111
|
export {
|
|
@@ -117,15 +123,19 @@ export {
|
|
|
117
123
|
BookingInfoRequest,
|
|
118
124
|
BookingInfoResponse,
|
|
119
125
|
CardAmendmentScheduledTaskRequest,
|
|
126
|
+
CardAmendmentScheduledTaskResponse,
|
|
120
127
|
CardDeliveryRequest,
|
|
121
128
|
CardFundingAccountResponse,
|
|
122
129
|
CardOptionSearch,
|
|
123
130
|
CardResponse,
|
|
124
131
|
CardResponseV2,
|
|
132
|
+
CardScheduleResponseItem,
|
|
133
|
+
CardScheduleTaskStatus,
|
|
125
134
|
CardScheduleTaskType,
|
|
126
135
|
CardSearch,
|
|
127
136
|
CardStateChangeDesiredState,
|
|
128
137
|
CardStateChangeScheduledTaskRequest,
|
|
138
|
+
CardStateChangeScheduledTaskResponse,
|
|
129
139
|
CardTypeResponse,
|
|
130
140
|
CardTypesConfig,
|
|
131
141
|
CardTypeSearchRequest,
|
|
@@ -148,6 +158,7 @@ export {
|
|
|
148
158
|
FiveFieldsBookingInfoResponse,
|
|
149
159
|
FlightBookingInfoRequest,
|
|
150
160
|
FundingAccountInboundTransferNotificationConfig,
|
|
161
|
+
FundingAccountResponseV2,
|
|
151
162
|
FundingAccountSearchRequest,
|
|
152
163
|
FundingAccountSearchResponse,
|
|
153
164
|
FundingLimitRequest,
|
|
@@ -172,6 +183,7 @@ export {
|
|
|
172
183
|
PaymentMethodOptionResponse,
|
|
173
184
|
PaymentOption,
|
|
174
185
|
ProcessedStatement,
|
|
186
|
+
ProviderCode,
|
|
175
187
|
ProviderResponse,
|
|
176
188
|
References,
|
|
177
189
|
RelogWithNewSessionDetailsRequest,
|
|
@@ -203,5 +215,5 @@ export {
|
|
|
203
215
|
UserResponse,
|
|
204
216
|
UserRoleResponse,
|
|
205
217
|
UserSearchRequest,
|
|
206
|
-
|
|
218
|
+
YearMonth,
|
|
207
219
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScheduledTaskResponse } from "./ScheduledTaskResponse"
|
|
2
|
+
|
|
3
|
+
export interface CardAmendmentScheduledTaskResponse extends ScheduledTaskResponse {
|
|
4
|
+
taskType: "CARD_AMENDMENT"
|
|
5
|
+
newBalance?: number
|
|
6
|
+
balanceDifferential?: number
|
|
7
|
+
remainingBalance?: number
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export namespace CardAmendmentScheduledTaskResponse {
|
|
11
|
+
export function is(value: CardAmendmentScheduledTaskResponse | any): value is CardAmendmentScheduledTaskResponse {
|
|
12
|
+
return (
|
|
13
|
+
typeof value == "object" &&
|
|
14
|
+
value.taskType == "CARD_AMENDMENT" &&
|
|
15
|
+
(value.newBalance == undefined || typeof value.newBalance == "number") &&
|
|
16
|
+
(value.balanceDifferential == undefined || typeof value.balanceDifferential == "number") &&
|
|
17
|
+
(value.remainingBalance == undefined || typeof value.remainingBalance == "number")
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
}
|
package/model/CardResponseV2.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
|
|
2
2
|
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
3
3
|
import { CardUsage } from "./CardUsage"
|
|
4
|
+
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2"
|
|
4
5
|
import { ProviderCode } from "./ProviderCode"
|
|
6
|
+
import { YearMonth } from "./YearMonth"
|
|
5
7
|
|
|
6
8
|
export interface CardResponseV2 {
|
|
7
9
|
cardType: CardTypeSpecification | string
|
|
8
10
|
cardNumber: string
|
|
9
11
|
cvv: string
|
|
10
|
-
expiryDate:
|
|
12
|
+
expiryDate: YearMonth
|
|
11
13
|
nameOnCard: string
|
|
12
14
|
balance: number
|
|
13
15
|
issueDate: string
|
|
14
16
|
providerCode: ProviderCode
|
|
15
17
|
providerCardId: string
|
|
16
18
|
usage: CardUsage
|
|
17
|
-
fundingAccount:
|
|
19
|
+
fundingAccount: FundingAccountResponseV2
|
|
20
|
+
schedule: CardScheduleResponseItem[]
|
|
18
21
|
createdBy: string
|
|
19
22
|
}
|
|
20
23
|
|
|
@@ -25,14 +28,18 @@ export namespace CardResponseV2 {
|
|
|
25
28
|
(typeof value.cardType == "string" || CardTypeSpecification.is(value.cardType)) &&
|
|
26
29
|
typeof value.cardNumber == "string" &&
|
|
27
30
|
typeof value.cvv == "string" &&
|
|
28
|
-
|
|
31
|
+
YearMonth.is(value.expiryDate) &&
|
|
29
32
|
typeof value.nameOnCard == "string" &&
|
|
30
33
|
typeof value.balance == "number" &&
|
|
31
34
|
typeof value.issueDate == "string" &&
|
|
32
35
|
ProviderCode.is(value.providerCode) &&
|
|
33
36
|
typeof value.providerCardId == "string" &&
|
|
34
37
|
CardUsage.is(value.usage) &&
|
|
35
|
-
|
|
38
|
+
FundingAccountResponseV2.is(value.fundingAccount) &&
|
|
39
|
+
Array.isArray(value.schedule) &&
|
|
40
|
+
value.schedule.every((a: any) => {
|
|
41
|
+
return CardScheduleResponseItem.is(a)
|
|
42
|
+
}) &&
|
|
36
43
|
typeof value.createdBy == "string"
|
|
37
44
|
)
|
|
38
45
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse"
|
|
2
|
+
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse"
|
|
3
|
+
|
|
4
|
+
export type CardScheduleResponseItem = CardAmendmentScheduledTaskResponse | CardStateChangeScheduledTaskResponse
|
|
5
|
+
export namespace CardScheduleResponseItem {
|
|
6
|
+
export function is(value: CardScheduleResponseItem | any): value is CardScheduleResponseItem {
|
|
7
|
+
return (
|
|
8
|
+
typeof value == "object" &&
|
|
9
|
+
(CardAmendmentScheduledTaskResponse.is(value) || CardStateChangeScheduledTaskResponse.is(value))
|
|
10
|
+
)
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const cardScheduleTaskStatus = [
|
|
2
|
+
"TODO",
|
|
3
|
+
"CANCELLED",
|
|
4
|
+
"CANCELLED_EXCEPTIONALLY",
|
|
5
|
+
"SUCCESSFUL",
|
|
6
|
+
"FAILED",
|
|
7
|
+
"FAILED_EXCEPTIONALLY",
|
|
8
|
+
"HALTED",
|
|
9
|
+
"PENDING",
|
|
10
|
+
"PENDING_DECLINED",
|
|
11
|
+
]
|
|
12
|
+
export type CardScheduleTaskStatus = typeof cardScheduleTaskStatus[number]
|
|
13
|
+
|
|
14
|
+
export namespace CardScheduleTaskStatus {
|
|
15
|
+
export function is(value: unknown): value is CardScheduleTaskStatus {
|
|
16
|
+
return typeof value == "string" && cardScheduleTaskStatus.includes(value as CardScheduleTaskStatus)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const cardScheduleTaskType = ["CARD_AMENDMENT", "CARD_STATE_CHANGE"] as const
|
|
2
|
+
export type CardScheduleTaskType = typeof cardScheduleTaskType[number]
|
|
3
|
+
|
|
4
|
+
export namespace CardScheduleTaskType {
|
|
5
|
+
export function is(value: unknown): value is CardScheduleTaskType {
|
|
6
|
+
return typeof value == "string" && cardScheduleTaskType.includes(value as CardScheduleTaskType)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
const cardStateChangeDesiredState = ["CANCEL", "FREEZE", "THAW"] as const
|
|
2
|
+
export type CardStateChangeDesiredState = typeof cardStateChangeDesiredState[number]
|
|
3
|
+
|
|
4
|
+
export namespace CardStateChangeDesiredState {
|
|
5
|
+
export function is(value: unknown): value is CardStateChangeDesiredState {
|
|
6
|
+
return typeof value == "string" && cardStateChangeDesiredState.includes(value as CardStateChangeDesiredState)
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState"
|
|
2
|
+
import { ScheduledTaskResponse } from "./ScheduledTaskResponse"
|
|
3
|
+
|
|
4
|
+
export interface CardStateChangeScheduledTaskResponse extends ScheduledTaskResponse {
|
|
5
|
+
taskType: "CARD_STATE_CHANGE"
|
|
6
|
+
desiredState: CardStateChangeDesiredState
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export namespace CardStateChangeScheduledTaskResponse {
|
|
10
|
+
export function is(value: CardStateChangeScheduledTaskResponse | any): value is CardStateChangeScheduledTaskResponse {
|
|
11
|
+
return (
|
|
12
|
+
typeof value == "object" &&
|
|
13
|
+
value.taskType == "CARD_STATE_CHANGE" &&
|
|
14
|
+
CardStateChangeDesiredState.is(value.desiredState)
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface FundingAccountResponseV2 {
|
|
2
|
+
providerAccountId: string
|
|
3
|
+
balance: number
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export namespace FundingAccountResponseV2 {
|
|
7
|
+
export function is(value: FundingAccountResponseV2 | any): value is FundingAccountResponseV2 {
|
|
8
|
+
return typeof value == "object" && typeof value.providerAccountId == "string" && typeof value.balance == "number"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type YearMonth = string
|
|
2
|
+
|
|
3
|
+
export namespace YearMonth {
|
|
4
|
+
export function is(value: any | YearMonth): value is YearMonth {
|
|
5
|
+
return typeof value == "string" && value.length == 7 && /^\d{4}-((0[1-9])|(1[0-2]))$/.test(value)
|
|
6
|
+
}
|
|
7
|
+
export function parse(value: YearMonth): Date {
|
|
8
|
+
return new Date(value + "28")
|
|
9
|
+
}
|
|
10
|
+
export function create(value: Date): YearMonth {
|
|
11
|
+
return value.toISOString().substring(0, 7)
|
|
12
|
+
}
|
|
13
|
+
export function now(): YearMonth {
|
|
14
|
+
return create(new Date())
|
|
15
|
+
}
|
|
16
|
+
}
|
package/model/index.ts
CHANGED
|
@@ -11,15 +11,19 @@ import { BookingInfo } from "./BookingInfo"
|
|
|
11
11
|
import { BookingInfoRequest } from "./BookingInfoRequest"
|
|
12
12
|
import { BookingInfoResponse } from "./BookingInfoResponse"
|
|
13
13
|
import { CardAmendmentScheduledTaskRequest } from "./CardAmendmentScheduledTaskRequest"
|
|
14
|
+
import { CardAmendmentScheduledTaskResponse } from "./CardAmendmentScheduledTaskResponse"
|
|
14
15
|
import { CardDeliveryRequest } from "./CardDeliveryRequest"
|
|
15
16
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse"
|
|
16
17
|
import { CardOptionSearch } from "./CardOptionSearch"
|
|
17
18
|
import { CardResponse } from "./CardResponse"
|
|
18
19
|
import { CardResponseV2 } from "./CardResponseV2"
|
|
20
|
+
import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
|
|
21
|
+
import { CardScheduleTaskStatus } from "./CardScheduleTaskStatus"
|
|
19
22
|
import { CardScheduleTaskType } from "./CardScheduleTaskType"
|
|
20
23
|
import { CardSearch } from "./CardSearch"
|
|
21
24
|
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState"
|
|
22
25
|
import { CardStateChangeScheduledTaskRequest } from "./CardStateChangeScheduledTaskRequest"
|
|
26
|
+
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse"
|
|
23
27
|
import { CardTypeResponse } from "./CardTypeResponse"
|
|
24
28
|
import { CardTypesConfig } from "./CardTypesConfig"
|
|
25
29
|
import { CardTypeSearchRequest } from "./CardTypeSearchRequest"
|
|
@@ -42,6 +46,7 @@ import { FiveFieldsBookingInfoRequest } from "./FiveFieldsBookingInfoRequest"
|
|
|
42
46
|
import { FiveFieldsBookingInfoResponse } from "./FiveFieldsBookingInfoResponse"
|
|
43
47
|
import { FlightBookingInfoRequest } from "./FlightBookingInfoRequest"
|
|
44
48
|
import { FundingAccountInboundTransferNotificationConfig } from "./FundingAccountInboundTransferNotificationConfig"
|
|
49
|
+
import { FundingAccountResponseV2 } from "./FundingAccountResponseV2"
|
|
45
50
|
import { FundingAccountSearchRequest } from "./FundingAccountSearchRequest"
|
|
46
51
|
import { FundingAccountSearchResponse } from "./FundingAccountSearchResponse"
|
|
47
52
|
import { FundingLimitRequest } from "./FundingLimitRequest"
|
|
@@ -98,6 +103,7 @@ import { UserRequest } from "./UserRequest"
|
|
|
98
103
|
import { UserResponse } from "./UserResponse"
|
|
99
104
|
import { UserRoleResponse } from "./UserRoleResponse"
|
|
100
105
|
import { UserSearchRequest } from "./UserSearchRequest"
|
|
106
|
+
import { YearMonth } from "./YearMonth"
|
|
101
107
|
|
|
102
108
|
export {
|
|
103
109
|
AccountCreationRequest,
|
|
@@ -113,15 +119,19 @@ export {
|
|
|
113
119
|
BookingInfoRequest,
|
|
114
120
|
BookingInfoResponse,
|
|
115
121
|
CardAmendmentScheduledTaskRequest,
|
|
122
|
+
CardAmendmentScheduledTaskResponse,
|
|
116
123
|
CardDeliveryRequest,
|
|
117
124
|
CardFundingAccountResponse,
|
|
118
125
|
CardOptionSearch,
|
|
119
126
|
CardResponse,
|
|
120
127
|
CardResponseV2,
|
|
128
|
+
CardScheduleResponseItem,
|
|
129
|
+
CardScheduleTaskStatus,
|
|
121
130
|
CardScheduleTaskType,
|
|
122
131
|
CardSearch,
|
|
123
132
|
CardStateChangeDesiredState,
|
|
124
133
|
CardStateChangeScheduledTaskRequest,
|
|
134
|
+
CardStateChangeScheduledTaskResponse,
|
|
125
135
|
CardTypeResponse,
|
|
126
136
|
CardTypesConfig,
|
|
127
137
|
CardTypeSearchRequest,
|
|
@@ -144,6 +154,7 @@ export {
|
|
|
144
154
|
FiveFieldsBookingInfoResponse,
|
|
145
155
|
FlightBookingInfoRequest,
|
|
146
156
|
FundingAccountInboundTransferNotificationConfig,
|
|
157
|
+
FundingAccountResponseV2,
|
|
147
158
|
FundingAccountSearchRequest,
|
|
148
159
|
FundingAccountSearchResponse,
|
|
149
160
|
FundingLimitRequest,
|
|
@@ -168,6 +179,7 @@ export {
|
|
|
168
179
|
PaymentMethodOptionResponse,
|
|
169
180
|
PaymentOption,
|
|
170
181
|
ProcessedStatement,
|
|
182
|
+
ProviderCode,
|
|
171
183
|
ProviderResponse,
|
|
172
184
|
References,
|
|
173
185
|
RelogWithNewSessionDetailsRequest,
|
|
@@ -199,5 +211,5 @@ export {
|
|
|
199
211
|
UserResponse,
|
|
200
212
|
UserRoleResponse,
|
|
201
213
|
UserSearchRequest,
|
|
202
|
-
|
|
214
|
+
YearMonth,
|
|
203
215
|
}
|