toss_payments 0.4.1 → 0.4.3
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 -3
- 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: c49db5e55c7225f4a3280b5b3e41a9935da142dbceacbb13eafb9f561d276881
|
4
|
+
data.tar.gz: 17a21ba2c4418be5782dd04b373230532d6ee31597ab7d281523c9340ee2669d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba4b06d691167bf46334291f8e5e8ceba42dc0aec1dd9f8f991a366f66851232b28cc463f14b24809d3feec2ff0901ccad13a08f6962bb17b1d32902fc84a01
|
7
|
+
data.tar.gz: 0357324a83588cc3525e44e611a457557a2e46058c3fef9011d7229476ee046216fb2c9aa88ca67a2a732963b2c1de670528d1800b35d1bb65da5ed955dd569a
|
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,
|
@@ -266,6 +266,7 @@ module TossPayments
|
|
266
266
|
virtual_account: response["virtualAccount"] ? {
|
267
267
|
account_type: response["virtualAccount"]["accountType"],
|
268
268
|
account_number: response["virtualAccount"]["accountNumber"],
|
269
|
+
bank_name: BankNames[response["virtualAccount"]["bankCode"]],
|
269
270
|
bank_code: response["virtualAccount"]["bankCode"],
|
270
271
|
customer_name: response["virtualAccount"]["customerName"],
|
271
272
|
due_date: Time.parse(response["virtualAccount"]["dueDate"]),
|
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.3
|
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
|