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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ab9c1f7169f3c8a9139e5ae77fd7d32c611e59b089c2210f81ef2670ae93983d
4
- data.tar.gz: 3fd5edcbafd5aaf883942e2b49ca718efadd6c6457d5d42b7f5634609269b310
3
+ metadata.gz: 00dc7c7cb0d7ac644c13976599096c4b2fe4296c29c8a6c22b1ae7bc3700e154
4
+ data.tar.gz: 40d4588561e2169f27c253886a7c0867de053758cb7a355a2ccac0a9ae06bf9b
5
5
  SHA512:
6
- metadata.gz: 0e931c2d7c3b80e7c8c62957dcafe58be59331806ecac03e9bf7c5df469ec34832f14516b4af4f7d4d00a7a1fde7117bb7be0ab8bb463b9262b770801ac52f8c
7
- data.tar.gz: a019be6f2a156a6e24afe598fafcf10272145d64d555d1cefe05b2a26aefd3f555f0003155aa78f3e9b381051b72cd896e4b0dd21ff1f2dc8f7002e1ea2fe25a
6
+ metadata.gz: 99c6b6ee1455905d090da3974e0c9fa81f75c9ec94915dba49f915325dcd3631d21d24adea56934a3df01e0450e2433db0977018d8aed100011d151e33135825
7
+ data.tar.gz: 62be56c406e9e4660bc35eea9aee3058f4d58820f79018b7886fa7161cb57eceee7e81633b250a9d7aec17b6192f5ef2edcf580acb79a8e8809e097ac7b9d92b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## Unreleased
4
+
5
+ - `LavendaPay::Orders::Create` accepts `requires_sign_in`, and `LavendaPay::Order` exposes it.
6
+
3
7
  ## 0.0.4
4
8
 
5
9
  - Add `LavendaPay::PaymentLinks` (`Create`, `Find`, `List`, `End`) and `LavendaPay::PaymentLink`.
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
@@ -1,3 +1,3 @@
1
1
  module LavendaPay
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lavenda-pay-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - La Venda Software