ultracart_api 4.1.208 → 4.1.210

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -2
  3. data/docs/SfvbApi.md +717 -48
  4. data/docs/SfvbArchiveRequest.md +18 -0
  5. data/docs/SfvbCampaign.md +16 -0
  6. data/docs/SfvbCampaignMembership.md +24 -0
  7. data/docs/SfvbCampaignWriteRequest.md +32 -0
  8. data/docs/SfvbCommsEmail.md +6 -0
  9. data/docs/SfvbCommsList.md +24 -0
  10. data/docs/SfvbCommsListsResponse.md +18 -0
  11. data/docs/SfvbCommsSegment.md +26 -0
  12. data/docs/SfvbCommsSegmentsResponse.md +18 -0
  13. data/docs/SfvbEmail.md +2 -0
  14. data/docs/SfvbEmailReviewRequest.md +18 -0
  15. data/docs/SfvbFlow.md +22 -0
  16. data/docs/SfvbFlowStatusRequest.md +18 -0
  17. data/docs/SfvbFlowWriteRequest.md +38 -0
  18. data/lib/ultracart_api/api/sfvb_api.rb +1027 -88
  19. data/lib/ultracart_api/models/sfvb_archive_request.rb +220 -0
  20. data/lib/ultracart_api/models/sfvb_campaign.rb +85 -1
  21. data/lib/ultracart_api/models/sfvb_campaign_membership.rb +250 -0
  22. data/lib/ultracart_api/models/sfvb_campaign_write_request.rb +292 -0
  23. data/lib/ultracart_api/models/sfvb_comms_email.rb +31 -1
  24. data/lib/ultracart_api/models/sfvb_comms_list.rb +250 -0
  25. data/lib/ultracart_api/models/sfvb_comms_lists_response.rb +222 -0
  26. data/lib/ultracart_api/models/sfvb_comms_segment.rb +260 -0
  27. data/lib/ultracart_api/models/sfvb_comms_segments_response.rb +222 -0
  28. data/lib/ultracart_api/models/sfvb_email.rb +13 -1
  29. data/lib/ultracart_api/models/sfvb_email_review_request.rb +220 -0
  30. data/lib/ultracart_api/models/sfvb_flow.rb +113 -1
  31. data/lib/ultracart_api/models/sfvb_flow_status_request.rb +254 -0
  32. data/lib/ultracart_api/models/sfvb_flow_write_request.rb +354 -0
  33. data/lib/ultracart_api/version.rb +1 -1
  34. data/lib/ultracart_api.rb +10 -0
  35. metadata +22 -2
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbArchiveRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **archived** | **Boolean** | True to archive, false to unarchive. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbArchiveRequest.new(
15
+ archived: null
16
+ )
17
+ ```
18
+
data/docs/SfvbCampaign.md CHANGED
@@ -9,10 +9,18 @@
9
9
  | **created_dts** | **String** | When the campaign was created (ISO 8601, UTC). | [optional] |
10
10
  | **deleted** | **Boolean** | True when the campaign was deleted. | [optional] |
11
11
  | **emails** | [**Array<SfvbCommsEmail>**](SfvbCommsEmail.md) | Its emails, in step order. | [optional] |
12
+ | **end_once_customer_purchases** | **Boolean** | True when a customer leaves the campaign once they buy from one of its emails. | [optional] |
13
+ | **end_once_customer_purchases_anywhere** | **Boolean** | True when a customer leaves the campaign once they buy from any source. | [optional] |
14
+ | **hash_sha256** | **String** | Send this as If-Match when changing or archiving the campaign. | [optional] |
12
15
  | **live** | **Boolean** | True when the emails and postcards reach customers now, so a change to one shows at once. False only in a status that sends nothing. | [optional] |
16
+ | **memberships** | [**Array<SfvbCampaignMembership>**](SfvbCampaignMembership.md) | The lists and segments it sends to or leaves out. | [optional] |
13
17
  | **name** | **String** | The campaign name. | [optional] |
18
+ | **notes** | **Array<String>** | What a write did beyond the fields it was asked to change, such as putting emails back to needing review or setting a scheduled campaign back to draft. Only on a write. | [optional] |
14
19
  | **postcards** | [**Array<SfvbCommsPostcard>**](SfvbCommsPostcard.md) | Its postcards, in step order. | [optional] |
15
20
  | **scheduled_dts** | **String** | When the campaign is scheduled to send (ISO 8601, UTC), when it is. | [optional] |
21
+ | **sending_domain_uuid** | **String** | The sending domain uuid. Defaults to the storefront's marketing sending domain. | [optional] |
22
+ | **sending_name** | **String** | The from name. Defaults to the storefront's marketing setting. | [optional] |
23
+ | **sending_user** | **String** | The part of the from address before the at sign. Defaults to the storefront's marketing setting. | [optional] |
16
24
  | **status** | **String** | The status, such as draft, scheduled, sending, sent or archived. | [optional] |
17
25
  | **status_dts** | **String** | When the status last changed (ISO 8601, UTC). | [optional] |
18
26
 
@@ -27,10 +35,18 @@ instance = UltracartClient::SfvbCampaign.new(
27
35
  created_dts: null,
28
36
  deleted: null,
29
37
  emails: null,
38
+ end_once_customer_purchases: null,
39
+ end_once_customer_purchases_anywhere: null,
40
+ hash_sha256: null,
30
41
  live: null,
42
+ memberships: null,
31
43
  name: null,
44
+ notes: null,
32
45
  postcards: null,
33
46
  scheduled_dts: null,
47
+ sending_domain_uuid: null,
48
+ sending_name: null,
49
+ sending_user: null,
34
50
  status: null,
35
51
  status_dts: null
36
52
  )
@@ -0,0 +1,24 @@
1
+ # UltracartClient::SfvbCampaignMembership
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **exclude** | **Boolean** | True to leave its members out instead of sending to them. | [optional] |
8
+ | **list_uuid** | **String** | The list uuid, for a list. | [optional] |
9
+ | **name** | **String** | The list or segment name. Set by the server. | [optional] |
10
+ | **segment_uuid** | **String** | The segment uuid, for a segment. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ultracart_api'
16
+
17
+ instance = UltracartClient::SfvbCampaignMembership.new(
18
+ exclude: null,
19
+ list_uuid: null,
20
+ name: null,
21
+ segment_uuid: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,32 @@
1
+ # UltracartClient::SfvbCampaignWriteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **end_once_customer_purchases** | **Boolean** | True to end the campaign for a customer once they buy from one of its emails. | [optional] |
8
+ | **end_once_customer_purchases_anywhere** | **Boolean** | True to end the campaign for a customer once they buy from any source. | [optional] |
9
+ | **memberships** | [**Array<SfvbCampaignMembership>**](SfvbCampaignMembership.md) | The lists and segments it sends to or leaves out. Replaces the whole set. An empty array clears it. | [optional] |
10
+ | **name** | **String** | The campaign name, 1 to 250 characters. Required to create. | [optional] |
11
+ | **scheduled_dts** | **String** | When to send once started (ISO 8601). An empty string clears the schedule. | [optional] |
12
+ | **sending_domain_uuid** | **String** | The sending domain uuid. Defaults to the storefront's marketing sending domain. | [optional] |
13
+ | **sending_name** | **String** | The from name. Defaults to the storefront's marketing setting. | [optional] |
14
+ | **sending_user** | **String** | The part of the from address before the at sign. Defaults to the storefront's marketing setting. | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'ultracart_api'
20
+
21
+ instance = UltracartClient::SfvbCampaignWriteRequest.new(
22
+ end_once_customer_purchases: null,
23
+ end_once_customer_purchases_anywhere: null,
24
+ memberships: null,
25
+ name: null,
26
+ scheduled_dts: null,
27
+ sending_domain_uuid: null,
28
+ sending_name: null,
29
+ sending_user: null
30
+ )
31
+ ```
32
+
@@ -14,6 +14,9 @@
14
14
  | **step_uuid** | **String** | The step that sends this email. | [optional] |
15
15
  | **subject** | **String** | The subject line. | [optional] |
16
16
  | **transactional** | **Boolean** | True for a transactional email, which skips the marketing footer rules. | [optional] |
17
+ | **variant_name** | **String** | For an email in an experiment step, the variant name. Absent otherwise. | [optional] |
18
+ | **variant_percentage** | **Float** | For an email in an experiment step, the share of customers it is sent to. | [optional] |
19
+ | **variant_winner** | **Boolean** | For an email in an experiment step, true when the experiment chose it as the winner. | [optional] |
17
20
  | **version** | **Integer** | The email version. | [optional] |
18
21
 
19
22
  ## Example
@@ -32,6 +35,9 @@ instance = UltracartClient::SfvbCommsEmail.new(
32
35
  step_uuid: null,
33
36
  subject: null,
34
37
  transactional: null,
38
+ variant_name: null,
39
+ variant_percentage: null,
40
+ variant_winner: null,
35
41
  version: null
36
42
  )
37
43
  ```
@@ -0,0 +1,24 @@
1
+ # UltracartClient::SfvbCommsList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_dts** | **String** | When it was created (ISO 8601, UTC). | [optional] |
8
+ | **list_uuid** | **String** | The list uuid. | [optional] |
9
+ | **member_count** | **Integer** | How many customers are on it. | [optional] |
10
+ | **name** | **String** | The list name. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ultracart_api'
16
+
17
+ instance = UltracartClient::SfvbCommsList.new(
18
+ created_dts: null,
19
+ list_uuid: null,
20
+ member_count: null,
21
+ name: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbCommsListsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **lists** | [**Array<SfvbCommsList>**](SfvbCommsList.md) | The lists. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbCommsListsResponse.new(
15
+ lists: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,26 @@
1
+ # UltracartClient::SfvbCommsSegment
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_dts** | **String** | When it was created (ISO 8601, UTC). | [optional] |
8
+ | **member_count** | **Integer** | How many customers it held at its last rebuild. | [optional] |
9
+ | **name** | **String** | The segment name. | [optional] |
10
+ | **rebuild_required** | **Boolean** | True when the rule changed and the count is out of date until the segment rebuilds. | [optional] |
11
+ | **segment_uuid** | **String** | The segment uuid. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::SfvbCommsSegment.new(
19
+ created_dts: null,
20
+ member_count: null,
21
+ name: null,
22
+ rebuild_required: null,
23
+ segment_uuid: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbCommsSegmentsResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **segments** | [**Array<SfvbCommsSegment>**](SfvbCommsSegment.md) | The segments. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbCommsSegmentsResponse.new(
15
+ segments: null
16
+ )
17
+ ```
18
+
data/docs/SfvbEmail.md CHANGED
@@ -8,6 +8,7 @@
8
8
  | **email_uuid** | **String** | The email uuid. The same uuid the email container (owner type email) and the email render take. | [optional] |
9
9
  | **hash_sha256** | **String** | Hash of the subject and preview text. Send it as If-Match when updating. A change to the email body does not change it. | [optional] |
10
10
  | **live** | **Boolean** | True when the email is in a flow or campaign that is sending, so a change reaches customers and needs sfvb_publish. An email in neither is reported live. | [optional] |
11
+ | **notes** | **Array<String>** | What a write did beyond the fields asked for, such as a step label it could not refresh. Only on a write. | [optional] |
11
12
  | **pending_review** | **Boolean** | True while a change waits for review. An edit puts it back to needing review. | [optional] |
12
13
  | **preview_text** | **String** | The preview text an inbox shows after the subject. | [optional] |
13
14
  | **rejected** | **Boolean** | True when review rejected the email. An edit puts it back to needing review. | [optional] |
@@ -27,6 +28,7 @@ instance = UltracartClient::SfvbEmail.new(
27
28
  email_uuid: null,
28
29
  hash_sha256: null,
29
30
  live: null,
31
+ notes: null,
30
32
  pending_review: null,
31
33
  preview_text: null,
32
34
  rejected: null,
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbEmailReviewRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **order_id** | **String** | A test order id. Required for an email in a flow triggered by an order or an auto order, and refused otherwise. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbEmailReviewRequest.new(
15
+ order_id: null
16
+ )
17
+ ```
18
+
data/docs/SfvbFlow.md CHANGED
@@ -4,16 +4,27 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **allow_multiple_concurrent_enrollments** | **Boolean** | True when a customer may be in this flow more than once at a time. | [optional] |
7
8
  | **communication_sequence_uuid** | **String** | The communication sequence the steps belong to. | [optional] |
8
9
  | **created_dts** | **String** | When the flow was created (ISO 8601, UTC). | [optional] |
9
10
  | **deleted** | **Boolean** | True when the flow was deleted. | [optional] |
10
11
  | **emails** | [**Array<SfvbCommsEmail>**](SfvbCommsEmail.md) | Its emails, in step order. | [optional] |
12
+ | **end_once_customer_purchases** | **Boolean** | True when a customer leaves the flow once they buy from one of its emails. | [optional] |
13
+ | **end_once_customer_purchases_anywhere** | **Boolean** | True when a customer leaves the flow once they buy from any source. | [optional] |
11
14
  | **flow_uuid** | **String** | The flow uuid. | [optional] |
15
+ | **hash_sha256** | **String** | Send this as If-Match when changing, archiving or turning the flow on or off. | [optional] |
12
16
  | **live** | **Boolean** | True when the emails and postcards reach customers now, so a change to one shows at once. False only in a status that sends nothing. | [optional] |
13
17
  | **name** | **String** | The flow name. | [optional] |
18
+ | **notes** | **Array<String>** | What a write did beyond the fields it was asked to change, such as putting emails back to needing review or setting a scheduled campaign back to draft. Only on a write. | [optional] |
14
19
  | **postcards** | [**Array<SfvbCommsPostcard>**](SfvbCommsPostcard.md) | Its postcards, in step order. | [optional] |
20
+ | **reentry_delay_days** | **Integer** | Days before a customer may enter again, with after_days. | [optional] |
21
+ | **reentry_policy** | **String** | Whether a customer may enter again, anytime, after_days or never. | [optional] |
22
+ | **sending_domain_uuid** | **String** | The sending domain uuid. Defaults to the storefront's marketing sending domain. | [optional] |
23
+ | **sending_name** | **String** | The from name. Defaults to the storefront's marketing setting. | [optional] |
24
+ | **sending_user** | **String** | The part of the from address before the at sign. Defaults to the storefront's marketing setting. | [optional] |
15
25
  | **status** | **String** | The status, such as draft, active, paused, draining or inactive. | [optional] |
16
26
  | **status_dts** | **String** | When the status last changed (ISO 8601, UTC). | [optional] |
27
+ | **trigger_parameter** | **String** | The list or segment uuid, or other value, the trigger is limited to. | [optional] |
17
28
  | **trigger_parameter_name** | **String** | The name of the trigger parameter, when the trigger takes one. | [optional] |
18
29
  | **trigger_type** | **String** | What starts the flow, such as cart abandon or an order. | [optional] |
19
30
 
@@ -23,16 +34,27 @@
23
34
  require 'ultracart_api'
24
35
 
25
36
  instance = UltracartClient::SfvbFlow.new(
37
+ allow_multiple_concurrent_enrollments: null,
26
38
  communication_sequence_uuid: null,
27
39
  created_dts: null,
28
40
  deleted: null,
29
41
  emails: null,
42
+ end_once_customer_purchases: null,
43
+ end_once_customer_purchases_anywhere: null,
30
44
  flow_uuid: null,
45
+ hash_sha256: null,
31
46
  live: null,
32
47
  name: null,
48
+ notes: null,
33
49
  postcards: null,
50
+ reentry_delay_days: null,
51
+ reentry_policy: null,
52
+ sending_domain_uuid: null,
53
+ sending_name: null,
54
+ sending_user: null,
34
55
  status: null,
35
56
  status_dts: null,
57
+ trigger_parameter: null,
36
58
  trigger_parameter_name: null,
37
59
  trigger_type: null
38
60
  )
@@ -0,0 +1,18 @@
1
+ # UltracartClient::SfvbFlowStatusRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | active to enroll customers as they trigger it, inactive to stop. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ultracart_api'
13
+
14
+ instance = UltracartClient::SfvbFlowStatusRequest.new(
15
+ status: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,38 @@
1
+ # UltracartClient::SfvbFlowWriteRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **allow_multiple_concurrent_enrollments** | **Boolean** | True when a customer may be in this flow more than once at a time. | [optional] |
8
+ | **end_once_customer_purchases** | **Boolean** | True to end the flow for a customer once they buy from one of its emails. | [optional] |
9
+ | **end_once_customer_purchases_anywhere** | **Boolean** | True to end the flow for a customer once they buy from any source. | [optional] |
10
+ | **name** | **String** | The flow name, 1 to 250 characters. Required to create. | [optional] |
11
+ | **reentry_delay_days** | **Integer** | Days before a customer may enter again, 1 to 1095. Only with after_days. | [optional] |
12
+ | **reentry_policy** | **String** | Whether a customer may enter again, anytime, after_days or never. | [optional] |
13
+ | **sending_domain_uuid** | **String** | The sending domain uuid. Defaults to the storefront's marketing sending domain. | [optional] |
14
+ | **sending_name** | **String** | The from name. Defaults to the storefront's marketing setting. | [optional] |
15
+ | **sending_user** | **String** | The part of the from address before the at sign. Defaults to the storefront's marketing setting. | [optional] |
16
+ | **trigger_parameter** | **String** | The list or segment uuid for a list or segment trigger. Create only. | [optional] |
17
+ | **trigger_type** | **String** | What enrolls a customer, such as cart abandoned. Create only. | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'ultracart_api'
23
+
24
+ instance = UltracartClient::SfvbFlowWriteRequest.new(
25
+ allow_multiple_concurrent_enrollments: null,
26
+ end_once_customer_purchases: null,
27
+ end_once_customer_purchases_anywhere: null,
28
+ name: null,
29
+ reentry_delay_days: null,
30
+ reentry_policy: null,
31
+ sending_domain_uuid: null,
32
+ sending_name: null,
33
+ sending_user: null,
34
+ trigger_parameter: null,
35
+ trigger_type: null
36
+ )
37
+ ```
38
+