@cimplify/sdk 0.102.0 → 0.103.0

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 (68) hide show
  1. package/dist/advanced.d.mts +3 -3
  2. package/dist/advanced.d.ts +3 -3
  3. package/dist/advanced.js +23 -22
  4. package/dist/advanced.mjs +4 -3
  5. package/dist/{chunk-DCMXUKDQ.mjs → chunk-C2JSNJUC.mjs} +404 -95
  6. package/dist/chunk-CNN7Z2IP.js +125 -0
  7. package/dist/{chunk-DKLHCZ5M.mjs → chunk-GERXZQSX.mjs} +487 -11
  8. package/dist/chunk-GOHSXBKW.mjs +105 -0
  9. package/dist/{chunk-4KNFBPV2.mjs → chunk-H7ACMHM3.mjs} +32 -14
  10. package/dist/{chunk-Z3K2D3TE.mjs → chunk-J6PNHDHL.mjs} +453 -483
  11. package/dist/{chunk-NIOUSKQQ.js → chunk-JG5CQNCB.js} +5 -0
  12. package/dist/{chunk-YER7DIOM.js → chunk-JSWJ4XDE.js} +471 -519
  13. package/dist/{chunk-DLW3RWRK.mjs → chunk-M4URVKHE.mjs} +46 -12
  14. package/dist/{chunk-WMEC5JWN.js → chunk-NNG6IFFX.js} +50 -13
  15. package/dist/{chunk-LOWSMGRT.js → chunk-QOWPGS7Z.js} +34 -16
  16. package/dist/{chunk-YDA46OZ6.js → chunk-R6OLQ33I.js} +560 -80
  17. package/dist/{chunk-EAZGA7LD.js → chunk-VIL6IQCG.js} +406 -97
  18. package/dist/{chunk-O3YUHLZL.mjs → chunk-VNPEYLB2.mjs} +5 -0
  19. package/dist/{client-B40KFazg.d.ts → client-BfpNjJ_a.d.mts} +90 -299
  20. package/dist/{client-BizGfqB7.d.mts → client-DHBwvh7U.d.ts} +90 -299
  21. package/dist/{client-BdErclfU.d.mts → client-DpqRobY9.d.mts} +2 -2
  22. package/dist/{client-nsiMwuC1.d.ts → client-Dqg2mc-7.d.ts} +2 -2
  23. package/dist/{index-DpmnI__D.d.mts → index-C8uDqLwJ.d.ts} +14 -4
  24. package/dist/{index-nEyXWIyR.d.ts → index-e2y6AK70.d.mts} +14 -4
  25. package/dist/index.d.mts +81 -8
  26. package/dist/index.d.ts +81 -8
  27. package/dist/index.js +202 -169
  28. package/dist/index.mjs +6 -5
  29. package/dist/link-cuNVYc2s.d.mts +297 -0
  30. package/dist/link-cuNVYc2s.d.ts +297 -0
  31. package/dist/mock/cli.mjs +410 -94
  32. package/dist/mock/library.js +410 -94
  33. package/dist/mock/library.mjs +410 -94
  34. package/dist/mock/msw.js +410 -94
  35. package/dist/mock/msw.mjs +410 -94
  36. package/dist/{product-Byf0unSy.d.mts → payment-H5LoIvXU.d.mts} +189 -7
  37. package/dist/{product-Byf0unSy.d.ts → payment-H5LoIvXU.d.ts} +189 -7
  38. package/dist/{price-CS4E5zLS.d.mts → price-BvePgDXe.d.mts} +1 -1
  39. package/dist/{price-BstChV9a.d.ts → price-C2RqscMY.d.ts} +1 -1
  40. package/dist/react.d.mts +4 -4
  41. package/dist/react.d.ts +4 -4
  42. package/dist/react.js +141 -140
  43. package/dist/react.mjs +5 -4
  44. package/dist/{server-DqbZh8Bk.d.mts → server-C7FyLdrz.d.mts} +11 -9
  45. package/dist/{server-Cj40R2ZD.d.ts → server-DoXIpSd7.d.ts} +11 -9
  46. package/dist/server.d.mts +4 -4
  47. package/dist/server.d.ts +4 -4
  48. package/dist/server.js +11 -10
  49. package/dist/server.mjs +5 -4
  50. package/dist/testing/msw.d.mts +2 -2
  51. package/dist/testing/msw.d.ts +2 -2
  52. package/dist/testing/msw.js +4 -3
  53. package/dist/testing/msw.mjs +3 -2
  54. package/dist/testing/suite.d.mts +6 -6
  55. package/dist/testing/suite.d.ts +6 -6
  56. package/dist/testing/suite.js +26 -25
  57. package/dist/testing/suite.mjs +7 -6
  58. package/dist/testing.d.mts +154 -55
  59. package/dist/testing.d.ts +154 -55
  60. package/dist/testing.js +83 -82
  61. package/dist/testing.mjs +8 -7
  62. package/dist/utils.d.mts +4 -4
  63. package/dist/utils.d.ts +4 -4
  64. package/dist/utils.js +37 -29
  65. package/dist/utils.mjs +2 -2
  66. package/package.json +7 -1
  67. package/dist/payment-l0rkieEQ.d.mts +0 -113
  68. package/dist/payment-vzNnIi1n.d.ts +0 -113
@@ -1,113 +0,0 @@
1
- import { aR as Money, ad as CurrencyCode } from './product-Byf0unSy.mjs';
2
-
3
- type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "not_required" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
4
- type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
5
- type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
6
- mobile_money: {
7
- provider: string;
8
- phone_number: string;
9
- };
10
- } | {
11
- ussd: {
12
- provider: string;
13
- };
14
- } | {
15
- bank: {
16
- bank_code: string;
17
- account_number: string;
18
- account_name?: string;
19
- bank_name?: string;
20
- };
21
- } | {
22
- qr: {
23
- provider: string;
24
- };
25
- } | {
26
- wallet: {
27
- provider: string;
28
- };
29
- } | {
30
- crypto: {
31
- currency: string;
32
- };
33
- } | {
34
- custom: string;
35
- };
36
- interface AddressAuthorizationData {
37
- address: string;
38
- city: string;
39
- state: string;
40
- zip_code: string;
41
- }
42
- type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | {
43
- address: AddressAuthorizationData;
44
- };
45
- type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
46
- interface PaymentMethod {
47
- type: PaymentMethodType;
48
- provider?: string;
49
- phone_number?: string;
50
- card_last_four?: string;
51
- custom_value?: string;
52
- }
53
- interface Payment {
54
- id: string;
55
- order_id: string;
56
- business_id: string;
57
- amount: Money;
58
- currency: CurrencyCode;
59
- payment_method: PaymentMethod;
60
- status: PaymentStatus;
61
- provider: PaymentProvider;
62
- provider_reference?: string;
63
- failure_reason?: string;
64
- created_at: string;
65
- updated_at: string;
66
- }
67
- interface InitializePaymentResult {
68
- payment_id: string;
69
- status: PaymentStatus;
70
- redirect_url?: string;
71
- authorization_url?: string;
72
- reference: string;
73
- provider: PaymentProvider;
74
- }
75
- interface PaymentResponse {
76
- method: string;
77
- provider: string;
78
- requires_action: boolean;
79
- public_key?: string;
80
- client_secret?: string;
81
- access_code?: string;
82
- redirect_url?: string;
83
- transaction_id?: string;
84
- order_id?: string;
85
- reference?: string;
86
- metadata?: Record<string, unknown>;
87
- instructions?: string;
88
- display_text?: string;
89
- requires_authorization?: boolean;
90
- authorization_type?: AuthorizationType;
91
- provider_payment_id?: string;
92
- }
93
- interface PaymentStatusResponse {
94
- status: PaymentStatus;
95
- paid: boolean;
96
- amount: Money;
97
- currency: string;
98
- reference?: string;
99
- message: string;
100
- }
101
- interface PaymentErrorDetails {
102
- code: string;
103
- message: string;
104
- recoverable: boolean;
105
- technical?: string;
106
- }
107
- interface SubmitAuthorizationInput {
108
- reference: string;
109
- auth_type: AuthorizationType;
110
- value: string;
111
- }
112
-
113
- export type { AddressAuthorizationData as A, InitializePaymentResult as I, Payment as P, SubmitAuthorizationInput as S, AuthorizationType as a, PaymentErrorDetails as b, PaymentMethod as c, PaymentMethodType as d, PaymentProcessingState as e, PaymentProvider as f, PaymentResponse as g, PaymentStatus as h, PaymentStatusResponse as i };
@@ -1,113 +0,0 @@
1
- import { aR as Money, ad as CurrencyCode } from './product-Byf0unSy.js';
2
-
3
- type PaymentStatus = "initialized" | "pending" | "processing" | "authorized" | "captured" | "not_required" | "failed" | "cancelled" | "refunded" | "unknown" | "voided" | "requires_action" | "abandoned" | "reversed" | "disputed" | "refund_pending";
4
- type PaymentProvider = "stripe" | "paystack" | "cellulant" | "mtn_momo" | "offline" | "mtn" | "vodafone" | "airtel" | "cash" | "manual";
5
- type PaymentMethodType = "card" | "bank_transfer" | "cash" | {
6
- mobile_money: {
7
- provider: string;
8
- phone_number: string;
9
- };
10
- } | {
11
- ussd: {
12
- provider: string;
13
- };
14
- } | {
15
- bank: {
16
- bank_code: string;
17
- account_number: string;
18
- account_name?: string;
19
- bank_name?: string;
20
- };
21
- } | {
22
- qr: {
23
- provider: string;
24
- };
25
- } | {
26
- wallet: {
27
- provider: string;
28
- };
29
- } | {
30
- crypto: {
31
- currency: string;
32
- };
33
- } | {
34
- custom: string;
35
- };
36
- interface AddressAuthorizationData {
37
- address: string;
38
- city: string;
39
- state: string;
40
- zip_code: string;
41
- }
42
- type AuthorizationType = "otp" | "pin" | "phone" | "birthday" | {
43
- address: AddressAuthorizationData;
44
- };
45
- type PaymentProcessingState = "initial" | "preparing" | "processing" | "verifying" | "awaiting_authorization" | "success" | "error" | "timeout";
46
- interface PaymentMethod {
47
- type: PaymentMethodType;
48
- provider?: string;
49
- phone_number?: string;
50
- card_last_four?: string;
51
- custom_value?: string;
52
- }
53
- interface Payment {
54
- id: string;
55
- order_id: string;
56
- business_id: string;
57
- amount: Money;
58
- currency: CurrencyCode;
59
- payment_method: PaymentMethod;
60
- status: PaymentStatus;
61
- provider: PaymentProvider;
62
- provider_reference?: string;
63
- failure_reason?: string;
64
- created_at: string;
65
- updated_at: string;
66
- }
67
- interface InitializePaymentResult {
68
- payment_id: string;
69
- status: PaymentStatus;
70
- redirect_url?: string;
71
- authorization_url?: string;
72
- reference: string;
73
- provider: PaymentProvider;
74
- }
75
- interface PaymentResponse {
76
- method: string;
77
- provider: string;
78
- requires_action: boolean;
79
- public_key?: string;
80
- client_secret?: string;
81
- access_code?: string;
82
- redirect_url?: string;
83
- transaction_id?: string;
84
- order_id?: string;
85
- reference?: string;
86
- metadata?: Record<string, unknown>;
87
- instructions?: string;
88
- display_text?: string;
89
- requires_authorization?: boolean;
90
- authorization_type?: AuthorizationType;
91
- provider_payment_id?: string;
92
- }
93
- interface PaymentStatusResponse {
94
- status: PaymentStatus;
95
- paid: boolean;
96
- amount: Money;
97
- currency: string;
98
- reference?: string;
99
- message: string;
100
- }
101
- interface PaymentErrorDetails {
102
- code: string;
103
- message: string;
104
- recoverable: boolean;
105
- technical?: string;
106
- }
107
- interface SubmitAuthorizationInput {
108
- reference: string;
109
- auth_type: AuthorizationType;
110
- value: string;
111
- }
112
-
113
- export type { AddressAuthorizationData as A, InitializePaymentResult as I, Payment as P, SubmitAuthorizationInput as S, AuthorizationType as a, PaymentErrorDetails as b, PaymentMethod as c, PaymentMethodType as d, PaymentProcessingState as e, PaymentProvider as f, PaymentResponse as g, PaymentStatus as h, PaymentStatusResponse as i };