Sha256: e1f22a31ddd97191176dfffb1a4e336e168df45ff99f3ec676b8a6fd1b9a8eb7

Contents?: true

Size: 1.07 KB

Versions: 50

Compression:

Stored size: 1.07 KB

Contents

# SunshineConversationsClient::Buy

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **String** | The type of action. | [default to 'buy']
**text** | **String** | The button text. | 
**amount** | **Integer** | The amount being charged. It needs to be specified in cents and is an integer (9.99$ -> 999). | 
**currency** | **String** | An ISO 4217 standard currency code in lowercase. Used for actions of type buy. | [optional] 
**metadata** | [**Object**](.md) | Flat object containing custom properties. Strings, numbers and booleans  are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.  | [optional] 

## Code Sample

```ruby
require 'SunshineConversationsClient'

instance = SunshineConversationsClient::Buy.new(type: null,
                                 text: Buy vinegar,
                                 amount: 8000,
                                 currency: CAD,
                                 metadata: {"lang":"en-ca"})
```


Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
sunshine-conversations-client-14.3.4 docs/Buy.md
sunshine-conversations-client-14.3.3 docs/Buy.md
sunshine-conversations-client-14.3.2 docs/Buy.md
sunshine-conversations-client-14.3.1 docs/Buy.md
sunshine-conversations-client-14.3.0 docs/Buy.md
sunshine-conversations-client-14.2.0 docs/Buy.md
sunshine-conversations-client-14.1.0 docs/Buy.md
sunshine-conversations-client-14.0.0 docs/Buy.md
sunshine-conversations-client-13.2.0 docs/Buy.md
sunshine-conversations-client-13.1.0 docs/Buy.md
sunshine-conversations-client-13.0.0 docs/Buy.md
sunshine-conversations-client-12.8.0 docs/Buy.md
sunshine-conversations-client-12.7.0 docs/Buy.md
sunshine-conversations-client-12.6.2 docs/Buy.md
sunshine-conversations-client-12.6.1 docs/Buy.md
sunshine-conversations-client-12.6.0 docs/Buy.md
sunshine-conversations-client-12.5.1 docs/Buy.md
sunshine-conversations-client-12.4.0 docs/Buy.md
sunshine-conversations-client-12.3.1 docs/Buy.md
sunshine-conversations-client-12.3.0 docs/Buy.md