@pax2pay/client 0.0.100 → 0.0.101
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/Client/Cards/index.ts +51 -2
- package/dist/Client/Cards/index.d.ts +27 -3
- package/dist/Client/Cards/index.js +39 -2
- package/dist/Client/Cards/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/AmendCardRequest.d.ts +1 -0
- package/dist/model/CardDeliveryResponse.d.ts +1 -1
- package/dist/model/CardDeliveryResponse.js +1 -1
- package/dist/model/CardDeliveryResponse.js.map +1 -1
- package/dist/model/CardProcessedTransaction.d.ts +19 -0
- package/dist/model/CardProcessedTransaction.js +2 -0
- package/dist/model/CardProcessedTransaction.js.map +1 -0
- package/dist/model/CardTransaction.d.ts +25 -0
- package/dist/model/CardTransaction.js +2 -0
- package/dist/model/CardTransaction.js.map +1 -0
- package/dist/model/CardType.d.ts +8 -0
- package/dist/model/CardType.js +11 -0
- package/dist/model/CardType.js.map +1 -0
- package/dist/model/CardTypeResponse.d.ts +2 -11
- package/dist/model/CardTypeResponseV2.d.ts +13 -0
- package/dist/model/CardTypeResponseV2.js +2 -0
- package/dist/model/CardTypeResponseV2.js.map +1 -0
- package/dist/model/ScheduleEntry.d.ts +9 -0
- package/dist/model/ScheduleEntry.js +2 -0
- package/dist/model/ScheduleEntry.js.map +1 -0
- package/dist/model/ScheduledTaskRequest.d.ts +2 -1
- package/dist/model/TransactionStatus.d.ts +6 -0
- package/dist/model/TransactionStatus.js +18 -0
- package/dist/model/TransactionStatus.js.map +1 -0
- package/dist/model/TransactionType.d.ts +1 -1
- package/dist/model/index.d.ts +6 -1
- package/dist/model/index.js +2 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +10 -0
- package/model/AmendCardRequest.ts +1 -0
- package/model/CardDeliveryResponse.ts +2 -2
- package/model/CardProcessedTransaction.ts +20 -0
- package/model/CardTransaction.ts +25 -0
- package/model/CardType.ts +15 -0
- package/model/CardTypeResponse.ts +2 -12
- package/model/CardTypeResponseV2.ts +14 -0
- package/model/ScheduleEntry.ts +10 -0
- package/model/ScheduledTaskRequest.ts +2 -1
- package/model/TransactionStatus.ts +18 -0
- package/model/TransactionType.ts +4 -0
- package/model/index.ts +10 -0
- package/package.json +1 -1
package/Client/Cards/index.ts
CHANGED
|
@@ -42,8 +42,22 @@ export class Cards extends List<
|
|
|
42
42
|
`)
|
|
43
43
|
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result)
|
|
44
44
|
}
|
|
45
|
+
async createCard(request: model.CreateCardRequest) {
|
|
46
|
+
const result = await this.connection.post<model.CardResponse>(`cards/virtual`, request)
|
|
47
|
+
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result)
|
|
48
|
+
}
|
|
49
|
+
async cancelCard(providerCardId: string, providerCode: model.ProviderCode) {
|
|
50
|
+
const result = await this.connection.remove<model.CardResponse>(
|
|
51
|
+
`cards/virtual/${providerCode}/${providerCardId}/cancel`
|
|
52
|
+
)
|
|
53
|
+
return result
|
|
54
|
+
}
|
|
55
|
+
async getCardTypesV2(providerCode: model.ProviderCode) {
|
|
56
|
+
const result = await this.connection.get<model.CardTypeResponseV2[]>(`v2/cards/types/${providerCode}`)
|
|
57
|
+
return result
|
|
58
|
+
}
|
|
45
59
|
async getCardTypes(providerCode: model.ProviderCode) {
|
|
46
|
-
const result = await this.connection.get<model.CardTypeResponse
|
|
60
|
+
const result = await this.connection.get<model.CardTypeResponse>(`cards/types/${providerCode}`)
|
|
47
61
|
return result
|
|
48
62
|
}
|
|
49
63
|
async getFundingAccounts(searchRequest: model.FundingAccountSearchRequest) {
|
|
@@ -53,8 +67,15 @@ export class Cards extends List<
|
|
|
53
67
|
)
|
|
54
68
|
return result
|
|
55
69
|
}
|
|
70
|
+
async getAllFundingAccounts(providerCode: model.ProviderCode) {
|
|
71
|
+
const result = await this.connection.get<model.CardFundingAccountResponse[]>(
|
|
72
|
+
`funding-accounts?provider=${providerCode}&size=500`
|
|
73
|
+
)
|
|
74
|
+
return result
|
|
75
|
+
}
|
|
56
76
|
async getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode) {
|
|
57
|
-
const result = await this.connection
|
|
77
|
+
const result = await this.connection
|
|
78
|
+
.get<model.BookingInfoResponse>(`booking-info/cards/${providerCode}/${providerCardId}
|
|
58
79
|
`)
|
|
59
80
|
return result
|
|
60
81
|
}
|
|
@@ -65,4 +86,32 @@ export class Cards extends List<
|
|
|
65
86
|
)
|
|
66
87
|
return result
|
|
67
88
|
}
|
|
89
|
+
async getCardTransaction(providerCardId: string, providerCode: model.ProviderCode) {
|
|
90
|
+
const result = await this.connection.get<model.CardProcessedTransaction[]>(
|
|
91
|
+
`cards/virtual/${providerCode}/${providerCardId}/statements`
|
|
92
|
+
)
|
|
93
|
+
return result
|
|
94
|
+
}
|
|
95
|
+
async searchTransaction(accountId: number) {
|
|
96
|
+
const result = await this.connection.post<model.CardTransaction[]>(`transactions/searches`, {
|
|
97
|
+
accountId: accountId,
|
|
98
|
+
})
|
|
99
|
+
return result
|
|
100
|
+
}
|
|
101
|
+
async editSchedule(providerCardId: string, providerCode: model.ProviderCode, request: model.ScheduleEntry[]) {
|
|
102
|
+
const result = await this.connection.put<model.CardResponse>(
|
|
103
|
+
`cards/virtual/${providerCode}/${providerCardId}/schedule`,
|
|
104
|
+
{
|
|
105
|
+
schedule: request,
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
return result
|
|
109
|
+
}
|
|
110
|
+
async amendExistingCard(providerCardId: string, providerCode: model.ProviderCode, request: model.AmendCardRequest) {
|
|
111
|
+
const result = await this.connection.post<model.CardResponse>(
|
|
112
|
+
`cards/virtual/${providerCode}/${providerCardId}/amend`,
|
|
113
|
+
request
|
|
114
|
+
)
|
|
115
|
+
return result
|
|
116
|
+
}
|
|
68
117
|
}
|
|
@@ -19,16 +19,40 @@ export declare class Cards extends List<model.CardResponseV2 | model.CardRespons
|
|
|
19
19
|
getCard(providerCardId: string, providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
20
20
|
status: 400 | 404 | 500 | 403 | 503;
|
|
21
21
|
}) | (Card & model.CardResponse)>;
|
|
22
|
-
|
|
22
|
+
createCard(request: model.CreateCardRequest): Promise<(model.ErrorResponse & {
|
|
23
23
|
status: 400 | 404 | 500 | 403 | 503;
|
|
24
|
-
}) | model.
|
|
24
|
+
}) | (Card & model.CardResponse)>;
|
|
25
|
+
cancelCard(providerCardId: string, providerCode: model.ProviderCode): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
26
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
27
|
+
})>;
|
|
28
|
+
getCardTypesV2(providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
29
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
30
|
+
}) | model.CardTypeResponseV2[]>;
|
|
31
|
+
getCardTypes(providerCode: model.ProviderCode): Promise<model.CardTypeResponse | (model.ErrorResponse & {
|
|
32
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
33
|
+
})>;
|
|
25
34
|
getFundingAccounts(searchRequest: model.FundingAccountSearchRequest): Promise<(model.ErrorResponse & {
|
|
26
35
|
status: 400 | 404 | 500 | 403 | 503;
|
|
27
36
|
}) | model.CardFundingAccountResponse[]>;
|
|
28
|
-
|
|
37
|
+
getAllFundingAccounts(providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
38
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
39
|
+
}) | model.CardFundingAccountResponse[]>;
|
|
40
|
+
getCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode): Promise<model.BookingInfoResponse | (model.ErrorResponse & {
|
|
29
41
|
status: 400 | 404 | 500 | 403 | 503;
|
|
30
42
|
})>;
|
|
31
43
|
editCardBookingInfo(providerCardId: string, providerCode: model.ProviderCode, request: Record<string, any>): Promise<model.BookingInfoResponse | (model.ErrorResponse & {
|
|
32
44
|
status: 400 | 404 | 500 | 403 | 503;
|
|
33
45
|
})>;
|
|
46
|
+
getCardTransaction(providerCardId: string, providerCode: model.ProviderCode): Promise<(model.ErrorResponse & {
|
|
47
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
48
|
+
}) | model.CardProcessedTransaction[]>;
|
|
49
|
+
searchTransaction(accountId: number): Promise<(model.ErrorResponse & {
|
|
50
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
51
|
+
}) | model.CardTransaction[]>;
|
|
52
|
+
editSchedule(providerCardId: string, providerCode: model.ProviderCode, request: model.ScheduleEntry[]): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
53
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
54
|
+
})>;
|
|
55
|
+
amendExistingCard(providerCardId: string, providerCode: model.ProviderCode, request: model.AmendCardRequest): Promise<model.CardResponse | (model.ErrorResponse & {
|
|
56
|
+
status: 400 | 404 | 500 | 403 | 503;
|
|
57
|
+
})>;
|
|
34
58
|
}
|
|
@@ -35,16 +35,33 @@ export class Cards extends List {
|
|
|
35
35
|
`);
|
|
36
36
|
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result);
|
|
37
37
|
}
|
|
38
|
-
async
|
|
38
|
+
async createCard(request) {
|
|
39
|
+
const result = await this.connection.post(`cards/virtual`, request);
|
|
40
|
+
return model.ErrorResponse.is(result) ? result : this.mapLegacy(result);
|
|
41
|
+
}
|
|
42
|
+
async cancelCard(providerCardId, providerCode) {
|
|
43
|
+
const result = await this.connection.remove(`cards/virtual/${providerCode}/${providerCardId}/cancel`);
|
|
44
|
+
return result;
|
|
45
|
+
}
|
|
46
|
+
async getCardTypesV2(providerCode) {
|
|
39
47
|
const result = await this.connection.get(`v2/cards/types/${providerCode}`);
|
|
40
48
|
return result;
|
|
41
49
|
}
|
|
50
|
+
async getCardTypes(providerCode) {
|
|
51
|
+
const result = await this.connection.get(`cards/types/${providerCode}`);
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
42
54
|
async getFundingAccounts(searchRequest) {
|
|
43
55
|
const result = await this.connection.post("funding-accounts/searches", searchRequest);
|
|
44
56
|
return result;
|
|
45
57
|
}
|
|
58
|
+
async getAllFundingAccounts(providerCode) {
|
|
59
|
+
const result = await this.connection.get(`funding-accounts?provider=${providerCode}&size=500`);
|
|
60
|
+
return result;
|
|
61
|
+
}
|
|
46
62
|
async getCardBookingInfo(providerCardId, providerCode) {
|
|
47
|
-
const result = await this.connection
|
|
63
|
+
const result = await this.connection
|
|
64
|
+
.get(`booking-info/cards/${providerCode}/${providerCardId}
|
|
48
65
|
`);
|
|
49
66
|
return result;
|
|
50
67
|
}
|
|
@@ -52,5 +69,25 @@ export class Cards extends List {
|
|
|
52
69
|
const result = await this.connection.put(`booking-info/cards/${providerCode}/${providerCardId}`, request);
|
|
53
70
|
return result;
|
|
54
71
|
}
|
|
72
|
+
async getCardTransaction(providerCardId, providerCode) {
|
|
73
|
+
const result = await this.connection.get(`cards/virtual/${providerCode}/${providerCardId}/statements`);
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
async searchTransaction(accountId) {
|
|
77
|
+
const result = await this.connection.post(`transactions/searches`, {
|
|
78
|
+
accountId: accountId,
|
|
79
|
+
});
|
|
80
|
+
return result;
|
|
81
|
+
}
|
|
82
|
+
async editSchedule(providerCardId, providerCode, request) {
|
|
83
|
+
const result = await this.connection.put(`cards/virtual/${providerCode}/${providerCardId}/schedule`, {
|
|
84
|
+
schedule: request,
|
|
85
|
+
});
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
async amendExistingCard(providerCardId, providerCode, request) {
|
|
89
|
+
const result = await this.connection.post(`cards/virtual/${providerCode}/${providerCardId}/amend`, request);
|
|
90
|
+
return result;
|
|
91
|
+
}
|
|
55
92
|
}
|
|
56
93
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Cards/index.ts"],"names":[],"mapp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AAS,EAAE,SAAS;SACpB,CAAC,CAAA;QACF,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,cAAsB,EAAE,YAAgC,EAAE,OAA8B;QAC1G,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACvC,iBAAiB,YAAY,IAAI,cAAc,WAAW,EAC1D;YACC,QAAQ,EAAE,OAAO;SACjB,CACD,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;IACD,KAAK,CAAC,iBAAiB,CAAC,cAAsB,EAAE,YAAgC,EAAE,OAA+B;QAChH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CACxC,iBAAiB,YAAY,IAAI,cAAc,QAAQ,EACvD,OAAO,CACP,CAAA;QACD,OAAO,MAAM,CAAA;IACd,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, 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, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, 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, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardProcessedTransaction, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardType, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardType, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, 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,mBAAmB,EAEnB,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EAGX,UAAU,EAEV,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAI5B,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EACN,mBAAmB,EAEnB,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EAGX,UAAU,EAEV,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAI5B,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAI1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAEpC,QAAQ,EAKR,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAEb,6BAA6B,EAE7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 +5,7 @@ export interface CardDeliveryResponse {
|
|
|
5
5
|
deliveredMessage: string;
|
|
6
6
|
linkExpiry: isoly.Date;
|
|
7
7
|
sent: string;
|
|
8
|
-
status: "SUCCESS" | "FAILURE" | "TODO";
|
|
8
|
+
status: "SUCCESS" | "FAILURE" | "TODO" | "PENDING";
|
|
9
9
|
statusText?: string;
|
|
10
10
|
}
|
|
11
11
|
export declare namespace CardDeliveryResponse {
|
|
@@ -9,7 +9,7 @@ export var CardDeliveryResponse;
|
|
|
9
9
|
isoly.Date.is(value.linkExpiry) &&
|
|
10
10
|
typeof value.sent == "string" &&
|
|
11
11
|
(typeof value.statusText == "string" || value.statusText == undefined) &&
|
|
12
|
-
(value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO"));
|
|
12
|
+
(value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO" || value.status == "PENDING"));
|
|
13
13
|
}
|
|
14
14
|
CardDeliveryResponse.is = is;
|
|
15
15
|
})(CardDeliveryResponse || (CardDeliveryResponse = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardDeliveryResponse.js","sourceRoot":"../","sources":["model/CardDeliveryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,MAAM,KAAW,oBAAoB,CAapC;AAbD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,OAAO;YACrB,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC;YAC5D,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ;YACzC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC/B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,CAAC,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC;YACtE,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"CardDeliveryResponse.js","sourceRoot":"../","sources":["model/CardDeliveryResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAW9B,MAAM,KAAW,oBAAoB,CAapC;AAbD,WAAiB,oBAAoB;IACpC,SAAgB,EAAE,CAAC,KAAiC;QACnD,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,KAAK,CAAC,IAAI,IAAI,OAAO;YACrB,CAAC,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,IAAI,OAAO,KAAK,CAAC,EAAE,IAAI,QAAQ,CAAC;YAC5D,OAAO,KAAK,CAAC,gBAAgB,IAAI,QAAQ;YACzC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;YAC/B,OAAO,KAAK,CAAC,IAAI,IAAI,QAAQ;YAC7B,CAAC,OAAO,KAAK,CAAC,UAAU,IAAI,QAAQ,IAAI,KAAK,CAAC,UAAU,IAAI,SAAS,CAAC;YACtE,CAAC,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,IAAI,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,SAAS,CAAC,CAC/G,CAAA;IACF,CAAC;IAXe,uBAAE,KAWjB,CAAA;AACF,CAAC,EAbgB,oBAAoB,KAApB,oBAAoB,QAapC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
import { ProviderCode } from "./ProviderCode";
|
|
3
|
+
import { TransactionStatus } from "./TransactionStatus";
|
|
4
|
+
import { TransactionType } from "./TransactionType";
|
|
5
|
+
export interface CardProcessedTransaction {
|
|
6
|
+
timestamp: isoly.DateTime;
|
|
7
|
+
provider: ProviderCode;
|
|
8
|
+
description: string;
|
|
9
|
+
type: TransactionType;
|
|
10
|
+
reference?: string;
|
|
11
|
+
status?: TransactionStatus;
|
|
12
|
+
balance?: number;
|
|
13
|
+
fundsChanged?: number;
|
|
14
|
+
currency?: isoly.Currency;
|
|
15
|
+
reason?: string;
|
|
16
|
+
additionalInformation?: {
|
|
17
|
+
orderId?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardProcessedTransaction.js","sourceRoot":"../","sources":["model/CardProcessedTransaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Currency } from "isoly";
|
|
2
|
+
import * as isoly from "isoly";
|
|
3
|
+
import { BookingInfo } from "./BookingInfo";
|
|
4
|
+
import { ProviderCode } from "./ProviderCode";
|
|
5
|
+
import { TransactionType } from "./TransactionType";
|
|
6
|
+
export interface CardTransaction {
|
|
7
|
+
id: number;
|
|
8
|
+
providerTransactionId: string;
|
|
9
|
+
organisationCode: string;
|
|
10
|
+
organisationName: string;
|
|
11
|
+
transactionType: TransactionType;
|
|
12
|
+
provider: ProviderCode;
|
|
13
|
+
prvTimestamp: string;
|
|
14
|
+
associatedAccount: number;
|
|
15
|
+
issuedAmount: number;
|
|
16
|
+
issuedCurrency: Currency;
|
|
17
|
+
createdOn: string;
|
|
18
|
+
createdBy: string;
|
|
19
|
+
groupId?: number;
|
|
20
|
+
exchangeRate?: number;
|
|
21
|
+
description?: string;
|
|
22
|
+
bookingInfo?: BookingInfo;
|
|
23
|
+
friendlyName?: string;
|
|
24
|
+
expectedFundingTimestamp?: isoly.DateTime;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardTransaction.js","sourceRoot":"../","sources":["model/CardTransaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var CardType;
|
|
2
|
+
(function (CardType) {
|
|
3
|
+
function is(value) {
|
|
4
|
+
return (typeof value == "object" &&
|
|
5
|
+
typeof value.cardType == "string" &&
|
|
6
|
+
typeof value.representAs == "string" &&
|
|
7
|
+
(typeof value.cardName == "string" || value.cardName == undefined));
|
|
8
|
+
}
|
|
9
|
+
CardType.is = is;
|
|
10
|
+
})(CardType || (CardType = {}));
|
|
11
|
+
//# sourceMappingURL=CardType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardType.js","sourceRoot":"../","sources":["model/CardType.ts"],"names":[],"mappings":"AAKA,MAAM,KAAW,QAAQ,CASxB;AATD,WAAiB,QAAQ;IACxB,SAAgB,EAAE,CAAC,KAAqB;QACvC,OAAO,CACN,OAAO,KAAK,IAAI,QAAQ;YACxB,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ;YACjC,OAAO,KAAK,CAAC,WAAW,IAAI,QAAQ;YACpC,CAAC,OAAO,KAAK,CAAC,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC,QAAQ,IAAI,SAAS,CAAC,CAClE,CAAA;IACF,CAAC;IAPe,WAAE,KAOjB,CAAA;AACF,CAAC,EATgB,QAAQ,KAAR,QAAQ,QASxB"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardType } from "./CardType";
|
|
2
2
|
export interface CardTypeResponse {
|
|
3
|
-
|
|
4
|
-
cardTypeId?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
scheme?: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS";
|
|
7
|
-
funding?: "DEBIT" | "CREDIT" | "PREPAID";
|
|
8
|
-
currencies?: string[];
|
|
9
|
-
flags?: ("CORPORATE" | "BUSINESS" | "CONSUMER")[];
|
|
10
|
-
bins?: string[];
|
|
11
|
-
preActive?: boolean;
|
|
12
|
-
discontinued?: boolean;
|
|
3
|
+
cardTypes: CardType[];
|
|
13
4
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ProviderCode } from "./ProviderCode";
|
|
2
|
+
export interface CardTypeResponseV2 {
|
|
3
|
+
providerCode?: ProviderCode;
|
|
4
|
+
cardTypeId?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
scheme?: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS";
|
|
7
|
+
funding?: "DEBIT" | "CREDIT" | "PREPAID";
|
|
8
|
+
currencies?: string[];
|
|
9
|
+
flags?: ("CORPORATE" | "BUSINESS" | "CONSUMER")[];
|
|
10
|
+
bins?: string[];
|
|
11
|
+
preActive?: boolean;
|
|
12
|
+
discontinued?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CardTypeResponseV2.js","sourceRoot":"../","sources":["model/CardTypeResponseV2.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as isoly from "isoly";
|
|
2
|
+
export interface ScheduleEntry {
|
|
3
|
+
readonly dueOn?: isoly.Date;
|
|
4
|
+
readonly remainingBalance?: number;
|
|
5
|
+
readonly balanceDifferential?: number;
|
|
6
|
+
readonly newBalance?: number;
|
|
7
|
+
readonly desiredState?: string;
|
|
8
|
+
readonly status?: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScheduleEntry.js","sourceRoot":"../","sources":["model/ScheduleEntry.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as isoly from "isoly";
|
|
2
2
|
import { CardScheduleTaskType } from "./CardScheduleTaskType";
|
|
3
3
|
export interface ScheduledTaskRequest {
|
|
4
|
-
dueOn
|
|
4
|
+
dueOn?: isoly.DateTime;
|
|
5
5
|
status?: "TODO" | "CANCELLED" | "CANCELLED_EXCEPTIONALLY" | "SUCCESSFUL" | "FAILED" | "FAILED_EXCEPTIONALLY" | "HALTED" | "PENDING" | "PENDING_DECLINED";
|
|
6
|
+
desiredState?: string;
|
|
6
7
|
taskId?: string;
|
|
7
8
|
taskType?: CardScheduleTaskType;
|
|
8
9
|
newBalance?: number;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const transactionStatus: readonly ["APPROVAL", "CREATED", "DECLINED", "DEPOSITED", "EXPIRED", "SETTLED", "UNKNOWN", "WITHDRAWN"];
|
|
2
|
+
export declare type TransactionStatus = typeof transactionStatus[number];
|
|
3
|
+
export declare namespace TransactionStatus {
|
|
4
|
+
function is(value: unknown): value is TransactionStatus;
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const transactionStatus = [
|
|
2
|
+
"APPROVAL",
|
|
3
|
+
"CREATED",
|
|
4
|
+
"DECLINED",
|
|
5
|
+
"DEPOSITED",
|
|
6
|
+
"EXPIRED",
|
|
7
|
+
"SETTLED",
|
|
8
|
+
"UNKNOWN",
|
|
9
|
+
"WITHDRAWN",
|
|
10
|
+
];
|
|
11
|
+
export var TransactionStatus;
|
|
12
|
+
(function (TransactionStatus) {
|
|
13
|
+
function is(value) {
|
|
14
|
+
return typeof value == "string" && transactionStatus.includes(value);
|
|
15
|
+
}
|
|
16
|
+
TransactionStatus.is = is;
|
|
17
|
+
})(TransactionStatus || (TransactionStatus = {}));
|
|
18
|
+
//# sourceMappingURL=TransactionStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionStatus.js","sourceRoot":"../","sources":["model/TransactionStatus.ts"],"names":[],"mappings":"AAAA,MAAM,iBAAiB,GAAG;IACzB,UAAU;IACV,SAAS;IACT,UAAU;IACV,WAAW;IACX,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;CACF,CAAA;AAIV,MAAM,KAAW,iBAAiB,CAIjC;AAJD,WAAiB,iBAAiB;IACjC,SAAgB,EAAE,CAAC,KAAc;QAChC,OAAO,OAAO,KAAK,IAAI,QAAQ,IAAI,iBAAiB,CAAC,QAAQ,CAAC,KAA0B,CAAC,CAAA;IAC1F,CAAC;IAFe,oBAAE,KAEjB,CAAA;AACF,CAAC,EAJgB,iBAAiB,KAAjB,iBAAiB,QAIjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type TransactionType = "CREATE_CARD" | "FUND_CARD" | "PURCHASE" | "REFUND" | "SWEEP" | "CLOSE" | "FREEZE" | "THAW" | "APPROVAL_PENDING" | "EXPIRE" | "UNKNOWN";
|
|
1
|
+
export declare type TransactionType = "CREATE_CARD" | "AUTHORISATION" | "SETTLEMENT" | "REVERSAL" | "DEPOSIT" | "FUND_CARD" | "PURCHASE" | "REFUND" | "SWEEP" | "CLOSE" | "FREEZE" | "THAW" | "APPROVAL_PENDING" | "EXPIRE" | "UNKNOWN";
|
package/dist/model/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { CardDeliveryRequest } from "./CardDeliveryRequest";
|
|
|
25
25
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
26
26
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse";
|
|
27
27
|
import { CardOptionSearch } from "./CardOptionSearch";
|
|
28
|
+
import { CardProcessedTransaction } from "./CardProcessedTransaction";
|
|
28
29
|
import { CardResponse } from "./CardResponse";
|
|
29
30
|
import { CardResponseV2 } from "./CardResponseV2";
|
|
30
31
|
import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
@@ -34,7 +35,10 @@ import { CardSearch } from "./CardSearch";
|
|
|
34
35
|
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState";
|
|
35
36
|
import { CardStateChangeScheduledTaskRequest } from "./CardStateChangeScheduledTaskRequest";
|
|
36
37
|
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse";
|
|
38
|
+
import { CardTransaction } from "./CardTransaction";
|
|
39
|
+
import { CardType } from "./CardType";
|
|
37
40
|
import { CardTypeResponse } from "./CardTypeResponse";
|
|
41
|
+
import { CardTypeResponseV2 } from "./CardTypeResponseV2";
|
|
38
42
|
import { CardTypesConfig } from "./CardTypesConfig";
|
|
39
43
|
import { CardTypeSearchRequest } from "./CardTypeSearchRequest";
|
|
40
44
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
@@ -98,6 +102,7 @@ import { RoleResponse } from "./RoleResponse";
|
|
|
98
102
|
import { RolesetResponse } from "./RolesetResponse";
|
|
99
103
|
import { Room } from "./Room";
|
|
100
104
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest";
|
|
105
|
+
import { ScheduleEntry } from "./ScheduleEntry";
|
|
101
106
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest";
|
|
102
107
|
import { Segment } from "./Segment";
|
|
103
108
|
import { Sorting } from "./Sorting";
|
|
@@ -132,4 +137,4 @@ import { UserResponse } from "./UserResponse";
|
|
|
132
137
|
import { UserRoleResponse } from "./UserRoleResponse";
|
|
133
138
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
134
139
|
import { YearMonth } from "./YearMonth";
|
|
135
|
-
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTypeResponse, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
|
140
|
+
export { AccountBankResponse, AccountCreationRequest, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AmendCardRequest, AmountPair, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardOptionSearch, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardTransaction, CardProcessedTransaction, CardType, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, DateRangeLocalDate, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingLimitRequest, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationRequest, OrganisationResponse, Passengers, PasswordChangeRequest, PasswordValidateRequest, PasswordValidateResponse, Payload, PaymentMethodOptionResponse, PaymentOption, ProcessedStatement, ProviderCode, ProviderResponse, References, RelogWithNewSessionDetailsRequest, Report, RoleResponse, RolesetResponse, Room, ScheduleEntry, ScheduledTaskRequest, SearchRolesetsRequest, Segment, Sorting, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, SupplierBookingInfo, TransactionResponse, TransactionType, TransferDestinationInfo, TransferRequest, TransferResponse, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimit, UserLimitsDeleteRequest, UserLimitsRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, YearMonth, };
|
package/dist/model/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import { CardScheduleTaskStatus } from "./CardScheduleTaskStatus";
|
|
|
21
21
|
import { CardScheduleTaskType } from "./CardScheduleTaskType";
|
|
22
22
|
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState";
|
|
23
23
|
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse";
|
|
24
|
+
import { CardType } from "./CardType";
|
|
24
25
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
25
26
|
import { CardTypeSpecificationFlag } from "./CardTypeSpecificationFlag";
|
|
26
27
|
import { ErrorMessageDto } from "./ErrorMessageDto";
|
|
@@ -54,5 +55,5 @@ import { TransferResponse } from "./TransferResponse";
|
|
|
54
55
|
import { TransferStatus } from "./TransferStatus";
|
|
55
56
|
import { UserResponse } from "./UserResponse";
|
|
56
57
|
import { YearMonth } from "./YearMonth";
|
|
57
|
-
export { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, };
|
|
58
|
+
export { AccountBankResponse, AccountIdentifierResponse, AccountResponse, AccountState, AccountSummary, AccountType, AddressInfo, AmountPair, BeneficiaryResponse, BeneficiaryStatus, BillingTransactionAmountPair, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardFundingAccountResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardStateChangeDesiredState, CardStateChangeScheduledTaskResponse, CardType, CardTypeSpecification, CardTypeSpecificationFlag, ErrorMessageDto, ErrorResponse, FiveFieldsBookingInfoResponse, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountResponseV2, FundingLimitResponse, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InvoiceBookingInfoResponse, Issue, LoginResponse, OrganisationBalanceLimitResponse, OrganisationResponse, Passengers, ProviderCode, ProviderResponse, References, Segment, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementRowIds, SummaryBookingInfoResponse, TransferDestinationInfo, TransferResponse, TransferStatus, UserResponse, YearMonth, };
|
|
58
59
|
//# 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":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM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;AAEnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAajD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,OAAO,EACN,mBAAmB,EAEnB,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EAGX,UAAU,EAEV,mBAAmB,EACnB,iBAAiB,EACjB,4BAA4B,EAI5B,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAG1B,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAEpB,2BAA2B,EAE3B,oCAAoC,EAGpC,QAAQ,EAKR,qBAAqB,EACrB,yBAAyB,EAYzB,eAAe,EACf,aAAa,EAEb,6BAA6B,EAE7B,yBAAyB,EACzB,UAAU,EACV,4BAA4B,EAE5B,wBAAwB,EAIxB,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EAIT,0BAA0B,EAC1B,KAAK,EAGL,aAAa,EAGb,gCAAgC,EAGhC,oBAAoB,EACpB,UAAU,EAQV,YAAY,EACZ,gBAAgB,EAChB,UAAU,EASV,OAAO,EAIP,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,0BAA0B,EAI1B,uBAAuB,EAEvB,gBAAgB,EAEhB,cAAc,EAad,YAAY,EAGZ,SAAS,GACT,CAAA"}
|
package/index.ts
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
CardDeliveryResponse,
|
|
28
28
|
CardFundingAccountResponse,
|
|
29
29
|
CardOptionSearch,
|
|
30
|
+
CardProcessedTransaction,
|
|
30
31
|
CardResponse,
|
|
31
32
|
CardResponseV2,
|
|
32
33
|
CardScheduleResponseItem,
|
|
@@ -36,7 +37,10 @@ import {
|
|
|
36
37
|
CardStateChangeDesiredState,
|
|
37
38
|
CardStateChangeScheduledTaskRequest,
|
|
38
39
|
CardStateChangeScheduledTaskResponse,
|
|
40
|
+
CardTransaction,
|
|
41
|
+
CardType,
|
|
39
42
|
CardTypeResponse,
|
|
43
|
+
CardTypeResponseV2,
|
|
40
44
|
CardTypesConfig,
|
|
41
45
|
CardTypeSearchRequest,
|
|
42
46
|
CardTypeSpecification,
|
|
@@ -100,6 +104,7 @@ import {
|
|
|
100
104
|
RolesetResponse,
|
|
101
105
|
Room,
|
|
102
106
|
ScheduledTaskRequest,
|
|
107
|
+
ScheduleEntry,
|
|
103
108
|
SearchRolesetsRequest,
|
|
104
109
|
Segment,
|
|
105
110
|
Sorting,
|
|
@@ -165,6 +170,7 @@ export {
|
|
|
165
170
|
CardDeliveryResponse,
|
|
166
171
|
CardFundingAccountResponse,
|
|
167
172
|
CardOptionSearch,
|
|
173
|
+
CardProcessedTransaction,
|
|
168
174
|
CardResponse,
|
|
169
175
|
CardResponseV2,
|
|
170
176
|
CardScheduleResponseItem,
|
|
@@ -174,7 +180,10 @@ export {
|
|
|
174
180
|
CardStateChangeDesiredState,
|
|
175
181
|
CardStateChangeScheduledTaskRequest,
|
|
176
182
|
CardStateChangeScheduledTaskResponse,
|
|
183
|
+
CardTransaction,
|
|
184
|
+
CardType,
|
|
177
185
|
CardTypeResponse,
|
|
186
|
+
CardTypeResponseV2,
|
|
178
187
|
CardTypesConfig,
|
|
179
188
|
CardTypeSearchRequest,
|
|
180
189
|
CardTypeSpecification,
|
|
@@ -237,6 +246,7 @@ export {
|
|
|
237
246
|
RoleResponse,
|
|
238
247
|
RolesetResponse,
|
|
239
248
|
Room,
|
|
249
|
+
ScheduleEntry,
|
|
240
250
|
ScheduledTaskRequest,
|
|
241
251
|
SearchRolesetsRequest,
|
|
242
252
|
Segment,
|
|
@@ -6,7 +6,7 @@ export interface CardDeliveryResponse {
|
|
|
6
6
|
deliveredMessage: string
|
|
7
7
|
linkExpiry: isoly.Date
|
|
8
8
|
sent: string
|
|
9
|
-
status: "SUCCESS" | "FAILURE" | "TODO"
|
|
9
|
+
status: "SUCCESS" | "FAILURE" | "TODO" | "PENDING"
|
|
10
10
|
statusText?: string
|
|
11
11
|
}
|
|
12
12
|
export namespace CardDeliveryResponse {
|
|
@@ -19,7 +19,7 @@ export namespace CardDeliveryResponse {
|
|
|
19
19
|
isoly.Date.is(value.linkExpiry) &&
|
|
20
20
|
typeof value.sent == "string" &&
|
|
21
21
|
(typeof value.statusText == "string" || value.statusText == undefined) &&
|
|
22
|
-
(value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO")
|
|
22
|
+
(value.status == "SUCCESS" || value.status == "FAILURE" || value.status == "TODO" || value.status == "PENDING")
|
|
23
23
|
)
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
import { ProviderCode } from "./ProviderCode"
|
|
3
|
+
import { TransactionStatus } from "./TransactionStatus"
|
|
4
|
+
import { TransactionType } from "./TransactionType"
|
|
5
|
+
|
|
6
|
+
export interface CardProcessedTransaction {
|
|
7
|
+
timestamp: isoly.DateTime
|
|
8
|
+
provider: ProviderCode
|
|
9
|
+
description: string
|
|
10
|
+
type: TransactionType
|
|
11
|
+
reference?: string
|
|
12
|
+
status?: TransactionStatus
|
|
13
|
+
balance?: number
|
|
14
|
+
fundsChanged?: number
|
|
15
|
+
currency?: isoly.Currency
|
|
16
|
+
reason?: string
|
|
17
|
+
additionalInformation?: {
|
|
18
|
+
orderId?: string
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Currency } from "isoly"
|
|
2
|
+
import * as isoly from "isoly"
|
|
3
|
+
import { BookingInfo } from "./BookingInfo"
|
|
4
|
+
import { ProviderCode } from "./ProviderCode"
|
|
5
|
+
import { TransactionType } from "./TransactionType"
|
|
6
|
+
export interface CardTransaction {
|
|
7
|
+
id: number
|
|
8
|
+
providerTransactionId: string
|
|
9
|
+
organisationCode: string
|
|
10
|
+
organisationName: string
|
|
11
|
+
transactionType: TransactionType
|
|
12
|
+
provider: ProviderCode
|
|
13
|
+
prvTimestamp: string
|
|
14
|
+
associatedAccount: number
|
|
15
|
+
issuedAmount: number
|
|
16
|
+
issuedCurrency: Currency
|
|
17
|
+
createdOn: string
|
|
18
|
+
createdBy: string
|
|
19
|
+
groupId?: number
|
|
20
|
+
exchangeRate?: number
|
|
21
|
+
description?: string
|
|
22
|
+
bookingInfo?: BookingInfo
|
|
23
|
+
friendlyName?: string
|
|
24
|
+
expectedFundingTimestamp?: isoly.DateTime
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface CardType {
|
|
2
|
+
cardType: string
|
|
3
|
+
representAs: string
|
|
4
|
+
cardName?: string
|
|
5
|
+
}
|
|
6
|
+
export namespace CardType {
|
|
7
|
+
export function is(value: CardType | any): value is CardType {
|
|
8
|
+
return (
|
|
9
|
+
typeof value == "object" &&
|
|
10
|
+
typeof value.cardType == "string" &&
|
|
11
|
+
typeof value.representAs == "string" &&
|
|
12
|
+
(typeof value.cardName == "string" || value.cardName == undefined)
|
|
13
|
+
)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { CardType } from "./CardType"
|
|
3
2
|
export interface CardTypeResponse {
|
|
4
|
-
|
|
5
|
-
cardTypeId?: string
|
|
6
|
-
description?: string
|
|
7
|
-
scheme?: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS"
|
|
8
|
-
funding?: "DEBIT" | "CREDIT" | "PREPAID"
|
|
9
|
-
currencies?: string[]
|
|
10
|
-
flags?: ("CORPORATE" | "BUSINESS" | "CONSUMER")[]
|
|
11
|
-
bins?: string[]
|
|
12
|
-
preActive?: boolean
|
|
13
|
-
discontinued?: boolean
|
|
3
|
+
cardTypes: CardType[]
|
|
14
4
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProviderCode } from "./ProviderCode"
|
|
2
|
+
|
|
3
|
+
export interface CardTypeResponseV2 {
|
|
4
|
+
providerCode?: ProviderCode
|
|
5
|
+
cardTypeId?: string
|
|
6
|
+
description?: string
|
|
7
|
+
scheme?: "VISA" | "MASTERCARD" | "AMERICAN_EXPRESS"
|
|
8
|
+
funding?: "DEBIT" | "CREDIT" | "PREPAID"
|
|
9
|
+
currencies?: string[]
|
|
10
|
+
flags?: ("CORPORATE" | "BUSINESS" | "CONSUMER")[]
|
|
11
|
+
bins?: string[]
|
|
12
|
+
preActive?: boolean
|
|
13
|
+
discontinued?: boolean
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as isoly from "isoly"
|
|
2
|
+
|
|
3
|
+
export interface ScheduleEntry {
|
|
4
|
+
readonly dueOn?: isoly.Date
|
|
5
|
+
readonly remainingBalance?: number
|
|
6
|
+
readonly balanceDifferential?: number
|
|
7
|
+
readonly newBalance?: number
|
|
8
|
+
readonly desiredState?: string
|
|
9
|
+
readonly status?: string
|
|
10
|
+
}
|
|
@@ -2,7 +2,7 @@ import * as isoly from "isoly"
|
|
|
2
2
|
import { CardScheduleTaskType } from "./CardScheduleTaskType"
|
|
3
3
|
|
|
4
4
|
export interface ScheduledTaskRequest {
|
|
5
|
-
dueOn
|
|
5
|
+
dueOn?: isoly.DateTime
|
|
6
6
|
status?:
|
|
7
7
|
| "TODO"
|
|
8
8
|
| "CANCELLED"
|
|
@@ -13,6 +13,7 @@ export interface ScheduledTaskRequest {
|
|
|
13
13
|
| "HALTED"
|
|
14
14
|
| "PENDING"
|
|
15
15
|
| "PENDING_DECLINED"
|
|
16
|
+
desiredState?: string
|
|
16
17
|
taskId?: string
|
|
17
18
|
taskType?: CardScheduleTaskType
|
|
18
19
|
newBalance?: number
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const transactionStatus = [
|
|
2
|
+
"APPROVAL",
|
|
3
|
+
"CREATED",
|
|
4
|
+
"DECLINED",
|
|
5
|
+
"DEPOSITED",
|
|
6
|
+
"EXPIRED",
|
|
7
|
+
"SETTLED",
|
|
8
|
+
"UNKNOWN",
|
|
9
|
+
"WITHDRAWN",
|
|
10
|
+
] as const
|
|
11
|
+
|
|
12
|
+
export type TransactionStatus = typeof transactionStatus[number]
|
|
13
|
+
|
|
14
|
+
export namespace TransactionStatus {
|
|
15
|
+
export function is(value: unknown): value is TransactionStatus {
|
|
16
|
+
return typeof value == "string" && transactionStatus.includes(value as TransactionStatus)
|
|
17
|
+
}
|
|
18
|
+
}
|
package/model/TransactionType.ts
CHANGED
package/model/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { CardDeliveryRequest } from "./CardDeliveryRequest"
|
|
|
25
25
|
import { CardDeliveryResponse } from "./CardDeliveryResponse"
|
|
26
26
|
import { CardFundingAccountResponse } from "./CardFundingAccountResponse"
|
|
27
27
|
import { CardOptionSearch } from "./CardOptionSearch"
|
|
28
|
+
import { CardProcessedTransaction } from "./CardProcessedTransaction"
|
|
28
29
|
import { CardResponse } from "./CardResponse"
|
|
29
30
|
import { CardResponseV2 } from "./CardResponseV2"
|
|
30
31
|
import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
|
|
@@ -34,7 +35,10 @@ import { CardSearch } from "./CardSearch"
|
|
|
34
35
|
import { CardStateChangeDesiredState } from "./CardStateChangeDesiredState"
|
|
35
36
|
import { CardStateChangeScheduledTaskRequest } from "./CardStateChangeScheduledTaskRequest"
|
|
36
37
|
import { CardStateChangeScheduledTaskResponse } from "./CardStateChangeScheduledTaskResponse"
|
|
38
|
+
import { CardTransaction } from "./CardTransaction"
|
|
39
|
+
import { CardType } from "./CardType"
|
|
37
40
|
import { CardTypeResponse } from "./CardTypeResponse"
|
|
41
|
+
import { CardTypeResponseV2 } from "./CardTypeResponseV2"
|
|
38
42
|
import { CardTypesConfig } from "./CardTypesConfig"
|
|
39
43
|
import { CardTypeSearchRequest } from "./CardTypeSearchRequest"
|
|
40
44
|
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
@@ -98,6 +102,7 @@ import { RoleResponse } from "./RoleResponse"
|
|
|
98
102
|
import { RolesetResponse } from "./RolesetResponse"
|
|
99
103
|
import { Room } from "./Room"
|
|
100
104
|
import { ScheduledTaskRequest } from "./ScheduledTaskRequest"
|
|
105
|
+
import { ScheduleEntry } from "./ScheduleEntry"
|
|
101
106
|
import { SearchRolesetsRequest } from "./SearchRolesetsRequest"
|
|
102
107
|
import { Segment } from "./Segment"
|
|
103
108
|
import { Sorting } from "./Sorting"
|
|
@@ -170,7 +175,11 @@ export {
|
|
|
170
175
|
CardStateChangeDesiredState,
|
|
171
176
|
CardStateChangeScheduledTaskRequest,
|
|
172
177
|
CardStateChangeScheduledTaskResponse,
|
|
178
|
+
CardTransaction,
|
|
179
|
+
CardProcessedTransaction,
|
|
180
|
+
CardType,
|
|
173
181
|
CardTypeResponse,
|
|
182
|
+
CardTypeResponseV2,
|
|
174
183
|
CardTypesConfig,
|
|
175
184
|
CardTypeSearchRequest,
|
|
176
185
|
CardTypeSpecification,
|
|
@@ -233,6 +242,7 @@ export {
|
|
|
233
242
|
RoleResponse,
|
|
234
243
|
RolesetResponse,
|
|
235
244
|
Room,
|
|
245
|
+
ScheduleEntry,
|
|
236
246
|
ScheduledTaskRequest,
|
|
237
247
|
SearchRolesetsRequest,
|
|
238
248
|
Segment,
|