New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

paypal-rest-api

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-rest-api - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

lib/mocks/invoice.d.ts
import { IInvoice } from "../apitypes/invoice";
export declare const mockPaypalInvoiceSentString: string;
export declare const mockPaypalInvoiceSentString = "{\"id\":\"INV2-94XS-GASK-LDJC-2HV2\",\"number\":\"2460\",\"template_id\":\"TEMP-5ML62849WY523084R\",\"status\":\"SENT\",\"merchant_info\":{\"email\":\"seller@awesome.com\",\"first_name\":\"Dennis\",\"last_name\":\"Doctor\",\"business_name\":\"ACME\",\"phone\":{\"country_code\":\"1\",\"national_number\":\"4082564877\"},\"address\":{\"line1\":\"2211 North First St\",\"city\":\"San Jose\",\"state\":\"CA\",\"postal_code\":\"95131\",\"country_code\":\"US\",\"phone\":{\"country_code\":\"1\",\"national_number\":\"4082564877\"}}},\"billing_info\":[{\"email\":\"fflintstone@gmail.com\",\"first_name\":\"Fred\",\"last_name\":\"Flintstone\",\"business_name\":\"Fred Flintstone\",\"phone\":{\"country_code\":\"1\",\"national_number\":\"4021112222\"},\"address\":{\"phone\":{\"country_code\":\"1\",\"national_number\":\"4021112222\"}},\"additional_info\":\"CUST-00124\"}],\"shipping_info\":{\"first_name\":\"Fred\",\"last_name\":\"Flintstone\",\"business_name\":\"Fred Flintstone(CCUST-00124)\"},\"items\":[{\"name\":\"Item Name\",\"quantity\":1,\"unit_price\":{\"currency\":\"USD\",\"value\":\"60.00\"}},{\"name\":\"Item Name\",\"quantity\":1,\"unit_price\":{\"currency\":\"USD\",\"value\":\"100.00\"}}],\"invoice_date\":\"2017-08-21 PDT\",\"payment_term\":{\"term_type\":\"NET_15\",\"due_date\":\"2017-09-05 PDT\"},\"tax_calculated_after_discount\":false,\"tax_inclusive\":true,\"note\":\"Thanks for your business!\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"160.00\"},\"metadata\":{\"created_date\":\"2017-08-21 09:01:47 PDT\",\"first_sent_date\":\"2017-08-21 11:03:12 PDT\",\"last_sent_date\":\"2017-08-21 11:03:12 PDT\",\"payer_view_url\":\"https://www.sandbox.paypal.com/invoice/payerView/details/INV2-94XS-GASK-LDJC-2HV2\"},\"allow_tip\":false,\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-94XS-GASK-LDJC-2HV2\",\"method\":\"GET\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-94XS-GASK-LDJC-2HV2/update\",\"method\":\"PUT\"},{\"rel\":\"cancel\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-94XS-GASK-LDJC-2HV2/remind\",\"method\":\"POST\"},{\"rel\":\"remind\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-94XS-GASK-LDJC-2HV2/cancel\",\"method\":\"POST\"},{\"rel\":\"record-payment\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-94XS-GASK-LDJC-2HV2/record-payment\",\"method\":\"POST\"},{\"rel\":\"qr-code\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-94XS-GASK-LDJC-2HV2/qr-code\",\"method\":\"GET\"}],\"httpStatusCode\":200}";
export declare const mockPayPalInvoiceSent: IInvoice;
export declare const mockPaypalInvoiceDraftString: string;
export declare const mockPaypalInvoiceDraftString = "{\"id\":\"INV2-9X6N-56BA-RMJA-ZCDW\",\"number\":\"0244\",\"template_id\":\"TEMP-5ML62849WY523084R\",\"status\":\"DRAFT\",\"merchant_info\":{},\"invoice_date\":\"2017-08-04 PDT\",\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"total_amount\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"metadata\":{\"created_date\":\"2017-08-04 07:52:48 PDT\"},\"allow_tip\":false,\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9X6N-56BA-RMJA-ZCDW\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9X6N-56BA-RMJA-ZCDW/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9X6N-56BA-RMJA-ZCDW/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9X6N-56BA-RMJA-ZCDW\",\"method\":\"DELETE\"}],\"httpStatusCode\":200}";
export declare const mockPayPalInvoiceDraft: IInvoice;
export declare const mockPaypalInvoiceCancelledString: string;
export declare const mockPaypalInvoiceCancelledString = "{\"id\":\"INV2-EL7C-77BL-FFG2-JZRG\",\"number\":\"2414\",\"status\":\"CANCELLED\",\"merchant_info\":{\"email\":\"seller@awesome.com\"},\"billing_info\":[{\"email\":\"fflintstone@gmail.com\",\"first_name\":\"Fred\",\"last_name\":\"Flintstone\",\"business_name\":\"Fred Flintstone\",\"phone\":{\"country_code\":\"1\",\"national_number\":\"4021112222\"}}],\"shipping_info\":{\"email\":\"fflintstone@gmail.com\",\"first_name\":\"Fred\",\"last_name\":\"Flintstone\",\"business_name\":\"Fred Flintstone(CCUST-00124)\"},\"invoice_date\":\"2017-08-08 PDT\",\"payment_term\":{\"due_date\":\"2017-08-23 PDT\"},\"note\":\"Thanks for your business!\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"137.00\"},\"metadata\":{\"created_date\":\"2017-08-08 16:44:23 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-EL7C-77BL-FFG2-JZRG\",\"method\":\"GET\"}]}";
export declare const mockPayPalInvoiceCancelled: IInvoice;
export declare const mockPaypalInvoiceRefundedString: string;
export declare const mockPaypalInvoiceRefundedString = "{\"id\":\"INV2-LQ69-H37M-B4MR-9BN7\",\"number\":\"2445\",\"status\":\"REFUNDED\",\"merchant_info\":{\"email\":\"seller@awesome.com\"},\"billing_info\":[{\"email\":\"fflintstone@gmail.com\",\"first_name\":\"Fred\",\"last_name\":\"Flintstone\",\"business_name\":\"Fred Flintstone\",\"phone\":{\"country_code\":\"1\",\"national_number\":\"4021112222\"}}],\"shipping_info\":{\"email\":\"fflintstone@gmail.com\",\"first_name\":\"Fred\",\"last_name\":\"Flintstone\",\"business_name\":\"Fred Flintstone(CCUST-00124)\"},\"invoice_date\":\"2017-08-16 PDT\",\"payment_term\":{\"due_date\":\"2017-08-31 PDT\"},\"note\":\"Thanks for your business!\",\"total_amount\":{\"currency\":\"USD\",\"value\":\"137.00\"},\"metadata\":{\"created_date\":\"2017-08-16 09:15:24 PDT\"},\"paid_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"137.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"refunded_amount\":{\"paypal\":{\"currency\":\"USD\",\"value\":\"137.00\"},\"other\":{\"currency\":\"USD\",\"value\":\"0.00\"}},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-LQ69-H37M-B4MR-9BN7\",\"method\":\"GET\"}]}";
export declare const mockPayPalInvoiceRefunded: IInvoice;
{
"name": "paypal-rest-api",
"version": "0.0.7",
"version": "0.0.8",
"description": "A typescript module for integrating with PayPal REST APIs.",

@@ -25,3 +25,3 @@ "license": "MIT",

"build": "npm run clean && npm run lint && echo Using TypeScript && tsc --version && tsc --pretty",
"test": "nyc tape test/**/*-spec.ts | tap-spec; nyc report ---reporter=text",
"test": "nyc blue-tape test/**/*-spec.ts | tap-spec && nyc report ---reporter=text",
"watch": "npm run build -- --watch",

@@ -28,0 +28,0 @@ "watch:test": "npm run test -- --watch",

@@ -12,3 +12,3 @@ [![Build Status](https://travis-ci.org/trainerbill/paypal-rest-api.svg?branch=master)](https://travis-ci.org/trainerbill/paypal-rest-api)

## Main Features
## Main Differences and Features

@@ -15,0 +15,0 @@ - Non-Singleton which allows for the use of multiple paypal rest applications. Necessary for multi-currency support.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc