late-sdk 0.0.1320 → 0.0.1321
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/docs/IMessageApi.md +1 -1
- data/docs/ImessageSenderLifecycle.md +1 -1
- data/lib/zernio-sdk/api/i_message_api.rb +2 -2
- data/lib/zernio-sdk/models/imessage_sender_lifecycle.rb +3 -2
- data/lib/zernio-sdk/version.rb +1 -1
- data/openapi.yaml +1 -1
- data/spec/api/i_message_api_spec.rb +1 -1
- data/spec/models/imessage_sender_lifecycle_spec.rb +1 -1
- data/zernio-sdk-0.0.1321.gem +0 -0
- metadata +2 -2
- data/zernio-sdk-0.0.1320.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2039fb55710ee3b225caaae57b3c82587792bc74f1b67d93445f0f4b163d2e05
|
|
4
|
+
data.tar.gz: 9e5d0c223a14d09b003b63835ed87a14caa29e97614ecdadb8d465ca6e4f528e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48655f64ade6e813ce9bde76b8283bdde365864ad63ff83886db7f73250738ada76afed5f646c3cbcda159828724c88f328ebf07b96b68e98422ed92f6e4f74c
|
|
7
|
+
data.tar.gz: 531408965964ef72c7df3842864f373c189ed26ee8a793b4291e47b70b1c5a29b8f54cbb88f4c408f6987932ade1d9151f38c1575cd581383acf1da224dfbae6
|
data/docs/IMessageApi.md
CHANGED
|
@@ -874,7 +874,7 @@ This endpoint does not need any parameter.
|
|
|
874
874
|
|
|
875
875
|
Order a new iMessage sender
|
|
876
876
|
|
|
877
|
-
Orders a NEW dedicated iMessage sender from the delivery provider (compare with POST /v1/imessage/senders, which registers a sender you already own). Activation is asynchronous (minutes to a few hours): the response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook. Billing starts at activation (monthly per sender, no proration); when the account spend threshold is below the sender price, the first month is charged before the number is bought. Requires usage-based billing and a valid payment method. Pass purchaseIntentId to make retries idempotent — the provider-side order is never retried automatically. Ordered phone senders include SMS/RCS fallback with call forwarding and the ability to message contacts who have not written first (sending intervals still apply).
|
|
877
|
+
Orders a NEW dedicated iMessage sender from the delivery provider (compare with POST /v1/imessage/senders, which registers a sender you already own). Activation is asynchronous (minutes to a few hours): the response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook. Billing starts at activation (monthly per sender, no proration); when the account spend threshold is below the sender price, the first month is charged before the number is bought; when the card's answer takes longer than this request, the order is returned as `status: awaiting_payment` and the number is ordered automatically once it is paid (usually under 5 minutes). Requires usage-based billing and a valid payment method. Pass purchaseIntentId to make retries idempotent — the provider-side order is never retried automatically. Ordered phone senders include SMS/RCS fallback with call forwarding and the ability to message contacts who have not written first (sending intervals still apply).
|
|
878
878
|
|
|
879
879
|
### Examples
|
|
880
880
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **region** | **String** | | [optional] |
|
|
10
10
|
| **handle** | **String** | The sender handle once activation assigns it | [optional] |
|
|
11
11
|
| **opt_in_link** | **String** | imessage:// deep link that opens Messages on this sender with a prefilled text. Share it so contacts message you first (Apple only lets a sender reach contacts who wrote to it first); null until the handle is assigned. | [optional] |
|
|
12
|
-
| **status** | **String** |
|
|
12
|
+
| **status** | **String** | `awaiting_payment`: the first-month charge is still being confirmed by the card; the number is ordered automatically once it is paid (usually under 5 minutes), or the order fails with `failureReason` when the card declines or nothing confirms within 30 minutes. | [optional] |
|
|
13
13
|
| **price_cents** | **Integer** | Monthly price billed while the sender is active | [optional] |
|
|
14
14
|
| **provider** | **String** | | [optional] |
|
|
15
15
|
| **profile_id** | **String** | | [optional] |
|
|
@@ -830,7 +830,7 @@ module Zernio
|
|
|
830
830
|
end
|
|
831
831
|
|
|
832
832
|
# Order a new iMessage sender
|
|
833
|
-
# Orders a NEW dedicated iMessage sender from the delivery provider (compare with POST /v1/imessage/senders, which registers a sender you already own). Activation is asynchronous (minutes to a few hours): the response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook. Billing starts at activation (monthly per sender, no proration); when the account spend threshold is below the sender price, the first month is charged before the number is bought. Requires usage-based billing and a valid payment method. Pass purchaseIntentId to make retries idempotent — the provider-side order is never retried automatically. Ordered phone senders include SMS/RCS fallback with call forwarding and the ability to message contacts who have not written first (sending intervals still apply).
|
|
833
|
+
# Orders a NEW dedicated iMessage sender from the delivery provider (compare with POST /v1/imessage/senders, which registers a sender you already own). Activation is asynchronous (minutes to a few hours): the response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook. Billing starts at activation (monthly per sender, no proration); when the account spend threshold is below the sender price, the first month is charged before the number is bought; when the card's answer takes longer than this request, the order is returned as `status: awaiting_payment` and the number is ordered automatically once it is paid (usually under 5 minutes). Requires usage-based billing and a valid payment method. Pass purchaseIntentId to make retries idempotent — the provider-side order is never retried automatically. Ordered phone senders include SMS/RCS fallback with call forwarding and the ability to message contacts who have not written first (sending intervals still apply).
|
|
834
834
|
# @param order_imessage_sender_request [OrderImessageSenderRequest]
|
|
835
835
|
# @param [Hash] opts the optional parameters
|
|
836
836
|
# @return [OrderImessageSender202Response]
|
|
@@ -840,7 +840,7 @@ module Zernio
|
|
|
840
840
|
end
|
|
841
841
|
|
|
842
842
|
# Order a new iMessage sender
|
|
843
|
-
# Orders a NEW dedicated iMessage sender from the delivery provider (compare with POST /v1/imessage/senders, which registers a sender you already own). Activation is asynchronous (minutes to a few hours): the response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook. Billing starts at activation (monthly per sender, no proration); when the account spend threshold is below the sender price, the first month is charged before the number is bought. Requires usage-based billing and a valid payment method. Pass purchaseIntentId to make retries idempotent — the provider-side order is never retried automatically. Ordered phone senders include SMS/RCS fallback with call forwarding and the ability to message contacts who have not written first (sending intervals still apply).
|
|
843
|
+
# Orders a NEW dedicated iMessage sender from the delivery provider (compare with POST /v1/imessage/senders, which registers a sender you already own). Activation is asynchronous (minutes to a few hours): the response is 202 with the lifecycle object; poll GET /v1/imessage/senders/{senderId} or subscribe to the account.connected webhook. Billing starts at activation (monthly per sender, no proration); when the account spend threshold is below the sender price, the first month is charged before the number is bought; when the card's answer takes longer than this request, the order is returned as `status: awaiting_payment` and the number is ordered automatically once it is paid (usually under 5 minutes). Requires usage-based billing and a valid payment method. Pass purchaseIntentId to make retries idempotent — the provider-side order is never retried automatically. Ordered phone senders include SMS/RCS fallback with call forwarding and the ability to message contacts who have not written first (sending intervals still apply).
|
|
844
844
|
# @param order_imessage_sender_request [OrderImessageSenderRequest]
|
|
845
845
|
# @param [Hash] opts the optional parameters
|
|
846
846
|
# @return [Array<(OrderImessageSender202Response, Integer, Hash)>] OrderImessageSender202Response data, response status code and response headers
|
|
@@ -28,6 +28,7 @@ module Zernio
|
|
|
28
28
|
# imessage:// deep link that opens Messages on this sender with a prefilled text. Share it so contacts message you first (Apple only lets a sender reach contacts who wrote to it first); null until the handle is assigned.
|
|
29
29
|
attr_accessor :opt_in_link
|
|
30
30
|
|
|
31
|
+
# `awaiting_payment`: the first-month charge is still being confirmed by the card; the number is ordered automatically once it is paid (usually under 5 minutes), or the order fails with `failureReason` when the card declines or nothing confirms within 30 minutes.
|
|
31
32
|
attr_accessor :status
|
|
32
33
|
|
|
33
34
|
# Monthly price billed while the sender is active
|
|
@@ -213,7 +214,7 @@ module Zernio
|
|
|
213
214
|
return false unless kind_validator.valid?(@kind)
|
|
214
215
|
region_validator = EnumAttributeValidator.new('String', ["US", "GB"])
|
|
215
216
|
return false unless region_validator.valid?(@region)
|
|
216
|
-
status_validator = EnumAttributeValidator.new('String', ["ordering", "activating", "active", "suspended", "canceled", "failed"])
|
|
217
|
+
status_validator = EnumAttributeValidator.new('String', ["ordering", "awaiting_payment", "activating", "active", "suspended", "canceled", "failed"])
|
|
217
218
|
return false unless status_validator.valid?(@status)
|
|
218
219
|
true
|
|
219
220
|
end
|
|
@@ -241,7 +242,7 @@ module Zernio
|
|
|
241
242
|
# Custom attribute writer method checking allowed values (enum).
|
|
242
243
|
# @param [Object] status Object to be assigned
|
|
243
244
|
def status=(status)
|
|
244
|
-
validator = EnumAttributeValidator.new('String', ["ordering", "activating", "active", "suspended", "canceled", "failed"])
|
|
245
|
+
validator = EnumAttributeValidator.new('String', ["ordering", "awaiting_payment", "activating", "active", "suspended", "canceled", "failed"])
|
|
245
246
|
unless validator.valid?(status)
|
|
246
247
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
247
248
|
end
|
data/lib/zernio-sdk/version.rb
CHANGED