sellapp-sdk 0.1.1

Official Rust SDK for the SellApp API: manage products, orders, subscriptions, and customers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
// This file is auto-generated by oagen. Do not edit.

use crate::client::Client;
use crate::resources::AccountApi;
use crate::resources::AddOnsApi;
use crate::resources::AddOnsParentProductsApi;
use crate::resources::AffiliatePayoutsApi;
use crate::resources::AffiliateProgramApi;
use crate::resources::AffiliateReferralSessionsApi;
use crate::resources::AffiliateReferralsApi;
use crate::resources::AffiliatesApi;
use crate::resources::BlacklistsApi;
use crate::resources::BookingsApi;
use crate::resources::BookingsCalendarEventsApi;
use crate::resources::BundleItemsApi;
use crate::resources::CashbackRulesApi;
use crate::resources::ChargesApi;
use crate::resources::CommunityConnectionsApi;
use crate::resources::CouponsApi;
use crate::resources::CoursesApi;
use crate::resources::CoursesLessonsApi;
use crate::resources::CoursesSectionsApi;
use crate::resources::CreditsApi;
use crate::resources::CreditsBalancesApi;
use crate::resources::CreditsBalancesTransactionsApi;
use crate::resources::CreditsProductsApi;
use crate::resources::CustomerPortalApi;
use crate::resources::CustomerSessionsApi;
use crate::resources::CustomersApi;
use crate::resources::DisputesApi;
use crate::resources::EntitlementsApi;
use crate::resources::EventsApi;
use crate::resources::ExportsApi;
use crate::resources::FeedbackApi;
use crate::resources::GroupsApi;
use crate::resources::GroupsProductsApi;
use crate::resources::HighlightsApi;
use crate::resources::HighlightsMediaApi;
use crate::resources::InvoicesApi;
use crate::resources::LicenseInstancesApi;
use crate::resources::LicensesApi;
use crate::resources::LicensesInstancesApi;
use crate::resources::LineItemsApi;
use crate::resources::OAuthApi;
use crate::resources::OAuthManagementApi;
use crate::resources::OrdersApi;
use crate::resources::OrdersLineItemsApi;
use crate::resources::PaymentMethodsApi;
use crate::resources::PaymentMethodsCustomApi;
use crate::resources::ProductVariantsApi;
use crate::resources::ProductVariantsBookingApi;
use crate::resources::ProductVariantsPricingApi;
use crate::resources::ProductsAddonsApi;
use crate::resources::ProductsApi;
use crate::resources::PromotionsApi;
use crate::resources::PromotionsPhasesApi;
use crate::resources::RefundsApi;
use crate::resources::RewardCouponTemplatesApi;
use crate::resources::RewardGrantsApi;
use crate::resources::RewardRulesApi;
use crate::resources::SectionsApi;
use crate::resources::StoreCustomDomainsApi;
use crate::resources::StoreNotificationChannelsApi;
use crate::resources::StoreSettingsApi;
use crate::resources::SubscriptionsApi;
use crate::resources::TicketsApi;
use crate::resources::TicketsMessagesApi;
use crate::resources::UpsellOffersApi;
use crate::resources::VariantDeliverableFilesApi;
use crate::resources::VariantDeliverableFoldersApi;
use crate::resources::VariantDeliverablesApi;
use crate::resources::VariantSerialsApi;
use crate::resources::WalletApi;
use crate::resources::WalletBonusTiersApi;
use crate::resources::WalletSettingsApi;
use crate::resources::WalletTopupsApi;
use crate::resources::WalletTransactionsApi;
use crate::resources::WebhookChannelsApi;
use crate::resources::WebhookPlatformApi;

impl Client {
    /// Access the `account` resource.
    pub fn account(&self) -> AccountApi<'_> {
        AccountApi { client: self }
    }

    /// Access the `add_ons` resource.
    pub fn add_ons(&self) -> AddOnsApi<'_> {
        AddOnsApi { client: self }
    }

    /// Access the `add_ons_parent_products` resource.
    pub fn add_ons_parent_products(&self) -> AddOnsParentProductsApi<'_> {
        AddOnsParentProductsApi { client: self }
    }

    /// Access the `affiliate_payouts` resource.
    pub fn affiliate_payouts(&self) -> AffiliatePayoutsApi<'_> {
        AffiliatePayoutsApi { client: self }
    }

    /// Access the `affiliate_program` resource.
    pub fn affiliate_program(&self) -> AffiliateProgramApi<'_> {
        AffiliateProgramApi { client: self }
    }

    /// Access the `affiliate_referral_sessions` resource.
    pub fn affiliate_referral_sessions(&self) -> AffiliateReferralSessionsApi<'_> {
        AffiliateReferralSessionsApi { client: self }
    }

    /// Access the `affiliate_referrals` resource.
    pub fn affiliate_referrals(&self) -> AffiliateReferralsApi<'_> {
        AffiliateReferralsApi { client: self }
    }

    /// Access the `affiliates` resource.
    pub fn affiliates(&self) -> AffiliatesApi<'_> {
        AffiliatesApi { client: self }
    }

    /// Access the `blacklists` resource.
    pub fn blacklists(&self) -> BlacklistsApi<'_> {
        BlacklistsApi { client: self }
    }

    /// Access the `bookings` resource.
    pub fn bookings(&self) -> BookingsApi<'_> {
        BookingsApi { client: self }
    }

    /// Access the `bookings_calendar_events` resource.
    pub fn bookings_calendar_events(&self) -> BookingsCalendarEventsApi<'_> {
        BookingsCalendarEventsApi { client: self }
    }

    /// Access the `bundle_items` resource.
    pub fn bundle_items(&self) -> BundleItemsApi<'_> {
        BundleItemsApi { client: self }
    }

    /// Access the `cashback_rules` resource.
    pub fn cashback_rules(&self) -> CashbackRulesApi<'_> {
        CashbackRulesApi { client: self }
    }

    /// Access the `charges` resource.
    pub fn charges(&self) -> ChargesApi<'_> {
        ChargesApi { client: self }
    }

    /// Access the `community_connections` resource.
    pub fn community_connections(&self) -> CommunityConnectionsApi<'_> {
        CommunityConnectionsApi { client: self }
    }

    /// Access the `coupons` resource.
    pub fn coupons(&self) -> CouponsApi<'_> {
        CouponsApi { client: self }
    }

    /// Access the `courses` resource.
    pub fn courses(&self) -> CoursesApi<'_> {
        CoursesApi { client: self }
    }

    /// Access the `courses_lessons` resource.
    pub fn courses_lessons(&self) -> CoursesLessonsApi<'_> {
        CoursesLessonsApi { client: self }
    }

    /// Access the `courses_sections` resource.
    pub fn courses_sections(&self) -> CoursesSectionsApi<'_> {
        CoursesSectionsApi { client: self }
    }

    /// Access the `credits` resource.
    pub fn credits(&self) -> CreditsApi<'_> {
        CreditsApi { client: self }
    }

    /// Access the `credits_balances` resource.
    pub fn credits_balances(&self) -> CreditsBalancesApi<'_> {
        CreditsBalancesApi { client: self }
    }

    /// Access the `credits_balances_transactions` resource.
    pub fn credits_balances_transactions(&self) -> CreditsBalancesTransactionsApi<'_> {
        CreditsBalancesTransactionsApi { client: self }
    }

    /// Access the `credits_products` resource.
    pub fn credits_products(&self) -> CreditsProductsApi<'_> {
        CreditsProductsApi { client: self }
    }

    /// Access the `customer_portal` resource.
    pub fn customer_portal(&self) -> CustomerPortalApi<'_> {
        CustomerPortalApi { client: self }
    }

    /// Access the `customer_sessions` resource.
    pub fn customer_sessions(&self) -> CustomerSessionsApi<'_> {
        CustomerSessionsApi { client: self }
    }

    /// Access the `customers` resource.
    pub fn customers(&self) -> CustomersApi<'_> {
        CustomersApi { client: self }
    }

    /// Access the `disputes` resource.
    pub fn disputes(&self) -> DisputesApi<'_> {
        DisputesApi { client: self }
    }

    /// Access the `entitlements` resource.
    pub fn entitlements(&self) -> EntitlementsApi<'_> {
        EntitlementsApi { client: self }
    }

    /// Access the `events` resource.
    pub fn events(&self) -> EventsApi<'_> {
        EventsApi { client: self }
    }

    /// Access the `exports` resource.
    pub fn exports(&self) -> ExportsApi<'_> {
        ExportsApi { client: self }
    }

    /// Access the `feedback` resource.
    pub fn feedback(&self) -> FeedbackApi<'_> {
        FeedbackApi { client: self }
    }

    /// Access the `groups` resource.
    pub fn groups(&self) -> GroupsApi<'_> {
        GroupsApi { client: self }
    }

    /// Access the `groups_products` resource.
    pub fn groups_products(&self) -> GroupsProductsApi<'_> {
        GroupsProductsApi { client: self }
    }

    /// Access the `highlights` resource.
    pub fn highlights(&self) -> HighlightsApi<'_> {
        HighlightsApi { client: self }
    }

    /// Access the `highlights_media` resource.
    pub fn highlights_media(&self) -> HighlightsMediaApi<'_> {
        HighlightsMediaApi { client: self }
    }

    /// Access the `invoices` resource.
    pub fn invoices(&self) -> InvoicesApi<'_> {
        InvoicesApi { client: self }
    }

    /// Access the `license_instances` resource.
    pub fn license_instances(&self) -> LicenseInstancesApi<'_> {
        LicenseInstancesApi { client: self }
    }

    /// Access the `licenses` resource.
    pub fn licenses(&self) -> LicensesApi<'_> {
        LicensesApi { client: self }
    }

    /// Access the `licenses_instances` resource.
    pub fn licenses_instances(&self) -> LicensesInstancesApi<'_> {
        LicensesInstancesApi { client: self }
    }

    /// Access the `line_items` resource.
    pub fn line_items(&self) -> LineItemsApi<'_> {
        LineItemsApi { client: self }
    }

    /// Access the `oauth` resource.
    pub fn oauth(&self) -> OAuthApi<'_> {
        OAuthApi { client: self }
    }

    /// Access the `oauth_management` resource.
    pub fn oauth_management(&self) -> OAuthManagementApi<'_> {
        OAuthManagementApi { client: self }
    }

    /// Access the `orders` resource.
    pub fn orders(&self) -> OrdersApi<'_> {
        OrdersApi { client: self }
    }

    /// Access the `orders_line_items` resource.
    pub fn orders_line_items(&self) -> OrdersLineItemsApi<'_> {
        OrdersLineItemsApi { client: self }
    }

    /// Access the `payment_methods` resource.
    pub fn payment_methods(&self) -> PaymentMethodsApi<'_> {
        PaymentMethodsApi { client: self }
    }

    /// Access the `payment_methods_custom` resource.
    pub fn payment_methods_custom(&self) -> PaymentMethodsCustomApi<'_> {
        PaymentMethodsCustomApi { client: self }
    }

    /// Access the `product_variants` resource.
    pub fn product_variants(&self) -> ProductVariantsApi<'_> {
        ProductVariantsApi { client: self }
    }

    /// Access the `product_variants_booking` resource.
    pub fn product_variants_booking(&self) -> ProductVariantsBookingApi<'_> {
        ProductVariantsBookingApi { client: self }
    }

    /// Access the `product_variants_pricing` resource.
    pub fn product_variants_pricing(&self) -> ProductVariantsPricingApi<'_> {
        ProductVariantsPricingApi { client: self }
    }

    /// Access the `products` resource.
    pub fn products(&self) -> ProductsApi<'_> {
        ProductsApi { client: self }
    }

    /// Access the `products_addons` resource.
    pub fn products_addons(&self) -> ProductsAddonsApi<'_> {
        ProductsAddonsApi { client: self }
    }

    /// Access the `promotions` resource.
    pub fn promotions(&self) -> PromotionsApi<'_> {
        PromotionsApi { client: self }
    }

    /// Access the `promotions_phases` resource.
    pub fn promotions_phases(&self) -> PromotionsPhasesApi<'_> {
        PromotionsPhasesApi { client: self }
    }

    /// Access the `refunds` resource.
    pub fn refunds(&self) -> RefundsApi<'_> {
        RefundsApi { client: self }
    }

    /// Access the `reward_coupon_templates` resource.
    pub fn reward_coupon_templates(&self) -> RewardCouponTemplatesApi<'_> {
        RewardCouponTemplatesApi { client: self }
    }

    /// Access the `reward_grants` resource.
    pub fn reward_grants(&self) -> RewardGrantsApi<'_> {
        RewardGrantsApi { client: self }
    }

    /// Access the `reward_rules` resource.
    pub fn reward_rules(&self) -> RewardRulesApi<'_> {
        RewardRulesApi { client: self }
    }

    /// Access the `sections` resource.
    pub fn sections(&self) -> SectionsApi<'_> {
        SectionsApi { client: self }
    }

    /// Access the `store_custom_domains` resource.
    pub fn store_custom_domains(&self) -> StoreCustomDomainsApi<'_> {
        StoreCustomDomainsApi { client: self }
    }

    /// Access the `store_notification_channels` resource.
    pub fn store_notification_channels(&self) -> StoreNotificationChannelsApi<'_> {
        StoreNotificationChannelsApi { client: self }
    }

    /// Access the `store_settings` resource.
    pub fn store_settings(&self) -> StoreSettingsApi<'_> {
        StoreSettingsApi { client: self }
    }

    /// Access the `subscriptions` resource.
    pub fn subscriptions(&self) -> SubscriptionsApi<'_> {
        SubscriptionsApi { client: self }
    }

    /// Access the `tickets` resource.
    pub fn tickets(&self) -> TicketsApi<'_> {
        TicketsApi { client: self }
    }

    /// Access the `tickets_messages` resource.
    pub fn tickets_messages(&self) -> TicketsMessagesApi<'_> {
        TicketsMessagesApi { client: self }
    }

    /// Access the `upsell_offers` resource.
    pub fn upsell_offers(&self) -> UpsellOffersApi<'_> {
        UpsellOffersApi { client: self }
    }

    /// Access the `variant_deliverable_files` resource.
    pub fn variant_deliverable_files(&self) -> VariantDeliverableFilesApi<'_> {
        VariantDeliverableFilesApi { client: self }
    }

    /// Access the `variant_deliverable_folders` resource.
    pub fn variant_deliverable_folders(&self) -> VariantDeliverableFoldersApi<'_> {
        VariantDeliverableFoldersApi { client: self }
    }

    /// Access the `variant_deliverables` resource.
    pub fn variant_deliverables(&self) -> VariantDeliverablesApi<'_> {
        VariantDeliverablesApi { client: self }
    }

    /// Access the `variant_serials` resource.
    pub fn variant_serials(&self) -> VariantSerialsApi<'_> {
        VariantSerialsApi { client: self }
    }

    /// Access the `wallet` resource.
    pub fn wallet(&self) -> WalletApi<'_> {
        WalletApi { client: self }
    }

    /// Access the `wallet_bonus_tiers` resource.
    pub fn wallet_bonus_tiers(&self) -> WalletBonusTiersApi<'_> {
        WalletBonusTiersApi { client: self }
    }

    /// Access the `wallet_settings` resource.
    pub fn wallet_settings(&self) -> WalletSettingsApi<'_> {
        WalletSettingsApi { client: self }
    }

    /// Access the `wallet_topups` resource.
    pub fn wallet_topups(&self) -> WalletTopupsApi<'_> {
        WalletTopupsApi { client: self }
    }

    /// Access the `wallet_transactions` resource.
    pub fn wallet_transactions(&self) -> WalletTransactionsApi<'_> {
        WalletTransactionsApi { client: self }
    }

    /// Access the `webhook_channels` resource.
    pub fn webhook_channels(&self) -> WebhookChannelsApi<'_> {
        WebhookChannelsApi { client: self }
    }

    /// Access the `webhook_platform` resource.
    pub fn webhook_platform(&self) -> WebhookPlatformApi<'_> {
        WebhookPlatformApi { client: self }
    }
}