paymos 1.7.1 → 1.8.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57b262c38d6cb857ca0d294ce81d4597f1bfbfa0424c547d1503d67c679f19e7
4
- data.tar.gz: 78d77c7ea30e6bfa9a364b69518bd5ce815d4b4346c914adfef1ac684fcc063d
3
+ metadata.gz: b2dbbdb711b584acd1a62489c4dede07a682d6844435ed1b8ecb928e93102ec3
4
+ data.tar.gz: 649dbcfedbb46bba61c715f08ce02e8f67988e8c9a02a1b5ef85063c52544acb
5
5
  SHA512:
6
- metadata.gz: 1b7d6b4c2eb4e485f491498b66b15ea078c9ae1b5cfae766f0307a3a565b26ee5f08456f7a3a5c72e8a2b4314a7e5d33167f5a015478791dab5bc554b9de33c3
7
- data.tar.gz: 8f10f5358a1b2a8d1e0946b1b4bab01064d05ca78ad1edeae824420dad5af26cd6f9beea2b3eefbf3b5cf63ad6751c24eeebfe7c3cc4badcd6b451b24a75a5f8
6
+ metadata.gz: 26a39cb9fd8f85694c79cb438f0a7d795ce0322ac32811451d8a54110553108ebfc33365cf6ba24e10e2a05cd2bf9b40d67227bad64682fd4825c05930ec7c70
7
+ data.tar.gz: b6ebf36813ca48e6eee3989c22353c0f31d91055c871add47c41cd282532284d8ca7974b8c6db5d528526bff2d4fe0679213369eb08848dd13b479ce7520652c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.8.0] - 2026-11-28
6
+
7
+ - fix(ruby-sdk): make the conformance test pass rubocop
8
+ - docs(plugins): add 6-language READMEs (EN/zh-CN/ru/es/de/tr) and YouTube walkthrough previews across all 25 Paymos-labs repos
9
+ - fix: close bug batches 11-12 across SDKs, CMS plugins, workers, proxy, backup and admin
10
+
5
11
  ## [1.7.1] - 2026-11-17
6
12
 
7
13
  - refactor(checkout): remove product images from invoice products
data/README.md CHANGED
@@ -1,9 +1,15 @@
1
1
  # Paymos Ruby SDK
2
2
 
3
+ **English** | [简体中文](README.zh-CN.md) | [Русский](README.ru.md) | [Español](README.es.md) | [Deutsch](README.de.md) | [Türkçe](README.tr.md)
4
+
3
5
  Official Ruby client for the Paymos Merchant API — invoices, withdrawals, refunds, balances,
4
6
  and static per-customer wallets with their confirmed-deposit feed. Its only runtime dependency is
5
7
  Ruby's official `base64` gem (required separately by modern Ruby versions).
6
8
 
9
+ [![Watch: Paymos API Quickstart in 10 Minutes — Sandbox to Signed Webhooks](https://i.ytimg.com/vi/aHQfHszuRBo/maxresdefault.jpg)](https://www.youtube.com/watch?v=aHQfHszuRBo)
10
+
11
+ > **Video walkthrough (1:22, subtitles in 6 languages):** [Watch on YouTube](https://www.youtube.com/watch?v=aHQfHszuRBo)
12
+
7
13
  ```bash
8
14
  gem install paymos
9
15
  ```
data/lib/paymos/client.rb CHANGED
@@ -270,7 +270,7 @@ module Paymos
270
270
  raise ArgumentError, 'products items must respond to to_h' unless item.respond_to?(:to_h)
271
271
 
272
272
  item.to_h.transform_keys(&:to_sym).reject do |key, value|
273
- key == :description && value.nil?
273
+ (key == :description && value.nil?) || key == :image_url || key == :imageUrl
274
274
  end
275
275
  end
276
276
  end
data/lib/paymos/models.rb CHANGED
@@ -83,6 +83,26 @@ module Paymos
83
83
  fields :title, :description, :quantity, :unit_amount,
84
84
  required: %i[title quantity unit_amount]
85
85
 
86
+ # Deprecated compatibility reader preserved from v1.7.0 so callers constructing
87
+ # InvoiceProduct with `image_url:` (including nil) or reading legacy responses
88
+ # continue to work; the value is never serialized onto outbound requests.
89
+ attr_reader :image_url
90
+
91
+ def self.from(value)
92
+ raise Error, 'Paymos API response must be a JSON object' unless value.is_a?(Hash)
93
+
94
+ attributes = field_names.to_h { |name| [name, value[name.to_s]] }
95
+ missing = required_names.select { |name| attributes[name].nil? }
96
+ raise Error, "Paymos API response is missing: #{missing.join(', ')}" unless missing.empty?
97
+
98
+ new(**attributes, image_url: value['image_url'])
99
+ end
100
+
101
+ def initialize(image_url: nil, **attributes)
102
+ @image_url = Model.deep_freeze(image_url)
103
+ super(**attributes)
104
+ end
105
+
86
106
  def to_h
87
107
  super.reject { |key, value| key == :description && value.nil? }
88
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paymos
4
- VERSION = '1.7.1'
4
+ VERSION = '1.8.0'
5
5
  end
data/sig/paymos.rbs CHANGED
@@ -76,10 +76,12 @@ module Paymos
76
76
  class InvoiceProduct < Model
77
77
  attr_reader title: String
78
78
  attr_reader description: String?
79
+ # Deprecated compatibility accessor from v1.7.0; omitted from serialized request payloads.
80
+ attr_reader image_url: String?
79
81
  attr_reader quantity: Integer
80
82
  attr_reader unit_amount: String
81
83
 
82
- def initialize: (title: String, quantity: Integer, unit_amount: String, ?description: String?) -> void
84
+ def initialize: (title: String, quantity: Integer, unit_amount: String, ?description: String?, ?image_url: String?) -> void
83
85
  end
84
86
 
85
87
  class Order < Model
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.7.1
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paymos Labs