@paynext/sdk 0.0.43 → 0.0.44

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/dist/index.d.ts CHANGED
@@ -295,14 +295,7 @@ export declare interface PaymentResult {
295
295
  };
296
296
  payment_method: {
297
297
  id: string;
298
- apple_pay?: {
299
- cryptogram: string;
300
- eci: string;
301
- exp_month: number;
302
- exp_year: number;
303
- token: string;
304
- token_service_provider: string;
305
- };
298
+ type: 'CARD' | 'PAYPAL' | 'APPLEPAY' | 'GPAY';
306
299
  billing_address: {
307
300
  city: string;
308
301
  country: string;
@@ -311,34 +304,22 @@ export declare interface PaymentResult {
311
304
  postal_code: string;
312
305
  state: string;
313
306
  };
314
- card?: {
315
- bin: string;
316
- bin_data: {
317
- brand: string;
318
- country: string;
319
- currency_code: string;
320
- description: string;
321
- funding: string;
322
- issuer: string;
323
- type: string;
324
- };
325
- cvc?: string;
326
- exp_month: number;
327
- exp_year: number;
328
- is_network_tokenized: boolean;
307
+ phone: string;
308
+ details: {
309
+ bin?: string;
329
310
  last4?: string;
330
- number?: string;
331
- };
332
- google_pay?: {
333
- cryptogram: string;
334
- eci: string;
335
311
  exp_month: number;
336
312
  exp_year: number;
337
- token: string;
338
- token_service_provider: string;
339
- };
340
- paypal?: {
341
- billing_agreement_id: string;
313
+ is_network_tokenized: boolean;
314
+ number: string;
315
+ cvc?: string;
316
+ token?: string;
317
+ token_service_provider?: string;
318
+ cryptogram?: string;
319
+ eci?: string;
320
+ token_exp_month?: number;
321
+ token_exp_year?: number;
322
+ billing_agreement_id?: string;
342
323
  payer_info: {
343
324
  email: string;
344
325
  first_name: string;
@@ -346,12 +327,19 @@ export declare interface PaymentResult {
346
327
  payer_id: string;
347
328
  tenant: string;
348
329
  };
330
+ bin_data: {
331
+ brand: string;
332
+ country: string;
333
+ currency_code: string;
334
+ description?: string;
335
+ funding: string;
336
+ issuer: string;
337
+ type: string;
338
+ };
349
339
  };
350
- phone?: string;
351
340
  threed_secure_authentication?: {
352
341
  response_code: string;
353
342
  };
354
- type: 'CARD' | 'PAYPAL' | 'APPLEPAY' | 'GPAY';
355
343
  };
356
344
  payment_status: string;
357
345
  payment_token_type: string;
package/dist/index.es.js CHANGED
@@ -3748,7 +3748,7 @@ class Mc {
3748
3748
  }
3749
3749
  const _c = (t, e, n) => e.concat(t.filter((r) => e.every((i) => !n(r, i)))), yn = (t = "sandbox") => ({
3750
3750
  develop: "https://api-dev.paynext.com/v1",
3751
- sandbox: "https://sandbox-api.paynext.com/v1",
3751
+ sandbox: "https://api-sandbox.paynext.com/v1",
3752
3752
  production: "https://api.paynext.com/v1"
3753
3753
  })[t], Pc = [
3754
3754
  {