zai_payment 1.0.1 → 1.1.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.
data/lib/zai_payment.rb CHANGED
@@ -1,12 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'faraday'
4
+ require 'uri'
4
5
  require_relative 'zai_payment/version'
5
6
  require_relative 'zai_payment/config'
6
7
  require_relative 'zai_payment/errors'
7
8
  require_relative 'zai_payment/auth/token_provider'
8
9
  require_relative 'zai_payment/auth/token_store'
9
10
  require_relative 'zai_payment/auth/token_stores/memory_store'
11
+ require_relative 'zai_payment/client'
12
+ require_relative 'zai_payment/response'
13
+ require_relative 'zai_payment/resources/webhook'
10
14
 
11
15
  module ZaiPayment
12
16
  class << self
@@ -29,5 +33,11 @@ module ZaiPayment
29
33
  def clear_token! = auth.clear_token
30
34
  def token_expiry = auth.token_expiry
31
35
  def token_type = auth.token_type
36
+
37
+ # --- Resource accessors ---
38
+ # @return [ZaiPayment::Resources::Webhook] webhook resource instance
39
+ def webhooks
40
+ @webhooks ||= Resources::Webhook.new
41
+ end
32
42
  end
33
43
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zai_payment
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eddy Jaga
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-10-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -33,15 +32,22 @@ extra_rdoc_files: []
33
32
  files:
34
33
  - CHANGELOG.md
35
34
  - CODE_OF_CONDUCT.md
35
+ - IMPLEMENTATION.md
36
36
  - LICENSE.txt
37
37
  - README.md
38
38
  - Rakefile
39
+ - docs/ARCHITECTURE.md
40
+ - docs/WEBHOOKS.md
41
+ - examples/webhooks.md
39
42
  - lib/zai_payment.rb
40
43
  - lib/zai_payment/auth/token_provider.rb
41
44
  - lib/zai_payment/auth/token_store.rb
42
45
  - lib/zai_payment/auth/token_stores/memory_store.rb
46
+ - lib/zai_payment/client.rb
43
47
  - lib/zai_payment/config.rb
44
48
  - lib/zai_payment/errors.rb
49
+ - lib/zai_payment/resources/webhook.rb
50
+ - lib/zai_payment/response.rb
45
51
  - lib/zai_payment/version.rb
46
52
  - sig/zai_payment.rbs
47
53
  homepage: https://github.com/Sentia/zai-payment
@@ -51,9 +57,10 @@ metadata:
51
57
  allowed_push_host: https://rubygems.org
52
58
  homepage_uri: https://github.com/Sentia/zai-payment
53
59
  source_code_uri: https://github.com/Sentia/zai-payment
54
- changelog_uri: https://github.com/Sentia/zai-payment/CHANGELOG.md
60
+ changelog_uri: https://github.com/Sentia/zai-payment/blob/main/CHANGELOG.md
61
+ code_of_conduct_uri: https://github.com/Sentia/zai-payment/blob/main/CODE_OF_CONDUCT.md
55
62
  rubygems_mfa_required: 'true'
56
- post_install_message:
63
+ documentation_uri: https://github.com/Sentia/zai-payment#readme
57
64
  rdoc_options: []
58
65
  require_paths:
59
66
  - lib
@@ -68,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
75
  - !ruby/object:Gem::Version
69
76
  version: '0'
70
77
  requirements: []
71
- rubygems_version: 3.5.11
72
- signing_key:
78
+ rubygems_version: 3.7.1
73
79
  specification_version: 4
74
80
  summary: Ruby gem for Zai payment integration
75
81
  test_files: []