@pax2pay/client 0.3.90 → 0.3.92
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/Merchants/index.ts +23 -1
- package/dist/Client/Merchants/index.d.ts +3 -1
- package/dist/Client/Merchants/index.js +3 -0
- package/dist/Client/Merchants/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/dist/model/CardResponseV2.d.ts +5 -1
- package/dist/model/CardResponseV2.js +30 -30
- package/dist/model/CardResponseV2.js.map +1 -1
- package/dist/model/CreateCardRequest.d.ts +1 -0
- package/dist/model/MerchantResponse.d.ts +4 -1
- package/dist/model/MerchantResponse.js +9 -8
- package/dist/model/MerchantResponse.js.map +1 -1
- package/dist/model/MerchantSearchRequest.d.ts +6 -0
- package/dist/model/MerchantSearchRequest.js +2 -0
- package/dist/model/MerchantSearchRequest.js.map +1 -0
- package/dist/model/MerchantType.d.ts +5 -4
- package/dist/model/MerchantType.js +4 -5
- package/dist/model/MerchantType.js.map +1 -1
- package/dist/model/index.d.ts +2 -1
- package/dist/model/index.js.map +1 -1
- package/index.ts +2 -0
- package/model/CardResponseV2.ts +30 -30
- package/model/CreateCardRequest.ts +1 -0
- package/model/MerchantResponse.ts +10 -9
- package/model/MerchantSearchRequest.ts +6 -0
- package/model/MerchantType.ts +6 -5
- package/model/index.ts +2 -0
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as model from "../../model"
|
|
2
2
|
import { Connection } from "../Connection"
|
|
3
3
|
import { List } from "../List"
|
|
4
|
+
import { Paginated } from "../Paginated"
|
|
4
5
|
|
|
5
6
|
export class Merchants extends List<model.MerchantResponse> {
|
|
6
|
-
protected folder = "merchants"
|
|
7
|
+
protected folder = "merchants" as const
|
|
7
8
|
constructor(connection: Connection) {
|
|
8
9
|
super(connection)
|
|
9
10
|
}
|
|
@@ -23,6 +24,27 @@ export class Merchants extends List<model.MerchantResponse> {
|
|
|
23
24
|
)
|
|
24
25
|
return this.extractResponse(response)
|
|
25
26
|
}
|
|
27
|
+
async searchPaginated(
|
|
28
|
+
request: model.MerchantSearchRequest,
|
|
29
|
+
previous?: Paginated<model.MerchantResponse>,
|
|
30
|
+
page?: number,
|
|
31
|
+
size?: number,
|
|
32
|
+
sort = "name"
|
|
33
|
+
): Promise<model.ErrorResponse | Paginated<model.MerchantResponse>> {
|
|
34
|
+
return await this.getNextPaginated(
|
|
35
|
+
previous,
|
|
36
|
+
(page, size, sort, request) =>
|
|
37
|
+
this.connection.post<{ list: model.MerchantResponse[]; totalCount: number }>(
|
|
38
|
+
`${this.folder}/searches`,
|
|
39
|
+
request,
|
|
40
|
+
{ page, size, sort }
|
|
41
|
+
),
|
|
42
|
+
request,
|
|
43
|
+
page,
|
|
44
|
+
size,
|
|
45
|
+
sort
|
|
46
|
+
)
|
|
47
|
+
}
|
|
26
48
|
async getAll() {
|
|
27
49
|
const response = await this.connection.get<model.ErrorResponse | model.MerchantResponse[]>(this.folder, {
|
|
28
50
|
page: 0,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as model from "../../model";
|
|
2
2
|
import { Connection } from "../Connection";
|
|
3
3
|
import { List } from "../List";
|
|
4
|
+
import { Paginated } from "../Paginated";
|
|
4
5
|
export declare class Merchants extends List<model.MerchantResponse> {
|
|
5
|
-
protected folder:
|
|
6
|
+
protected folder: "merchants";
|
|
6
7
|
constructor(connection: Connection);
|
|
7
8
|
static create(connection: Connection): Merchants;
|
|
8
9
|
create(request: model.MerchantRequest): Promise<model.MerchantResponse | (model.ErrorResponse & {
|
|
9
10
|
status: 400 | 404 | 500 | 403 | 503;
|
|
10
11
|
})>;
|
|
11
12
|
searchByName(searchString: string): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
13
|
+
searchPaginated(request: model.MerchantSearchRequest, previous?: Paginated<model.MerchantResponse>, page?: number, size?: number, sort?: string): Promise<model.ErrorResponse | Paginated<model.MerchantResponse>>;
|
|
12
14
|
getAll(): Promise<model.ErrorResponse | model.MerchantResponse[]>;
|
|
13
15
|
}
|
|
@@ -17,6 +17,9 @@ export class Merchants extends List {
|
|
|
17
17
|
});
|
|
18
18
|
return this.extractResponse(response);
|
|
19
19
|
}
|
|
20
|
+
async searchPaginated(request, previous, page, size, sort = "name") {
|
|
21
|
+
return await this.getNextPaginated(previous, (page, size, sort, request) => this.connection.post(`${this.folder}/searches`, request, { page, size, sort }), request, page, size, sort);
|
|
22
|
+
}
|
|
20
23
|
async getAll() {
|
|
21
24
|
const response = await this.connection.get(this.folder, {
|
|
22
25
|
page: 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Merchants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["Client/Merchants/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAG9B,MAAM,OAAO,SAAU,SAAQ,IAA4B;IAE1D,YAAY,UAAsB;QACjC,KAAK,CAAC,UAAU,CAAC,CAAA;QAFR,WAAM,GAAG,WAAoB,CAAA;IAGvC,CAAC;IACD,MAAM,CAAC,MAAM,CAAC,UAAsB;QACnC,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,CAAA;IACjC,CAAC;IACD,KAAK,CAAC,MAAM,CAAC,OAA8B;QAC1C,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAyB,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChF,CAAC;IACD,KAAK,CAAC,YAAY,CAAC,YAAoB;QACtC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CACzC,GAAG,IAAI,CAAC,MAAM,aAAa,YAAY,EAAE,EACzC;YACC,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;SACV,CACD,CAAA;QACD,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;IACD,KAAK,CAAC,eAAe,CACpB,OAAoC,EACpC,QAA4C,EAC5C,IAAa,EACb,IAAa,EACb,IAAI,GAAG,MAAM;QAEb,OAAO,MAAM,IAAI,CAAC,gBAAgB,CACjC,QAAQ,EACR,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAC7B,IAAI,CAAC,UAAU,CAAC,IAAI,CACnB,GAAG,IAAI,CAAC,MAAM,WAAW,EACzB,OAAO,EACP,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CACpB,EACF,OAAO,EACP,IAAI,EACJ,IAAI,EACJ,IAAI,CACJ,CAAA;IACF,CAAC;IACD,KAAK,CAAC,MAAM;QACX,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,GAAG,CAAiD,IAAI,CAAC,MAAM,EAAE;YACvG,IAAI,EAAE,CAAC;YACP,IAAI,EAAE,IAAI;SACV,CAAC,CAAA;QACF,OAAO,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAA;IACtC,CAAC;CACD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Client } from "./Client";
|
|
2
|
-
import { AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyResponse, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryEmailConfig, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardSearchRequest, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileRequest, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CardUsage, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, CurrencyConversionRequest, CurrencyConversionResponse, DateRangeLocalDate, DeliveryStatus, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, FutureTransactionPrognosisAmountPair, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, ReconciliationReportUrlRequest, References, RelogWithNewSessionDetailsRequest, Report, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchBeneficiaryRequest, SearchRolesetsRequest, SecurityConfig, Segment, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportSubType, StatementReportUrlRequest, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestedCardDeliveryOptions, SuggestedCardMetaOptions, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedPaymentMethodResponses, SuggestedSchedulesOptions, SuggestedUsageOptions, SuggestionCardDeliveryRequest, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferDirection, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateCategoryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth } from "./model";
|
|
3
|
-
export { Client, AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyResponse, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileRequest, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CardUsage, CategoryFundingAccountAccessRequest, UpdateCategoryRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, CurrencyConversionRequest, CurrencyConversionResponse, DateRangeLocalDate, DeliveryStatus, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, FutureTransactionPrognosisAmountPair, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, References, RelogWithNewSessionDetailsRequest, Report, ReconciliationReportUrlRequest, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduleEntry, CardSearchRequest, ScheduledTaskRequest, SearchRolesetsRequest, Segment, SecurityConfig, SearchBeneficiaryRequest, StatementReportUrlRequest, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportSubType, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestionCardDeliveryRequest, SuggestedCardMetaOptions, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedCardDeliveryOptions, SuggestedSchedulesOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedPaymentMethodResponses, SuggestedUsageOptions, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferDirection, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
|
2
|
+
import { AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyResponse, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryEmailConfig, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardSearchRequest, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileRequest, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CardUsage, CategoryFundingAccountAccessRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, CurrencyConversionRequest, CurrencyConversionResponse, DateRangeLocalDate, DeliveryStatus, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, FutureTransactionPrognosisAmountPair, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MerchantSearchRequest, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, ReconciliationReportUrlRequest, References, RelogWithNewSessionDetailsRequest, Report, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduledTaskRequest, ScheduleEntry, SearchBeneficiaryRequest, SearchRolesetsRequest, SecurityConfig, Segment, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportSubType, StatementReportUrlRequest, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestedCardDeliveryOptions, SuggestedCardMetaOptions, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedPaymentMethodResponses, SuggestedSchedulesOptions, SuggestedUsageOptions, SuggestionCardDeliveryRequest, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferDirection, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateCategoryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth } from "./model";
|
|
3
|
+
export { Client, AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyResponse, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileRequest, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CardUsage, CategoryFundingAccountAccessRequest, UpdateCategoryRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, CurrencyConversionRequest, CurrencyConversionResponse, DateRangeLocalDate, DeliveryStatus, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, FutureTransactionPrognosisAmountPair, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MerchantSearchRequest, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, References, RelogWithNewSessionDetailsRequest, Report, ReconciliationReportUrlRequest, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduleEntry, CardSearchRequest, ScheduledTaskRequest, SearchRolesetsRequest, Segment, SecurityConfig, SearchBeneficiaryRequest, StatementReportUrlRequest, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportSubType, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestionCardDeliveryRequest, SuggestedCardMetaOptions, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedCardDeliveryOptions, SuggestedSchedulesOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedPaymentMethodResponses, SuggestedUsageOptions, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferDirection, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
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,EACnB,sBAAsB,EACtB,yCAAyC,EACzC,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,EAGhB,UAAU,EAKV,mBAAmB,EACnB,iBAAiB,EACjB,sCAAsC,EACtC,4BAA4B,EAC5B,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EAEf,kCAAkC,EAClC,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,QAAQ,EACR,0BAA0B,EAG1B,YAAY,EACZ,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EAGpB,2BAA2B,EAE3B,oCAAoC,EACpC,aAAa,EACb,eAAe,EAEf,QAAQ,EAOR,qBAAqB,EACrB,yBAAyB,EACzB,SAAS,EAYT,iBAAiB,EAGjB,yBAAyB,EACzB,0BAA0B,EAE1B,cAAc,EACd,uBAAuB,EACvB,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,cAAc,EACd,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,EACV,4BAA4B,EAE5B,6BAA6B,EAC7B,4BAA4B,EAG5B,6BAA6B,EAC7B,kBAAkB,EAElB,oBAAoB,EACpB,oCAAoC,EACpC,uBAAuB,EACvB,wBAAwB,EACxB,SAAS,EAIT,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,KAAK,EACL,wBAAwB,EAExB,aAAa,EACb,eAAe,EACf,eAAe,EACf,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EACN,mBAAmB,EACnB,sBAAsB,EACtB,yCAAyC,EACzC,yBAAyB,EACzB,eAAe,EAEf,YAAY,EACZ,cAAc,EACd,WAAW,EACX,WAAW,EACX,g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yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,KAAK,EACL,wBAAwB,EAExB,aAAa,EACb,eAAe,EACf,eAAe,EACf,gBAAgB,EAIhB,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAEhB,gCAAgC,EAChC,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAEhB,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EAKV,aAAa,EAGb,iBAAiB,EAIjB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAEhB,UAAU,EAQV,aAAa,EAIb,OAAO,EACP,cAAc,EAKd,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EAIf,6BAA6B,EAY7B,kCAAkC,EAClC,yBAAyB,EACzB,8BAA8B,EAC9B,iBAAiB,EAEjB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EAGf,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EAEjB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EAEzB,cAAc,EACd,eAAe,EAMf,iBAAiB,EAGjB,iBAAiB,EAEjB,4BAA4B,EAE5B,WAAW,EACX,YAAY,EAGZ,UAAU,EACV,SAAS,GACT,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Currency, Date } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { AccountState } from "./AccountState";
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
@@ -6,6 +7,7 @@ import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
|
6
7
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
7
8
|
import { CardUsage } from "./CardUsage";
|
|
8
9
|
import { FundingAccountSummaryResponse } from "./FundingAccountSummaryResponse";
|
|
10
|
+
import { MerchantResponse } from "./MerchantResponse";
|
|
9
11
|
import { ProviderCode } from "./ProviderCode";
|
|
10
12
|
import { YearMonth } from "./YearMonth";
|
|
11
13
|
export interface CardResponseV2 {
|
|
@@ -32,7 +34,9 @@ export interface CardResponseV2 {
|
|
|
32
34
|
bookingInfo?: BookingInfoResponse;
|
|
33
35
|
delivery?: CardDeliveryResponse;
|
|
34
36
|
batchId?: string;
|
|
37
|
+
merchantRestriction?: MerchantResponse;
|
|
35
38
|
}
|
|
36
39
|
export declare namespace CardResponseV2 {
|
|
37
|
-
|
|
40
|
+
const type: isly.object.ExtendableType<CardResponseV2>;
|
|
41
|
+
const is: isly.Type.IsFunction<CardResponseV2>;
|
|
38
42
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Date } from "isoly";
|
|
1
|
+
import { Currency, Date } from "isoly";
|
|
2
|
+
import { isly } from "isly";
|
|
2
3
|
import { AccountState } from "./AccountState";
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse";
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse";
|
|
@@ -6,38 +7,37 @@ import { CardScheduleResponseItem } from "./CardScheduleResponseItem";
|
|
|
6
7
|
import { CardTypeSpecification } from "./CardTypeSpecification";
|
|
7
8
|
import { CardUsage } from "./CardUsage";
|
|
8
9
|
import { FundingAccountSummaryResponse } from "./FundingAccountSummaryResponse";
|
|
10
|
+
import { MerchantResponse } from "./MerchantResponse";
|
|
9
11
|
import { ProviderCode } from "./ProviderCode";
|
|
10
12
|
import { YearMonth } from "./YearMonth";
|
|
11
13
|
export var CardResponseV2;
|
|
12
14
|
(function (CardResponseV2) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
CardResponseV2.is = is;
|
|
15
|
+
CardResponseV2.type = isly.object({
|
|
16
|
+
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
17
|
+
cardNumber: isly.string(),
|
|
18
|
+
cvv: isly.string().optional(),
|
|
19
|
+
expiryDate: isly.fromIs("YearMonth", YearMonth.is),
|
|
20
|
+
nameOnCard: isly.string().optional(),
|
|
21
|
+
fundingBalance: isly.number(),
|
|
22
|
+
remainingBalance: isly.number(),
|
|
23
|
+
fundingDate: isly.string(),
|
|
24
|
+
balance: isly.number(),
|
|
25
|
+
currency: isly.fromIs("Currency", Currency.is),
|
|
26
|
+
issueDate: isly.string(),
|
|
27
|
+
providerCode: isly.fromIs("ProviderCode", ProviderCode.is),
|
|
28
|
+
providerCardId: isly.string(),
|
|
29
|
+
usage: isly.fromIs("CardUsage", CardUsage.is),
|
|
30
|
+
fundingAccount: isly.fromIs("FundingAccountSummaryResponse", FundingAccountSummaryResponse.is),
|
|
31
|
+
createdBy: isly.string(),
|
|
32
|
+
state: isly.fromIs("AccountState", AccountState.is),
|
|
33
|
+
longTermTokenExpiry: isly.fromIs("Date", Date.is).optional(),
|
|
34
|
+
activationDate: isly.fromIs("Date", Date.is).optional(),
|
|
35
|
+
schedule: isly.array(isly.fromIs("CardScheduleResponseItem", CardScheduleResponseItem.is)).optional(),
|
|
36
|
+
bookingInfo: isly.fromIs("BookingInfoResponse", BookingInfoResponse.is).optional(),
|
|
37
|
+
delivery: isly.fromIs("CardDeliveryResponse", CardDeliveryResponse.is).optional(),
|
|
38
|
+
batchId: isly.string().optional(),
|
|
39
|
+
merchantRestriction: isly.fromIs("MerchantResponse", MerchantResponse.is).optional(),
|
|
40
|
+
});
|
|
41
|
+
CardResponseV2.is = CardResponseV2.type.is;
|
|
42
42
|
})(CardResponseV2 || (CardResponseV2 = {}));
|
|
43
43
|
//# sourceMappingURL=CardResponseV2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CardResponseV2.js","sourceRoot":"../","sources":["model/CardResponseV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,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,6BAA6B,EAAE,MAAM,iCAAiC,CAAA;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AA6BvC,MAAM,KAAW,cAAc,CA4B9B;AA5BD,WAAiB,cAAc;IACjB,mBAAI,GAAG,IAAI,CAAC,MAAM,CAAiB;QAC/C,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,qBAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC;QAC/D,UAAU,EAAE,IAAI,CAAC,MAAM,EAAE;QACzB,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,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AClF,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,sBAAsB,EAAE,oBAAoB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QACjF,OAAO,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,mBAAmB,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;KACpF,CAAC,CAAA;IACW,iBAAE,GAAG,eAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EA5BgB,cAAc,KAAd,cAAc,QA4B9B"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
1
2
|
import { MerchantType } from "./MerchantType";
|
|
2
3
|
export interface MerchantResponse {
|
|
3
4
|
id?: string;
|
|
4
5
|
name?: string;
|
|
5
6
|
mcc?: string;
|
|
6
7
|
type?: MerchantType;
|
|
8
|
+
isSuitableForCardMerchantRestriction?: true;
|
|
7
9
|
}
|
|
8
10
|
export declare namespace MerchantResponse {
|
|
9
|
-
|
|
11
|
+
const type: isly.object.ExtendableType<MerchantResponse>;
|
|
12
|
+
const is: isly.Type.IsFunction<MerchantResponse>;
|
|
10
13
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { isly } from "isly";
|
|
1
2
|
import { MerchantType } from "./MerchantType";
|
|
2
3
|
export var MerchantResponse;
|
|
3
4
|
(function (MerchantResponse) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
MerchantResponse.is = is;
|
|
5
|
+
MerchantResponse.type = isly.object({
|
|
6
|
+
id: isly.string().optional(),
|
|
7
|
+
name: isly.string().optional(),
|
|
8
|
+
mcc: isly.string().optional(),
|
|
9
|
+
type: MerchantType.type.optional(),
|
|
10
|
+
isSuitableForCardMerchantRestriction: isly.boolean(true).optional(),
|
|
11
|
+
});
|
|
12
|
+
MerchantResponse.is = MerchantResponse.type.is;
|
|
12
13
|
})(MerchantResponse || (MerchantResponse = {}));
|
|
13
14
|
//# sourceMappingURL=MerchantResponse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantResponse.js","sourceRoot":"../","sources":["model/MerchantResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;
|
|
1
|
+
{"version":3,"file":"MerchantResponse.js","sourceRoot":"../","sources":["model/MerchantResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAU7C,MAAM,KAAW,gBAAgB,CAShC;AATD,WAAiB,gBAAgB;IACnB,qBAAI,GAAG,IAAI,CAAC,MAAM,CAAmB;QACjD,EAAE,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,GAAG,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE;QAClC,oCAAoC,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;KACnE,CAAC,CAAA;IACW,mBAAE,GAAG,iBAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EATgB,gBAAgB,KAAhB,gBAAgB,QAShC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerchantSearchRequest.js","sourceRoot":"../","sources":["model/MerchantSearchRequest.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export type MerchantType = typeof
|
|
1
|
+
import { isly } from "isly";
|
|
2
|
+
export type MerchantType = typeof MerchantType.types[number];
|
|
3
3
|
export declare namespace MerchantType {
|
|
4
|
-
|
|
4
|
+
const types: readonly ["flight", "hotel"];
|
|
5
|
+
const type: isly.Type<"flight" | "hotel">;
|
|
6
|
+
const is: isly.Type.IsFunction<"flight" | "hotel">;
|
|
5
7
|
}
|
|
6
|
-
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { isly } from "isly";
|
|
2
2
|
export var MerchantType;
|
|
3
3
|
(function (MerchantType) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
MerchantType.is = is;
|
|
4
|
+
MerchantType.types = ["flight", "hotel"];
|
|
5
|
+
MerchantType.type = isly.string(MerchantType.types);
|
|
6
|
+
MerchantType.is = MerchantType.type.is;
|
|
8
7
|
})(MerchantType || (MerchantType = {}));
|
|
9
8
|
//# sourceMappingURL=MerchantType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MerchantType.js","sourceRoot":"../","sources":["model/MerchantType.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"MerchantType.js","sourceRoot":"../","sources":["model/MerchantType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAI3B,MAAM,KAAW,YAAY,CAI5B;AAJD,WAAiB,YAAY;IACf,kBAAK,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU,CAAA;IACpC,iBAAI,GAAG,IAAI,CAAC,MAAM,CAAC,aAAA,KAAK,CAAC,CAAA;IACzB,eAAE,GAAG,aAAA,IAAI,CAAC,EAAE,CAAA;AAC1B,CAAC,EAJgB,YAAY,KAAZ,YAAY,QAI5B"}
|
package/dist/model/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ import { LoginResponse } from "./LoginResponse";
|
|
|
113
113
|
import { MerchantDetails } from "./MerchantDetails";
|
|
114
114
|
import { MerchantRequest } from "./MerchantRequest";
|
|
115
115
|
import { MerchantResponse } from "./MerchantResponse";
|
|
116
|
+
import { MerchantSearchRequest } from "./MerchantSearchRequest";
|
|
116
117
|
import { MinimalBookingInfo } from "./MinimalBookingInfo";
|
|
117
118
|
import { NonBeneficiaryTransferDestination } from "./NonBeneficiaryTransferDestination";
|
|
118
119
|
import { OmnisetupFlags } from "./OmnisetupFlags";
|
|
@@ -219,4 +220,4 @@ import { UserRoleResponse } from "./UserRoleResponse";
|
|
|
219
220
|
import { UserSearchRequest } from "./UserSearchRequest";
|
|
220
221
|
import { UserStatus } from "./UserStatus";
|
|
221
222
|
import { YearMonth } from "./YearMonth";
|
|
222
|
-
export { AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyResponse, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileRequest, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CardUsage, CategoryFundingAccountAccessRequest, UpdateCategoryRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, CurrencyConversionRequest, CurrencyConversionResponse, DateRangeLocalDate, DeliveryStatus, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, FutureTransactionPrognosisAmountPair, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, References, RelogWithNewSessionDetailsRequest, Report, ReconciliationReportUrlRequest, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduleEntry, CardSearchRequest, ScheduledTaskRequest, SearchRolesetsRequest, SecurityConfig, Segment, SearchBeneficiaryRequest, StatementReportUrlRequest, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportSubType, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestedCardMetaOptions, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedCardDeliveryOptions, SuggestedSchedulesOptions, SuggestedPaymentMethodResponses, SuggestedUsageOptions, SuggestionCardDeliveryRequest, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferDirection, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
|
223
|
+
export { AccountBankResponse, AccountCreationRequest, AccountDetailsTransferDestinationResponse, AccountIdentifierResponse, AccountResponse, AccountSearchRequest, AccountState, AccountSummary, AccountType, AddressInfo, AgentBookingInfo, AllowedMccConfig, AmendCardRequest, AmountPair, ApiKeyCreateRequest, ApiKeyCreateResponse, ApiKeyResponse, BeneficiaryRequest, BeneficiaryResponse, BeneficiaryStatus, BeneficiaryTransferDestinationResponse, BillingTransactionAmountPair, BookedProductInfo, BookingInfo, BookingInfoRequest, BookingInfoResponse, BookingInfoType, CardDeliveryEmailConfig, CardAmendmentScheduledTaskRequest, CardAmendmentScheduledTaskResponse, CardDeliveryRequest, CardDeliveryResponse, CardForm, CardFundingAccountResponse, CardOptionSearch, CardReportUrlRequest, CardResponse, CardResponseV2, CardScheduleResponseItem, CardScheduleTaskStatus, CardScheduleTaskType, CardSearch, CardStateChangeDesiredState, CardStateChangeScheduledTaskRequest, CardStateChangeScheduledTaskResponse, CardStatement, CardTransaction, CardTransactionType, CardType, CardTypeProfileRequest, CardTypeProfileResponse, CardTypeResponse, CardTypeResponseV2, CardTypesConfig, CardTypeSearchRequest, CardTypeSpecification, CardTypeSpecificationFlag, CardUsage, CategoryFundingAccountAccessRequest, UpdateCategoryRequest, CategoryLimitResponse, CategoryResponse, CategoryStatus, ConfigMatchesRequest, ConfigMatchesResponse, ConfigRequest, ConfigResponse, ConfigTypesResponse, CreateCardRequest, CreateRolesetRequest, CredentialRequest, CredentialResponse, Criteria, CurrencyConversionRequest, CurrencyConversionResponse, DateRangeLocalDate, DeliveryStatus, EmailValidationResponse, ErrorMessageDto, ErrorResponse, ExternalDestination, ExternalSource, FiveFieldsBookingInfoRequest, FiveFieldsBookingInfoResponse, FlightBookingInfoRequest, FlightBookingInfoResponse, FlightInfo, FundingAccountIdentifierType, FundingAccountInboundTransferNotificationConfig, FundingAccountResponseV2Basic, FundingAccountResponseV2Full, FundingAccountSearchRequest, FundingAccountSearchResponse, FundingAccountSummaryResponse, FundingLimitConfig, FundingLimitRequest, FundingLimitResponse, FutureTransactionPrognosisAmountPair, HotelBookingInfoRequest, HotelBookingInfoResponse, HotelInfo, InsertCardOptionRequest, InsertCardRequest, InternalBalanceLimit, InternalOrganisationConfig, InvoiceBookingInfoRequest, InvoiceBookingInfoResponse, InvokingSystem, Issue, LegacyBookingInfoRequest, LoginRequest, LoginResponse, MerchantDetails, MerchantRequest, MerchantResponse, MerchantSearchRequest, MinimalBookingInfo, NonBeneficiaryTransferDestination, OmnisetupFlags, OmnisetupProviderRequest, OmnisetupRequest, OmnisetupResponse, OrganisationBalanceLimitResponse, OrganisationConfig, OrganisationCreateRequest, OrganisationFlag, OrganisationRequest, OrganisationResponse, OrganisationUpdateRequest, Passengers, PasswordChangeRequest, PasswordResetResponse, PasswordValidateRequest, PasswordValidateResponse, PaxpayFeature, Payload, PaymentMethodOptionResponse, PaymentMethodType, PaymentOption, PaymentResponse, ProcessedStatement, ProductType, ProviderCode, ProviderResponse, Range, References, RelogWithNewSessionDetailsRequest, Report, ReconciliationReportUrlRequest, ReportUrlResponse, RoleResponse, RolesetResponse, Room, ScheduleEntry, CardSearchRequest, ScheduledTaskRequest, SearchRolesetsRequest, SecurityConfig, Segment, SearchBeneficiaryRequest, StatementReportUrlRequest, StatementReportRequest, StatementReportResponse, StatementReportResponseRow, StatementReportRowActionType, StatementReportRowType, StatementReportSubType, StatementRowIds, StatementSummaryReportRequest, StatementSummaryReportResponse, StatementSummaryReportResponseRow, StatementTransferSpecificType, SuggestedCardMetaOptions, SuggestedCardPaymentMethodResponse, SuggestedCardTypeOptions, SuggestedFundingAccountOptions, SuggestedOptions, SuggestedPaymentMethodResponse, SuggestedCardDeliveryOptions, SuggestedSchedulesOptions, SuggestedPaymentMethodResponses, SuggestedUsageOptions, SuggestionCardDeliveryRequest, SuggestionCardPaymentMethodRequest, SuggestionMerchantRequest, SuggestionPaymentMethodRequest, SuggestionRequest, SuggestionResponse, SummaryBookingInfoResponse, SupplierBookingInfo, SupplierRequest, SupplierResponse, TransactionResponse, TransactionType, TransferDestinationInfo, TransferDestinationResponse, TransferDirection, TransferRequest, TransferResponse, TransferResponseV2, TransferResponseV2Summary, TransferSearch, TransferStatus, TravelPartyInfo, TwoFactorAuthenticationDetails, TwoFactorAuthenticationRegistrationResponse, UpdateAccountRequest, UpdateBeneficiaryRequest, UpdateRolesetRequest, UserChangeRequest, UserConfig, UserLimitsDeleteRequest, UserLimitsRequest, UserLimitsResponse, UsernameAvailabilityResponse, UserReportUrlRequest, UserRequest, UserResponse, UserRoleResponse, UserSearchRequest, UserStatus, YearMonth, };
|
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,E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IT,0BAA0B,EAC1B,yBAAyB,EACzB,0BAA0B,EAC1B,cAAc,EACd,KAAK,EACL,wBAAwB,EAExB,aAAa,EACb,eAAe,EACf,eAAe,EACf,gBAAgB,EAIhB,cAAc,EACd,wBAAwB,EACxB,gBAAgB,EAEhB,gCAAgC,EAChC,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAEhB,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EAKV,aAAa,EAGb,iBAAiB,EAIjB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAEhB,UAAU,EAQV,aAAa,EAIb,cAAc,EACd,OAAO,EAKP,0BAA0B,EAC1B,4BAA4B,EAC5B,sBAAsB,EACtB,sBAAsB,EACtB,eAAe,EAIf,6BAA6B,EAY7B,kCAAkC,EAClC,yBAAyB,EACzB,8BAA8B,EAC9B,iBAAiB,EAEjB,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EAGf,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,iBAAiB,EAEjB,gBAAgB,EAChB,kBAAkB,EAClB,yBAAyB,EAEzB,cAAc,EACd,eAAe,EAMf,iBAAiB,EAGjB,iBAAiB,EAEjB,4BAA4B,EAE5B,WAAW,EACX,YAAY,EAGZ,UAAU,EACV,SAAS,GACT,CAAA"}
|
package/index.ts
CHANGED
|
@@ -115,6 +115,7 @@ import {
|
|
|
115
115
|
MerchantDetails,
|
|
116
116
|
MerchantRequest,
|
|
117
117
|
MerchantResponse,
|
|
118
|
+
MerchantSearchRequest,
|
|
118
119
|
MinimalBookingInfo,
|
|
119
120
|
NonBeneficiaryTransferDestination,
|
|
120
121
|
OmnisetupFlags,
|
|
@@ -340,6 +341,7 @@ export {
|
|
|
340
341
|
MerchantDetails,
|
|
341
342
|
MerchantRequest,
|
|
342
343
|
MerchantResponse,
|
|
344
|
+
MerchantSearchRequest,
|
|
343
345
|
MinimalBookingInfo,
|
|
344
346
|
NonBeneficiaryTransferDestination,
|
|
345
347
|
OmnisetupFlags,
|
package/model/CardResponseV2.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Currency, Date } from "isoly"
|
|
2
|
+
import { isly } from "isly"
|
|
2
3
|
import { AccountState } from "./AccountState"
|
|
3
4
|
import { BookingInfoResponse } from "./BookingInfoResponse"
|
|
4
5
|
import { CardDeliveryResponse } from "./CardDeliveryResponse"
|
|
@@ -6,6 +7,7 @@ import { CardScheduleResponseItem } from "./CardScheduleResponseItem"
|
|
|
6
7
|
import { CardTypeSpecification } from "./CardTypeSpecification"
|
|
7
8
|
import { CardUsage } from "./CardUsage"
|
|
8
9
|
import { FundingAccountSummaryResponse } from "./FundingAccountSummaryResponse"
|
|
10
|
+
import { MerchantResponse } from "./MerchantResponse"
|
|
9
11
|
import { ProviderCode } from "./ProviderCode"
|
|
10
12
|
import { YearMonth } from "./YearMonth"
|
|
11
13
|
|
|
@@ -33,37 +35,35 @@ export interface CardResponseV2 {
|
|
|
33
35
|
bookingInfo?: BookingInfoResponse
|
|
34
36
|
delivery?: CardDeliveryResponse
|
|
35
37
|
batchId?: string
|
|
38
|
+
merchantRestriction?: MerchantResponse
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
export namespace CardResponseV2 {
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
(value.activationDate == undefined || Date.is(value.activationDate))
|
|
67
|
-
)
|
|
68
|
-
}
|
|
42
|
+
export const type = isly.object<CardResponseV2>({
|
|
43
|
+
cardType: isly.union(CardTypeSpecification.type, isly.string()),
|
|
44
|
+
cardNumber: isly.string(),
|
|
45
|
+
cvv: isly.string().optional(),
|
|
46
|
+
expiryDate: isly.fromIs("YearMonth", YearMonth.is),
|
|
47
|
+
nameOnCard: isly.string().optional(),
|
|
48
|
+
fundingBalance: isly.number(),
|
|
49
|
+
remainingBalance: isly.number(),
|
|
50
|
+
fundingDate: isly.string(),
|
|
51
|
+
balance: isly.number(),
|
|
52
|
+
currency: isly.fromIs("Currency", Currency.is),
|
|
53
|
+
issueDate: isly.string(),
|
|
54
|
+
providerCode: isly.fromIs("ProviderCode", ProviderCode.is),
|
|
55
|
+
providerCardId: isly.string(),
|
|
56
|
+
usage: isly.fromIs("CardUsage", CardUsage.is),
|
|
57
|
+
fundingAccount: isly.fromIs("FundingAccountSummaryResponse", FundingAccountSummaryResponse.is),
|
|
58
|
+
createdBy: isly.string(),
|
|
59
|
+
state: isly.fromIs("AccountState", AccountState.is),
|
|
60
|
+
longTermTokenExpiry: isly.fromIs("Date", Date.is).optional(),
|
|
61
|
+
activationDate: isly.fromIs("Date", Date.is).optional(),
|
|
62
|
+
schedule: isly.array(isly.fromIs("CardScheduleResponseItem", CardScheduleResponseItem.is)).optional(),
|
|
63
|
+
bookingInfo: isly.fromIs("BookingInfoResponse", BookingInfoResponse.is).optional(),
|
|
64
|
+
delivery: isly.fromIs("CardDeliveryResponse", CardDeliveryResponse.is).optional(),
|
|
65
|
+
batchId: isly.string().optional(),
|
|
66
|
+
merchantRestriction: isly.fromIs("MerchantResponse", MerchantResponse.is).optional(),
|
|
67
|
+
})
|
|
68
|
+
export const is = type.is
|
|
69
69
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isly } from "isly"
|
|
1
2
|
import { MerchantType } from "./MerchantType"
|
|
2
3
|
|
|
3
4
|
export interface MerchantResponse {
|
|
@@ -5,16 +6,16 @@ export interface MerchantResponse {
|
|
|
5
6
|
name?: string
|
|
6
7
|
mcc?: string
|
|
7
8
|
type?: MerchantType
|
|
9
|
+
isSuitableForCardMerchantRestriction?: true
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export namespace MerchantResponse {
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
13
|
+
export const type = isly.object<MerchantResponse>({
|
|
14
|
+
id: isly.string().optional(),
|
|
15
|
+
name: isly.string().optional(),
|
|
16
|
+
mcc: isly.string().optional(),
|
|
17
|
+
type: MerchantType.type.optional(),
|
|
18
|
+
isSuitableForCardMerchantRestriction: isly.boolean(true).optional(),
|
|
19
|
+
})
|
|
20
|
+
export const is = type.is
|
|
20
21
|
}
|
package/model/MerchantType.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { isly } from "isly"
|
|
2
|
+
|
|
3
|
+
export type MerchantType = typeof MerchantType.types[number]
|
|
3
4
|
|
|
4
5
|
export namespace MerchantType {
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export const types = ["flight", "hotel"] as const
|
|
7
|
+
export const type = isly.string(types)
|
|
8
|
+
export const is = type.is
|
|
8
9
|
}
|
package/model/index.ts
CHANGED
|
@@ -113,6 +113,7 @@ import { LoginResponse } from "./LoginResponse"
|
|
|
113
113
|
import { MerchantDetails } from "./MerchantDetails"
|
|
114
114
|
import { MerchantRequest } from "./MerchantRequest"
|
|
115
115
|
import { MerchantResponse } from "./MerchantResponse"
|
|
116
|
+
import { MerchantSearchRequest } from "./MerchantSearchRequest"
|
|
116
117
|
import { MinimalBookingInfo } from "./MinimalBookingInfo"
|
|
117
118
|
import { NonBeneficiaryTransferDestination } from "./NonBeneficiaryTransferDestination"
|
|
118
119
|
import { OmnisetupFlags } from "./OmnisetupFlags"
|
|
@@ -336,6 +337,7 @@ export {
|
|
|
336
337
|
MerchantDetails,
|
|
337
338
|
MerchantRequest,
|
|
338
339
|
MerchantResponse,
|
|
340
|
+
MerchantSearchRequest,
|
|
339
341
|
MinimalBookingInfo,
|
|
340
342
|
NonBeneficiaryTransferDestination,
|
|
341
343
|
OmnisetupFlags,
|