@deliverart/sdk-js-payment 0.0.1

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.
Files changed (48) hide show
  1. package/.changeset/config.json +11 -0
  2. package/.github/workflows/workflow.yml +47 -0
  3. package/.prettierrc +7 -0
  4. package/CHANGELOG.md +37 -0
  5. package/README.md +3 -0
  6. package/dist/index.cjs +1080 -0
  7. package/dist/index.d.cts +4422 -0
  8. package/dist/index.d.ts +4422 -0
  9. package/dist/index.js +964 -0
  10. package/eslint.config.js +41 -0
  11. package/package.json +47 -0
  12. package/src/index.ts +3 -0
  13. package/src/models.ts +168 -0
  14. package/src/requests/index.ts +2 -0
  15. package/src/requests/payment-configs/DeletePaymentConfig.ts +27 -0
  16. package/src/requests/payment-configs/GetPaymentConfigDetails.ts +33 -0
  17. package/src/requests/payment-configs/GetPaymentConfigs.ts +50 -0
  18. package/src/requests/payment-configs/bank-transfer/CreatePaymentConfigBankTransfer.ts +38 -0
  19. package/src/requests/payment-configs/bank-transfer/DeletePaymentConfigBankTransfer.ts +27 -0
  20. package/src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferDetails.ts +37 -0
  21. package/src/requests/payment-configs/bank-transfer/GetPaymentConfigBankTransferList.ts +54 -0
  22. package/src/requests/payment-configs/bank-transfer/UpdatePaymentConfigBankTransfer.ts +45 -0
  23. package/src/requests/payment-configs/bank-transfer/index.ts +5 -0
  24. package/src/requests/payment-configs/cash/CreatePaymentConfigCash.ts +36 -0
  25. package/src/requests/payment-configs/cash/DeletePaymentConfigCash.ts +27 -0
  26. package/src/requests/payment-configs/cash/GetPaymentConfigCashDetails.ts +33 -0
  27. package/src/requests/payment-configs/cash/GetPaymentConfigCashList.ts +52 -0
  28. package/src/requests/payment-configs/cash/index.ts +4 -0
  29. package/src/requests/payment-configs/credit-card/CreatePaymentConfigCreditCard.ts +38 -0
  30. package/src/requests/payment-configs/credit-card/DeletePaymentConfigCreditCard.ts +27 -0
  31. package/src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardDetails.ts +36 -0
  32. package/src/requests/payment-configs/credit-card/GetPaymentConfigCreditCardList.ts +54 -0
  33. package/src/requests/payment-configs/credit-card/index.ts +4 -0
  34. package/src/requests/payment-configs/index.ts +7 -0
  35. package/src/requests/payment-configs/stripe/CreatePaymentConfigStripe.ts +36 -0
  36. package/src/requests/payment-configs/stripe/DeletePaymentConfigStripe.ts +27 -0
  37. package/src/requests/payment-configs/stripe/GetPaymentConfigStripeDetails.ts +33 -0
  38. package/src/requests/payment-configs/stripe/GetPaymentConfigStripeList.ts +53 -0
  39. package/src/requests/payment-configs/stripe/UpdatePaymentConfigStripe.ts +43 -0
  40. package/src/requests/payment-configs/stripe/index.ts +5 -0
  41. package/src/requests/payments/DeletePayment.ts +27 -0
  42. package/src/requests/payments/GetPaymentDetails.ts +30 -0
  43. package/src/requests/payments/GetPayments.ts +45 -0
  44. package/src/requests/payments/GetPaymentsForPaymentConfig.ts +53 -0
  45. package/src/requests/payments/UpdatePayment.ts +32 -0
  46. package/src/requests/payments/index.ts +5 -0
  47. package/src/types.ts +146 -0
  48. package/tsconfig.json +15 -0
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3
+ "changelog": "@changesets/cli/changelog",
4
+ "commit": false,
5
+ "fixed": [],
6
+ "linked": [],
7
+ "access": "restricted",
8
+ "baseBranch": "main",
9
+ "updateInternalDependencies": "patch",
10
+ "ignore": []
11
+ }
@@ -0,0 +1,47 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: write
10
+
11
+ jobs:
12
+ release:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - uses: pnpm/action-setup@v2
18
+ with:
19
+ version: 8
20
+
21
+ - uses: actions/setup-node@v4
22
+ with:
23
+ node-version: '20'
24
+ registry-url: 'https://registry.npmjs.org'
25
+ always-auth: true
26
+ env:
27
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28
+
29
+ - name: Install deps
30
+ run: pnpm install
31
+
32
+ - name: Build
33
+ run: pnpm build
34
+
35
+ - name: Create version and changelog
36
+ run: pnpx @changesets/cli version
37
+
38
+ - name: Publish to NPM
39
+ run: pnpx @changesets/cli publish
40
+ env:
41
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42
+
43
+ - name: Push updated versions and changelogs
44
+ uses: EndBug/add-and-commit@v9
45
+ with:
46
+ message: 'chore(release): version bump'
47
+ add: '.'
package/.prettierrc ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "semi": false,
3
+ "singleQuote": true,
4
+ "printWidth": 100,
5
+ "trailingComma": "all",
6
+ "arrowParens": "avoid"
7
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,37 @@
1
+ # @deliverart/sdk-js-company
2
+
3
+ ## 0.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - b8d802e: update dependencise
8
+
9
+ ## 0.0.6
10
+
11
+ ### Patch Changes
12
+
13
+ - 65b64b5: Expose types
14
+
15
+ ## 0.0.5
16
+
17
+ ### Patch Changes
18
+
19
+ - 83e0325: Expose company path types
20
+
21
+ ## 0.0.4
22
+
23
+ ### Patch Changes
24
+
25
+ - 36a941d: Upgrade types version
26
+
27
+ ## 0.0.3
28
+
29
+ ### Patch Changes
30
+
31
+ - b4fc2d4: Upgrade types version
32
+
33
+ ## 0.0.2
34
+
35
+ ### Patch Changes
36
+
37
+ - a9d7757: Upgrade types version
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # sdk-js-payment
2
+
3
+ Payment module for SDK