ultracart_api 4.1.203 → 4.1.205
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/README.md +26 -2
- data/docs/SfvbApi.md +711 -7
- data/docs/SfvbApprovalParams.md +4 -0
- data/docs/SfvbCommsDnsRecord.md +24 -0
- data/docs/SfvbCommsSendingDomain.md +38 -0
- data/docs/SfvbCommsSendingDomainsResponse.md +18 -0
- data/docs/SfvbCommsTwilioAccount.md +38 -0
- data/docs/SfvbCommsTwilioAccountResponse.md +20 -0
- data/docs/SfvbEmailRenderRequest.md +24 -0
- data/docs/SfvbEmailRenderResponse.md +34 -0
- data/docs/SfvbSecretRequestCreate.md +1 -1
- data/docs/SfvbTransactionalEmail.md +24 -0
- data/docs/SfvbTransactionalEmailsResponse.md +18 -0
- data/lib/ultracart_api/api/sfvb_api.rb +906 -26
- data/lib/ultracart_api/models/sfvb_approval_params.rb +21 -1
- data/lib/ultracart_api/models/sfvb_comms_dns_record.rb +296 -0
- data/lib/ultracart_api/models/sfvb_comms_sending_domain.rb +356 -0
- data/lib/ultracart_api/models/sfvb_comms_sending_domains_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_comms_twilio_account.rb +322 -0
- data/lib/ultracart_api/models/sfvb_comms_twilio_account_response.rb +231 -0
- data/lib/ultracart_api/models/sfvb_email_render_request.rb +252 -0
- data/lib/ultracart_api/models/sfvb_email_render_response.rb +301 -0
- data/lib/ultracart_api/models/sfvb_secret_request_create.rb +1 -1
- data/lib/ultracart_api/models/sfvb_transactional_email.rb +250 -0
- data/lib/ultracart_api/models/sfvb_transactional_emails_response.rb +222 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +9 -0
- metadata +19 -1
data/docs/SfvbApprovalParams.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
| **attribute_names** | **Array<String>** | For item.attribute_batch, the attributes the batch would change. Set by the server. | [optional] |
|
|
8
8
|
| **blog_post_oid** | **Integer** | The blog post, for blog_post.delete. | [optional] |
|
|
9
9
|
| **content_sha256** | **String** | For file.put_script, the SHA-256 of the exact bytes approved. Set by the server, never by the caller. The write must send bytes with this hash. | [optional] |
|
|
10
|
+
| **domain** | **String** | For sending_domain.delete, the sending domain. | [optional] |
|
|
11
|
+
| **esp_twilio_uuid** | **String** | For twilio_account.delete, the Twilio account's esp_twilio_uuid, as GET comms/twilio_account returns it. | [optional] |
|
|
10
12
|
| **experiment_oid** | **Integer** | For experiment.end, the experiment to end. | [optional] |
|
|
11
13
|
| **item_count** | **Integer** | For item.attribute_batch, how many items the batch would change when it was requested. Set by the server. | [optional] |
|
|
12
14
|
| **merchant_item_oid** | **Integer** | For item.pricing, the item whose pricing changes. | [optional] |
|
|
@@ -30,6 +32,8 @@ instance = UltracartClient::SfvbApprovalParams.new(
|
|
|
30
32
|
attribute_names: null,
|
|
31
33
|
blog_post_oid: null,
|
|
32
34
|
content_sha256: null,
|
|
35
|
+
domain: null,
|
|
36
|
+
esp_twilio_uuid: null,
|
|
33
37
|
experiment_oid: null,
|
|
34
38
|
item_count: null,
|
|
35
39
|
merchant_item_oid: null,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbCommsDnsRecord
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **name** | **String** | The host name, relative to the domain. @ is the domain itself. | [optional] |
|
|
8
|
+
| **purpose** | **String** | What the record is for. verification proves the domain is yours, spf lists who may send for it, and dkim signs its mail. | [optional] |
|
|
9
|
+
| **type** | **String** | The record type. | [optional] |
|
|
10
|
+
| **value** | **String** | The value to publish. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbCommsDnsRecord.new(
|
|
18
|
+
name: null,
|
|
19
|
+
purpose: null,
|
|
20
|
+
type: null,
|
|
21
|
+
value: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UltracartClient::SfvbCommsSendingDomain
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **comment** | **String** | For an amazon domain, what UltraCart did last, such as restarting a verification that failed. | [optional] |
|
|
8
|
+
| **dkim_status** | **String** | For an amazon domain, whether the DKIM records were found. Pending, Success or Failed. | [optional] |
|
|
9
|
+
| **dns_records** | [**Array<SfvbCommsDnsRecord>**](SfvbCommsDnsRecord.md) | For an amazon domain, the DNS records to publish. Empty for a mailgun domain, whose records are in Mailgun. | [optional] |
|
|
10
|
+
| **domain** | **String** | The domain mail is sent from. A leading www. or secure. is dropped. Required to create. | [optional] |
|
|
11
|
+
| **esp_domain_uuid** | **String** | UltraCart's id for the sending domain. Set by the server. | [optional] |
|
|
12
|
+
| **identity_status** | **String** | For an amazon domain, whether the verification record was found. Pending until it is, then Success, or Failed after 72 hours. | [optional] |
|
|
13
|
+
| **mailgun_api_key** | **String** | For a mailgun domain, the Mailgun account's private API key. A secret field. Reads return a mask. To set it, send a secret handle (sec_...) made for this domain by POST secrets with sink mailgun.domain.api_key. Send the mask back, or leave it out, to keep it. Required to create a mailgun domain. | [optional] |
|
|
14
|
+
| **provider** | **String** | Who sends the mail. amazon sends through UltraCart after the DNS records are published. mailgun sends through the merchant's own Mailgun account. Required to create, and fixed after. | [optional] |
|
|
15
|
+
| **start_dkim_dts** | **String** | For an amazon domain, when the current DKIM check started. | [optional] |
|
|
16
|
+
| **start_identity_dts** | **String** | For an amazon domain, when the current verification started. | [optional] |
|
|
17
|
+
| **verified** | **Boolean** | True when an amazon domain's verification and DKIM records have both been found, so it can send. | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'ultracart_api'
|
|
23
|
+
|
|
24
|
+
instance = UltracartClient::SfvbCommsSendingDomain.new(
|
|
25
|
+
comment: null,
|
|
26
|
+
dkim_status: null,
|
|
27
|
+
dns_records: null,
|
|
28
|
+
domain: null,
|
|
29
|
+
esp_domain_uuid: null,
|
|
30
|
+
identity_status: null,
|
|
31
|
+
mailgun_api_key: null,
|
|
32
|
+
provider: null,
|
|
33
|
+
start_dkim_dts: null,
|
|
34
|
+
start_identity_dts: null,
|
|
35
|
+
verified: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UltracartClient::SfvbCommsSendingDomainsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **sending_domains** | [**Array<SfvbCommsSendingDomain>**](SfvbCommsSendingDomain.md) | Every sending domain on the account, in domain order. Mailgun API keys are masked. | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ultracart_api'
|
|
13
|
+
|
|
14
|
+
instance = UltracartClient::SfvbCommsSendingDomainsResponse.new(
|
|
15
|
+
sending_domains: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UltracartClient::SfvbCommsTwilioAccount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **account_sid** | **String** | The Twilio account SID, AC followed by 32 hex digits. It names the account, so it is also the target_id of a secret request for its auth token. Required to create. | [optional] |
|
|
8
|
+
| **ai_twiml_app_sid** | **String** | The SID of the TwiML app UltraCart made for the AI agent. Set by the server. | [optional] |
|
|
9
|
+
| **api_key_id** | **String** | The SID of the Twilio API key UltraCart made for this account. Set by the server. Its secret is never returned. | [optional] |
|
|
10
|
+
| **api_key_name** | **String** | The name of the Twilio API key UltraCart made for this account. Set by the server. | [optional] |
|
|
11
|
+
| **auth_token** | **String** | The Twilio auth token. A secret field. Reads return a mask. To set it, send a secret handle (sec_...) made for this account SID by POST secrets with sink twilio.account.auth_token. Send the mask back, or leave it out, to keep it. Required to create. | [optional] |
|
|
12
|
+
| **esp_twilio_uuid** | **String** | UltraCart's id for the Twilio account. Set by the server. | [optional] |
|
|
13
|
+
| **inbound_twiml_app_sid** | **String** | The SID of the TwiML app UltraCart made for inbound calls and SMS. Set by the server. | [optional] |
|
|
14
|
+
| **outbound_twiml_app_sid** | **String** | The SID of the TwiML app UltraCart made for outbound calls. Set by the server. | [optional] |
|
|
15
|
+
| **phone_numbers** | **Array<String>** | The account's phone numbers UltraCart uses, in E.164 format. Leave it out of an update to keep them; an update that sends it replaces them all. | [optional] |
|
|
16
|
+
| **public_key_sid** | **String** | The SID of the voice encryption public key UltraCart registered with Twilio. Set by the server. The keys themselves are never returned. | [optional] |
|
|
17
|
+
| **twilio_workspace_sid** | **String** | The SID of the TaskRouter workspace the phone system uses, when it has one. Set by the server. | [optional] |
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
require 'ultracart_api'
|
|
23
|
+
|
|
24
|
+
instance = UltracartClient::SfvbCommsTwilioAccount.new(
|
|
25
|
+
account_sid: null,
|
|
26
|
+
ai_twiml_app_sid: null,
|
|
27
|
+
api_key_id: null,
|
|
28
|
+
api_key_name: null,
|
|
29
|
+
auth_token: null,
|
|
30
|
+
esp_twilio_uuid: null,
|
|
31
|
+
inbound_twiml_app_sid: null,
|
|
32
|
+
outbound_twiml_app_sid: null,
|
|
33
|
+
phone_numbers: null,
|
|
34
|
+
public_key_sid: null,
|
|
35
|
+
twilio_workspace_sid: null
|
|
36
|
+
)
|
|
37
|
+
```
|
|
38
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UltracartClient::SfvbCommsTwilioAccountResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **twilio_account** | [**SfvbCommsTwilioAccount**](SfvbCommsTwilioAccount.md) | | [optional] |
|
|
8
|
+
| **warnings** | [**Array<SfvbErrorDetail>**](SfvbErrorDetail.md) | Anything worth knowing that did not stop the call, such as a second Twilio account left from before the admin allowed only one. | [optional] |
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'ultracart_api'
|
|
14
|
+
|
|
15
|
+
instance = UltracartClient::SfvbCommsTwilioAccountResponse.new(
|
|
16
|
+
twilio_account: null,
|
|
17
|
+
warnings: null
|
|
18
|
+
)
|
|
19
|
+
```
|
|
20
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbEmailRenderRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **cart_item_ids** | **Array<String>** | Item ids for the cart the email renders with. For a cart flow email, or the transactional email this cart and email this item templates. | [optional] |
|
|
8
|
+
| **cjson** | **String** | An unsaved draft to render in place of the saved content. For a flow or campaign email, the email container. For a transactional email, the body container (the theme file core/emails/<name>_body.cjson). | [optional] |
|
|
9
|
+
| **customer_name** | **String** | The customer name a flow or campaign email greets. Defaults to the signed in user. | [optional] |
|
|
10
|
+
| **order_id** | **String** | A test order to render the email with. Real orders are refused. Without one, an order email renders with a made up order. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbEmailRenderRequest.new(
|
|
18
|
+
cart_item_ids: null,
|
|
19
|
+
cjson: null,
|
|
20
|
+
customer_name: null,
|
|
21
|
+
order_id: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# UltracartClient::SfvbEmailRenderResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **draft** | **Boolean** | True when an unsaved draft was rendered. | [optional] |
|
|
8
|
+
| **html** | **String** | The HTML body. | [optional] |
|
|
9
|
+
| **order_id** | **String** | The order the email rendered with, when it used one. | [optional] |
|
|
10
|
+
| **order_source** | **String** | Where that order came from. test (the order given), dummy (made up) or none. | [optional] |
|
|
11
|
+
| **preview_text** | **String** | The preview text an inbox shows after the subject, when the email has one. | [optional] |
|
|
12
|
+
| **subject** | **String** | The subject line. | [optional] |
|
|
13
|
+
| **text** | **String** | The plain text body. | [optional] |
|
|
14
|
+
| **validation** | [**SfvbValidationResponse**](SfvbValidationResponse.md) | | [optional] |
|
|
15
|
+
| **warnings** | [**Array<SfvbErrorDetail>**](SfvbErrorDetail.md) | Problems a real send would hit, such as a missing required footer token, and placeholders used in place of values a send creates. | [optional] |
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
require 'ultracart_api'
|
|
21
|
+
|
|
22
|
+
instance = UltracartClient::SfvbEmailRenderResponse.new(
|
|
23
|
+
draft: null,
|
|
24
|
+
html: null,
|
|
25
|
+
order_id: null,
|
|
26
|
+
order_source: null,
|
|
27
|
+
preview_text: null,
|
|
28
|
+
subject: null,
|
|
29
|
+
text: null,
|
|
30
|
+
validation: null,
|
|
31
|
+
warnings: null
|
|
32
|
+
)
|
|
33
|
+
```
|
|
34
|
+
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
| **label** | **String** | A short name the person sees, marked as unverified. At most 120 characters. | [optional] |
|
|
9
9
|
| **reason** | **String** | Why the agent needs it. Shown to the person, marked as unverified. At most 500 characters. | [optional] |
|
|
10
10
|
| **sinks** | **Array<String>** | The secret fields to collect, by sink id. GET secrets/kinds lists them. All must take the same kind of target. | [optional] |
|
|
11
|
-
| **target_id** | **String** | The object the values are for
|
|
11
|
+
| **target_id** | **String** | The object the values are for. A Twilio account by its account SID (AC followed by 32 hex digits), and a sending domain by the domain name, which may be one not added yet. Required for sinks that need an authenticator code, unless keys names the targets. Leave it out when keys is sent. | [optional] |
|
|
12
12
|
| **ttl_seconds** | **Integer** | How long each handle stays usable once the values are entered. 60 to 86400, default 3600. | [optional] |
|
|
13
13
|
| **uses** | **Integer** | How many writes each handle may make. 1 to 100, default 1. | [optional] |
|
|
14
14
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# UltracartClient::SfvbTransactionalEmail
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **body_file_name** | **String** | The body container a draft replaces, such as receipt_body.cjson. | [optional] |
|
|
8
|
+
| **file_name** | **String** | The HTML template file, such as receipt_html.vm. | [optional] |
|
|
9
|
+
| **name** | **String** | The display name, such as Order - Receipt. | [optional] |
|
|
10
|
+
| **text_file_name** | **String** | The plain text template file, when the email has one. | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'ultracart_api'
|
|
16
|
+
|
|
17
|
+
instance = UltracartClient::SfvbTransactionalEmail.new(
|
|
18
|
+
body_file_name: null,
|
|
19
|
+
file_name: null,
|
|
20
|
+
name: null,
|
|
21
|
+
text_file_name: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# UltracartClient::SfvbTransactionalEmailsResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **emails** | [**Array<SfvbTransactionalEmail>**](SfvbTransactionalEmail.md) | The emails, sorted by name. | [optional] |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'ultracart_api'
|
|
13
|
+
|
|
14
|
+
instance = UltracartClient::SfvbTransactionalEmailsResponse.new(
|
|
15
|
+
emails: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|