plivo 4.55.2 → 4.56.0

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
  SHA1:
3
- metadata.gz: c4707f9288fffec0a5a82cb7e3161abb404f6fbe
4
- data.tar.gz: b723c7d0fc56abb0c39be198d7c01bb81788dbab
3
+ metadata.gz: f30ff0d80407fc770beb03a8889bf6dacafc8742
4
+ data.tar.gz: 930c4826d997a597f909dc4eb83aac4d43e6729e
5
5
  SHA512:
6
- metadata.gz: 1ad2a8e50667f938af4c6d065a5e2872e87d170070612cd4c832fe2e3e2a4abbe9bd2a8e0e9ed52a4eb8c445cafadfea62f376269568274f407f3f04607a6fec
7
- data.tar.gz: ca72e3d8f456ef12bec07696df35afc5d383ace6580caca463adb16a79864c8a4e12be998969d82a458ee8608fa44e946aa89fba4fbadca2cdf66de7219dcfea
6
+ metadata.gz: 8293924cb842fb82415f1b3c4e1116a99340d9467d8827caa95906b4b249f2d82855d03379c8d80edff4cfb9ebcb4558933e7e9ae7f87ba85afb90e6f5b9eef7
7
+ data.tar.gz: 57337155f190fd2d39abd96e0f6bb8304d3428ccbef7dafa61f3e0cde573ce3d24184a44db61da8bc92a4b29cbf125066dc2acb35a1dbee581d2e35b148381cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.56.0](https://github.com/plivo/plivo-ruby/tree/v4.56.0) (2023-04-18)
4
+ **Feature - Support for dynamic button components when sending a templated WhatsApp message**
5
+ - Added new param `payload` in templates to support dynamic payload in templates
6
+
3
7
  ## [4.55.2](https://github.com/plivo/plivo-ruby/tree/v4.55.2) (2024-02-28)
4
8
  **Feature - Log Redaction Enhancement**
5
9
  - Added log attribute in GET and List MDR response
data/README.md CHANGED
@@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'plivo', '>= 4.55.2'
12
+ gem 'plivo', '>= 4.56.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -41,12 +41,13 @@ module Plivo
41
41
  end
42
42
 
43
43
  class Parameter
44
- attr_accessor :type, :text, :media, :currency, :date_time
44
+ attr_accessor :type, :text, :media, :payload, :currency, :date_time
45
45
 
46
- def initialize(type: nil, text: nil, media: nil, currency: nil, date_time: nil)
46
+ def initialize(type: nil, text: nil, media: nil, payload: nil, currency: nil, date_time: nil)
47
47
  @type = type
48
48
  @text = text
49
49
  @media = media
50
+ @payload = payload
50
51
  @currency = currency
51
52
  @date_time = date_time
52
53
  end
@@ -56,6 +57,7 @@ module Plivo
56
57
  type: @type,
57
58
  text: @text,
58
59
  media: @media,
60
+ payload: @payload,
59
61
  currency: @currency&.to_hash,
60
62
  date_time: @date_time&.to_hash
61
63
  }.reject { |_, v| v.nil? }
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.55.2".freeze
2
+ VERSION = "4.56.0".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plivo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.55.2
4
+ version: 4.56.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Plivo SDKs Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday