{"_id":"@deep-foundation/payments-tinkoff-c2b-test-integration","_rev":"7-50008740b4465d060420cd33e88145ae","name":"@deep-foundation/payments-tinkoff-c2b-test-integration","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@deep-foundation/payments-tinkoff-c2b-test-integration","keywords":["deep-package","deep-package-integration"],"version":"0.0.1","repository":{"type":"git","url":"git+https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration.git"},"scripts":{"build":"tsc"},"main":"dist/main.js","types":"dist/main.d.ts","dependencies":{"delay":"^5.0.0","lodash":"^4.17.21"},"devDependencies":{"typescript":"^5.0.4"},"peerDependencies":{"@deep-foundation/deeplinks":"^0.0.146"},"gitHead":"c3e48c6803a59fe507627fe98ae3ba2df0b90cc8","description":"Provide integration for [`@deep-foundation/payments-tinkoff-c2b-test`](https://www.npmjs.com/package/@deep-foundation/payments-tinkoff-c2b-test) package","bugs":{"url":"https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration/issues"},"homepage":"https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration#readme","_id":"@deep-foundation/payments-tinkoff-c2b-test-integration@0.0.1","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-VxMfFE7CMNkfIazS9DyzyEITrml+qNxa5oJiBcxGE06z5x1Gyz1MJRWZK3KBeK1yKwEUj0DswLlsOeU/JYp1xQ==","shasum":"1109592baf9070f7685c279e634e03f0d17c283d","tarball":"https://registry.npmjs.org/@deep-foundation/payments-tinkoff-c2b-test-integration/-/payments-tinkoff-c2b-test-integration-0.0.1.tgz","fileCount":21,"unpackedSize":27446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHbM+H32oQ3JO5ukYT++R5mJjAyypjpXpFBSKqSNKXBQIgH7jwW29gvPGBWvaHGo31TaUWcZ13c2UFjAODtfl80LI="}]},"_npmUser":{"name":"freephoenix888","email":"freephoenix888@gmail.com"},"directories":{},"maintainers":[{"name":"suenot","email":"suenot@gmail.com"},{"name":"romanxz","email":"technopriest666@gmail.com"},{"name":"flakeed","email":"flakeeed@gmail.com"},{"name":"l4legenda","email":"l4legenda@gmail.com"},{"name":"aruseli","email":"llingveri@gmail.com"},{"name":"freephoenix888","email":"freephoenix888@gmail.com"},{"name":"konard","email":"drakonard@gmail.com"},{"name":"menzorg","email":"menzorg@gmail.com"},{"name":"ivansglazunov","email":"ivansglazunov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payments-tinkoff-c2b-test-integration_0.0.1_1683874804117_0.522378934071317"},"_hasShrinkwrap":false,"deprecated":"Integration library is moved to @deep-foundation/payments-tinkoff-c2b-test, use it instead"},"0.0.2":{"name":"@deep-foundation/payments-tinkoff-c2b-test-integration","keywords":["deep-package","deep-package-integration"],"version":"0.0.2","repository":{"type":"git","url":"git+https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration.git"},"scripts":{"build":"tsc"},"main":"dist/main.js","types":"dist/main.d.ts","dependencies":{"delay":"^5.0.0","lodash":"^4.17.21"},"devDependencies":{"typescript":"^5.0.4"},"peerDependencies":{"@deep-foundation/deeplinks":"^0.0.146"},"gitHead":"6d04011019667b4dc870ab26f5920aebe6341f33","description":"Provide integration for [`@deep-foundation/payments-tinkoff-c2b-test`](https://www.npmjs.com/package/@deep-foundation/payments-tinkoff-c2b-test) package","bugs":{"url":"https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration/issues"},"homepage":"https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration#readme","_id":"@deep-foundation/payments-tinkoff-c2b-test-integration@0.0.2","_nodeVersion":"18.14.0","_npmVersion":"9.3.1","dist":{"integrity":"sha512-gpdKAL/hMHC8LDvb23u/d72wbND0C5FS6pGbsLswPjlqZCl9sDCLi/F4/Wu9AO6pWin5KHTxE6pOOTqAfD0KyQ==","shasum":"9d7882365edbefda4d47d0b9186745a85650e073","tarball":"https://registry.npmjs.org/@deep-foundation/payments-tinkoff-c2b-test-integration/-/payments-tinkoff-c2b-test-integration-0.0.2.tgz","fileCount":21,"unpackedSize":29455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDY4aFnnLu/9bsQGooppiSMipus5gSlveS11gUsCQK88AIgG19O8bV8TeOOlEWaD7TLDP69rwH2Dk+uQP5g9YdBRT4="}]},"_npmUser":{"name":"freephoenix888","email":"freephoenix888@gmail.com"},"directories":{},"maintainers":[{"name":"suenot","email":"suenot@gmail.com"},{"name":"romanxz","email":"technopriest666@gmail.com"},{"name":"flakeed","email":"flakeeed@gmail.com"},{"name":"l4legenda","email":"l4legenda@gmail.com"},{"name":"aruseli","email":"llingveri@gmail.com"},{"name":"freephoenix888","email":"freephoenix888@gmail.com"},{"name":"konard","email":"drakonard@gmail.com"},{"name":"menzorg","email":"menzorg@gmail.com"},{"name":"ivansglazunov","email":"ivansglazunov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/payments-tinkoff-c2b-test-integration_0.0.2_1684563318690_0.4833527698566278"},"_hasShrinkwrap":false,"deprecated":"Integration library is moved to @deep-foundation/payments-tinkoff-c2b-test, use it instead"}},"time":{"created":"2023-05-12T07:00:04.060Z","0.0.1":"2023-05-12T07:00:04.355Z","modified":"2024-03-08T13:55:05.792Z","0.0.2":"2023-05-20T06:15:18.860Z"},"maintainers":[{"email":"edtimyr@gmail.com","name":"timax"},{"email":"likissdmd@gmail.com","name":"likissdmd"},{"email":"yorik5571@yandex.ru","name":"prinz_eugen_deep"},{"email":"SenchaPencha1@gmail.com","name":"senchapencha"},{"email":"korvus.mkrt@gmail.com","name":"korvusmkrt"},{"email":"suenot@gmail.com","name":"suenot"},{"email":"technopriest666@gmail.com","name":"romanxz"},{"email":"flakeeed@gmail.com","name":"flakeed"},{"email":"l4legenda@gmail.com","name":"l4legenda"},{"email":"llingveri@gmail.com","name":"aruseli"},{"email":"freephoenix888@gmail.com","name":"freephoenix888"},{"email":"drakonard@gmail.com","name":"konard"},{"email":"menzorg@gmail.com","name":"menzorg"},{"email":"ivansglazunov@gmail.com","name":"ivansglazunov"}],"description":"Provide integration for [`@deep-foundation/payments-tinkoff-c2b-test`](https://www.npmjs.com/package/@deep-foundation/payments-tinkoff-c2b-test) package","homepage":"https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration#readme","keywords":["deep-package","deep-package-integration"],"repository":{"type":"git","url":"git+https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration.git"},"bugs":{"url":"https://github.com/deep-foundation/payments-tinkoff-c2b-test-integration/issues"},"readme":"# Goal\n\nProvide integration for [`@deep-foundation/payments-tinkoff-c2b-test`](https://www.npmjs.com/package/@deep-foundation/payments-tinkoff-c2b-test) package\n\n# How to use?\n\n## Minimal example\n```ts\nimport {doTest} from '@deep-foundation/payments-tinkoff-c2b-test'\n\nawait doTest({\n   deep,\n   port,\n   route,\n   sum,\n   terminalKey,\n   terminalPassword,\n   containerLinkId,\n   lookingForHandlerResultAttemptsCount,\n   lookingForHandlerResultDelayInMs\n})\n```\n\n## Full example\n```ts\nimport {doTest} from '@deep-foundation/payments-tinkoff-c2b-test'\nimport { DeepClient } from \"@deep-foundation/deeplinks/imports/client\";\nimport { generateApolloClient } from \"@deep-foundation/hasura/client\";\n\nmain();\n\nasync function main() {\n\n   const graphQlPath: string = ;\n   const ssl: boolean = ;\n   const apolloClient = generateApolloClient({\n     path: graphQlPath,\n     ssl: ssl,\n   });\n   const unloginedDeep = new DeepClient({ apolloClient });\n   const guest = await unloginedDeep.guest();\n   const guestDeep = new DeepClient({ deep: unloginedDeep, ...guest });\n   const admin = await guestDeep.login({\n     linkId: await guestDeep.id('deep', 'admin'),\n   });\n   const deep = new DeepClient({ deep: guestDeep, ...admin });\n\n   const port: number = ;\n   const route: string;\n   const sum: number = ;\n   const terminalKey: string = ;\n   const terminalPassword: string = ;\n   const containerLinkId: number = ;\n   const lookingForHandlerResultAttemptsCount: number|undefined = ;\n   const lookingForHandlerResultDelayInMs: number|undefined = ;\n\n   await doTest({\n      deep,\n      port,\n      route,\n      sum,\n      terminalKey,\n      terminalPassword,\n      containerLinkId,\n      lookingForHandlerResultAttemptsCount,\n      lookingForHandlerResultDelayInMs\n   })\n}\n```\n\n## Full and ready to use (almost) example\n```ts\nimport {doTest} from '@deep-foundation/payments-tinkoff-c2b-test'\nimport { DeepClient } from \"@deep-foundation/deeplinks/imports/client\";\nimport { generateApolloClient } from \"@deep-foundation/hasura/client\";\n\nmain();\n\nasync function main() {\n\n   const graphQlPath: string = ;\n   const ssl: boolean = true;\n   const apolloClient = generateApolloClient({\n     path: graphQlPath,\n     ssl: ssl,\n   });\n   const unloginedDeep = new DeepClient({ apolloClient });\n   const guest = await unloginedDeep.guest();\n   const guestDeep = new DeepClient({ deep: unloginedDeep, ...guest });\n   const admin = await guestDeep.login({\n     linkId: await guestDeep.id('deep', 'admin'),\n   });\n   const deep = new DeepClient({ deep: guestDeep, ...admin });\n\n   const port: number = 5237;\n   const route: string = '/payments/tinkoff/c2b';\n   const sum: number = 5500;\n   const terminalKey: string = ;\n   const terminalPassword: string = ;\n   const containerLinkId: number = deep.linkId;\n   const lookingForHandlerResultAttemptsCount: number|undefined = 10;\n   const lookingForHandlerResultDelayInMs: number|undefined = 1000;\n\n   await doTest({\n      deep,\n      port,\n      route,\n      sum,\n      terminalKey,\n      terminalPassword,\n      containerLinkId,\n      lookingForHandlerResultAttemptsCount,\n      lookingForHandlerResultDelayInMs\n   })\n}\n```\n\n## Bash script to make your life easier\nSet GRAPHQL_PATH before using this script\n```shell\nmkdir payments-tinkoff-test-integration-user && \ncd payments-tinkoff-test-integration-user &&\nnpm init -y &&\nnpm install @deep-foundation/payments-tinkoff-test-integration &&\nnpm install --save-dev ts-node typescript @types/node &&\nmkdir src &&\nif [[ -z $GRAPHQL_PATH ]]; then\n  echo \"GRAPHQL_PATH is not set or is empty\"\nfi\ncat << EOF >> src/main.ts\nimport {doTest} from '@deep-foundation/payments-tinkoff-c2b-test'\nimport { DeepClient } from \"@deep-foundation/deeplinks/imports/client\";\nimport { generateApolloClient } from \"@deep-foundation/hasura/client\";\n\nmain();\n\nasync function main() {\n\n   const graphQlPath: string = \"$GRAPHQL_PATH\";\n   const ssl: boolean = true;\n   const apolloClient = generateApolloClient({\n     path: graphQlPath,\n     ssl: ssl,\n   });\n   const unloginedDeep = new DeepClient({ apolloClient });\n   const guest = await unloginedDeep.guest();\n   const guestDeep = new DeepClient({ deep: unloginedDeep, ...guest });\n   const admin = await guestDeep.login({\n     linkId: await guestDeep.id('deep', 'admin'),\n   });\n   const deep = new DeepClient({ deep: guestDeep, ...admin });\n\n   const port: number = 5237;\n   const route: string = '/payments/tinkoff/c2b';\n   const sum: number = 5500;\n   const terminalKey: string = ;\n   const terminalPassword: string = ;\n   const containerLinkId: number = deep.linkId;\n   const lookingForHandlerResultAttemptsCount: number|undefined = 10;\n   const lookingForHandlerResultDelayInMs: number|undefined = 1000;\n\n   await doTest({\n      deep,\n      port,\n      route,\n      sum,\n      terminalKey,\n      terminalPassword,\n      containerLinkId,\n      lookingForHandlerResultAttemptsCount,\n      lookingForHandlerResultDelayInMs\n   })\n}\nEOF &&\nnpx ts-node src/main.ts\n```\n","readmeFilename":"README.MD"}