-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamazonPayments.ts
107 lines (104 loc) · 3.65 KB
/
amazonPayments.ts
1
2
3
4
5
6
7
8
9
10
11
12
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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import { EnvironmentEnum, IConfiguration } from './classes/config';
import { Auth } from './lib/auth';
import { OffAmazonPayments } from './lib/offAmazonPayments';
import { Reports } from './lib/reports';
export { IConfiguration, OffAmazonPayments };
export {
IAddress,
IAuthorizationDetails,
IBillingAgreementAttributes,
IBillingAgreementDetails,
IBillingAgreementLimits,
IBillingAgreementStatus,
IBuyer,
ICaptureDetails,
IConstraint,
IDestination,
IOrderAttributes,
IOrderReferenceAttributes,
IOrderReferenceDetails,
IOrderReferenceStatus,
IOrderTotal,
IPaymentServiceProviderAttributes,
IPrice,
IRefundDetails,
IReportInfo,
IReportRequestInfo,
IReportSchedule,
ISellerBillingAgreementAttributes,
ISellerOrderAttributes,
} from './types/entities';
export {
AccountStatus,
AuthorizationStatusReasons,
BillingAgreementStatusReasons,
CaptureStatusReasons,
OrderReferenceStatusReasons,
RefundStatusReasons,
DestinationType,
RefundType,
ReportProcessingStatusList,
ReportType,
Schedule,
ServiceStatus,
AuthorizationStates,
BillingAgreementStates,
CaptureStates,
OrderReferenceStates,
RefurnStates,
FailureReasonCode,
ValidationResult,
} from './types/enums';
export {
IAuthorizeOnBillingAgreementRequest, IAuthorizeOnBillingAgreementResponse,
IAuthorizeRequest, IAuthorizeResponse,
ICancelOrderReferenceRequest,
ICancelReportRequestsRequest, ICancelReportRequestsResponse,
ICaptureRequest, ICaptureResponse,
ICloseAuthorizationRequest,
ICloseBillingAgreementRequest,
ICloseOrderReferenceRequest,
IConfirmBillingAgreementRequest,
IConfirmOrderReferenceRequest,
ICreateOrderReferenceForIdRequest, ICreateOrderReferenceForIdResponse,
IGetAuthorizationDetailsRequest, IGetAuthorizationDetailsResponse,
IGetBillingAgreementDetailsRequest, IGetBillingAgreementDetailsResponse,
IGetCaptureDetailsRequest, IGetCaptureDetailsResponse,
IGetMerchantAccountStatusRequest, IGetMerchantAccountStatusResponse,
IGetOrderReferenceDetailsRequest, IGetOrderReferenceDetailsResponse,
IGetRefundDetailsRequest, IGetRefundDetailsResponse,
IGetReportCountRequest,
IGetReportListByNextTokenRequest, IGetReportListByNextTokenResponse,
IGetReportListRequest, IGetReportListResponse,
IGetReportRequestCountRequest, IGetReportRequestCountResponse,
IGetReportRequestListByNextTokenRequest, IGetReportRequestListByNextTokenResponse,
IGetReportRequestListRequest, IGetReportRequestListResponse,
IGetReportScheduleCountRequest, IGetReportScheduleCountResponse,
IGetReportScheduleListRequest, IGetReportScheduleListRespose,
IGetReportRequest, IGetReportResponse,
IGetServiceStatusResponse,
IManageReportScheduleRequest, IManageReportScheduleResponse,
IRefundRequest, IRefundResponse,
IRequestReportRequest, IRequestReportResponse,
ISetBillingAgreementDetailsRequest, ISetBillingAgreementDetailsResponse,
ISetOrderAttributesRequest, ISetOrderAttributesResponse,
ISetOrderReferenceDetailsRequest, ISetOrderReferenceDetailsResponse,
ITokenInformationResponse,
IUpdateReportAcknowledgementsRequest, IUpdateReportAcknowledgementsResposne,
IValidateBillingAgreementRequest, IValidateBillingAgreementResponse,
} from './types';
export {
BillingAgreementConstraintIds,
OrderReferenceConstraintIds,
} from './types/constraints';
export default class AmazonPayClient {
public static readonly Environments = EnvironmentEnum;
public readonly auth: Auth;
public readonly offAmazonPayments: OffAmazonPayments;
public readonly reports: Reports;
constructor(opts: IConfiguration) {
this.auth = new Auth(opts);
this.reports = new Reports(opts);
this.offAmazonPayments = new OffAmazonPayments(opts);
}
}