toss_payments 0.4.2 → 0.4.4
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/lib/toss_payments.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84e5f5207a9780b8e1687a37af48097a4e75dc1468ef3c285194d51716b54308
|
4
|
+
data.tar.gz: 95dbbb4be92538d72db96361805f3feefcf8e22f1f9332ef7492bd9b9e96a43a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e42bef20cdf76cb0da8e3157b4ef9b927fb4b3fa4d1cbfe1521bb6814ee121eff87213fbe602a6cd1391717de7982fdade87258b7b36cf51e8be784d37b1da71
|
7
|
+
data.tar.gz: c584e1e050a4824319f74d7bd4c62717061a0ae8f8baa71b45d7508716beb1964186df78244c84c970bcadf3034a77ca0905f696eb6577075ee8e3e6bd593ae5
|
data/lib/toss_payments.rb
CHANGED
@@ -21,7 +21,7 @@ module TossPayments
|
|
21
21
|
:currency,
|
22
22
|
:method,
|
23
23
|
:total_amount,
|
24
|
-
:
|
24
|
+
:balance_amount,
|
25
25
|
:status,
|
26
26
|
:requested_at,
|
27
27
|
:approved_at, # nullable
|
@@ -107,7 +107,7 @@ module TossPayments
|
|
107
107
|
"S4": "KB증권",
|
108
108
|
"02": "산업",
|
109
109
|
"SP": "KTB투자증권",
|
110
|
-
"
|
110
|
+
"SO": "LIG투자",
|
111
111
|
"11": "농협",
|
112
112
|
"SL": "NH투자증권",
|
113
113
|
"23": "SC제일",
|
@@ -225,7 +225,7 @@ module TossPayments
|
|
225
225
|
currency: response["currency"],
|
226
226
|
method: response["method"],
|
227
227
|
total_amount: response["totalAmount"],
|
228
|
-
|
228
|
+
balance_amount: response["balanceAmount"],
|
229
229
|
status: response["status"]&.downcase&.to_sym,
|
230
230
|
requested_at: Time.parse(response["requestedAt"]),
|
231
231
|
approved_at: response["approvedAt"] ? Time.parse(response["approvedAt"]) : nil,
|
@@ -236,7 +236,7 @@ module TossPayments
|
|
236
236
|
culture_expense: response["cultureExpense"],
|
237
237
|
tax_free_amount: response["taxFreeAmount"],
|
238
238
|
tax_exemption_amount: response["taxExemptionAmount"],
|
239
|
-
cancels: response["
|
239
|
+
cancels: response["cancels"]&.map do |cancel|
|
240
240
|
{
|
241
241
|
cancel_amount: cancel["cancelAmount"],
|
242
242
|
cancel_reason: cancel["cancelReason"],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toss_payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Soohyeon Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: toss payments api
|
14
14
|
email: lsh59727@gmail.com
|