-
Notifications
You must be signed in to change notification settings - Fork 0
/
PaymentItem.cljs
61 lines (48 loc) · 1.67 KB
/
PaymentItem.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
(ns web.payments.PaymentItem
"The `web.payments.PaymentItem` dictionary is used by the Payment
API to describe a single line item on a payment request."
(:refer-clojure :exclude []))
(defn amount
"Property.
A PaymentCurrencyAmount object describing the monetary value
the item."
[this]
(-> this (.-amount)))
(defn set-amount!
"Property.
A PaymentCurrencyAmount object describing the monetary value
the item."
[this val]
(aset this "amount" val))
(defn label
"Property.
A string specifying a human-readable name or description of the
or service being charged for. This may be displayed to the user
the user agent, depending on the design of the interface."
[this]
(-> this (.-label)))
(defn set-label!
"Property.
A string specifying a human-readable name or description of the
or service being charged for. This may be displayed to the user
the user agent, depending on the design of the interface."
[this val]
(aset this "label" val))
(defn pending
"Property.
A Boolean value which is true if the specified amount has not
been finalized. This can be used to show items such as shipping
tax amounts that depend upon the selection of shipping address,
option, or so forth. The user agent may show this information
is not required to do so."
[this]
(-> this (.-pending)))
(defn set-pending!
"Property.
A Boolean value which is true if the specified amount has not
been finalized. This can be used to show items such as shipping
tax amounts that depend upon the selection of shipping address,
option, or so forth. The user agent may show this information
is not required to do so."
[this val]
(aset this "pending" val))