pindo 4.7.3 → 4.7.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c21050abb1c90a03a0692aac01e408ff0bbce3968b89677358bec75c1e903c7e
4
- data.tar.gz: '0235831d8df25e4c7227a4980339a858aa8d271f72480ac6f9afc727d1898cae'
3
+ metadata.gz: df037923380f2b620207356880503d0999f322ff1567b91f851cab7e16a5c3d5
4
+ data.tar.gz: cfe5b3f9a2968750ed4e78bf0d3127a74bbd20c53a703ae74606394fc0433ab2
5
5
  SHA512:
6
- metadata.gz: 3b2b2a2a3e7efdcfe0882510269d7bb8b10ab49a571c15f01f5a6538f64a909fd90b91d246d100b1f9883462adec0f25ae0fda3f5c8640cba235009bd94bbbe0
7
- data.tar.gz: 2fa34d8dd3cc0f7c4d0ab76354b63a5bde85307990f33cb08fa7a8fc7654a0eff88b7a2faf882325ba61431ee6b211e3fccdffcca062fe9556b2344300e1fc87
6
+ metadata.gz: 4f05b640b14b6f4d7de61e8b359b0350a15b5b48dd63f39ef71e6f8287d62f8350eaac767b5935241af9b8df8d9b2482329b33f31cca4b9911c96114b9f27528
7
+ data.tar.gz: d2fe50e1eb3cd860248c05e746d307e9a8ca554225f9134788fa7ab3aed3b4f2470a7610bf3048c5f82ff5e2a4930d046cb6ca4888f1b34fcccaf5fcd8b3c0f6
@@ -92,9 +92,9 @@ module Pindo
92
92
  temp_version = @config_json["app_info"]["app_version"]
93
93
  end
94
94
 
95
- if @com_name.nil? && @config_json.nil? && @config_json["account_info"] && @config_json["app_info"]["acount_company_name"]
95
+ if (@com_name.nil? || @com_name.empty?) && !@config_json.nil? && !@config_json["account_info"].nil? && !@config_json["account_info"]["acount_company_name"].nil?
96
96
  @com_name = @config_json["account_info"]["acount_company_name"].strip
97
- end
97
+ end
98
98
 
99
99
  app = nil
100
100
  if !temp_bundle_id.nil?
@@ -378,16 +378,13 @@ module Pindo
378
378
  include: 'territory',
379
379
  filter: {
380
380
  territory: 'USA',
381
- price_tier: purchase_item["price_tier"]
382
381
  },
383
- limit:100
382
+ limit:800
384
383
  )
385
384
  # puts JSON.pretty_generate(respose_price)
386
385
 
387
-
388
386
  price_id = nil
389
387
 
390
-
391
388
  respose_price[:data].each do |price_item|
392
389
  if price_item[:attributes][:customer_price].to_s.eql?(purchase_item["price"].to_s)
393
390
  price_id = price_item[:id]
@@ -395,8 +392,9 @@ module Pindo
395
392
  puts " 更新价格 :" + purchase_item["price"] +"$"
396
393
  end
397
394
  end
395
+
398
396
  if !price_id.nil?
399
- in_app_purchase = appstore_client.create_in_app_purchase_price_schedule(
397
+ purchase_response = appstore_client.create_in_app_purchase_price_schedule(
400
398
  relationships: {
401
399
  manual_prices: {
402
400
  data: [
@@ -411,32 +409,32 @@ module Pindo
411
409
  type: 'inAppPurchases',
412
410
  id: in_app_purchase_id
413
411
  }
412
+ },
413
+ baseTerritory: {
414
+ data: {
415
+ type: 'territories',
416
+ id: 'USA'
417
+ }
414
418
  }
415
419
  },
416
420
  included: [
417
421
  {
418
- type: 'inAppPurchasePrices',
419
- id: '${price1}',
420
- attributes: {
421
- startDate: nil
422
- },
423
- relationships: {
424
- inAppPurchaseV2: {
425
- data: {
426
- type: 'inAppPurchases',
427
- id: in_app_purchase_id
428
- }
422
+ type: 'inAppPurchasePrices',
423
+ id: '${price1}',
424
+ attributes: {
425
+ startDate: nil
429
426
  },
430
- inAppPurchasePricePoint: {
431
- data: {
432
- type: 'inAppPurchasePricePoints',
433
- id: price_id
434
- }
427
+ relationships: {
428
+ inAppPurchasePricePoint: {
429
+ data: {
430
+ type: 'inAppPurchasePricePoints',
431
+ id: price_id
432
+ }
433
+ }
435
434
  }
436
435
  }
437
- }
438
- ]
439
- )
436
+ ])
437
+ # puts JSON.pretty_generate(purchase_response)
440
438
  end
441
439
 
442
440
  rescue => err
data/lib/pindo/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Pindo
2
2
 
3
- VERSION = "4.7.3"
3
+ VERSION = "4.7.4"
4
4
 
5
5
  class VersionCheck
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.3
4
+ version: 4.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - wade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-02 00:00:00.000000000 Z
11
+ date: 2024-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide