paddle-python-sdk 0.1.0__tar.gz

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.
Files changed (522) hide show
  1. paddle_python_sdk-0.1.0/LICENSE +190 -0
  2. paddle_python_sdk-0.1.0/PKG-INFO +184 -0
  3. paddle_python_sdk-0.1.0/README.md +158 -0
  4. paddle_python_sdk-0.1.0/examples/__init__.py +0 -0
  5. paddle_python_sdk-0.1.0/examples/catalog_management.py +166 -0
  6. paddle_python_sdk-0.1.0/examples/event_polling.py +56 -0
  7. paddle_python_sdk-0.1.0/examples/get_products.py +46 -0
  8. paddle_python_sdk-0.1.0/examples/logger.py +31 -0
  9. paddle_python_sdk-0.1.0/paddle_billing/Client.py +201 -0
  10. paddle_python_sdk-0.1.0/paddle_billing/ConditionallyRemoveImportMeta.py +14 -0
  11. paddle_python_sdk-0.1.0/paddle_billing/Entities/Address.py +44 -0
  12. paddle_python_sdk-0.1.0/paddle_billing/Entities/Adjustment.py +45 -0
  13. paddle_python_sdk-0.1.0/paddle_billing/Entities/Adjustments/AdjustmentCustomerBalance.py +18 -0
  14. paddle_python_sdk-0.1.0/paddle_billing/Entities/Adjustments/AdjustmentItem.py +26 -0
  15. paddle_python_sdk-0.1.0/paddle_billing/Entities/Adjustments/__init__.py +2 -0
  16. paddle_python_sdk-0.1.0/paddle_billing/Entities/Business.py +38 -0
  17. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/AddressCollection.py +18 -0
  18. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/AdjustmentCollection.py +18 -0
  19. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/BusinessCollection.py +18 -0
  20. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/Collection.py +47 -0
  21. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/CreditBalanceCollection.py +18 -0
  22. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/CustomerCollection.py +18 -0
  23. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/DiscountCollection.py +18 -0
  24. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/EventCollection.py +18 -0
  25. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/EventTypeCollection.py +18 -0
  26. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/NotificationCollection.py +18 -0
  27. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/NotificationLogCollection.py +18 -0
  28. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/NotificationSettingCollection.py +18 -0
  29. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/Paginator.py +29 -0
  30. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/PriceCollection.py +18 -0
  31. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/ProductCollection.py +18 -0
  32. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/ReportCollection.py +18 -0
  33. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/SubscriptionCollection.py +18 -0
  34. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/SubscriptionPreviewCollection.py +18 -0
  35. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/TransactionCollection.py +18 -0
  36. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/TransactionPreviewCollection.py +18 -0
  37. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/TransactionsDataCollection.py +18 -0
  38. paddle_python_sdk-0.1.0/paddle_billing/Entities/Collections/__init__.py +21 -0
  39. paddle_python_sdk-0.1.0/paddle_billing/Entities/CreditBalance.py +22 -0
  40. paddle_python_sdk-0.1.0/paddle_billing/Entities/Customer.py +36 -0
  41. paddle_python_sdk-0.1.0/paddle_billing/Entities/DateTime.py +43 -0
  42. paddle_python_sdk-0.1.0/paddle_billing/Entities/Discount.py +51 -0
  43. paddle_python_sdk-0.1.0/paddle_billing/Entities/Discounts/DiscountStatus.py +8 -0
  44. paddle_python_sdk-0.1.0/paddle_billing/Entities/Discounts/DiscountType.py +7 -0
  45. paddle_python_sdk-0.1.0/paddle_billing/Entities/Discounts/__init__.py +2 -0
  46. paddle_python_sdk-0.1.0/paddle_billing/Entities/Entity.py +12 -0
  47. paddle_python_sdk-0.1.0/paddle_billing/Entities/Event.py +51 -0
  48. paddle_python_sdk-0.1.0/paddle_billing/Entities/EventType.py +23 -0
  49. paddle_python_sdk-0.1.0/paddle_billing/Entities/Events/EventTypeName.py +52 -0
  50. paddle_python_sdk-0.1.0/paddle_billing/Entities/Events/__init__.py +1 -0
  51. paddle_python_sdk-0.1.0/paddle_billing/Entities/Notification.py +42 -0
  52. paddle_python_sdk-0.1.0/paddle_billing/Entities/NotificationLog.py +25 -0
  53. paddle_python_sdk-0.1.0/paddle_billing/Entities/NotificationSetting.py +34 -0
  54. paddle_python_sdk-0.1.0/paddle_billing/Entities/NotificationSettings/NotificationSettingType.py +6 -0
  55. paddle_python_sdk-0.1.0/paddle_billing/Entities/NotificationSettings/__init__.py +1 -0
  56. paddle_python_sdk-0.1.0/paddle_billing/Entities/Notifications/NotificationOrigin.py +6 -0
  57. paddle_python_sdk-0.1.0/paddle_billing/Entities/Notifications/NotificationPayout.py +24 -0
  58. paddle_python_sdk-0.1.0/paddle_billing/Entities/Notifications/NotificationPayoutStatus.py +6 -0
  59. paddle_python_sdk-0.1.0/paddle_billing/Entities/Notifications/NotificationStatus.py +8 -0
  60. paddle_python_sdk-0.1.0/paddle_billing/Entities/Notifications/__init__.py +4 -0
  61. paddle_python_sdk-0.1.0/paddle_billing/Entities/Price.py +68 -0
  62. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricePreview.py +34 -0
  63. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/PricePreviewDetails.py +15 -0
  64. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/PricePreviewDiscounts.py +20 -0
  65. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/PricePreviewItem.py +16 -0
  66. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/PricePreviewLineItem.py +38 -0
  67. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/PricePreviewTotalsFormatted.py +20 -0
  68. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/PricePreviewUnitTotalsFormatted.py +20 -0
  69. paddle_python_sdk-0.1.0/paddle_billing/Entities/PricingPreviews/__init__.py +6 -0
  70. paddle_python_sdk-0.1.0/paddle_billing/Entities/Product.py +45 -0
  71. paddle_python_sdk-0.1.0/paddle_billing/Entities/Report.py +32 -0
  72. paddle_python_sdk-0.1.0/paddle_billing/Entities/ReportCSV.py +13 -0
  73. paddle_python_sdk-0.1.0/paddle_billing/Entities/Reports/ReportFilter.py +20 -0
  74. paddle_python_sdk-0.1.0/paddle_billing/Entities/Reports/ReportFilterName.py +17 -0
  75. paddle_python_sdk-0.1.0/paddle_billing/Entities/Reports/ReportFilterOperator.py +6 -0
  76. paddle_python_sdk-0.1.0/paddle_billing/Entities/Reports/ReportStatus.py +8 -0
  77. paddle_python_sdk-0.1.0/paddle_billing/Entities/Reports/ReportType.py +10 -0
  78. paddle_python_sdk-0.1.0/paddle_billing/Entities/Reports/__init__.py +5 -0
  79. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Action.py +10 -0
  80. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AddressPreview.py +18 -0
  81. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AdjustmentItemTotals.py +18 -0
  82. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AdjustmentProration.py +18 -0
  83. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AdjustmentStatus.py +8 -0
  84. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AdjustmentTimePeriod.py +17 -0
  85. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AdjustmentTotals.py +26 -0
  86. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AdjustmentType.py +8 -0
  87. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/AvailablePaymentMethods.py +11 -0
  88. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/BillingDetails.py +22 -0
  89. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/BillingDetailsUpdate.py +22 -0
  90. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Card.py +24 -0
  91. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CatalogType.py +6 -0
  92. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/ChargebackFee.py +18 -0
  93. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Checkout.py +12 -0
  94. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CollectionMode.py +6 -0
  95. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Contacts.py +16 -0
  96. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CountryCode.py +233 -0
  97. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CurrencyCode.py +34 -0
  98. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CurrencyCodeAdjustments.py +7 -0
  99. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CurrencyCodePayouts.py +17 -0
  100. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/CustomData.py +10 -0
  101. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Data.py +9 -0
  102. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/ErrorCode.py +21 -0
  103. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/ImportMeta.py +16 -0
  104. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Interval.py +8 -0
  105. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Meta.py +7 -0
  106. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/MetaPaginated.py +18 -0
  107. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/MethodDetails.py +19 -0
  108. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Money.py +28 -0
  109. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Original.py +18 -0
  110. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Pagination.py +20 -0
  111. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/PaymentAttemptStatus.py +13 -0
  112. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/PaymentMethodType.py +14 -0
  113. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/PayoutTotalsAdjustment.py +29 -0
  114. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/PriceQuantity.py +16 -0
  115. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Status.py +6 -0
  116. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TaxCategory.py +13 -0
  117. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TaxMode.py +7 -0
  118. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TaxRatesUsed.py +18 -0
  119. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TimePeriod.py +18 -0
  120. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/Totals.py +20 -0
  121. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionDetailsPreview.py +22 -0
  122. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionLineItemPreview.py +28 -0
  123. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionOrigin.py +10 -0
  124. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionPaymentAttempt.py +35 -0
  125. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionPayoutTotals.py +36 -0
  126. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionPayoutTotalsAdjusted.py +29 -0
  127. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionStatus.py +11 -0
  128. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionTotals.py +36 -0
  129. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/TransactionTotalsAdjusted.py +28 -0
  130. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/UnitPriceOverride.py +19 -0
  131. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/UnitTotals.py +20 -0
  132. paddle_python_sdk-0.1.0/paddle_billing/Entities/Shared/__init__.py +56 -0
  133. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscription.py +86 -0
  134. paddle_python_sdk-0.1.0/paddle_billing/Entities/SubscriptionPreview.py +79 -0
  135. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionAdjustmentItem.py +24 -0
  136. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionAdjustmentPreview.py +22 -0
  137. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionCharge.py +18 -0
  138. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionCredit.py +18 -0
  139. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionDetails.py +34 -0
  140. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionDiscount.py +19 -0
  141. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionEffectiveFrom.py +6 -0
  142. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionItem.py +35 -0
  143. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionItemStatus.py +7 -0
  144. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionItems.py +20 -0
  145. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionItemsWithPrice.py +19 -0
  146. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionManagementUrls.py +16 -0
  147. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionNextTransaction.py +23 -0
  148. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionNonCatalogPrice.py +30 -0
  149. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionNonCatalogPriceWithProduct.py +32 -0
  150. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionNonCatalogProduct.py +26 -0
  151. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionOnPaymentFailure.py +6 -0
  152. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionPreviewSubscriptionUpdateSummary.py +22 -0
  153. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionPrice.py +28 -0
  154. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionProration.py +18 -0
  155. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionProrationBillingMode.py +9 -0
  156. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionResult.py +22 -0
  157. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionResultAction.py +6 -0
  158. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionResumeEffectiveFrom.py +5 -0
  159. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionScheduledChange.py +21 -0
  160. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionScheduledChangeAction.py +7 -0
  161. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionStatus.py +10 -0
  162. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionTimePeriod.py +17 -0
  163. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionTransactionItem.py +23 -0
  164. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionTransactionLineItem.py +33 -0
  165. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/SubscriptionUpdateItem.py +16 -0
  166. paddle_python_sdk-0.1.0/paddle_billing/Entities/Subscriptions/__init__.py +31 -0
  167. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transaction.py +98 -0
  168. paddle_python_sdk-0.1.0/paddle_billing/Entities/TransactionData.py +15 -0
  169. paddle_python_sdk-0.1.0/paddle_billing/Entities/TransactionPreview.py +40 -0
  170. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionAdjustmentsTotals.py +30 -0
  171. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionBreakdown.py +18 -0
  172. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionCardType.py +14 -0
  173. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionCreateItem.py +16 -0
  174. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionCreateItemWithPrice.py +11 -0
  175. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionDetails.py +32 -0
  176. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionItem.py +24 -0
  177. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionItemPreviewWithNonCatalogPrice.py +21 -0
  178. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionItemPreviewWithPrice.py +24 -0
  179. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionItemPreviewWithPriceId.py +18 -0
  180. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionLineItem.py +35 -0
  181. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionNonCatalogPrice.py +39 -0
  182. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionNonCatalogPriceWithProduct.py +41 -0
  183. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionNonCatalogProduct.py +25 -0
  184. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionProration.py +18 -0
  185. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionTimePeriod.py +17 -0
  186. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/TransactionUpdateTransactionItem.py +8 -0
  187. paddle_python_sdk-0.1.0/paddle_billing/Entities/Transactions/__init__.py +20 -0
  188. paddle_python_sdk-0.1.0/paddle_billing/Entities/__init__.py +0 -0
  189. paddle_python_sdk-0.1.0/paddle_billing/EnumStringify.py +2 -0
  190. paddle_python_sdk-0.1.0/paddle_billing/Environment.py +14 -0
  191. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiError.py +28 -0
  192. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/AddressApiError.py +5 -0
  193. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/AdjustmentApiError.py +5 -0
  194. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/BusinessApiError.py +5 -0
  195. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/CustomerApiError.py +5 -0
  196. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/DiscountApiError.py +5 -0
  197. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/PriceApiError.py +5 -0
  198. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/ProductApiError.py +5 -0
  199. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/SubscriptionApiError.py +5 -0
  200. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/TransactionApiError.py +5 -0
  201. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/ApiErrors/__init__.py +0 -0
  202. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/FieldError.py +8 -0
  203. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/SdkException.py +2 -0
  204. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/SdkExceptions/InvalidArgumentException.py +8 -0
  205. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/SdkExceptions/MalformedResponse.py +7 -0
  206. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/SdkExceptions/__init__.py +0 -0
  207. paddle_python_sdk-0.1.0/paddle_billing/Exceptions/__init__.py +0 -0
  208. paddle_python_sdk-0.1.0/paddle_billing/FiltersNone.py +8 -0
  209. paddle_python_sdk-0.1.0/paddle_billing/FiltersUndefined.py +11 -0
  210. paddle_python_sdk-0.1.0/paddle_billing/HasParameters.py +11 -0
  211. paddle_python_sdk-0.1.0/paddle_billing/Logger/Formatter.py +18 -0
  212. paddle_python_sdk-0.1.0/paddle_billing/Logger/NullHandler.py +6 -0
  213. paddle_python_sdk-0.1.0/paddle_billing/Logger/__init__.py +30 -0
  214. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Address.py +44 -0
  215. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Adjustment.py +45 -0
  216. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Adjustments/AdjustmentItem.py +26 -0
  217. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Adjustments/__init__.py +1 -0
  218. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Business.py +39 -0
  219. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Businesses/BusinessesContacts.py +16 -0
  220. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Businesses/__init__.py +1 -0
  221. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Customer.py +36 -0
  222. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/DateTime.py +43 -0
  223. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Discount.py +51 -0
  224. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Discounts/DiscountStatus.py +8 -0
  225. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Discounts/DiscountType.py +7 -0
  226. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Discounts/__init__.py +2 -0
  227. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Entity.py +12 -0
  228. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Payout.py +24 -0
  229. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Payouts/PayoutStatus.py +6 -0
  230. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Payouts/__init__.py +1 -0
  231. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Price.py +66 -0
  232. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Product.py +45 -0
  233. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Report.py +32 -0
  234. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Reports/ReportFilter.py +20 -0
  235. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Reports/ReportFilterName.py +17 -0
  236. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Reports/ReportFilterOperator.py +6 -0
  237. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Reports/ReportStatus.py +8 -0
  238. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Reports/ReportType.py +10 -0
  239. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Reports/__init__.py +5 -0
  240. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Action.py +10 -0
  241. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AddressPreview.py +18 -0
  242. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AdjustmentItemTotals.py +18 -0
  243. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AdjustmentProration.py +18 -0
  244. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AdjustmentStatus.py +8 -0
  245. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AdjustmentTimePeriod.py +17 -0
  246. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AdjustmentTotals.py +26 -0
  247. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AdjustmentType.py +8 -0
  248. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/AvailablePaymentMethods.py +11 -0
  249. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/BillingDetails.py +22 -0
  250. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Card.py +24 -0
  251. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CatalogType.py +6 -0
  252. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/ChargebackFee.py +18 -0
  253. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Checkout.py +12 -0
  254. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CollectionMode.py +6 -0
  255. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CountryCode.py +233 -0
  256. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CurrencyCode.py +34 -0
  257. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CurrencyCodeAdjustments.py +7 -0
  258. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CurrencyCodePayouts.py +17 -0
  259. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/CustomData.py +10 -0
  260. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Data.py +9 -0
  261. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/ErrorCode.py +21 -0
  262. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/ImportMeta.py +16 -0
  263. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Interval.py +8 -0
  264. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/MethodDetails.py +19 -0
  265. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Money.py +28 -0
  266. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Original.py +18 -0
  267. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/PaymentAttemptStatus.py +13 -0
  268. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/PaymentMethodType.py +15 -0
  269. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/PayoutTotalsAdjustment.py +29 -0
  270. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/PriceQuantity.py +16 -0
  271. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Status.py +6 -0
  272. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TaxCategory.py +13 -0
  273. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TaxMode.py +7 -0
  274. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TaxRatesUsed.py +18 -0
  275. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TimePeriod.py +18 -0
  276. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/Totals.py +20 -0
  277. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionOrigin.py +10 -0
  278. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionPaymentAttempt.py +35 -0
  279. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionPayoutTotals.py +36 -0
  280. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionPayoutTotalsAdjusted.py +29 -0
  281. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionStatus.py +11 -0
  282. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionTotals.py +36 -0
  283. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/TransactionTotalsAdjusted.py +28 -0
  284. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/UnitPriceOverride.py +19 -0
  285. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/UnitTotals.py +20 -0
  286. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Shared/__init__.py +46 -0
  287. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscription.py +76 -0
  288. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionAdjustmentItem.py +24 -0
  289. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionCharge.py +18 -0
  290. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionCredit.py +18 -0
  291. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionDiscount.py +19 -0
  292. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionEffectiveFrom.py +6 -0
  293. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionItem.py +35 -0
  294. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionItemStatus.py +7 -0
  295. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionOnPaymentFailure.py +6 -0
  296. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionPrice.py +28 -0
  297. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionScheduledChange.py +21 -0
  298. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionScheduledChangeAction.py +7 -0
  299. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionStatus.py +10 -0
  300. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/SubscriptionTimePeriod.py +17 -0
  301. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Subscriptions/__init__.py +13 -0
  302. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transaction.py +75 -0
  303. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionAdjustmentsTotals.py +30 -0
  304. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionBreakdown.py +18 -0
  305. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionCardType.py +14 -0
  306. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionDetails.py +32 -0
  307. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionItem.py +24 -0
  308. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionLineItem.py +35 -0
  309. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionProration.py +18 -0
  310. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/TransactionTimePeriod.py +17 -0
  311. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/Transactions/__init__.py +11 -0
  312. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Entities/__init__.py +0 -0
  313. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/AddressCreated.py +17 -0
  314. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/AddressUpdated.py +17 -0
  315. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/AdjustmentCreated.py +17 -0
  316. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/AdjustmentUpdated.py +17 -0
  317. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/BusinessCreated.py +17 -0
  318. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/BusinessUpdated.py +17 -0
  319. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/CustomerCreated.py +17 -0
  320. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/CustomerUpdated.py +17 -0
  321. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/DiscountCreated.py +17 -0
  322. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/DiscountImported.py +17 -0
  323. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/DiscountUpdated.py +17 -0
  324. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/PayoutCreated.py +17 -0
  325. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/PayoutPaid.py +17 -0
  326. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/PriceCreated.py +17 -0
  327. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/PriceUpdated.py +17 -0
  328. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/ProductCreated.py +17 -0
  329. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/ProductUpdated.py +17 -0
  330. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/ReportCreated.py +17 -0
  331. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/ReportUpdated.py +17 -0
  332. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionActivated.py +17 -0
  333. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionCanceled.py +17 -0
  334. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionCreated.py +17 -0
  335. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionImported.py +17 -0
  336. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionPastDue.py +17 -0
  337. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionPaused.py +17 -0
  338. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionResumed.py +17 -0
  339. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionTrialing.py +17 -0
  340. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/SubscriptionUpdated.py +17 -0
  341. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionBilled.py +17 -0
  342. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionCanceled.py +17 -0
  343. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionCompleted.py +16 -0
  344. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionCreated.py +17 -0
  345. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionPaid.py +17 -0
  346. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionPastDue.py +17 -0
  347. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionPaymentFailed.py +17 -0
  348. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionReady.py +17 -0
  349. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/TransactionUpdated.py +17 -0
  350. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Events/__init__.py +0 -0
  351. paddle_python_sdk-0.1.0/paddle_billing/Notifications/PaddleSignature.py +128 -0
  352. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Secret.py +8 -0
  353. paddle_python_sdk-0.1.0/paddle_billing/Notifications/Verifier.py +55 -0
  354. paddle_python_sdk-0.1.0/paddle_billing/Notifications/__init__.py +3 -0
  355. paddle_python_sdk-0.1.0/paddle_billing/Options.py +10 -0
  356. paddle_python_sdk-0.1.0/paddle_billing/PaddleStrEnum.py +44 -0
  357. paddle_python_sdk-0.1.0/paddle_billing/RecursivelyRemoveKey.py +14 -0
  358. paddle_python_sdk-0.1.0/paddle_billing/Resources/Addresses/AddressesClient.py +58 -0
  359. paddle_python_sdk-0.1.0/paddle_billing/Resources/Addresses/Operations/CreateAddress.py +20 -0
  360. paddle_python_sdk-0.1.0/paddle_billing/Resources/Addresses/Operations/ListAddresses.py +42 -0
  361. paddle_python_sdk-0.1.0/paddle_billing/Resources/Addresses/Operations/UpdateAddress.py +21 -0
  362. paddle_python_sdk-0.1.0/paddle_billing/Resources/Addresses/Operations/__init__.py +3 -0
  363. paddle_python_sdk-0.1.0/paddle_billing/Resources/Addresses/__init__.py +0 -0
  364. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/AdjustmentsClient.py +36 -0
  365. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/Operations/Create/AdjustmentItem.py +11 -0
  366. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/Operations/Create/__init__.py +0 -0
  367. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/Operations/CreateAdjustment.py +28 -0
  368. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/Operations/ListAdjustments.py +60 -0
  369. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/Operations/__init__.py +3 -0
  370. paddle_python_sdk-0.1.0/paddle_billing/Resources/Adjustments/__init__.py +0 -0
  371. paddle_python_sdk-0.1.0/paddle_billing/Resources/Businesses/BusinessesClient.py +58 -0
  372. paddle_python_sdk-0.1.0/paddle_billing/Resources/Businesses/Operations/CreateBusiness.py +17 -0
  373. paddle_python_sdk-0.1.0/paddle_billing/Resources/Businesses/Operations/ListBusinesses.py +45 -0
  374. paddle_python_sdk-0.1.0/paddle_billing/Resources/Businesses/Operations/UpdateBusiness.py +18 -0
  375. paddle_python_sdk-0.1.0/paddle_billing/Resources/Businesses/Operations/__init__.py +3 -0
  376. paddle_python_sdk-0.1.0/paddle_billing/Resources/Businesses/__init__.py +0 -0
  377. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/CustomersClient.py +65 -0
  378. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/Operations/CreateCustomer.py +16 -0
  379. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/Operations/ListCreditBalances.py +28 -0
  380. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/Operations/ListCustomers.py +50 -0
  381. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/Operations/UpdateCustomer.py +17 -0
  382. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/Operations/__init__.py +4 -0
  383. paddle_python_sdk-0.1.0/paddle_billing/Resources/Customers/__init__.py +0 -0
  384. paddle_python_sdk-0.1.0/paddle_billing/Resources/Discounts/DiscountsClient.py +55 -0
  385. paddle_python_sdk-0.1.0/paddle_billing/Resources/Discounts/Operations/CreateDiscount.py +24 -0
  386. paddle_python_sdk-0.1.0/paddle_billing/Resources/Discounts/Operations/ListDiscounts.py +46 -0
  387. paddle_python_sdk-0.1.0/paddle_billing/Resources/Discounts/Operations/UpdateDiscount.py +25 -0
  388. paddle_python_sdk-0.1.0/paddle_billing/Resources/Discounts/Operations/__init__.py +3 -0
  389. paddle_python_sdk-0.1.0/paddle_billing/Resources/Discounts/__init__.py +0 -0
  390. paddle_python_sdk-0.1.0/paddle_billing/Resources/EventTypes/EventTypesClient.py +22 -0
  391. paddle_python_sdk-0.1.0/paddle_billing/Resources/EventTypes/__init__.py +0 -0
  392. paddle_python_sdk-0.1.0/paddle_billing/Resources/Events/EventsClient.py +26 -0
  393. paddle_python_sdk-0.1.0/paddle_billing/Resources/Events/Operations/ListEvents.py +12 -0
  394. paddle_python_sdk-0.1.0/paddle_billing/Resources/Events/Operations/__init__.py +1 -0
  395. paddle_python_sdk-0.1.0/paddle_billing/Resources/Events/__init__.py +0 -0
  396. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationLogs/NotificationLogsClient.py +26 -0
  397. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationLogs/Operations/ListNotificationLogs.py +11 -0
  398. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationLogs/Operations/__init__.py +1 -0
  399. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationLogs/__init__.py +0 -0
  400. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationSettings/NotificationSettingsClient.py +54 -0
  401. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationSettings/Operations/CreateNotificationSetting.py +21 -0
  402. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationSettings/Operations/UpdateNotificationSetting.py +20 -0
  403. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationSettings/Operations/__init__.py +2 -0
  404. paddle_python_sdk-0.1.0/paddle_billing/Resources/NotificationSettings/__init__.py +0 -0
  405. paddle_python_sdk-0.1.0/paddle_billing/Resources/Notifications/NotificationsClient.py +44 -0
  406. paddle_python_sdk-0.1.0/paddle_billing/Resources/Notifications/Operations/ListNotifications.py +58 -0
  407. paddle_python_sdk-0.1.0/paddle_billing/Resources/Notifications/Operations/__init__.py +1 -0
  408. paddle_python_sdk-0.1.0/paddle_billing/Resources/Notifications/__init__.py +0 -0
  409. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/Operations/CreatePrice.py +23 -0
  410. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/Operations/List/Includes.py +5 -0
  411. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/Operations/List/__init__.py +0 -0
  412. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/Operations/ListPrices.py +62 -0
  413. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/Operations/UpdatePrice.py +23 -0
  414. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/Operations/__init__.py +4 -0
  415. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/PricesClient.py +65 -0
  416. paddle_python_sdk-0.1.0/paddle_billing/Resources/Prices/__init__.py +0 -0
  417. paddle_python_sdk-0.1.0/paddle_billing/Resources/PricingPreviews/Operations/PreviewPrice.py +20 -0
  418. paddle_python_sdk-0.1.0/paddle_billing/Resources/PricingPreviews/Operations/__init__.py +1 -0
  419. paddle_python_sdk-0.1.0/paddle_billing/Resources/PricingPreviews/PricingPreviewsClient.py +20 -0
  420. paddle_python_sdk-0.1.0/paddle_billing/Resources/PricingPreviews/__init__.py +0 -0
  421. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/Operations/CreateProduct.py +18 -0
  422. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/Operations/List/Includes.py +5 -0
  423. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/Operations/List/__init__.py +0 -0
  424. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/Operations/ListProducts.py +59 -0
  425. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/Operations/UpdateProduct.py +19 -0
  426. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/Operations/__init__.py +4 -0
  427. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/ProductsClient.py +70 -0
  428. paddle_python_sdk-0.1.0/paddle_billing/Resources/Products/__init__.py +0 -0
  429. paddle_python_sdk-0.1.0/paddle_billing/Resources/Reports/Operations/CreateReport.py +27 -0
  430. paddle_python_sdk-0.1.0/paddle_billing/Resources/Reports/Operations/ListReports.py +35 -0
  431. paddle_python_sdk-0.1.0/paddle_billing/Resources/Reports/Operations/__init__.py +2 -0
  432. paddle_python_sdk-0.1.0/paddle_billing/Resources/Reports/ReportsClient.py +51 -0
  433. paddle_python_sdk-0.1.0/paddle_billing/Resources/Reports/__init__.py +0 -0
  434. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/Operations/List/Comparator.py +8 -0
  435. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/Operations/List/DateComparison.py +31 -0
  436. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/Operations/List/OrderBy.py +21 -0
  437. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/Operations/List/Pager.py +24 -0
  438. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/Operations/List/__init__.py +0 -0
  439. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/Operations/__init__.py +4 -0
  440. paddle_python_sdk-0.1.0/paddle_billing/Resources/Shared/__init__.py +0 -0
  441. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/CancelSubscription.py +12 -0
  442. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/CreateOneTimeCharge.py +22 -0
  443. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/Get/Includes.py +6 -0
  444. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/Get/__init__.py +0 -0
  445. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/ListSubscriptions.py +59 -0
  446. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/PauseSubscription.py +19 -0
  447. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/PreviewOneTimeCharge.py +22 -0
  448. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/PreviewUpdateSubscription.py +37 -0
  449. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/ResumeSubscription.py +17 -0
  450. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/Update/SubscriptionDiscount.py +9 -0
  451. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/Update/__init__.py +0 -0
  452. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/UpdateSubscription.py +37 -0
  453. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/Operations/__init__.py +10 -0
  454. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/SubscriptionsClient.py +121 -0
  455. paddle_python_sdk-0.1.0/paddle_billing/Resources/Subscriptions/__init__.py +0 -0
  456. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/CreateTransaction.py +25 -0
  457. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/List/Includes.py +11 -0
  458. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/List/Origin.py +10 -0
  459. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/List/__init__.py +0 -0
  460. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/ListTransactions.py +86 -0
  461. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/PreviewTransaction.py +24 -0
  462. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/UpdateTransaction.py +25 -0
  463. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/Operations/__init__.py +6 -0
  464. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/TransactionsClient.py +90 -0
  465. paddle_python_sdk-0.1.0/paddle_billing/Resources/Transactions/__init__.py +0 -0
  466. paddle_python_sdk-0.1.0/paddle_billing/Resources/__init__.py +0 -0
  467. paddle_python_sdk-0.1.0/paddle_billing/ResponseParser.py +65 -0
  468. paddle_python_sdk-0.1.0/paddle_billing/Undefined.py +2 -0
  469. paddle_python_sdk-0.1.0/paddle_billing/__init__.py +4 -0
  470. paddle_python_sdk-0.1.0/paddle_python_sdk.egg-info/PKG-INFO +184 -0
  471. paddle_python_sdk-0.1.0/paddle_python_sdk.egg-info/SOURCES.txt +520 -0
  472. paddle_python_sdk-0.1.0/paddle_python_sdk.egg-info/dependency_links.txt +1 -0
  473. paddle_python_sdk-0.1.0/paddle_python_sdk.egg-info/requires.txt +8 -0
  474. paddle_python_sdk-0.1.0/paddle_python_sdk.egg-info/top_level.txt +3 -0
  475. paddle_python_sdk-0.1.0/setup.cfg +4 -0
  476. paddle_python_sdk-0.1.0/setup.py +41 -0
  477. paddle_python_sdk-0.1.0/tests/Functional/Resources/Addresses/__init__.py +0 -0
  478. paddle_python_sdk-0.1.0/tests/Functional/Resources/Addresses/test_AddressesClient.py +274 -0
  479. paddle_python_sdk-0.1.0/tests/Functional/Resources/Adjustments/__init__.py +0 -0
  480. paddle_python_sdk-0.1.0/tests/Functional/Resources/Adjustments/test_AdjustmentsClient.py +188 -0
  481. paddle_python_sdk-0.1.0/tests/Functional/Resources/Businesses/__init__.py +0 -0
  482. paddle_python_sdk-0.1.0/tests/Functional/Resources/Businesses/test_BusinessesClient.py +279 -0
  483. paddle_python_sdk-0.1.0/tests/Functional/Resources/Customers/__init__.py +0 -0
  484. paddle_python_sdk-0.1.0/tests/Functional/Resources/Customers/test_CustomersClient.py +291 -0
  485. paddle_python_sdk-0.1.0/tests/Functional/Resources/Discounts/__init__.py +0 -0
  486. paddle_python_sdk-0.1.0/tests/Functional/Resources/Discounts/test_DiscountsClient.py +280 -0
  487. paddle_python_sdk-0.1.0/tests/Functional/Resources/EventTypes/__init__.py +0 -0
  488. paddle_python_sdk-0.1.0/tests/Functional/Resources/EventTypes/test_EventTypesClient.py +43 -0
  489. paddle_python_sdk-0.1.0/tests/Functional/Resources/Events/__init__.py +0 -0
  490. paddle_python_sdk-0.1.0/tests/Functional/Resources/Events/test_EventsClient.py +64 -0
  491. paddle_python_sdk-0.1.0/tests/Functional/Resources/NotificationLogs/__init__.py +0 -0
  492. paddle_python_sdk-0.1.0/tests/Functional/Resources/NotificationLogs/test_NotificationLogsClient.py +68 -0
  493. paddle_python_sdk-0.1.0/tests/Functional/Resources/NotificationSettings/__init__.py +0 -0
  494. paddle_python_sdk-0.1.0/tests/Functional/Resources/NotificationSettings/test_NotificationSettingsClient.py +287 -0
  495. paddle_python_sdk-0.1.0/tests/Functional/Resources/Notifications/__init__.py +0 -0
  496. paddle_python_sdk-0.1.0/tests/Functional/Resources/Notifications/test_NotificationsClient.py +202 -0
  497. paddle_python_sdk-0.1.0/tests/Functional/Resources/Prices/__init__.py +0 -0
  498. paddle_python_sdk-0.1.0/tests/Functional/Resources/Prices/test_PricesClient.py +307 -0
  499. paddle_python_sdk-0.1.0/tests/Functional/Resources/PricingPreviews/__init__.py +0 -0
  500. paddle_python_sdk-0.1.0/tests/Functional/Resources/PricingPreviews/test_PricingPreviewsClient.py +92 -0
  501. paddle_python_sdk-0.1.0/tests/Functional/Resources/Products/__init__.py +0 -0
  502. paddle_python_sdk-0.1.0/tests/Functional/Resources/Products/test_ProductsClient.py +271 -0
  503. paddle_python_sdk-0.1.0/tests/Functional/Resources/Reports/__init__.py +0 -0
  504. paddle_python_sdk-0.1.0/tests/Functional/Resources/Reports/test_ReportsClient.py +197 -0
  505. paddle_python_sdk-0.1.0/tests/Functional/Resources/Subscriptions/__init__.py +0 -0
  506. paddle_python_sdk-0.1.0/tests/Functional/Resources/Subscriptions/test_SubscriptionsClient.py +758 -0
  507. paddle_python_sdk-0.1.0/tests/Functional/Resources/Transactions/__init__.py +0 -0
  508. paddle_python_sdk-0.1.0/tests/Functional/Resources/Transactions/test_TransactionsClient.py +585 -0
  509. paddle_python_sdk-0.1.0/tests/Functional/Resources/__init__.py +0 -0
  510. paddle_python_sdk-0.1.0/tests/Functional/__init__.py +0 -0
  511. paddle_python_sdk-0.1.0/tests/Unit/Logger/__init__.py +0 -0
  512. paddle_python_sdk-0.1.0/tests/Unit/Logger/test_Logger.py +10 -0
  513. paddle_python_sdk-0.1.0/tests/Unit/Notification/__init__.py +0 -0
  514. paddle_python_sdk-0.1.0/tests/Unit/Notification/test_Verifier.py +63 -0
  515. paddle_python_sdk-0.1.0/tests/Unit/PaddleStrEnum/__init__.py +0 -0
  516. paddle_python_sdk-0.1.0/tests/Unit/PaddleStrEnum/test_PaddleStrEnum.py +52 -0
  517. paddle_python_sdk-0.1.0/tests/Unit/__init__.py +0 -0
  518. paddle_python_sdk-0.1.0/tests/Utils/FakeResponse.py +6 -0
  519. paddle_python_sdk-0.1.0/tests/Utils/ReadsFixture.py +33 -0
  520. paddle_python_sdk-0.1.0/tests/Utils/TestClient.py +48 -0
  521. paddle_python_sdk-0.1.0/tests/Utils/__init__.py +1 -0
  522. paddle_python_sdk-0.1.0/tests/__init__.py +0 -0
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2024 Paddle.com Market Limited
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,184 @@
1
+ Metadata-Version: 2.1
2
+ Name: paddle-python-sdk
3
+ Version: 0.1.0
4
+ Summary: Paddle's Python SDK for Paddle Billing
5
+ Home-page: https://developer.paddle.com/api-reference/overview
6
+ Author: Paddle and contributors
7
+ Author-email: team-dx@paddle.com
8
+ License: Apache-2.0
9
+ Keywords: paddle,sdk,python
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Requires-Python: >=3.11
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: requests>=2.31
20
+ Requires-Dist: urllib3>=1.26.18
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest<8.1.0,>=7.4.4; extra == "dev"
23
+ Requires-Dist: pytest-cov~=4.1.0; extra == "dev"
24
+ Requires-Dist: requests-mock~=1.11.0; extra == "dev"
25
+ Requires-Dist: setuptools>=69.0.3; extra == "dev"
26
+
27
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/PaddleHQ/paddle-python-sdk/publish_to_pypi.yml)](https://github.com/PaddleHQ/paddle-python-sdk/actions/?query=branch%3Amain)
28
+ [![PyPI](https://img.shields.io/pypi/v/paddle-python-sdk.svg)](https://pypi.python.org/pypi/paddle-python-sdk)
29
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/paddle-python-sdk.svg)](https://pypi.python.org/pypi/paddle-python-sdk/)
30
+ [![License: Apache 2.0](https://img.shields.io/github/license/PaddleHQ/paddle-python-sdk)](http://www.apache.org/licenses/LICENSE-2.0)
31
+
32
+
33
+ # paddle-python-sdk
34
+ [Paddle Billing](https://www.paddle.com/billing?utm_source=dx&utm_medium=paddle-python-sdk) is a complete digital product sales and subscription management platform, designed for modern software businesses. It helps you increase your revenue, retain customers, and scale your operations.
35
+
36
+ This is a [Python](https://www.python.org/) SDK that you can use to integrate Paddle Billing with applications written in Python.
37
+
38
+ For working with Paddle in your frontend, use [Paddle.js](https://developer.paddle.com/paddlejs/overview?utm_source=dx&utm_medium=paddle-python-sdk). You can open checkouts, securely collect payment information, build pricing pages, and integrate with Paddle Retain.
39
+
40
+ > **Important:** This package works with Paddle Billing. It does not support Paddle Classic. To work with Paddle Classic, see: [Paddle Classic API reference](https://developer.paddle.com/classic/api-reference/1384a288aca7a-api-reference?utm_source=dx&utm_medium=paddle-python-sdk)
41
+
42
+
43
+ ## Table of contents
44
+ - [Requirements](#Requirements)
45
+ - [Install](#Install)
46
+ - [Usage](#Usage)
47
+ - [Examples](#Examples)
48
+ - [Resources](#Resources)
49
+
50
+ ## Requirements
51
+ Python>=3.11 (for native type hinting, StrEnum, trailing commas, f-strings)
52
+
53
+ **Project dependencies** (automatically installed by pip):
54
+ - requests>=2.31
55
+ - urllib3>=2.1.0
56
+
57
+
58
+ ## Install
59
+ Because `paddle-python-sdk` is [available on PyPi](https://pypi.org/project/paddle-python-sdk/), installation is as simple as running the following `pip` command:
60
+
61
+ `pip install paddle-python-sdk`
62
+
63
+
64
+
65
+ ## Usage
66
+ To authenticate, you'll need an API key. You can create and manage API keys in **Paddle > Developer tools > Authentication**.
67
+
68
+ Pass your API key while initializing a new Paddle client:
69
+ ``` python
70
+ from paddle_billing import Client
71
+
72
+ paddle = Client('PADDLE_API_SECRET_KEY')
73
+ ```
74
+
75
+ You can pass your Paddle API secret key into the SDK from an environment variable:
76
+ ``` python
77
+ from os import getenv
78
+ from paddle_billing import Client
79
+
80
+ paddle = Client(getenv('PADDLE_API_SECRET_KEY'))
81
+ ```
82
+
83
+ You can also pass an environment to work with Paddle's sandbox:
84
+ ``` python
85
+ from paddle_billing import Client, Environment, Options
86
+
87
+ paddle = Client('PADDLE_API_SECRET_KEY', options=Options(Environment.SANDBOX))
88
+ ```
89
+
90
+ Keep in mind that API keys are separate for your sandbox and live accounts, so you'll need to generate keys for each environment.
91
+
92
+
93
+
94
+ ## Examples
95
+ There are examples included in the [examples folder](https://github.com/PaddleHQ/paddle-python-sdk/tree/main/examples). To prevent leaking errors we recommend encapsulating Paddle operations inside Try/Except blocks. For brevity, most of the examples below do not do this.
96
+
97
+ ### List entities
98
+ You can list supported entities with the `list()` method in the resource. It returns an iterator to help when working with multiple pages.
99
+ ``` python
100
+ from paddle_billing import Client
101
+
102
+ paddle = Client('PADDLE_API_SECRET_KEY')
103
+
104
+ products = paddle.products.list()
105
+
106
+ # list() returns an iterable, so pagination is automatically handled
107
+ for product in products:
108
+ print(f"Product's id: {product.id}")
109
+ ```
110
+
111
+ ### Get an entity
112
+ You can get an entity with the `get()` method in the resource. It accepts the `id` of the entity to get. The entity is returned.
113
+ ``` python
114
+ from paddle_billing import Client
115
+
116
+ paddle = Client('PADDLE_API_SECRET_KEY')
117
+
118
+ product = paddle.products.get('PRODUCT_ID')
119
+ ```
120
+
121
+ ### Create an entity
122
+ You can create a supported entity with the `create()` method in the resource. It accepts the resource's corresponding `CreateOperation` e.g. `CreateProduct`. The created entity is returned.
123
+
124
+ ``` python
125
+ from paddle_billing import Client
126
+ from paddle_billing.Entities.Shared.TaxCategory import TaxCategory
127
+ from paddle_billing.Resources.Products.Operations import CreateProduct
128
+
129
+ paddle = Client('PADDLE_API_SECRET_KEY')
130
+
131
+ created_product = paddle.products.create(CreateProduct(
132
+ name = 'My Product',
133
+ tax_category = TaxCategory.Standard,
134
+ ))
135
+ ```
136
+
137
+ ### Update an entity
138
+ You can update a supported entity with the `update()` method in the resource. It accepts the `id` of the entity to update and the corresponding `UpdateOperation` e.g. `UpdateProduct`. The updated entity is returned.
139
+ ``` python
140
+ from paddle_billing import Client
141
+ from paddle_billing.Resources.Products.Operations import UpdateProduct
142
+
143
+ paddle = Client('PADDLE_API_SECRET_KEY')
144
+
145
+ # Update the name of the product
146
+ updated_product = paddle.products.update('PRODUCT_ID', UpdateProduct(
147
+ name = 'My Improved Product'
148
+ ))
149
+ ```
150
+
151
+ Where operations require more than one `id`, the `update()` method accepts multiple arguments. For example, to update an address for a customer, pass the `customerId` and the `addressId`:
152
+ ``` python
153
+ updated_address = paddle.addresses.update(
154
+ 'CUSTOMER_ID',
155
+ 'ADDRESS_ID',
156
+ operation_goes_here,
157
+ )
158
+ ```
159
+
160
+ ### Delete an entity
161
+ You can delete an entity with the `delete()` method in the resource. It accepts the `id` of the entity to delete. The deleted entity is returned.
162
+ ``` python
163
+ from paddle_billing import Client
164
+
165
+ paddle = Client('PADDLE_API_SECRET_KEY')
166
+
167
+ deleted_product = paddle.products.delete('PRODUCT_ID')
168
+ ```
169
+
170
+
171
+ ## Resources
172
+
173
+ ### Webhook signature verification
174
+ The SDK includes a helper class to verify webhook signatures sent by Notifications from Paddle.
175
+
176
+ ``` python
177
+ from paddle_billing.Notifications import Secret, Verifier
178
+
179
+ integrity_check = Verifier().verify(request, Secret('WEBHOOK_SECRET_KEY')
180
+ ```
181
+
182
+ ## Learn more
183
+ - [Paddle API reference](https://developer.paddle.com/api-reference/overview?utm_source=dx&utm_medium=paddle-python-sdk)
184
+ - [Sign up for Paddle Billing](https://login.paddle.com/signup?utm_source=dx&utm_medium=paddle-python-sdk)
@@ -0,0 +1,158 @@
1
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/PaddleHQ/paddle-python-sdk/publish_to_pypi.yml)](https://github.com/PaddleHQ/paddle-python-sdk/actions/?query=branch%3Amain)
2
+ [![PyPI](https://img.shields.io/pypi/v/paddle-python-sdk.svg)](https://pypi.python.org/pypi/paddle-python-sdk)
3
+ [![PyPI pyversions](https://img.shields.io/pypi/pyversions/paddle-python-sdk.svg)](https://pypi.python.org/pypi/paddle-python-sdk/)
4
+ [![License: Apache 2.0](https://img.shields.io/github/license/PaddleHQ/paddle-python-sdk)](http://www.apache.org/licenses/LICENSE-2.0)
5
+
6
+
7
+ # paddle-python-sdk
8
+ [Paddle Billing](https://www.paddle.com/billing?utm_source=dx&utm_medium=paddle-python-sdk) is a complete digital product sales and subscription management platform, designed for modern software businesses. It helps you increase your revenue, retain customers, and scale your operations.
9
+
10
+ This is a [Python](https://www.python.org/) SDK that you can use to integrate Paddle Billing with applications written in Python.
11
+
12
+ For working with Paddle in your frontend, use [Paddle.js](https://developer.paddle.com/paddlejs/overview?utm_source=dx&utm_medium=paddle-python-sdk). You can open checkouts, securely collect payment information, build pricing pages, and integrate with Paddle Retain.
13
+
14
+ > **Important:** This package works with Paddle Billing. It does not support Paddle Classic. To work with Paddle Classic, see: [Paddle Classic API reference](https://developer.paddle.com/classic/api-reference/1384a288aca7a-api-reference?utm_source=dx&utm_medium=paddle-python-sdk)
15
+
16
+
17
+ ## Table of contents
18
+ - [Requirements](#Requirements)
19
+ - [Install](#Install)
20
+ - [Usage](#Usage)
21
+ - [Examples](#Examples)
22
+ - [Resources](#Resources)
23
+
24
+ ## Requirements
25
+ Python>=3.11 (for native type hinting, StrEnum, trailing commas, f-strings)
26
+
27
+ **Project dependencies** (automatically installed by pip):
28
+ - requests>=2.31
29
+ - urllib3>=2.1.0
30
+
31
+
32
+ ## Install
33
+ Because `paddle-python-sdk` is [available on PyPi](https://pypi.org/project/paddle-python-sdk/), installation is as simple as running the following `pip` command:
34
+
35
+ `pip install paddle-python-sdk`
36
+
37
+
38
+
39
+ ## Usage
40
+ To authenticate, you'll need an API key. You can create and manage API keys in **Paddle > Developer tools > Authentication**.
41
+
42
+ Pass your API key while initializing a new Paddle client:
43
+ ``` python
44
+ from paddle_billing import Client
45
+
46
+ paddle = Client('PADDLE_API_SECRET_KEY')
47
+ ```
48
+
49
+ You can pass your Paddle API secret key into the SDK from an environment variable:
50
+ ``` python
51
+ from os import getenv
52
+ from paddle_billing import Client
53
+
54
+ paddle = Client(getenv('PADDLE_API_SECRET_KEY'))
55
+ ```
56
+
57
+ You can also pass an environment to work with Paddle's sandbox:
58
+ ``` python
59
+ from paddle_billing import Client, Environment, Options
60
+
61
+ paddle = Client('PADDLE_API_SECRET_KEY', options=Options(Environment.SANDBOX))
62
+ ```
63
+
64
+ Keep in mind that API keys are separate for your sandbox and live accounts, so you'll need to generate keys for each environment.
65
+
66
+
67
+
68
+ ## Examples
69
+ There are examples included in the [examples folder](https://github.com/PaddleHQ/paddle-python-sdk/tree/main/examples). To prevent leaking errors we recommend encapsulating Paddle operations inside Try/Except blocks. For brevity, most of the examples below do not do this.
70
+
71
+ ### List entities
72
+ You can list supported entities with the `list()` method in the resource. It returns an iterator to help when working with multiple pages.
73
+ ``` python
74
+ from paddle_billing import Client
75
+
76
+ paddle = Client('PADDLE_API_SECRET_KEY')
77
+
78
+ products = paddle.products.list()
79
+
80
+ # list() returns an iterable, so pagination is automatically handled
81
+ for product in products:
82
+ print(f"Product's id: {product.id}")
83
+ ```
84
+
85
+ ### Get an entity
86
+ You can get an entity with the `get()` method in the resource. It accepts the `id` of the entity to get. The entity is returned.
87
+ ``` python
88
+ from paddle_billing import Client
89
+
90
+ paddle = Client('PADDLE_API_SECRET_KEY')
91
+
92
+ product = paddle.products.get('PRODUCT_ID')
93
+ ```
94
+
95
+ ### Create an entity
96
+ You can create a supported entity with the `create()` method in the resource. It accepts the resource's corresponding `CreateOperation` e.g. `CreateProduct`. The created entity is returned.
97
+
98
+ ``` python
99
+ from paddle_billing import Client
100
+ from paddle_billing.Entities.Shared.TaxCategory import TaxCategory
101
+ from paddle_billing.Resources.Products.Operations import CreateProduct
102
+
103
+ paddle = Client('PADDLE_API_SECRET_KEY')
104
+
105
+ created_product = paddle.products.create(CreateProduct(
106
+ name = 'My Product',
107
+ tax_category = TaxCategory.Standard,
108
+ ))
109
+ ```
110
+
111
+ ### Update an entity
112
+ You can update a supported entity with the `update()` method in the resource. It accepts the `id` of the entity to update and the corresponding `UpdateOperation` e.g. `UpdateProduct`. The updated entity is returned.
113
+ ``` python
114
+ from paddle_billing import Client
115
+ from paddle_billing.Resources.Products.Operations import UpdateProduct
116
+
117
+ paddle = Client('PADDLE_API_SECRET_KEY')
118
+
119
+ # Update the name of the product
120
+ updated_product = paddle.products.update('PRODUCT_ID', UpdateProduct(
121
+ name = 'My Improved Product'
122
+ ))
123
+ ```
124
+
125
+ Where operations require more than one `id`, the `update()` method accepts multiple arguments. For example, to update an address for a customer, pass the `customerId` and the `addressId`:
126
+ ``` python
127
+ updated_address = paddle.addresses.update(
128
+ 'CUSTOMER_ID',
129
+ 'ADDRESS_ID',
130
+ operation_goes_here,
131
+ )
132
+ ```
133
+
134
+ ### Delete an entity
135
+ You can delete an entity with the `delete()` method in the resource. It accepts the `id` of the entity to delete. The deleted entity is returned.
136
+ ``` python
137
+ from paddle_billing import Client
138
+
139
+ paddle = Client('PADDLE_API_SECRET_KEY')
140
+
141
+ deleted_product = paddle.products.delete('PRODUCT_ID')
142
+ ```
143
+
144
+
145
+ ## Resources
146
+
147
+ ### Webhook signature verification
148
+ The SDK includes a helper class to verify webhook signatures sent by Notifications from Paddle.
149
+
150
+ ``` python
151
+ from paddle_billing.Notifications import Secret, Verifier
152
+
153
+ integrity_check = Verifier().verify(request, Secret('WEBHOOK_SECRET_KEY')
154
+ ```
155
+
156
+ ## Learn more
157
+ - [Paddle API reference](https://developer.paddle.com/api-reference/overview?utm_source=dx&utm_medium=paddle-python-sdk)
158
+ - [Sign up for Paddle Billing](https://login.paddle.com/signup?utm_source=dx&utm_medium=paddle-python-sdk)
File without changes