lavenda-pay-ruby 0.0.4 → 0.0.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -1
- data/lib/lavenda_pay/orders/create.rb +2 -1
- data/lib/lavenda_pay/resources/order.rb +1 -1
- data/lib/lavenda_pay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 00dc7c7cb0d7ac644c13976599096c4b2fe4296c29c8a6c22b1ae7bc3700e154
|
|
4
|
+
data.tar.gz: 40d4588561e2169f27c253886a7c0867de053758cb7a355a2ccac0a9ae06bf9b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99c6b6ee1455905d090da3974e0c9fa81f75c9ec94915dba49f915325dcd3631d21d24adea56934a3df01e0450e2433db0977018d8aed100011d151e33135825
|
|
7
|
+
data.tar.gz: 62be56c406e9e4660bc35eea9aee3058f4d58820f79018b7886fa7161cb57eceee7e81633b250a9d7aec17b6192f5ef2edcf580acb79a8e8809e097ac7b9d92b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -78,7 +78,8 @@ order = LavendaPay::Orders::Create.call(
|
|
|
78
78
|
frequency: "once",
|
|
79
79
|
currency: "brl",
|
|
80
80
|
items_attributes: [{product_title: "Material didático", quantity: 1, unit_price: 450.0}],
|
|
81
|
-
max_installment_count: 3 # optional: up to how many card installments, 1 to 12, defaults to 12
|
|
81
|
+
max_installment_count: 3, # optional: up to how many card installments, 1 to 12, defaults to 12
|
|
82
|
+
requires_sign_in: true # optional: payment page only for the signed-in customer and the company team, defaults to false
|
|
82
83
|
)
|
|
83
84
|
order.pid # => "order_..."
|
|
84
85
|
order.status # => "draft"
|
|
@@ -4,7 +4,8 @@ module LavendaPay
|
|
|
4
4
|
# customer_pid: "...", payment_method_kinds: ["pix", "credit_card"],
|
|
5
5
|
# description: "...", eid: "ORD-1", frequency: "once", currency: "brl",
|
|
6
6
|
# items_attributes: [{product_title: "...", quantity: 1, unit_price: 450.0}],
|
|
7
|
-
# max_installment_count: 3 # optional, 1 to 12, defaults to 12
|
|
7
|
+
# max_installment_count: 3, # optional, 1 to 12, defaults to 12
|
|
8
|
+
# requires_sign_in: true # optional, defaults to false
|
|
8
9
|
# ) # => LavendaPay::Order
|
|
9
10
|
class Create < Operation
|
|
10
11
|
def call(params)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module LavendaPay
|
|
2
2
|
class Order < Resource
|
|
3
3
|
# Attributes: pid, status, expires_at, requires_billing_address,
|
|
4
|
-
# max_installment_count, payment_link_pid, customer.
|
|
4
|
+
# requires_sign_in, max_installment_count, payment_link_pid, customer.
|
|
5
5
|
def customer
|
|
6
6
|
value = self["customer"]
|
|
7
7
|
value.is_a?(Hash) ? Customer.new(value) : value
|
data/lib/lavenda_pay/version.rb
CHANGED