-
Notifications
You must be signed in to change notification settings - Fork 0
/
PaymentDetailsBase.cljs
59 lines (46 loc) · 1.62 KB
/
PaymentDetailsBase.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
(ns web.payments.PaymentDetailsBase
"The PaymentDetailsBase dictionary is a mixin used by the `PaymentDetailsInit`
`web.payments.PaymentDetailsUpdate` dictionaries."
(:refer-clojure :exclude []))
(defn display-items
"Property.
An array of PaymentItem objects, each describing one line item
the payment request. These represent the line items on a receipt
invoice."
[this]
(-> this (.-displayItems)))
(defn set-display-items!
"Property.
An array of PaymentItem objects, each describing one line item
the payment request. These represent the line items on a receipt
invoice."
[this val]
(aset this "displayItems" val))
(defn modifiers
"Property.
An array of PaymentDetailsModifier objects, each describing a
for particular payment method identifiers. For example, you can
one to adjust the total payment amount based on the selected
method (\"5% cash discount!\")."
[this]
(-> this (.-modifiers)))
(defn set-modifiers!
"Property.
An array of PaymentDetailsModifier objects, each describing a
for particular payment method identifiers. For example, you can
one to adjust the total payment amount based on the selected
method (\"5% cash discount!\")."
[this val]
(aset this "modifiers" val))
(defn shipping-options
"Property.
An array of PaymentShippingOption objects, each describing one
shipping option from which the user may choose."
[this]
(-> this (.-shippingOptions)))
(defn set-shipping-options!
"Property.
An array of PaymentShippingOption objects, each describing one
shipping option from which the user may choose."
[this val]
(aset this "shippingOptions" val))