waldur-js-client 8.0.10-dev.6 → 8.0.10-dev.7

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.
package/dist/sdk.gen.js CHANGED
@@ -4598,6 +4598,126 @@ export const conflictsOfInterestWaive = (options) => (options.client ?? client).
4598
4598
  ...options.headers
4599
4599
  }
4600
4600
  });
4601
+ export const creditTransactionsList = (options) => (options?.client ?? client).get({
4602
+ security: [
4603
+ { name: 'Authorization', type: 'apiKey' },
4604
+ { scheme: 'bearer', type: 'http' }
4605
+ ],
4606
+ url: '/api/credit-transactions/',
4607
+ ...options
4608
+ });
4609
+ /**
4610
+ * Get number of items in the collection matching the request parameters.
4611
+ */
4612
+ export const creditTransactionsCount = (options) => (options?.client ?? client).head({
4613
+ security: [
4614
+ { name: 'Authorization', type: 'apiKey' },
4615
+ { scheme: 'bearer', type: 'http' }
4616
+ ],
4617
+ url: '/api/credit-transactions/',
4618
+ ...options
4619
+ });
4620
+ export const creditTransactionsRetrieve = (options) => (options.client ?? client).get({
4621
+ security: [
4622
+ { name: 'Authorization', type: 'apiKey' },
4623
+ { scheme: 'bearer', type: 'http' }
4624
+ ],
4625
+ url: '/api/credit-transactions/{uuid}/',
4626
+ ...options
4627
+ });
4628
+ export const customerAffiliatesList = (options) => (options?.client ?? client).get({
4629
+ security: [
4630
+ { name: 'Authorization', type: 'apiKey' },
4631
+ { scheme: 'bearer', type: 'http' }
4632
+ ],
4633
+ url: '/api/customer-affiliates/',
4634
+ ...options
4635
+ });
4636
+ /**
4637
+ * Get number of items in the collection matching the request parameters.
4638
+ */
4639
+ export const customerAffiliatesCount = (options) => (options?.client ?? client).head({
4640
+ security: [
4641
+ { name: 'Authorization', type: 'apiKey' },
4642
+ { scheme: 'bearer', type: 'http' }
4643
+ ],
4644
+ url: '/api/customer-affiliates/',
4645
+ ...options
4646
+ });
4647
+ export const customerAffiliatesCreate = (options) => (options.client ?? client).post({
4648
+ security: [
4649
+ { name: 'Authorization', type: 'apiKey' },
4650
+ { scheme: 'bearer', type: 'http' }
4651
+ ],
4652
+ url: '/api/customer-affiliates/',
4653
+ ...options,
4654
+ headers: {
4655
+ 'Content-Type': 'application/json',
4656
+ ...options.headers
4657
+ }
4658
+ });
4659
+ export const customerAffiliatesDestroy = (options) => (options.client ?? client).delete({
4660
+ security: [
4661
+ { name: 'Authorization', type: 'apiKey' },
4662
+ { scheme: 'bearer', type: 'http' }
4663
+ ],
4664
+ url: '/api/customer-affiliates/{uuid}/',
4665
+ ...options
4666
+ });
4667
+ export const customerAffiliatesRetrieve = (options) => (options.client ?? client).get({
4668
+ security: [
4669
+ { name: 'Authorization', type: 'apiKey' },
4670
+ { scheme: 'bearer', type: 'http' }
4671
+ ],
4672
+ url: '/api/customer-affiliates/{uuid}/',
4673
+ ...options
4674
+ });
4675
+ export const customerAffiliatesPartialUpdate = (options) => (options.client ?? client).patch({
4676
+ security: [
4677
+ { name: 'Authorization', type: 'apiKey' },
4678
+ { scheme: 'bearer', type: 'http' }
4679
+ ],
4680
+ url: '/api/customer-affiliates/{uuid}/',
4681
+ ...options,
4682
+ headers: {
4683
+ 'Content-Type': 'application/json',
4684
+ ...options.headers
4685
+ }
4686
+ });
4687
+ export const customerAffiliatesUpdate = (options) => (options.client ?? client).put({
4688
+ security: [
4689
+ { name: 'Authorization', type: 'apiKey' },
4690
+ { scheme: 'bearer', type: 'http' }
4691
+ ],
4692
+ url: '/api/customer-affiliates/{uuid}/',
4693
+ ...options,
4694
+ headers: {
4695
+ 'Content-Type': 'application/json',
4696
+ ...options.headers
4697
+ }
4698
+ });
4699
+ /**
4700
+ * List fees accrued from this affiliate link. Exposes the fee amount and invoice period only — never the referred customer's invoice contents.
4701
+ */
4702
+ export const customerAffiliatesAccrualsList = (options) => (options.client ?? client).get({
4703
+ security: [
4704
+ { name: 'Authorization', type: 'apiKey' },
4705
+ { scheme: 'bearer', type: 'http' }
4706
+ ],
4707
+ url: '/api/customer-affiliates/{uuid}/accruals/',
4708
+ ...options
4709
+ });
4710
+ /**
4711
+ * Earnings summary of this affiliate link: lifetime total, per-month series and the affiliate organization's withdrawable credit balance.
4712
+ */
4713
+ export const customerAffiliatesEarningsRetrieve = (options) => (options.client ?? client).get({
4714
+ security: [
4715
+ { name: 'Authorization', type: 'apiKey' },
4716
+ { scheme: 'bearer', type: 'http' }
4717
+ ],
4718
+ url: '/api/customer-affiliates/{uuid}/earnings/',
4719
+ ...options
4720
+ });
4601
4721
  export const customerCreditsList = (options) => (options?.client ?? client).get({
4602
4722
  security: [
4603
4723
  { name: 'Authorization', type: 'apiKey' },
@@ -4669,6 +4789,21 @@ export const customerCreditsUpdate = (options) => (options.client ?? client).put
4669
4789
  ...options.headers
4670
4790
  }
4671
4791
  });
4792
+ /**
4793
+ * Staff adjustment of the withdrawable part of the credit. Records a signed ledger entry with a comment and changes the credit value by the same amount.
4794
+ */
4795
+ export const customerCreditsAdjustWithdrawable = (options) => (options.client ?? client).post({
4796
+ security: [
4797
+ { name: 'Authorization', type: 'apiKey' },
4798
+ { scheme: 'bearer', type: 'http' }
4799
+ ],
4800
+ url: '/api/customer-credits/{uuid}/adjust_withdrawable/',
4801
+ ...options,
4802
+ headers: {
4803
+ 'Content-Type': 'application/json',
4804
+ ...options.headers
4805
+ }
4806
+ });
4672
4807
  export const customerCreditsApplyCompensations = (options) => (options.client ?? client).post({
4673
4808
  security: [
4674
4809
  { name: 'Authorization', type: 'apiKey' },