Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/googlepay

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/googlepay - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

30

googlepay/index.d.ts

@@ -7,2 +7,3 @@ // Type definitions for non-npm package Google Pay API 0.2

// Alexandre Couret <https://github.com/ozotek>
// Sergi Ferriz <https://github.com/mumpo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -115,4 +116,5 @@

type TransactionInfo = UnknownPriceTransactionInfo | KnownPriceTransactionInfo;
type TransactionInfo = UnknownPriceTransactionInfo | EstimatedPriceTransactionInfo | FinalPriceTransactionInfo;
type TotalPriceStatus = 'ESTIMATED' | 'FINAL' | 'NOT_CURRENTLY_KNOWN';
type CheckoutOption = 'DEFAULT' | 'COMPLETE_IMMEDIATE_PURCHASE';

@@ -122,2 +124,7 @@ interface BaseTransactionInfo {

currencyCode: string;
countryCode?: string;
transactionId?: string;
displayItems?: DisplayItem[];
totalPriceLabel?: string;
checkoutOption?: CheckoutOption;
}

@@ -127,2 +134,3 @@

totalPriceStatus: 'NOT_CURRENTLY_KNOWN';
checkoutOption?: 'DEFAULT';
}

@@ -135,2 +143,22 @@

interface EstimatedPriceTransactionInfo extends KnownPriceTransactionInfo {
totalPriceStatus: 'ESTIMATED';
checkoutOption?: 'DEFAULT';
}
interface FinalPriceTransactionInfo extends KnownPriceTransactionInfo {
totalPriceStatus: 'FINAL';
checkoutOption?: 'DEFAULT' | 'COMPLETE_IMMEDIATE_PURCHASE';
}
interface DisplayItem {
label: string;
type: DisplayItemType;
price: string;
status?: DisplayItemStatus;
}
type DisplayItemType = 'LINE_ITEM' | 'SUBTOTAL';
type DisplayItemStatus = 'FINAL' | 'PENDING';
interface ShippingAddressParameters {

@@ -137,0 +165,0 @@ allowedCountryCodes?: string[];

13

googlepay/package.json
{
"name": "@types/googlepay",
"version": "0.2.2",
"version": "0.2.3",
"description": "TypeScript definitions for Google Pay API",

@@ -26,6 +26,11 @@ "license": "MIT",

"githubUsername": "ozotek"
},
{
"name": "Sergi Ferriz",
"url": "https://github.com/mumpo",
"githubUsername": "mumpo"
}
],
"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -38,4 +43,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "9ddb62dbc5cf12a3bd46e78318c20d928bb76ff3db033e2aac45b89f0a31d9ca",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "89089e7b6c68a029c6aec1ef0a03087dc85a22435aa018a2672c9166584c9e06",
"typeScriptVersion": "2.8"
}

@@ -8,10 +8,10 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/googlepay
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/googlepay.
Additional Details
* Last updated: Tue, 23 Jul 2019 19:54:59 GMT
### Additional Details
* Last updated: Mon, 18 Nov 2019 20:26:57 GMT
* Dependencies: none
* Global values: google
* Global values: `google`
# Credits
These definitions were written by Florian Luccioni <https://github.com/Fluccioni>, Radu Raicea <https://github.com/Radu-Raicea>, Filip Stanis <https://github.com/fstanis>, and Alexandre Couret <https://github.com/ozotek>.
These definitions were written by Florian Luccioni (https://github.com/Fluccioni), Radu Raicea (https://github.com/Radu-Raicea), Filip Stanis (https://github.com/fstanis), Alexandre Couret (https://github.com/ozotek), and Sergi Ferriz (https://github.com/mumpo).
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