@cimplify/sdk 0.101.1 → 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.
- package/dist/advanced.d.mts +3 -3
- package/dist/advanced.d.ts +3 -3
- package/dist/advanced.js +23 -22
- package/dist/advanced.mjs +4 -3
- package/dist/{chunk-QPRI2NII.js → chunk-2P4KXFB6.js} +6 -0
- package/dist/{chunk-4G5UWFC3.mjs → chunk-3V4DVXV3.mjs} +6 -1
- package/dist/{chunk-YHPMFTMN.mjs → chunk-C2JSNJUC.mjs} +406 -95
- package/dist/chunk-CNN7Z2IP.js +125 -0
- package/dist/{chunk-DKLHCZ5M.mjs → chunk-GERXZQSX.mjs} +487 -11
- package/dist/chunk-GOHSXBKW.mjs +105 -0
- package/dist/{chunk-7H6IL7CX.mjs → chunk-H7ACMHM3.mjs} +40 -15
- package/dist/{chunk-Z3K2D3TE.mjs → chunk-J6PNHDHL.mjs} +453 -483
- package/dist/{chunk-NIOUSKQQ.js → chunk-JG5CQNCB.js} +5 -0
- package/dist/{chunk-YER7DIOM.js → chunk-JSWJ4XDE.js} +471 -519
- package/dist/{chunk-DLW3RWRK.mjs → chunk-M4URVKHE.mjs} +46 -12
- package/dist/{chunk-WMEC5JWN.js → chunk-NNG6IFFX.js} +50 -13
- package/dist/{chunk-ICCCSVN3.js → chunk-QOWPGS7Z.js} +42 -16
- package/dist/{chunk-YDA46OZ6.js → chunk-R6OLQ33I.js} +560 -80
- package/dist/{chunk-H5SSGN7W.js → chunk-VIL6IQCG.js} +408 -97
- package/dist/{chunk-O3YUHLZL.mjs → chunk-VNPEYLB2.mjs} +5 -0
- package/dist/{client-Db554902.d.ts → client-BfpNjJ_a.d.mts} +93 -299
- package/dist/{client-CdTx7X_X.d.mts → client-DHBwvh7U.d.ts} +93 -299
- package/dist/{client-WkUcvRvO.d.mts → client-DpqRobY9.d.mts} +2 -2
- package/dist/{client-D40kI8z2.d.ts → client-Dqg2mc-7.d.ts} +2 -2
- package/dist/{index-D3UXgAYl.d.ts → index-C8uDqLwJ.d.ts} +14 -4
- package/dist/{index-BjWUkYgY.d.mts → index-e2y6AK70.d.mts} +14 -4
- package/dist/index.d.mts +92 -8
- package/dist/index.d.ts +92 -8
- package/dist/index.js +225 -188
- package/dist/index.mjs +7 -6
- package/dist/link-cuNVYc2s.d.mts +297 -0
- package/dist/link-cuNVYc2s.d.ts +297 -0
- package/dist/mock/cli.mjs +412 -94
- package/dist/mock/library.js +412 -94
- package/dist/mock/library.mjs +412 -94
- package/dist/mock/msw.js +412 -94
- package/dist/mock/msw.mjs +412 -94
- package/dist/{product-DwKdC_to.d.mts → payment-H5LoIvXU.d.mts} +207 -7
- package/dist/{product-DwKdC_to.d.ts → payment-H5LoIvXU.d.ts} +207 -7
- package/dist/{price-CiQUd_XX.d.mts → price-BvePgDXe.d.mts} +1 -1
- package/dist/{price-D9EOj8y8.d.ts → price-C2RqscMY.d.ts} +1 -1
- package/dist/react.d.mts +6 -4
- package/dist/react.d.ts +6 -4
- package/dist/react.js +203 -198
- package/dist/react.mjs +11 -6
- package/dist/{server-CeDb93WA.d.ts → server-C7FyLdrz.d.mts} +11 -9
- package/dist/{server-D-nSkrUr.d.mts → server-DoXIpSd7.d.ts} +11 -9
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +11 -10
- package/dist/server.mjs +5 -4
- package/dist/testing/msw.d.mts +2 -2
- package/dist/testing/msw.d.ts +2 -2
- package/dist/testing/msw.js +4 -3
- package/dist/testing/msw.mjs +3 -2
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing/suite.js +26 -25
- package/dist/testing/suite.mjs +7 -6
- package/dist/testing.d.mts +175 -45
- package/dist/testing.d.ts +175 -45
- package/dist/testing.js +86 -81
- package/dist/testing.mjs +8 -7
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.js +37 -29
- package/dist/utils.mjs +2 -2
- package/package.json +7 -1
- package/dist/payment-CRqjGrx6.d.mts +0 -113
- package/dist/payment-DO1Z1Ip6.d.ts +0 -113
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { aR as Money, ad as CurrencyCode } from './product-DwKdC_to.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-DwKdC_to.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 };
|