@medusajs/payment 3.0.0-snapshot-20250410112222 → 3.0.0-snapshot-20251104004624
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/joiner-config.d.ts.map +1 -1
- package/dist/joiner-config.js +0 -13
- package/dist/joiner-config.js.map +1 -1
- package/dist/loaders/providers.d.ts +7 -0
- package/dist/loaders/providers.d.ts.map +1 -1
- package/dist/loaders/providers.js +37 -11
- package/dist/loaders/providers.js.map +1 -1
- package/dist/migrations/Migration20240225134525.d.ts +1 -1
- package/dist/migrations/Migration20240225134525.d.ts.map +1 -1
- package/dist/migrations/Migration20240225134525.js +1 -1
- package/dist/migrations/Migration20240225134525.js.map +1 -1
- package/dist/migrations/Migration20240806072619.d.ts +1 -1
- package/dist/migrations/Migration20240806072619.d.ts.map +1 -1
- package/dist/migrations/Migration20240806072619.js +1 -1
- package/dist/migrations/Migration20240806072619.js.map +1 -1
- package/dist/migrations/Migration20241211151053.d.ts +1 -1
- package/dist/migrations/Migration20241211151053.d.ts.map +1 -1
- package/dist/migrations/Migration20241211151053.js +1 -1
- package/dist/migrations/Migration20241211151053.js.map +1 -1
- package/dist/migrations/Migration20250115160517.d.ts +1 -1
- package/dist/migrations/Migration20250115160517.d.ts.map +1 -1
- package/dist/migrations/Migration20250115160517.js +1 -1
- package/dist/migrations/Migration20250115160517.js.map +1 -1
- package/dist/migrations/Migration20250120110552.d.ts +1 -1
- package/dist/migrations/Migration20250120110552.d.ts.map +1 -1
- package/dist/migrations/Migration20250120110552.js +1 -1
- package/dist/migrations/Migration20250120110552.js.map +1 -1
- package/dist/migrations/Migration20250123122334.d.ts +1 -1
- package/dist/migrations/Migration20250123122334.d.ts.map +1 -1
- package/dist/migrations/Migration20250123122334.js +1 -1
- package/dist/migrations/Migration20250123122334.js.map +1 -1
- package/dist/migrations/Migration20250206105639.d.ts +1 -1
- package/dist/migrations/Migration20250206105639.d.ts.map +1 -1
- package/dist/migrations/Migration20250206105639.js +1 -1
- package/dist/migrations/Migration20250206105639.js.map +1 -1
- package/dist/migrations/Migration20250207132723.d.ts +1 -1
- package/dist/migrations/Migration20250207132723.d.ts.map +1 -1
- package/dist/migrations/Migration20250207132723.js +1 -1
- package/dist/migrations/Migration20250207132723.js.map +1 -1
- package/dist/migrations/Migration20250625084134.d.ts +6 -0
- package/dist/migrations/Migration20250625084134.d.ts.map +1 -0
- package/dist/migrations/Migration20250625084134.js +16 -0
- package/dist/migrations/Migration20250625084134.js.map +1 -0
- package/dist/migrations/Migration20250924135437.d.ts +6 -0
- package/dist/migrations/Migration20250924135437.d.ts.map +1 -0
- package/dist/migrations/Migration20250924135437.js +37 -0
- package/dist/migrations/Migration20250924135437.js.map +1 -0
- package/dist/migrations/Migration20250929124701.d.ts +6 -0
- package/dist/migrations/Migration20250929124701.d.ts.map +1 -0
- package/dist/migrations/Migration20250929124701.js +23 -0
- package/dist/migrations/Migration20250929124701.js.map +1 -0
- package/dist/models/capture.d.ts +29 -10
- package/dist/models/capture.d.ts.map +1 -1
- package/dist/models/payment-collection.d.ts +37 -19
- package/dist/models/payment-collection.d.ts.map +1 -1
- package/dist/models/payment-provider.d.ts +37 -19
- package/dist/models/payment-provider.d.ts.map +1 -1
- package/dist/models/payment-session.d.ts +20 -16
- package/dist/models/payment-session.d.ts.map +1 -1
- package/dist/models/payment.d.ts +10 -8
- package/dist/models/payment.d.ts.map +1 -1
- package/dist/models/refund-reason.d.ts +27 -9
- package/dist/models/refund-reason.d.ts.map +1 -1
- package/dist/models/refund-reason.js +2 -1
- package/dist/models/refund-reason.js.map +1 -1
- package/dist/models/refund.d.ts +29 -10
- package/dist/models/refund.d.ts.map +1 -1
- package/dist/providers/index.d.ts +2 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js +4 -5
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/payment-medusa/index.d.ts +2 -0
- package/dist/providers/payment-medusa/index.d.ts.map +1 -0
- package/dist/providers/payment-medusa/index.js +6 -0
- package/dist/providers/payment-medusa/index.js.map +1 -0
- package/dist/providers/payment-medusa/services/medusa-payments.d.ts +58 -0
- package/dist/providers/payment-medusa/services/medusa-payments.d.ts.map +1 -0
- package/dist/providers/payment-medusa/services/medusa-payments.js +526 -0
- package/dist/providers/payment-medusa/services/medusa-payments.js.map +1 -0
- package/dist/providers/payment-medusa/types/index.d.ts +23 -0
- package/dist/providers/payment-medusa/types/index.d.ts.map +1 -0
- package/dist/providers/payment-medusa/types/index.js +3 -0
- package/dist/providers/payment-medusa/types/index.js.map +1 -0
- package/dist/providers/payment-medusa/types/medusa-payments.d.ts +25 -0
- package/dist/providers/payment-medusa/types/medusa-payments.d.ts.map +1 -0
- package/dist/providers/payment-medusa/types/medusa-payments.js +3 -0
- package/dist/providers/payment-medusa/types/medusa-payments.js.map +1 -0
- package/dist/providers/payment-medusa/utils/get-smallest-unit.d.ts +17 -0
- package/dist/providers/payment-medusa/utils/get-smallest-unit.d.ts.map +1 -0
- package/dist/providers/payment-medusa/utils/get-smallest-unit.js +68 -0
- package/dist/providers/payment-medusa/utils/get-smallest-unit.js.map +1 -0
- package/dist/providers/system.d.ts +6 -3
- package/dist/providers/system.d.ts.map +1 -1
- package/dist/providers/system.js +14 -5
- package/dist/providers/system.js.map +1 -1
- package/dist/services/payment-module.d.ts +296 -7
- package/dist/services/payment-module.d.ts.map +1 -1
- package/dist/services/payment-module.js +68 -31
- package/dist/services/payment-module.js.map +1 -1
- package/dist/services/payment-provider.d.ts +7 -2
- package/dist/services/payment-provider.d.ts.map +1 -1
- package/dist/services/payment-provider.js +10 -0
- package/dist/services/payment-provider.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +17 -28
- package/dist/schema/index.d.ts +0 -3
- package/dist/schema/index.d.ts.map +0 -1
- package/dist/schema/index.js +0 -114
- package/dist/schema/index.js.map +0 -1
package/dist/schema/index.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = `
|
|
4
|
-
enum PaymentCollectionStatus {
|
|
5
|
-
not_paid
|
|
6
|
-
awaiting
|
|
7
|
-
authorized
|
|
8
|
-
partially_authorized
|
|
9
|
-
canceled
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
enum PaymentSessionStatus {
|
|
13
|
-
authorized
|
|
14
|
-
captured
|
|
15
|
-
pending
|
|
16
|
-
requires_more
|
|
17
|
-
error
|
|
18
|
-
canceled
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type PaymentCollection {
|
|
22
|
-
id: ID!
|
|
23
|
-
currency_code: String!
|
|
24
|
-
region_id: String!
|
|
25
|
-
amount: Float!
|
|
26
|
-
authorized_amount: Float
|
|
27
|
-
refunded_amount: Float
|
|
28
|
-
captured_amount: Float
|
|
29
|
-
completed_at: DateTime
|
|
30
|
-
created_at: DateTime
|
|
31
|
-
updated_at: DateTime
|
|
32
|
-
metadata: JSON
|
|
33
|
-
status: PaymentCollectionStatus!
|
|
34
|
-
payment_providers: [PaymentProviderDTO!]!
|
|
35
|
-
payment_sessions: [PaymentSessionDTO]
|
|
36
|
-
payments: [PaymentDTO]
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
type Payment {
|
|
40
|
-
id: ID!
|
|
41
|
-
amount: Float!
|
|
42
|
-
raw_amount: Float
|
|
43
|
-
authorized_amount: Float
|
|
44
|
-
raw_authorized_amount: Float
|
|
45
|
-
currency_code: String!
|
|
46
|
-
provider_id: String!
|
|
47
|
-
cart_id: String
|
|
48
|
-
order_id: String
|
|
49
|
-
order_edit_id: String
|
|
50
|
-
customer_id: String
|
|
51
|
-
data: JSON
|
|
52
|
-
created_at: DateTime
|
|
53
|
-
updated_at: DateTime
|
|
54
|
-
captured_at: DateTime
|
|
55
|
-
canceled_at: DateTime
|
|
56
|
-
captured_amount: Float
|
|
57
|
-
raw_captured_amount: Float
|
|
58
|
-
refunded_amount: Float
|
|
59
|
-
raw_refunded_amount: Float
|
|
60
|
-
captures: [CaptureDTO]
|
|
61
|
-
refunds: [RefundDTO]
|
|
62
|
-
payment_collection_id: String!
|
|
63
|
-
payment_collection: PaymentCollectionDTO
|
|
64
|
-
payment_session: PaymentSessionDTO
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type Capture {
|
|
68
|
-
id: ID!
|
|
69
|
-
amount: Float!
|
|
70
|
-
created_at: DateTime!
|
|
71
|
-
created_by: String
|
|
72
|
-
payment: Payment!
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
type Refund {
|
|
76
|
-
id: ID!
|
|
77
|
-
amount: Float!
|
|
78
|
-
refund_reason_id: String
|
|
79
|
-
refund_reason: RefundReason
|
|
80
|
-
note: String
|
|
81
|
-
created_at: DateTime!
|
|
82
|
-
created_by: String
|
|
83
|
-
payment: Payment!
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
type PaymentSession {
|
|
87
|
-
id: ID!
|
|
88
|
-
amount: Float!
|
|
89
|
-
currency_code: String!
|
|
90
|
-
provider_id: String!
|
|
91
|
-
data: JSON!
|
|
92
|
-
context: JSON
|
|
93
|
-
status: PaymentSessionStatus!
|
|
94
|
-
authorized_at: DateTime
|
|
95
|
-
payment_collection_id: String!
|
|
96
|
-
payment_collection: PaymentCollection
|
|
97
|
-
payment: Payment
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
type PaymentProvider {
|
|
101
|
-
id: ID!
|
|
102
|
-
is_enabled: String!
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
type RefundReason {
|
|
106
|
-
id: ID!
|
|
107
|
-
label: String!
|
|
108
|
-
description: String
|
|
109
|
-
metadata: JSON
|
|
110
|
-
created_at: DateTime!
|
|
111
|
-
updated_at: DateTime!
|
|
112
|
-
}
|
|
113
|
-
`;
|
|
114
|
-
//# sourceMappingURL=index.js.map
|
package/dist/schema/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":";;AAAA,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8Gd,CAAA"}
|