toss_payments 0.3.4 → 0.3.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/toss_payments.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca5dc226dac9284e216b828c85711f0fa36b9754bca9ac30b26f0b458d8d9112
4
- data.tar.gz: 4d2eb26d07e1ecc30b301f5920910ee238e98ea08f0dba1ce38daccea6fbf195
3
+ metadata.gz: ad6aa1f3febf18709c37946069a4c698a54dc5f08a6942d52a942afbdd674a45
4
+ data.tar.gz: 401931a9b036365e3bfe5a49166a6365b1d62ea3f338be6d7d1de6e64b2e6786
5
5
  SHA512:
6
- metadata.gz: afd672a9497e0bf46dee7494b8f0733fe1abb5f8d5f04bebabe5edbe77a7ec9a0eec6574ccbbec6042b2d2215d781d2f1c4b2153f20153644b51510bce71484a
7
- data.tar.gz: d92dff386b96bf49733d2d7272cbb12cb121e1bd0f47391f0ffb771a5385579e8e5001a1ca96f45aa518f3f3b13dc13354c0a31ac6f3a1b8ac5c056a3b43b04c
6
+ metadata.gz: 3fd5e8d37a1d4e5dd8179bb66c25e098a5f97249a9670daf77ae103a528295df35e85da435c9f5c8293840f533ae5d81dc8017ac79d2111b84d78950d1cdede6
7
+ data.tar.gz: 3ff0606194d468223484d2c3e1cf06c373419964465b8566dbe29bd7e390537be3d73c522b070d257970a83d1b6fd7e4e1221f3aa34ee178bce6574fe73a8efa
data/lib/toss_payments.rb CHANGED
@@ -172,7 +172,7 @@ module TossPayments
172
172
  method: response["method"],
173
173
  total_amount: response["totalAmount"],
174
174
  balanced_amount: response["balancedAmount"],
175
- status: response["status"].downcase.to_sym,
175
+ status: response["status"]&.downcase.to_sym,
176
176
  requested_at: Time.parse(response["requestedAt"]),
177
177
  approved_at: Time.parse(response["approvedAt"]),
178
178
  use_escrow: response["useEscrow"],
@@ -205,9 +205,9 @@ module TossPayments
205
205
  use_card_point: response["card"]["useCardPoint"],
206
206
  card_type: response["card"]["cardType"],
207
207
  owner_type: response["card"]["ownerType"],
208
- acquire_status: response["card"]["acquireStatus"].downcase.to_sym,
208
+ acquire_status: response["card"]["acquireStatus"]&.downcase.to_sym,
209
209
  is_interest_free: response["card"]["isInterestFree"],
210
- interset_payer: response["card"]["interestPayer"].downcase.to_sym,
210
+ interest_payer: response["card"]["interestPayer"]&.downcase.to_sym,
211
211
  } : nil,
212
212
  virtual_account: response["virtualAccount"] ? {
213
213
  account_type: response["virtualAccount"]["accountType"],
@@ -215,7 +215,7 @@ module TossPayments
215
215
  bank_code: response["virtualAccount"]["bankCode"],
216
216
  customer_name: response["virtualAccount"]["customerName"],
217
217
  due_date: Time.parse(response["virtualAccount"]["dueDate"]),
218
- refund_status: response["virtualAccount"]["refundStatus"].downcase.to_sym,
218
+ refund_status: response["virtualAccount"]["refundStatus"]&.downcase.to_sym,
219
219
  expired: response["virtualAccount"]["expired"],
220
220
  settlement_status: response["virtualAccount"]["settlementStatus"],
221
221
  } : nil,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toss_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Soohyeon Lee