@elevatormedia/paymigo
Advanced tools
Comparing version 0.1.5-alpha.6 to 0.1.5-alpha.7
import { OrdersClient } from './lib/orders'; | ||
import { PaymentsClient } from './lib/payments'; | ||
import { DisputesClient } from './lib/disputes'; | ||
import { ReportingClient } from './lib/reporting'; | ||
import { PayflowClient } from './lib/payflow'; | ||
import { ClientMode, ClientOptions } from './types/client'; | ||
import ReportingClient from 'lib/reporting'; | ||
export default class PaymigoClient { | ||
@@ -13,4 +14,5 @@ mode: ClientMode; | ||
reporting: ReportingClient; | ||
payflow: PayflowClient; | ||
constructor(options: ClientOptions); | ||
} | ||
//# sourceMappingURL=Client.d.ts.map |
@@ -10,3 +10,4 @@ "use strict"; | ||
const disputes_1 = require("./lib/disputes"); | ||
const reporting_1 = require("./lib/reporting"); | ||
const payflow_1 = require("./lib/payflow"); | ||
const reporting_1 = __importDefault(require("lib/reporting")); | ||
class PaymigoClient { | ||
@@ -27,4 +28,5 @@ constructor(options) { | ||
this.disputes = new disputes_1.DisputesClient(this._client); | ||
if (options.reporting) | ||
this.reporting = new reporting_1.ReportingClient(options.mode, options.reporting); | ||
this.reporting = new reporting_1.default(this._client); | ||
if (options.payflow) | ||
this.payflow = new payflow_1.PayflowClient(options.mode, options.payflow); | ||
} | ||
@@ -31,0 +33,0 @@ } |
import { Dispute, DisputesListOptions } from '../../types/disputes'; | ||
import ResourceClient from '../../lib/ResourceClient'; | ||
export default class DisputesClient extends ResourceClient { | ||
apiVersion: string; | ||
constructor(client: paypal.core.PayPalHttpClient); | ||
@@ -5,0 +6,0 @@ /** |
@@ -20,2 +20,3 @@ "use strict"; | ||
super(client); | ||
this.apiVersion = 'v1'; // /v1/customer/disputes | ||
} | ||
@@ -22,0 +23,0 @@ /** |
import { Amount, Order, CreateOrderInput, PatchOrderInput } from '../types'; | ||
import ResourceClient from './ResourceClient'; | ||
export declare class OrdersClient extends ResourceClient { | ||
apiVersion: string; | ||
constructor(client: paypal.core.PayPalHttpClient); | ||
@@ -5,0 +6,0 @@ create(input: CreateOrderInput): Promise<Order>; |
@@ -32,2 +32,3 @@ "use strict"; | ||
super(client); | ||
this.apiVersion = 'v2'; // /v2/checkout | ||
} | ||
@@ -34,0 +35,0 @@ create(input) { |
import { Authorization, AuthorizationCaptureResponse, Amount, Capture, Refund, RefundCapturedPaymentBody } from '../types'; | ||
import ResourceClient from './ResourceClient'; | ||
export declare class PaymentsClient extends ResourceClient { | ||
apiVersion: string; | ||
constructor(client: paypal.core.PayPalHttpClient); | ||
@@ -5,0 +6,0 @@ getAuthorization(authorizationId: string): Promise<Authorization>; |
@@ -21,2 +21,3 @@ "use strict"; | ||
super(client); | ||
this.apiVersion = 'v2'; // /v2/paymments | ||
} | ||
@@ -23,0 +24,0 @@ getAuthorization(authorizationId) { |
@@ -12,4 +12,4 @@ export declare type ClientMode = 'sandbox' | 'production'; | ||
secretKey: string; | ||
reporting?: PayflowCredentials; | ||
payflow?: PayflowCredentials; | ||
}; | ||
//# sourceMappingURL=client.d.ts.map |
{ | ||
"name": "@elevatormedia/paymigo", | ||
"version": "0.1.5-alpha.6", | ||
"version": "0.1.5-alpha.7", | ||
"description": "TypeScript wrapper and extension of PayPal Node.js SDK and REST APIs", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96462
119
1129