paymos 1.5.0 → 1.5.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/paymos/client.rb +2 -2
- data/lib/paymos/version.rb +1 -1
- data/sig/paymos.rbs +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '085824f8d197938805072bbe261b174157877f18edaff7602221a68ad1bbca52'
|
|
4
|
+
data.tar.gz: 60d04d4f82f6baee7aa3b23953eb603213304f5022a87ab5a5ad8d04b5d507c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f05fdb1aed2a83d2f9fdbac11ecd905eb8e013d3a2d84ffbfad02bff215412528fa8c2a3cd197492d6443d46e25b7d4389b362a3b6f00bfb504daf4a011d3de
|
|
7
|
+
data.tar.gz: e7147f721cbb9d0c7230d9bdcb785e809d67d497a6da3d663e67e81b9325d6d7abd6b6ecc71046379f6e2a0fa0fb1df2840db9249dcd700e5a15f3185bddc247
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [1.5.1] - 2026-11-01
|
|
6
|
+
|
|
7
|
+
- refactor(invoices): remove the multiple-payment toggle
|
|
8
|
+
|
|
9
|
+
- **403 is no longer reported as an authentication failure.** `Paymos::PermissionError` (subclasses `Paymos::AuthenticationError`, so existing `rescue` blocks keep working) now carries every 403.
|
|
10
|
+
- **Base URL must use HTTPS.** Plain HTTP is accepted only against a loopback host, which is what a local integration test points at. The API secret signs every request, so a plaintext base URL put that credential on the wire.
|
|
11
|
+
|
|
5
12
|
## [1.5.0] - 2026-10-30
|
|
6
13
|
|
|
7
14
|
- fix(plugins): reject invalid Woo refund controls and unblock SDK checks
|
data/lib/paymos/client.rb
CHANGED
|
@@ -211,14 +211,14 @@ module Paymos
|
|
|
211
211
|
|
|
212
212
|
class Invoices < Resource
|
|
213
213
|
def create(project_id:, amount:, currency:, external_order_id:, network: nil,
|
|
214
|
-
|
|
214
|
+
customer_fee_percent: nil, client_id: nil)
|
|
215
215
|
required_keywords(project_id:, amount:, currency:, external_order_id:)
|
|
216
216
|
if !customer_fee_percent.nil? && !(customer_fee_percent.is_a?(Integer) && customer_fee_percent.between?(0, 100))
|
|
217
217
|
raise ArgumentError, 'customer_fee_percent must be between 0 and 100'
|
|
218
218
|
end
|
|
219
219
|
|
|
220
220
|
payload = { project_id:, amount:, currency:, external_order_id:, network:,
|
|
221
|
-
|
|
221
|
+
customer_fee_percent:, client_id: }.compact
|
|
222
222
|
Invoice.from(@client.request('POST', '/v1/invoices', payload:))
|
|
223
223
|
end
|
|
224
224
|
|
data/lib/paymos/version.rb
CHANGED
data/sig/paymos.rbs
CHANGED
|
@@ -254,7 +254,7 @@ module Paymos
|
|
|
254
254
|
end
|
|
255
255
|
|
|
256
256
|
class Invoices
|
|
257
|
-
def create: (project_id: String, amount: String, currency: String, external_order_id: String, ?network: String?, ?
|
|
257
|
+
def create: (project_id: String, amount: String, currency: String, external_order_id: String, ?network: String?, ?customer_fee_percent: Integer?, ?client_id: String?) -> Invoice
|
|
258
258
|
def get: (String invoice_id) -> Invoice
|
|
259
259
|
def list: (?limit: Integer?, ?cursor: String?, ?status: String | Array[String]?, ?external_order_id: String?, ?project_id: String?, ?created_from: Integer?, ?created_to: Integer?) -> Page[InvoiceListItem]
|
|
260
260
|
def cancel: (String invoice_id, reason: String) -> Invoice
|