pingram 1.0.17 → 1.0.19
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/Gemfile.lock +1 -1
- data/lib/pingram/api/account_api.rb +95 -26
- data/lib/pingram/api/members_api.rb +10 -10
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/client_wrapper.rb +0 -10
- data/lib/pingram/models/account_get_response.rb +216 -29
- data/lib/pingram/models/auto_join_get_response.rb +16 -16
- data/lib/pingram/models/auto_join_post_response.rb +16 -16
- data/lib/pingram/models/billing_post_response_body.rb +35 -68
- data/lib/pingram/models/{create_organization_request.rb → brand_webhook_response.rb} +28 -13
- data/lib/pingram/models/get_members_response_inner.rb +1 -27
- data/lib/pingram/models/get_usage_history_query.rb +1 -1
- data/lib/pingram/models/{organization_usage_history.rb → get_usage_history_response.rb} +5 -5
- data/lib/pingram/models/{organization_usage_history_items_inner.rb → get_usage_history_response_items_inner.rb} +4 -4
- data/lib/pingram/models/{organization_usage_history_items_inner_counts.rb → get_usage_history_response_items_inner_counts.rb} +3 -3
- data/lib/pingram/models/{organization_usage.rb → get_usage_response.rb} +6 -6
- data/lib/pingram/models/{organization_usage_costs.rb → get_usage_response_costs.rb} +3 -3
- data/lib/pingram/models/{organization_usage_counts.rb → get_usage_response_counts.rb} +3 -3
- data/lib/pingram/models/sender_post_body.rb +1 -13
- data/lib/pingram/models/sender_post_body_options_email.rb +4 -14
- data/lib/pingram/models/ten_dlc_brand_create_request.rb +19 -1
- data/lib/pingram/models/ten_dlc_brand_registration.rb +19 -1
- data/lib/pingram/models/ten_dlc_brand_registration_details.rb +599 -0
- data/lib/pingram/models/ten_dlc_brand_update_request.rb +92 -1
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +8 -10
- metadata +10 -12
- data/lib/pingram/api/organization_api.rb +0 -212
- data/lib/pingram/models/create_organization_response.rb +0 -216
- data/lib/pingram/models/organization.rb +0 -463
|
@@ -34,9 +34,6 @@ module Pingram
|
|
|
34
34
|
# File attachments (by URL or inline base64 content). Inline `content`: ~4 MB raw per file (413 if exceeded). URL `url`: up to 20 MB per file.
|
|
35
35
|
attr_accessor :attachments
|
|
36
36
|
|
|
37
|
-
# Conditional expression for when to send (e.g. merge tag logic).
|
|
38
|
-
attr_accessor :condition
|
|
39
|
-
|
|
40
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
38
|
def self.attribute_map
|
|
42
39
|
{
|
|
@@ -45,8 +42,7 @@ module Pingram
|
|
|
45
42
|
:'bcc_addresses' => :'bccAddresses',
|
|
46
43
|
:'from_address' => :'fromAddress',
|
|
47
44
|
:'from_name' => :'fromName',
|
|
48
|
-
:'attachments' => :'attachments'
|
|
49
|
-
:'condition' => :'condition'
|
|
45
|
+
:'attachments' => :'attachments'
|
|
50
46
|
}
|
|
51
47
|
end
|
|
52
48
|
|
|
@@ -68,8 +64,7 @@ module Pingram
|
|
|
68
64
|
:'bcc_addresses' => :'Array<String>',
|
|
69
65
|
:'from_address' => :'String',
|
|
70
66
|
:'from_name' => :'String',
|
|
71
|
-
:'attachments' => :'Array<SenderPostBodyOptionsEmailAttachmentsInner>'
|
|
72
|
-
:'condition' => :'String'
|
|
67
|
+
:'attachments' => :'Array<SenderPostBodyOptionsEmailAttachmentsInner>'
|
|
73
68
|
}
|
|
74
69
|
end
|
|
75
70
|
|
|
@@ -126,10 +121,6 @@ module Pingram
|
|
|
126
121
|
self.attachments = value
|
|
127
122
|
end
|
|
128
123
|
end
|
|
129
|
-
|
|
130
|
-
if attributes.key?(:'condition')
|
|
131
|
-
self.condition = attributes[:'condition']
|
|
132
|
-
end
|
|
133
124
|
end
|
|
134
125
|
|
|
135
126
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -157,8 +148,7 @@ module Pingram
|
|
|
157
148
|
bcc_addresses == o.bcc_addresses &&
|
|
158
149
|
from_address == o.from_address &&
|
|
159
150
|
from_name == o.from_name &&
|
|
160
|
-
attachments == o.attachments
|
|
161
|
-
condition == o.condition
|
|
151
|
+
attachments == o.attachments
|
|
162
152
|
end
|
|
163
153
|
|
|
164
154
|
# @see the `==` method
|
|
@@ -170,7 +160,7 @@ module Pingram
|
|
|
170
160
|
# Calculates hash code according to all attributes.
|
|
171
161
|
# @return [Integer] Hash code
|
|
172
162
|
def hash
|
|
173
|
-
[reply_to_addresses, cc_addresses, bcc_addresses, from_address, from_name, attachments
|
|
163
|
+
[reply_to_addresses, cc_addresses, bcc_addresses, from_address, from_name, attachments].hash
|
|
174
164
|
end
|
|
175
165
|
|
|
176
166
|
# Builds the object from hash
|
|
@@ -22,6 +22,10 @@ module Pingram
|
|
|
22
22
|
|
|
23
23
|
attr_accessor :legal_name
|
|
24
24
|
|
|
25
|
+
attr_accessor :first_name
|
|
26
|
+
|
|
27
|
+
attr_accessor :last_name
|
|
28
|
+
|
|
25
29
|
attr_accessor :tax_id
|
|
26
30
|
|
|
27
31
|
attr_accessor :website
|
|
@@ -46,6 +50,8 @@ module Pingram
|
|
|
46
50
|
:'scenario_id' => :'scenarioId',
|
|
47
51
|
:'business_type' => :'businessType',
|
|
48
52
|
:'legal_name' => :'legalName',
|
|
53
|
+
:'first_name' => :'firstName',
|
|
54
|
+
:'last_name' => :'lastName',
|
|
49
55
|
:'tax_id' => :'taxId',
|
|
50
56
|
:'website' => :'website',
|
|
51
57
|
:'country' => :'country',
|
|
@@ -74,6 +80,8 @@ module Pingram
|
|
|
74
80
|
:'scenario_id' => :'String',
|
|
75
81
|
:'business_type' => :'String',
|
|
76
82
|
:'legal_name' => :'String',
|
|
83
|
+
:'first_name' => :'String',
|
|
84
|
+
:'last_name' => :'String',
|
|
77
85
|
:'tax_id' => :'String',
|
|
78
86
|
:'website' => :'String',
|
|
79
87
|
:'country' => :'String',
|
|
@@ -126,6 +134,14 @@ module Pingram
|
|
|
126
134
|
self.legal_name = nil
|
|
127
135
|
end
|
|
128
136
|
|
|
137
|
+
if attributes.key?(:'first_name')
|
|
138
|
+
self.first_name = attributes[:'first_name']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.key?(:'last_name')
|
|
142
|
+
self.last_name = attributes[:'last_name']
|
|
143
|
+
end
|
|
144
|
+
|
|
129
145
|
if attributes.key?(:'tax_id')
|
|
130
146
|
self.tax_id = attributes[:'tax_id']
|
|
131
147
|
end
|
|
@@ -299,6 +315,8 @@ module Pingram
|
|
|
299
315
|
scenario_id == o.scenario_id &&
|
|
300
316
|
business_type == o.business_type &&
|
|
301
317
|
legal_name == o.legal_name &&
|
|
318
|
+
first_name == o.first_name &&
|
|
319
|
+
last_name == o.last_name &&
|
|
302
320
|
tax_id == o.tax_id &&
|
|
303
321
|
website == o.website &&
|
|
304
322
|
country == o.country &&
|
|
@@ -319,7 +337,7 @@ module Pingram
|
|
|
319
337
|
# Calculates hash code according to all attributes.
|
|
320
338
|
# @return [Integer] Hash code
|
|
321
339
|
def hash
|
|
322
|
-
[scenario_id, business_type, legal_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
340
|
+
[scenario_id, business_type, legal_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, compliance_contact_email, compliance_contact_phone].hash
|
|
323
341
|
end
|
|
324
342
|
|
|
325
343
|
# Builds the object from hash
|
|
@@ -27,6 +27,10 @@ module Pingram
|
|
|
27
27
|
# Brand display name (marketing/DBA); defaults to legalName on customer submit.
|
|
28
28
|
attr_accessor :display_name
|
|
29
29
|
|
|
30
|
+
attr_accessor :first_name
|
|
31
|
+
|
|
32
|
+
attr_accessor :last_name
|
|
33
|
+
|
|
30
34
|
attr_accessor :tax_id
|
|
31
35
|
|
|
32
36
|
attr_accessor :website
|
|
@@ -88,6 +92,8 @@ module Pingram
|
|
|
88
92
|
:'business_type' => :'businessType',
|
|
89
93
|
:'legal_name' => :'legalName',
|
|
90
94
|
:'display_name' => :'displayName',
|
|
95
|
+
:'first_name' => :'firstName',
|
|
96
|
+
:'last_name' => :'lastName',
|
|
91
97
|
:'tax_id' => :'taxId',
|
|
92
98
|
:'website' => :'website',
|
|
93
99
|
:'country' => :'country',
|
|
@@ -123,6 +129,8 @@ module Pingram
|
|
|
123
129
|
:'business_type' => :'String',
|
|
124
130
|
:'legal_name' => :'String',
|
|
125
131
|
:'display_name' => :'String',
|
|
132
|
+
:'first_name' => :'String',
|
|
133
|
+
:'last_name' => :'String',
|
|
126
134
|
:'tax_id' => :'String',
|
|
127
135
|
:'website' => :'String',
|
|
128
136
|
:'country' => :'String',
|
|
@@ -190,6 +198,14 @@ module Pingram
|
|
|
190
198
|
self.display_name = attributes[:'display_name']
|
|
191
199
|
end
|
|
192
200
|
|
|
201
|
+
if attributes.key?(:'first_name')
|
|
202
|
+
self.first_name = attributes[:'first_name']
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
if attributes.key?(:'last_name')
|
|
206
|
+
self.last_name = attributes[:'last_name']
|
|
207
|
+
end
|
|
208
|
+
|
|
193
209
|
if attributes.key?(:'tax_id')
|
|
194
210
|
self.tax_id = attributes[:'tax_id']
|
|
195
211
|
end
|
|
@@ -472,6 +488,8 @@ module Pingram
|
|
|
472
488
|
business_type == o.business_type &&
|
|
473
489
|
legal_name == o.legal_name &&
|
|
474
490
|
display_name == o.display_name &&
|
|
491
|
+
first_name == o.first_name &&
|
|
492
|
+
last_name == o.last_name &&
|
|
475
493
|
tax_id == o.tax_id &&
|
|
476
494
|
website == o.website &&
|
|
477
495
|
country == o.country &&
|
|
@@ -497,7 +515,7 @@ module Pingram
|
|
|
497
515
|
# Calculates hash code according to all attributes.
|
|
498
516
|
# @return [Integer] Hash code
|
|
499
517
|
def hash
|
|
500
|
-
[account_id, scenario_id, business_type, legal_name, display_name, tax_id, website, country, street, city, state, postal_code, full_address, compliance_contact_email, compliance_contact_phone, brand_status, campaign_status, created_at, updated_at].hash
|
|
518
|
+
[account_id, scenario_id, business_type, legal_name, display_name, first_name, last_name, tax_id, website, country, street, city, state, postal_code, full_address, compliance_contact_email, compliance_contact_phone, brand_status, campaign_status, created_at, updated_at].hash
|
|
501
519
|
end
|
|
502
520
|
|
|
503
521
|
# Builds the object from hash
|