late-sdk 0.0.635 → 0.0.636

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51f78f2d39bbe9f14ec50a3447242d7ec4b4cc920b80d91535d7732a02aaeb80
4
- data.tar.gz: b2fcda4651ef50b5d32df9e8fc78a26acc8b2968c69564d379000f5b3d528bf1
3
+ metadata.gz: 37ab9462eaaac32184f7c74548faad032dec32dd39092779c57d69389ed274b7
4
+ data.tar.gz: 3f73e882d9ffc8eed73d578c5d0bc0a16021444fed2f0238bbe2c3cb44814a05
5
5
  SHA512:
6
- metadata.gz: e53970e0d7067f46da208f0234d2f1606eb2e68544fa821e5dedc949c8eece5b34d368b084cdf8ab65e338a9c260a4bbd8ba0f0cb355c0bb8938e0dfb3957384
7
- data.tar.gz: b03d3cb37d5d3e56b36be0a82e1ae6ca5f7531822c6af456de1081c6f6b448ee5a0069c3e7c7f145fbcef2f75d1ca7c06a96cd58d50638b60425f3a55a2ce071
6
+ metadata.gz: 2c94dc1f96c86c025baf271c961b6a0abdcc8bdfa6eb05b7530b58718c8bcf3a20195e5d6d36e269d193cead2a7349205094aa343b5f67454e5a857a0c165578
7
+ data.tar.gz: 320c8913bb7393cd94fed2397ebacc91fa3fdb8332bfa7e73cb516ebdf8c07f45e263e6736c47d30700508b768506b1103f327e6b258b044023dd0e4e2b43067
@@ -7,7 +7,10 @@
7
7
  | **id** | **String** | Platform ad account ID (e.g. act_123) | [optional] |
8
8
  | **name** | **String** | | [optional] |
9
9
  | **currency** | **String** | | [optional] |
10
- | **status** | **String** | | [optional] |
10
+ | **status** | **String** | LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`. | [optional] |
11
+ | **account_status** | **Object** | | [optional] |
12
+ | **approval_status** | **String** | X only. X's own ad account approval status. Observed values are `ACCEPTED`, `PENDING` and `REJECTED`, but X does not publish the full vocabulary, so treat an unrecognised value as not usable. Other platforms report `accountStatus` or `status` instead. | [optional] |
13
+ | **disable_reason** | **Integer** | Meta only. Meta's `disable_reason` code, forwarded unchanged. Present when `accountStatus` is `2` (DISABLED) and Meta gives a reason, which is what separates a policy action from a payment problem. Meta does not publish a stable list of values for this field, so none are enumerated here: resolve the code against Meta's own ad account reference. Absent when Meta reports no reason, or when the connected token cannot read the field. | [optional] |
11
14
  | **timezone_name** | **String** | IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries. | [optional] |
12
15
  | **timezone_offset_hours_utc** | **Float** | Signed UTC offset in hours, reflecting current DST (Meta only). | [optional] |
13
16
  | **minimum_daily_budget** | **Float** | Meta only. Minimum daily budget for the account, in the account currency's major units. This is the impressions-billed minimum; other billing events have higher minimums. Absent when the connected token cannot read it. | [optional] |
@@ -24,6 +27,9 @@ instance = Zernio::ListAdAccounts200ResponseAccountsInner.new(
24
27
  name: null,
25
28
  currency: null,
26
29
  status: null,
30
+ account_status: null,
31
+ approval_status: null,
32
+ disable_reason: null,
27
33
  timezone_name: null,
28
34
  timezone_offset_hours_utc: null,
29
35
  minimum_daily_budget: null,
@@ -22,8 +22,17 @@ module Zernio
22
22
 
23
23
  attr_accessor :currency
24
24
 
25
+ # LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`.
25
26
  attr_accessor :status
26
27
 
28
+ attr_accessor :account_status
29
+
30
+ # X only. X's own ad account approval status. Observed values are `ACCEPTED`, `PENDING` and `REJECTED`, but X does not publish the full vocabulary, so treat an unrecognised value as not usable. Other platforms report `accountStatus` or `status` instead.
31
+ attr_accessor :approval_status
32
+
33
+ # Meta only. Meta's `disable_reason` code, forwarded unchanged. Present when `accountStatus` is `2` (DISABLED) and Meta gives a reason, which is what separates a policy action from a payment problem. Meta does not publish a stable list of values for this field, so none are enumerated here: resolve the code against Meta's own ad account reference. Absent when Meta reports no reason, or when the connected token cannot read the field.
34
+ attr_accessor :disable_reason
35
+
27
36
  # IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries.
28
37
  attr_accessor :timezone_name
29
38
 
@@ -46,6 +55,9 @@ module Zernio
46
55
  :'name' => :'name',
47
56
  :'currency' => :'currency',
48
57
  :'status' => :'status',
58
+ :'account_status' => :'accountStatus',
59
+ :'approval_status' => :'approvalStatus',
60
+ :'disable_reason' => :'disableReason',
49
61
  :'timezone_name' => :'timezoneName',
50
62
  :'timezone_offset_hours_utc' => :'timezoneOffsetHoursUtc',
51
63
  :'minimum_daily_budget' => :'minimumDailyBudget',
@@ -71,6 +83,9 @@ module Zernio
71
83
  :'name' => :'String',
72
84
  :'currency' => :'String',
73
85
  :'status' => :'String',
86
+ :'account_status' => :'Object',
87
+ :'approval_status' => :'String',
88
+ :'disable_reason' => :'Integer',
74
89
  :'timezone_name' => :'String',
75
90
  :'timezone_offset_hours_utc' => :'Float',
76
91
  :'minimum_daily_budget' => :'Float',
@@ -82,6 +97,7 @@ module Zernio
82
97
  # List of attributes with nullable: true
83
98
  def self.openapi_nullable
84
99
  Set.new([
100
+ :'account_status',
85
101
  :'unusable_reason'
86
102
  ])
87
103
  end
@@ -118,6 +134,18 @@ module Zernio
118
134
  self.status = attributes[:'status']
119
135
  end
120
136
 
137
+ if attributes.key?(:'account_status')
138
+ self.account_status = attributes[:'account_status']
139
+ end
140
+
141
+ if attributes.key?(:'approval_status')
142
+ self.approval_status = attributes[:'approval_status']
143
+ end
144
+
145
+ if attributes.key?(:'disable_reason')
146
+ self.disable_reason = attributes[:'disable_reason']
147
+ end
148
+
121
149
  if attributes.key?(:'timezone_name')
122
150
  self.timezone_name = attributes[:'timezone_name']
123
151
  end
@@ -163,6 +191,9 @@ module Zernio
163
191
  name == o.name &&
164
192
  currency == o.currency &&
165
193
  status == o.status &&
194
+ account_status == o.account_status &&
195
+ approval_status == o.approval_status &&
196
+ disable_reason == o.disable_reason &&
166
197
  timezone_name == o.timezone_name &&
167
198
  timezone_offset_hours_utc == o.timezone_offset_hours_utc &&
168
199
  minimum_daily_budget == o.minimum_daily_budget &&
@@ -179,7 +210,7 @@ module Zernio
179
210
  # Calculates hash code according to all attributes.
180
211
  # @return [Integer] Hash code
181
212
  def hash
182
- [id, name, currency, status, timezone_name, timezone_offset_hours_utc, minimum_daily_budget, selectable, unusable_reason].hash
213
+ [id, name, currency, status, account_status, approval_status, disable_reason, timezone_name, timezone_offset_hours_utc, minimum_daily_budget, selectable, unusable_reason].hash
183
214
  end
184
215
 
185
216
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.19.0
11
11
  =end
12
12
 
13
13
  module Zernio
14
- VERSION = '0.0.635'
14
+ VERSION = '0.0.636'
15
15
  end
data/openapi.yaml CHANGED
@@ -37303,7 +37303,32 @@ paths:
37303
37303
  id: { type: string, description: "Platform ad account ID (e.g. act_123)" }
37304
37304
  name: { type: string }
37305
37305
  currency: { type: string }
37306
- status: { type: string }
37306
+ status: { type: string, description: "LinkedIn only. LinkedIn's own ad account status. In practice always `ACTIVE`, because the LinkedIn query filters to active accounts. Meta, Google, TikTok and Pinterest report `accountStatus` instead; X reports `approvalStatus`." }
37307
+ accountStatus:
37308
+ description: |
37309
+ The platform's own account status, forwarded unchanged. No JSON type is
37310
+ declared because the type differs per platform: Meta sends an integer,
37311
+ Google, TikTok and Pinterest send a string. Absent on LinkedIn (reports
37312
+ `status`) and on X (reports `approvalStatus`).
37313
+
37314
+ If all you need is whether the account can run ads right now, read
37315
+ `selectable` and skip this field. Read this one when you need to tell
37316
+ the states apart, because they call for different responses:
37317
+
37318
+ - `1` ACTIVE. Running normally.
37319
+ - `2` DISABLED. Disabled by Meta. Read `disableReason` to tell a policy
37320
+ action apart from a billing one; they need very different follow-ups.
37321
+ - `3` UNSETTLED. There is an unpaid balance, but the account still runs
37322
+ ads. Not a ban.
37323
+ - `7` PENDING_RISK_REVIEW. Meta is reviewing the account. Wait for the
37324
+ outcome.
37325
+ - `8` PENDING_SETTLEMENT. Meta blocks new ads until an outstanding
37326
+ balance clears. Settle it and the account runs again.
37327
+ - `9` IN_GRACE_PERIOD. Still running, on a deadline.
37328
+ - `100` PENDING_CLOSURE. Scheduled to close.
37329
+ - `101` CLOSED. Terminal.
37330
+ approvalStatus: { type: string, description: "X only. X's own ad account approval status. Observed values are `ACCEPTED`, `PENDING` and `REJECTED`, but X does not publish the full vocabulary, so treat an unrecognised value as not usable. Other platforms report `accountStatus` or `status` instead." }
37331
+ disableReason: { type: integer, description: "Meta only. Meta's `disable_reason` code, forwarded unchanged. Present when `accountStatus` is `2` (DISABLED) and Meta gives a reason, which is what separates a policy action from a payment problem. Meta does not publish a stable list of values for this field, so none are enumerated here: resolve the code against Meta's own ad account reference. Absent when Meta reports no reason, or when the connected token cannot read the field." }
37307
37332
  timezoneName: { type: string, description: "IANA timezone of the ad account (Meta only). Drives daily-budget reset and Insights day boundaries." }
37308
37333
  timezoneOffsetHoursUtc: { type: number, description: "Signed UTC offset in hours, reflecting current DST (Meta only)." }
37309
37334
  minimumDailyBudget: { type: number, description: "Meta only. Minimum daily budget for the account, in the account currency's major units. This is the impressions-billed minimum; other billing events have higher minimums. Absent when the connected token cannot read it." }
@@ -51,6 +51,24 @@ describe Zernio::ListAdAccounts200ResponseAccountsInner do
51
51
  end
52
52
  end
53
53
 
54
+ describe 'test attribute "account_status"' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ describe 'test attribute "approval_status"' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
63
+ end
64
+ end
65
+
66
+ describe 'test attribute "disable_reason"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
54
72
  describe 'test attribute "timezone_name"' do
55
73
  it 'should work' do
56
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: late-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.635
4
+ version: 0.0.636
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
@@ -4919,7 +4919,7 @@ files:
4919
4919
  - spec/models/you_tube_video_retention_response_retention_curve_inner_spec.rb
4920
4920
  - spec/models/you_tube_video_retention_response_spec.rb
4921
4921
  - spec/spec_helper.rb
4922
- - zernio-sdk-0.0.635.gem
4922
+ - zernio-sdk-0.0.636.gem
4923
4923
  - zernio-sdk.gemspec
4924
4924
  homepage: https://openapi-generator.tech
4925
4925
  licenses:
Binary file