paymos 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53529447a1b6190b8df0810a738fe95a68dbfcbb40bfc00eb0884bd57b191992
4
- data.tar.gz: b94adfdafc75ba8e72e799dbd5df529c9926802553c7e2f17910a56fff4fa68b
3
+ metadata.gz: '085824f8d197938805072bbe261b174157877f18edaff7602221a68ad1bbca52'
4
+ data.tar.gz: 60d04d4f82f6baee7aa3b23953eb603213304f5022a87ab5a5ad8d04b5d507c4
5
5
  SHA512:
6
- metadata.gz: 8d4261c76165f99433e7d2711f46e990136ab7d009d0d4ddc84e82bacd72d5470c963212a9fc7bc3acde0ffb3b295f89afb2401739c1c890c35f2b8e651147b8
7
- data.tar.gz: 460c55e0c00c9c0ccafb66ad7b2f13beaaefd3f3797daab6a65a9c46f662e031c542f98ec8ba476e660fabe2839f42eb0ab8cb68e59c332f0b63fd21412b4236
6
+ metadata.gz: 0f05fdb1aed2a83d2f9fdbac11ecd905eb8e013d3a2d84ffbfad02bff215412528fa8c2a3cd197492d6443d46e25b7d4389b362a3b6f00bfb504daf4a011d3de
7
+ data.tar.gz: e7147f721cbb9d0c7230d9bdcb785e809d67d497a6da3d663e67e81b9325d6d7abd6b6ecc71046379f6e2a0fa0fb1df2840db9249dcd700e5a15f3185bddc247
data/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
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
+
12
+ ## [1.5.0] - 2026-10-30
13
+
14
+ - fix(plugins): reject invalid Woo refund controls and unblock SDK checks
15
+ - fix(sdk): preserve current refund contracts in TON conformance
16
+ - fix(ton): return friendly addresses with existing webhook schema
17
+ - feat(sdk-ruby): add refund create, list and get
18
+
19
+ - **403 is no longer reported as an authentication failure.** `Paymos::PermissionError` (subclasses `Paymos::AuthenticationError`, so existing `rescue` blocks keep working) now carries every 403.
20
+ - **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.
21
+
5
22
  ## [1.4.0] - 2026-10-30
6
23
 
7
24
  - 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
- allow_multiple_payments: nil, customer_fee_percent: nil, client_id: nil)
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
- allow_multiple_payments:, customer_fee_percent:, client_id: }.compact
221
+ customer_fee_percent:, client_id: }.compact
222
222
  Invoice.from(@client.request('POST', '/v1/invoices', payload:))
223
223
  end
224
224
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paymos
4
- VERSION = '1.4.0'
4
+ VERSION = '1.5.1'
5
5
  end
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?, ?allow_multiple_payments: bool?, ?customer_fee_percent: Integer?, ?client_id: String?) -> Invoice
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paymos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paymos Labs