Skip to content

Commit

Permalink
Merge pull request #76 from cb-haripriyan/fixes-entitlements-response
Browse files Browse the repository at this point in the history
fix: marks entitlements attributes as public
  • Loading branch information
cb-amutha authored Jul 17, 2023
2 parents 32d1859 + a0afe35 commit 2a3e5c1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Chargebee.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'Chargebee'
s.version = '1.0.24'
s.version = '1.0.25'
s.summary = 'Chargebee iOS SDK'

# This description is used to generate tags and improve search results.
Expand Down
10 changes: 5 additions & 5 deletions Chargebee/Classes/Entitlements/CBEntitlement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ public typealias EntitlementHandler = (CBResult<CBEntitlementWrapper>) -> Void

// MARK: - SubscriptionEntitlement
public struct Entitlement: Codable {
let subscriptionID, featureID, featureName, featureDescription: String
let featureType, value, name: String
let isOverridden, isEnabled: Bool
let object: String
public let subscriptionID, featureID, featureName, featureDescription: String
public let featureType, value, name: String
public let isOverridden, isEnabled: Bool
public let object: String

enum CodingKeys: String, CodingKey {
case subscriptionID = "subscription_id"
Expand All @@ -31,7 +31,7 @@ public struct Entitlement: Codable {
}

public struct EntitlementList: Codable {
let entitlement: Entitlement
public let entitlement: Entitlement
enum CodingKeys: String, CodingKey {
case entitlement = "subscription_entitlement"
}
Expand Down
6 changes: 3 additions & 3 deletions ChargebeeTests/UnitTests/AuthenticationTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ class AuthenticationTest: XCTestCase {

override func setUp() {
super.setUp()
Chargebee.configure(site: "test.com", apiKey: "12345", sdkKey: "6789", allowErrorLogging: true)
Chargebee.configure(site: "test", apiKey: "12345", sdkKey: "6789", allowErrorLogging: true)

}

func testEnvironmentValues() {
XCTAssertEqual(CBEnvironment.site, "test.com")
XCTAssertEqual(CBEnvironment.baseUrl, "https://test.com/api")
XCTAssertEqual(CBEnvironment.site, "test")
XCTAssertEqual(CBEnvironment.baseUrl, "https://test.chargebee.com/api")
XCTAssertEqual(CBEnvironment.apiKey, "12345")
XCTAssertEqual(CBEnvironment.sdkKey, "6789")
XCTAssertEqual(CBAuthenticationManager.isSDKKeyPresent(), true)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Choose from the following options to install Chargeee iOS SDK.
Add the following snippet to the Podfile to install directly from Github.

```swift
pod 'Chargebee', :git => 'https://github.com/chargebee/chargebee-ios', :tag => '1.0.24'
pod 'Chargebee', :git => 'https://github.com/chargebee/chargebee-ios', :tag => '1.0.25'
```

### CocoaPods
Expand Down

0 comments on commit 2a3e5c1

Please sign in to comment.