payrex-ruby 0.2.4 → 0.2.5

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: 1c5194019a3a1d9df7947ddc174b679fdf4dae8fc362ff0e72b7a7be71ad22e0
4
- data.tar.gz: 5fd6e7670de0646b2eb9d33793d1d59751399c02495f9eb485a752e9ed5c5e77
3
+ metadata.gz: d7c49f394c25feab4ff376615d550792a83de2c2a64aa61207c21b8821c2607c
4
+ data.tar.gz: d8980ccd6a3b5cd6b68e9bee80f1312a60e66e630f378974ccbc50fc0db6803b
5
5
  SHA512:
6
- metadata.gz: aa23c40d19f5c750b23ae345f277c8541e726dabf2b0c4e432a7babe59b03e348c6af1cb4cf34257b34796750d28d9b85ba0544bd5a2f62fa5b1f87f9d19c153
7
- data.tar.gz: 04af0cd210bc5cc3afaa8215e13a4617159eec9a7f9c74aa1e42dca55b8d0f94478fcc56899f59d627dfacc536f915999957fd907ec0fb92797e2df0d6f91040
6
+ metadata.gz: 31dc305db78be2c7fa367e2472ab03082e247fa3b00b4c4362bf609c082d7018d890fc4122149af3f461313f0e82e60077a1df982955b0194cdbf786b348c4e3
7
+ data.tar.gz: 6bbdd917dcff61578d3e0dba55d07c8b59ef7ea122e18c9d616aeaefedc5096aab770cdbcf5c31f730e6f9d18c01863ba5e74ad3fcfea2e3982aaf96b26ea4d5
@@ -3,6 +3,8 @@ module Payrex
3
3
  class PaymentIntent
4
4
  attr_reader :id,
5
5
  :amount,
6
+ :amount_received,
7
+ :amount_capturable,
6
8
  :client_secret,
7
9
  :currency,
8
10
  :description,
@@ -22,6 +24,8 @@ module Payrex
22
24
  def initialize(api_resource)
23
25
  @id = api_resource.data["id"]
24
26
  @amount = api_resource.data["amount"]
27
+ @amount_received = api_resource.data["amount_received"]
28
+ @amount_capturable = api_resource.data["amount_capturable"]
25
29
  @client_secret = api_resource.data["client_secret"]
26
30
  @currency = api_resource.data["currency"]
27
31
  @description = api_resource.data["description"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payrex-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - PayRex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: PayRex Ruby Library
14
14
  email: support@payrexhq.com