{"_id":"@arcsubs/sdk-sales","_rev":"1-80c2f656deffef1688eb4ae97c199b4b","name":"@arcsubs/sdk-sales","dist-tags":{"latest":"1.21.2"},"versions":{"1.21.2":{"name":"@arcsubs/sdk-sales","version":"1.21.2","description":"JS Sales SDK for working with Arc Subs Sales API","keywords":["arc","washingtonpost","sdk","typescript"],"author":{"name":"Merwan","email":"merwan.rodriguez@washpost.com"},"homepage":"https://github.com/WPMedia/arc-subs-ui/tree/master/packages/sdk-sales#readme","license":"ISC","main":"lib/index.js","module":"lib-esm/index.js","repository":{"type":"git","url":"git+https://github.com/WPMedia/arc-subs-ui.git"},"scripts":{"start":"npm run build:umd && webpack-dev-server --colors --progress --host 0.0.0.0","build":"npm run clean && tsc && tsc -m es6 --outDir lib-esm && webpack","build:umd":"webpack","clean":"shx rm -rf umd lib lib-esm lib-umd test-report.html","test":"jest --colors","test:ci":"JEST_JUNIT_OUTPUT=../../reports/jest/sdk-sales.xml jest --ci --colors --reporters=default --reporters=\"jest-junit\" --no-cache --runInBand","test:watch":"jest --watch","test:coverage":"jest --coverage --colors && jest-coverage-badges --output './badges'","prepare":"npm run build"},"engines":{"node":">=8"},"bugs":{"url":"https://arcpublishing.atlassian.net/projects/ASUBS"},"devDependencies":{"@babel/types":"^7.3.4","@types/fetch-mock":"^7.2.3","@types/jest":"^24","@types/node":"^11.10.5","awesome-typescript-loader":"^5.2.1","babel-core":"^6.26.3","babel-loader":"^8.0.5","fetch-mock":"^7.3.1","html-webpack-exclude-assets-plugin":"0.0.7","html-webpack-plugin":"^3.2.0","jest":"^24","jest-coverage-badges":"^1.1.2","jest-junit":"^6","shx":"^0.3.2","terser-webpack-plugin":"^1.2.1","ts-jest":"^24","typescript":"^3.2.2","webpack":"^4.28.4","webpack-cli":"^3.2.1","webpack-dev-server":"^3.1.14"},"dependencies":{"@arc/sdk-identity":"^1.21.2"},"_id":"@arcsubs/sdk-sales@1.21.2","_nodeVersion":"10.15.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-nYG2AT0BVDa/SGWm8pVzRidTF0qBdm5b9hxXzx56MshInGkYVYQOAxxUzL93NnJIVuaqMO6TswBYObpTKpZbKg==","shasum":"1c0439363589d4addd45c2373ad263dcb69699a7","tarball":"https://registry.npmjs.org/@arcsubs/sdk-sales/-/sdk-sales-1.21.2.tgz","fileCount":182,"unpackedSize":636634,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGziqCRA9TVsSAnZWagAAR2gQAKUqPNXdwAJqW7SuJPP2\n4klNp1QaIEuqIWwOzxS4JV9RbDYJC+6tMFF/dPb8Py0CvoRO4iVee4sg9h6f\n+iOgkLE125vUkuUpBImmkeB00LcKp/83P7ndluRdSQZypCYQXOD19Q0WkEOR\nqzHT+T2XMG2KRyplXtzsyE2vS0f1UtP6Lf9T3IBhWhNvuQrFGzjofJA6Njmz\ntiJWO6lYevNvP+qpnb6Oo5H/DJXlWVzBItd5nzjve6A0M31vywPdgIGLm1Wu\nGHIrmF6XATc/vyPAPuRuFJzsm1j16Y7GBSn2drGFuB4gG5JTW5pcFzCFD+/B\nKTx0tNwo+1NlPGHEXGBRTyF5kM7iMSgLwLKSTKrrgzLXClwNOb6BgZM2uU2V\nXX/Gh8mDbZ8CmbSSpFnoLbRGc5m5rBLefjvW9mxtktdra5Dq68etdmQvQDgu\ng2vt4j+Uj5doJV/HOJcNnz4qg2++MmXai7roMMd9y0zPM3MGYo1CFFZFpvAn\nanR+kRXh9tDv8XPf697JSVeuCS35gftOnkHR++uD9vKE1LoFX2n5aWMsOPxJ\nRWKbU9Q2zlvZGnSpCc3B9A7tYM6l0DWfXQVqfp9bd3mUSGeUxRSKKHh55osW\nS1MyDerV/iuQ4nFgJGxsoKYYkCuqnEEluFMPYLJj+63fE1fUaV9UAbVIr+Mi\nLu3W\r\n=dFGz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxvQEQLXYn/vsiKh1Pz9alRBv5GYtmokw85wkDkqlkmgIhALRiDFyf+39z894/UL2rfM1hQkYYtMZWYnx3lQIM/aCW"}]},"maintainers":[{"name":"arcsubs","email":"merwan.rodriguez@washpost.com"}],"_npmUser":{"name":"arcsubs","email":"merwan.rodriguez@washpost.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk-sales_1.21.2_1562065065532_0.589467268559666"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-02T10:57:45.324Z","1.21.2":"2019-07-02T10:57:45.777Z","modified":"2022-04-04T15:21:41.873Z"},"maintainers":[{"name":"arcsubs","email":"merwan.rodriguez@washpost.com"}],"description":"JS Sales SDK for working with Arc Subs Sales API","homepage":"https://github.com/WPMedia/arc-subs-ui/tree/master/packages/sdk-sales#readme","keywords":["arc","washingtonpost","sdk","typescript"],"repository":{"type":"git","url":"git+https://github.com/WPMedia/arc-subs-ui.git"},"author":{"name":"Merwan","email":"merwan.rodriguez@washpost.com"},"bugs":{"url":"https://arcpublishing.atlassian.net/projects/ASUBS"},"license":"ISC","readme":"\n## Sales\nThis SDK is responsible for interacting with the `Sales` API. It will handle managing the user's cart, creating orders, processing payments and managing the user's subscriptions.\n\n### Subscription Interaction\n  - Properties\n    - [[subscriptions]]\n    - [[sharedSubscriptions]]\n  - Methods\n    - [[getAllSubscriptions]]\n    - [[getAllActiveSubscriptions]]\n    - [[getSubscriptionDetails]]\n    - [[getSubscriptionSharingDetails]]\n    - [[stopSharing]]\n    - [[shareSubscription]]\n    - [[redeemAssociateInvitation]]\n    - [[cancelSubscription]]\n\n### Order Interaction\n  - Properties\n    - [[orders]]\n  - Methods\n    - [[getOrderHistory]]\n    - [[getOrderDetails]]\n\n### Cart Interaction\n  - Properties\n    - [[cart]]\n  - Methods\n    - [[getCart]]\n    - [[addItemToCart]]\n    - [[removeItemFromCart]]\n    - [[clearCart]]\n\n### Checkout Interaction\n  - Properties\n    - [[currentOrder]]\n    - [[paymentOptions]]\n    - [[addresses]]\n  - Methods\n    - [[createOrder]]\n    - [[getPaymentOptions]]\n    - [[getAddresses]]\n    - [[initializePayment]]\n    - [[finalizePayment]]\n","readmeFilename":"README.md"}