@hypelabs-llc/ts-sdk 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  <p align="center">
2
- <img src="https://i.imgur.com/NtKvmk2.png" height="100" alt="HypeLabs" />
2
+ <img src="https://hypelabs.llc/logo.png" height="100" alt="HypeLabs" />
3
3
  </p>
4
4
  <h3 align="center">
5
5
  HypeLabs Connect SDK
6
6
  </h3>
7
7
  <p align="center">
8
- The TypeScript client for the HypeLabs Connect API, for internal services. 🚀
8
+ The TypeScript client for the HypeLabs Connect API.
9
9
  </p>
10
10
  <p align="center">
11
11
  <a href="https://www.npmjs.com/package/@hypelabs-llc/ts-sdk"><img src="https://img.shields.io/npm/v/@hypelabs-llc/ts-sdk?color=cb3837&label=npm" /></a>
@@ -25,9 +25,13 @@
25
25
 
26
26
  ## Install
27
27
 
28
- ```bash
29
- pnpm add @hypelabs-llc/ts-sdk
30
- ```
28
+ 1. **Add the package:**
29
+
30
+ ```bash
31
+ pnpm add @hypelabs-llc/ts-sdk
32
+ ```
33
+
34
+ 2. **Create your organization** on the [HypeLabs Console](https://console.hypelabs.network/?utm_source=github&utm_medium=readme&utm_campaign=ts-sdk) and generate an API key.
31
35
 
32
36
  ## Usage
33
37
 
@@ -1700,6 +1700,10 @@ export interface Order extends AdditionalDataHolder, Parsable {
1700
1700
  * Reference of the last settlement already applied to this order, provider-prefixed (e.g. `stripe:in_...`, `nowpayments:...`). Webhooks are delivered at least once, so a renewal that carries this same reference has already been applied and is skipped, keeping a redelivered payment from adding a cycle twice. Provider-agnostic so it covers every settlement source, current and future.
1701
1701
  */
1702
1702
  lastSettlementReference?: string | null;
1703
+ /**
1704
+ * The `BalanceTransaction` that last paid this order from the organization's balance (its creation or its most recent extension). Lets a refund credit back exactly that payment without re-deriving its amount. Null for orders paid through a processor (Stripe, crypto) or for trials.
1705
+ */
1706
+ lastTransactionId?: Guid | null;
1703
1707
  /**
1704
1708
  * The metadata property
1705
1709
  */
@@ -2934,9 +2938,6 @@ export declare const BillingCyclesObject: {
2934
2938
  readonly Yearly: "Yearly";
2935
2939
  readonly OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464";
2936
2940
  };
2937
- /**
2938
- * Which capability this option is (e.g. IPv6, IP scoring).
2939
- */
2940
2941
  export declare const CapabilityTypesObject: {
2941
2942
  readonly IpScore: "IpScore";
2942
2943
  readonly Ipv6: "Ipv6";
@@ -1117,6 +1117,7 @@ export function deserializeIntoOrder(order = {}) {
1117
1117
  "isTrial": n => { order.isTrial = n.getBooleanValue(); },
1118
1118
  "items": n => { order.items = n.getCollectionOfObjectValues(createOrderItemFromDiscriminatorValue); },
1119
1119
  "lastSettlementReference": n => { order.lastSettlementReference = n.getStringValue(); },
1120
+ "lastTransactionId": n => { order.lastTransactionId = n.getGuidValue(); },
1120
1121
  "metadata": n => { order.metadata = n.getObjectValue(createOrder_metadataFromDiscriminatorValue); },
1121
1122
  "paymentMethod": n => { order.paymentMethod = n.getEnumValue(PaymentMethodsObject); },
1122
1123
  "paymentProcessor": n => { order.paymentProcessor = n.getEnumValue(PaymentProcessorsObject); },
@@ -2218,6 +2219,7 @@ export function serializeOrder(writer, order = {}, isSerializingDerivedType = fa
2218
2219
  writer.writeBooleanValue("isTrial", order.isTrial);
2219
2220
  writer.writeCollectionOfObjectValues("items", order.items, serializeOrderItem);
2220
2221
  writer.writeStringValue("lastSettlementReference", order.lastSettlementReference);
2222
+ writer.writeGuidValue("lastTransactionId", order.lastTransactionId);
2221
2223
  writer.writeObjectValue("metadata", order.metadata, serializeOrder_metadata);
2222
2224
  writer.writeEnumValue("paymentMethod", order.paymentMethod);
2223
2225
  writer.writeEnumValue("paymentProcessor", order.paymentProcessor);
@@ -2882,9 +2884,6 @@ export const BillingCyclesObject = {
2882
2884
  Yearly: "Yearly",
2883
2885
  OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464: "openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464",
2884
2886
  };
2885
- /**
2886
- * Which capability this option is (e.g. IPv6, IP scoring).
2887
- */
2888
2887
  export const CapabilityTypesObject = {
2889
2888
  IpScore: "IpScore",
2890
2889
  Ipv6: "Ipv6",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypelabs-llc/ts-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The TypeScript client for the HypeLabs Connect API, for internal services.",
5
5
  "license": "MIT",
6
6
  "repository": {