docs/PublicationsCreateResponseBody.md in voucherify-5.0.0 vs docs/PublicationsCreateResponseBody.md in voucherify-6.0.0

- old
+ new

@@ -1,49 +1,20 @@ # VoucherifySdk::PublicationsCreateResponseBody -## Class instance methods +## Properties -### `openapi_one_of` - -Returns the list of classes defined in oneOf. - -#### Example - -```ruby -require 'VoucherifySdk' - -VoucherifySdk::PublicationsCreateResponseBody.openapi_one_of -# => -# [ -# :'PublicationsCreateVoucherResponseBody', -# :'PublicationsCreateVouchersResponseBody' -# ] -``` - -### build - -Find the appropriate object from the `openapi_one_of` list and casts the data into it. - -#### Example - -```ruby -require 'VoucherifySdk' - -VoucherifySdk::PublicationsCreateResponseBody.build(data) -# => #<PublicationsCreateVoucherResponseBody:0x00007fdd4aab02a0> - -VoucherifySdk::PublicationsCreateResponseBody.build(data_that_doesnt_match) -# => nil -``` - -#### Parameters - -| Name | Type | Description | -| ---- | ---- | ----------- | -| **data** | **Mixed** | data to be matched against the list of oneOf items | - -#### Return type - -- `PublicationsCreateVoucherResponseBody` -- `PublicationsCreateVouchersResponseBody` -- `nil` (if no type matches) +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **id** | **String** | Unique publication ID, assigned by Voucherify. | [optional] | +| **object** | **String** | The type of the object represented by the JSON. This object stores information about the &#x60;publication&#x60;. | [optional][default to &#39;publication&#39;] | +| **created_at** | **Time** | Timestamp representing the date and time when the publication was created. The value is shown in the ISO 8601 format. | [optional] | +| **customer_id** | **String** | Unique customer ID of the customer receiving the publication. | [optional] | +| **tracking_id** | **String** | Customer&#39;s &#x60;source_id&#x60;. | [optional] | +| **metadata** | **Object** | | [optional] | +| **channel** | **String** | How the publication was originated. It can be your own custom channel or an example value provided here. | [optional][default to &#39;API&#39;] | +| **source_id** | **String** | The merchant&#39;s publication ID if it is different from the Voucherify publication ID. It&#39;s an optional tracking identifier of a publication. It is really useful in case of an integration between multiple systems. It can be a publication ID from a CRM system, database or 3rd-party service. | [optional] | +| **result** | **String** | Status of the publication attempt. | [optional][default to &#39;SUCCESS&#39;] | +| **customer** | [**CustomerWithSummaryLoyaltyReferrals**](CustomerWithSummaryLoyaltyReferrals.md) | | [optional] | +| **vouchers_id** | **Array&lt;String&gt;** | Contains the unique internal voucher ID that was assigned by Voucherify. | [optional] | +| **voucher** | [**Voucher**](Voucher.md) | | [optional] | +| **vouchers** | **Array&lt;String&gt;** | Contains the unique voucher codes that was assigned by Voucherify. | [optional] |